]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
252b5132 RH |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
13b2be9c | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13b2be9c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13b2be9c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
13b2be9c DJ |
31 | fi |
32 | ||
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
13b2be9c DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
13b2be9c DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
13b2be9c | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
13b2be9c | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell [email protected] about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
13b2be9c | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
13b2be9c | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13b2be9c DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
13b2be9c | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
13b2be9c | 410 | |
13b2be9c DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
13b2be9c | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
13b2be9c | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
13b2be9c | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
13b2be9c | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
13b2be9c | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
13b2be9c DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
13b2be9c DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
13b2be9c DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
13b2be9c | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
13b2be9c | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
13b2be9c | 483 | fi |
13b2be9c DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
13b2be9c DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
13b2be9c | 492 | else |
ab509236 | 493 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
494 | as_mkdir_p=false |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
13b2be9c DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
ab509236 | 521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
522 | |
523 | # Sed expression to map a string onto a valid variable name. | |
ab509236 | 524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
525 | |
526 | ||
d7040cdb SE |
527 | |
528 | # Check that we are running under the correct shell. | |
529 | SHELL=${CONFIG_SHELL-/bin/sh} | |
530 | ||
531 | case X$lt_ECHO in | |
532 | X*--fallback-echo) | |
533 | # Remove one level of quotation (which was required for Make). | |
534 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
535 | ;; | |
536 | esac | |
537 | ||
538 | ECHO=${lt_ECHO-echo} | |
539 | if test "X$1" = X--no-reexec; then | |
540 | # Discard the --no-reexec flag, and continue. | |
541 | shift | |
542 | elif test "X$1" = X--fallback-echo; then | |
543 | # Avoid inline document here, it may be left over | |
544 | : | |
545 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
546 | # Yippee, $ECHO works! | |
547 | : | |
548 | else | |
549 | # Restart under the correct shell. | |
550 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
551 | fi | |
552 | ||
553 | if test "X$1" = X--fallback-echo; then | |
554 | # used as fallback echo | |
555 | shift | |
556 | cat <<_LT_EOF | |
557 | $* | |
558 | _LT_EOF | |
559 | exit 0 | |
560 | fi | |
561 | ||
562 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
563 | # if CDPATH is set. | |
564 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
565 | ||
566 | if test -z "$lt_ECHO"; then | |
567 | if test "X${echo_test_string+set}" != Xset; then | |
568 | # find a string as large as possible, as long as the shell can cope with it | |
569 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
570 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
571 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
572 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
573 | then | |
574 | break | |
575 | fi | |
576 | done | |
577 | fi | |
578 | ||
579 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
580 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
581 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
582 | : | |
583 | else | |
584 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
585 | # backslashes. This makes it impossible to quote backslashes using | |
586 | # echo "$something" | sed 's/\\/\\\\/g' | |
587 | # | |
588 | # So, first we look for a working echo in the user's PATH. | |
589 | ||
590 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
591 | for dir in $PATH /usr/ucb; do | |
592 | IFS="$lt_save_ifs" | |
593 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
594 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
595 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
596 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
597 | ECHO="$dir/echo" | |
598 | break | |
599 | fi | |
600 | done | |
601 | IFS="$lt_save_ifs" | |
602 | ||
603 | if test "X$ECHO" = Xecho; then | |
604 | # We didn't find a better echo, so look for alternatives. | |
605 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
606 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
607 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
608 | # This shell has a builtin print -r that does the trick. | |
609 | ECHO='print -r' | |
610 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
611 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
612 | # If we have ksh, try running configure again with it. | |
613 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
614 | export ORIGINAL_CONFIG_SHELL | |
615 | CONFIG_SHELL=/bin/ksh | |
616 | export CONFIG_SHELL | |
617 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
618 | else | |
619 | # Try using printf. | |
620 | ECHO='printf %s\n' | |
621 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
622 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
623 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
624 | # Cool, printf works | |
625 | : | |
626 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
627 | test "X$echo_testing_string" = 'X\t' && | |
628 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
629 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
630 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
631 | export CONFIG_SHELL | |
632 | SHELL="$CONFIG_SHELL" | |
633 | export SHELL | |
634 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
635 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
636 | test "X$echo_testing_string" = 'X\t' && | |
637 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
638 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
640 | else | |
641 | # maybe with a smaller string... | |
642 | prev=: | |
643 | ||
644 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
645 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
646 | then | |
647 | break | |
648 | fi | |
649 | prev="$cmd" | |
650 | done | |
651 | ||
652 | if test "$prev" != 'sed 50q "$0"'; then | |
653 | echo_test_string=`eval $prev` | |
654 | export echo_test_string | |
655 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
656 | else | |
657 | # Oops. We lost completely, so just stick with echo. | |
658 | ECHO=echo | |
659 | fi | |
660 | fi | |
661 | fi | |
662 | fi | |
663 | fi | |
664 | fi | |
665 | ||
666 | # Copy echo and quote the copy suitably for passing to libtool from | |
667 | # the Makefile, instead of quoting the original, which is used later. | |
668 | lt_ECHO=$ECHO | |
669 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
670 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
671 | fi | |
672 | ||
673 | ||
674 | ||
675 | ||
81ecdfbb RW |
676 | exec 7<&0 </dev/null 6>&1 |
677 | ||
13b2be9c DJ |
678 | # Name of the host. |
679 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
680 | # so uname gets run too. | |
681 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 682 | |
13b2be9c DJ |
683 | # |
684 | # Initializations. | |
685 | # | |
252b5132 | 686 | ac_default_prefix=/usr/local |
81ecdfbb | 687 | ac_clean_files= |
13b2be9c | 688 | ac_config_libobj_dir=. |
81ecdfbb | 689 | LIBOBJS= |
13b2be9c DJ |
690 | cross_compiling=no |
691 | subdirs= | |
692 | MFLAGS= | |
693 | MAKEFLAGS= | |
13b2be9c DJ |
694 | |
695 | # Identity of this package. | |
696 | PACKAGE_NAME= | |
697 | PACKAGE_TARNAME= | |
698 | PACKAGE_VERSION= | |
699 | PACKAGE_STRING= | |
700 | PACKAGE_BUGREPORT= | |
81ecdfbb | 701 | PACKAGE_URL= |
13b2be9c DJ |
702 | |
703 | ac_unique_file="as.h" | |
704 | # Factoring default headers for most tests. | |
705 | ac_includes_default="\ | |
706 | #include <stdio.h> | |
81ecdfbb | 707 | #ifdef HAVE_SYS_TYPES_H |
13b2be9c DJ |
708 | # include <sys/types.h> |
709 | #endif | |
81ecdfbb | 710 | #ifdef HAVE_SYS_STAT_H |
13b2be9c DJ |
711 | # include <sys/stat.h> |
712 | #endif | |
81ecdfbb | 713 | #ifdef STDC_HEADERS |
13b2be9c DJ |
714 | # include <stdlib.h> |
715 | # include <stddef.h> | |
716 | #else | |
81ecdfbb | 717 | # ifdef HAVE_STDLIB_H |
13b2be9c DJ |
718 | # include <stdlib.h> |
719 | # endif | |
720 | #endif | |
81ecdfbb RW |
721 | #ifdef HAVE_STRING_H |
722 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
13b2be9c DJ |
723 | # include <memory.h> |
724 | # endif | |
725 | # include <string.h> | |
726 | #endif | |
81ecdfbb | 727 | #ifdef HAVE_STRINGS_H |
13b2be9c DJ |
728 | # include <strings.h> |
729 | #endif | |
81ecdfbb | 730 | #ifdef HAVE_INTTYPES_H |
13b2be9c | 731 | # include <inttypes.h> |
13b2be9c | 732 | #endif |
81ecdfbb RW |
733 | #ifdef HAVE_STDINT_H |
734 | # include <stdint.h> | |
735 | #endif | |
736 | #ifdef HAVE_UNISTD_H | |
13b2be9c DJ |
737 | # include <unistd.h> |
738 | #endif" | |
739 | ||
81ecdfbb RW |
740 | ac_subst_vars='am__EXEEXT_FALSE |
741 | am__EXEEXT_TRUE | |
742 | LTLIBOBJS | |
743 | LIBOBJS | |
744 | LIBM | |
745 | ALLOCA | |
746 | GENINSRC_NEVER_FALSE | |
747 | GENINSRC_NEVER_TRUE | |
748 | MAINT | |
749 | MAINTAINER_MODE_FALSE | |
750 | MAINTAINER_MODE_TRUE | |
751 | MSGMERGE | |
752 | MSGFMT | |
753 | MKINSTALLDIRS | |
754 | CATOBJEXT | |
755 | GENCAT | |
756 | INSTOBJEXT | |
757 | DATADIRNAME | |
758 | CATALOGS | |
759 | POSUB | |
760 | GMSGFMT | |
761 | XGETTEXT | |
762 | INCINTL | |
763 | LIBINTL_DEP | |
764 | LIBINTL | |
765 | USE_NLS | |
766 | LEXLIB | |
767 | LEX_OUTPUT_ROOT | |
768 | LEX | |
769 | YFLAGS | |
770 | YACC | |
771 | OPCODES_LIB | |
772 | atof | |
773 | install_tooldir | |
774 | te_file | |
775 | obj_format | |
776 | target_cpu_type | |
777 | extra_objects | |
778 | cgen_cpu_prefix | |
779 | GDBINIT | |
780 | NO_WERROR | |
781 | WARN_CFLAGS | |
782 | OTOOL64 | |
783 | OTOOL | |
784 | LIPO | |
785 | NMEDIT | |
786 | DSYMUTIL | |
787 | lt_ECHO | |
788 | RANLIB | |
789 | AR | |
790 | OBJDUMP | |
791 | LN_S | |
792 | NM | |
793 | ac_ct_DUMPBIN | |
794 | DUMPBIN | |
795 | LD | |
796 | FGREP | |
797 | SED | |
798 | LIBTOOL | |
799 | EGREP | |
800 | GREP | |
801 | CPP | |
802 | am__fastdepCC_FALSE | |
803 | am__fastdepCC_TRUE | |
804 | CCDEPMODE | |
805 | AMDEPBACKSLASH | |
806 | AMDEP_FALSE | |
807 | AMDEP_TRUE | |
808 | am__quote | |
809 | am__include | |
810 | DEPDIR | |
811 | am__untar | |
812 | am__tar | |
813 | AMTAR | |
814 | am__leading_dot | |
815 | SET_MAKE | |
816 | AWK | |
817 | mkdir_p | |
818 | MKDIR_P | |
819 | INSTALL_STRIP_PROGRAM | |
820 | STRIP | |
821 | install_sh | |
822 | MAKEINFO | |
823 | AUTOHEADER | |
824 | AUTOMAKE | |
825 | AUTOCONF | |
826 | ACLOCAL | |
827 | VERSION | |
828 | PACKAGE | |
829 | CYGPATH_W | |
830 | am__isrc | |
831 | INSTALL_DATA | |
832 | INSTALL_SCRIPT | |
833 | INSTALL_PROGRAM | |
834 | OBJEXT | |
835 | EXEEXT | |
836 | ac_ct_CC | |
837 | CPPFLAGS | |
838 | LDFLAGS | |
839 | CFLAGS | |
840 | CC | |
841 | target_os | |
842 | target_vendor | |
843 | target_cpu | |
844 | target | |
845 | host_os | |
846 | host_vendor | |
847 | host_cpu | |
848 | host | |
849 | build_os | |
850 | build_vendor | |
851 | build_cpu | |
852 | build | |
853 | target_alias | |
854 | host_alias | |
855 | build_alias | |
856 | LIBS | |
857 | ECHO_T | |
858 | ECHO_N | |
859 | ECHO_C | |
860 | DEFS | |
861 | mandir | |
862 | localedir | |
863 | libdir | |
864 | psdir | |
865 | pdfdir | |
866 | dvidir | |
867 | htmldir | |
868 | infodir | |
869 | docdir | |
870 | oldincludedir | |
871 | includedir | |
872 | localstatedir | |
873 | sharedstatedir | |
874 | sysconfdir | |
875 | datadir | |
876 | datarootdir | |
877 | libexecdir | |
878 | sbindir | |
879 | bindir | |
880 | program_transform_name | |
881 | prefix | |
882 | exec_prefix | |
883 | PACKAGE_URL | |
884 | PACKAGE_BUGREPORT | |
885 | PACKAGE_STRING | |
886 | PACKAGE_VERSION | |
887 | PACKAGE_TARNAME | |
888 | PACKAGE_NAME | |
889 | PATH_SEPARATOR | |
890 | SHELL' | |
13b2be9c | 891 | ac_subst_files='' |
81ecdfbb RW |
892 | ac_user_opts=' |
893 | enable_option_checking | |
894 | enable_dependency_tracking | |
895 | enable_largefile | |
896 | enable_shared | |
897 | enable_static | |
898 | with_pic | |
899 | enable_fast_install | |
900 | with_gnu_ld | |
901 | enable_libtool_lock | |
902 | enable_targets | |
903 | enable_checking | |
904 | enable_werror | |
905 | enable_build_warnings | |
906 | enable_nls | |
907 | enable_maintainer_mode | |
908 | ' | |
909 | ac_precious_vars='build_alias | |
910 | host_alias | |
911 | target_alias | |
912 | CC | |
913 | CFLAGS | |
914 | LDFLAGS | |
915 | LIBS | |
916 | CPPFLAGS | |
917 | CPP | |
918 | YACC | |
919 | YFLAGS' | |
920 | ||
252b5132 RH |
921 | |
922 | # Initialize some variables set by options. | |
13b2be9c DJ |
923 | ac_init_help= |
924 | ac_init_version=false | |
81ecdfbb RW |
925 | ac_unrecognized_opts= |
926 | ac_unrecognized_sep= | |
252b5132 RH |
927 | # The variables have the same names as the options, with |
928 | # dashes changed to underlines. | |
13b2be9c | 929 | cache_file=/dev/null |
252b5132 | 930 | exec_prefix=NONE |
252b5132 | 931 | no_create= |
252b5132 RH |
932 | no_recursion= |
933 | prefix=NONE | |
934 | program_prefix=NONE | |
935 | program_suffix=NONE | |
936 | program_transform_name=s,x,x, | |
937 | silent= | |
938 | site= | |
939 | srcdir= | |
252b5132 RH |
940 | verbose= |
941 | x_includes=NONE | |
942 | x_libraries=NONE | |
13b2be9c DJ |
943 | |
944 | # Installation directory options. | |
945 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
946 | # and all the variables that are supposed to be based on exec_prefix | |
947 | # by default will actually change. | |
948 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 949 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
950 | bindir='${exec_prefix}/bin' |
951 | sbindir='${exec_prefix}/sbin' | |
952 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
953 | datarootdir='${prefix}/share' |
954 | datadir='${datarootdir}' | |
252b5132 RH |
955 | sysconfdir='${prefix}/etc' |
956 | sharedstatedir='${prefix}/com' | |
957 | localstatedir='${prefix}/var' | |
252b5132 RH |
958 | includedir='${prefix}/include' |
959 | oldincludedir='/usr/include' | |
81ecdfbb RW |
960 | docdir='${datarootdir}/doc/${PACKAGE}' |
961 | infodir='${datarootdir}/info' | |
962 | htmldir='${docdir}' | |
963 | dvidir='${docdir}' | |
964 | pdfdir='${docdir}' | |
965 | psdir='${docdir}' | |
966 | libdir='${exec_prefix}/lib' | |
967 | localedir='${datarootdir}/locale' | |
968 | mandir='${datarootdir}/man' | |
252b5132 | 969 | |
252b5132 | 970 | ac_prev= |
81ecdfbb | 971 | ac_dashdash= |
252b5132 RH |
972 | for ac_option |
973 | do | |
252b5132 RH |
974 | # If the previous option needs an argument, assign it. |
975 | if test -n "$ac_prev"; then | |
81ecdfbb | 976 | eval $ac_prev=\$ac_option |
252b5132 RH |
977 | ac_prev= |
978 | continue | |
979 | fi | |
980 | ||
81ecdfbb RW |
981 | case $ac_option in |
982 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
983 | *) ac_optarg=yes ;; | |
984 | esac | |
252b5132 RH |
985 | |
986 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
987 | ||
81ecdfbb RW |
988 | case $ac_dashdash$ac_option in |
989 | --) | |
990 | ac_dashdash=yes ;; | |
252b5132 RH |
991 | |
992 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
993 | ac_prev=bindir ;; | |
994 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
13b2be9c | 995 | bindir=$ac_optarg ;; |
252b5132 RH |
996 | |
997 | -build | --build | --buil | --bui | --bu) | |
13b2be9c | 998 | ac_prev=build_alias ;; |
252b5132 | 999 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
13b2be9c | 1000 | build_alias=$ac_optarg ;; |
252b5132 RH |
1001 | |
1002 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1003 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1004 | ac_prev=cache_file ;; | |
1005 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1006 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
13b2be9c DJ |
1007 | cache_file=$ac_optarg ;; |
1008 | ||
1009 | --config-cache | -C) | |
1010 | cache_file=config.cache ;; | |
252b5132 | 1011 | |
81ecdfbb | 1012 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 1013 | ac_prev=datadir ;; |
81ecdfbb | 1014 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
13b2be9c | 1015 | datadir=$ac_optarg ;; |
252b5132 | 1016 | |
81ecdfbb RW |
1017 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1018 | | --dataroo | --dataro | --datar) | |
1019 | ac_prev=datarootdir ;; | |
1020 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1021 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1022 | datarootdir=$ac_optarg ;; | |
1023 | ||
252b5132 | 1024 | -disable-* | --disable-*) |
81ecdfbb | 1025 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 1026 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1028 | as_fn_error "invalid feature name: $ac_useropt" | |
1029 | ac_useropt_orig=$ac_useropt | |
1030 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1031 | case $ac_user_opts in | |
1032 | *" | |
1033 | "enable_$ac_useropt" | |
1034 | "*) ;; | |
1035 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1036 | ac_unrecognized_sep=', ';; | |
1037 | esac | |
1038 | eval enable_$ac_useropt=no ;; | |
1039 | ||
1040 | -docdir | --docdir | --docdi | --doc | --do) | |
1041 | ac_prev=docdir ;; | |
1042 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1043 | docdir=$ac_optarg ;; | |
1044 | ||
1045 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1046 | ac_prev=dvidir ;; | |
1047 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1048 | dvidir=$ac_optarg ;; | |
252b5132 RH |
1049 | |
1050 | -enable-* | --enable-*) | |
81ecdfbb | 1051 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 1052 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1053 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1054 | as_fn_error "invalid feature name: $ac_useropt" | |
1055 | ac_useropt_orig=$ac_useropt | |
1056 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1057 | case $ac_user_opts in | |
1058 | *" | |
1059 | "enable_$ac_useropt" | |
1060 | "*) ;; | |
1061 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1062 | ac_unrecognized_sep=', ';; | |
252b5132 | 1063 | esac |
81ecdfbb | 1064 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1065 | |
1066 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1067 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1068 | | --exec | --exe | --ex) | |
1069 | ac_prev=exec_prefix ;; | |
1070 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1071 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1072 | | --exec=* | --exe=* | --ex=*) | |
13b2be9c | 1073 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1074 | |
1075 | -gas | --gas | --ga | --g) | |
1076 | # Obsolete; use --with-gas. | |
1077 | with_gas=yes ;; | |
1078 | ||
13b2be9c DJ |
1079 | -help | --help | --hel | --he | -h) |
1080 | ac_init_help=long ;; | |
1081 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1082 | ac_init_help=recursive ;; | |
1083 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1084 | ac_init_help=short ;; | |
252b5132 RH |
1085 | |
1086 | -host | --host | --hos | --ho) | |
13b2be9c | 1087 | ac_prev=host_alias ;; |
252b5132 | 1088 | -host=* | --host=* | --hos=* | --ho=*) |
13b2be9c | 1089 | host_alias=$ac_optarg ;; |
252b5132 | 1090 | |
81ecdfbb RW |
1091 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1092 | ac_prev=htmldir ;; | |
1093 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1094 | | --ht=*) | |
1095 | htmldir=$ac_optarg ;; | |
1096 | ||
252b5132 RH |
1097 | -includedir | --includedir | --includedi | --included | --include \ |
1098 | | --includ | --inclu | --incl | --inc) | |
1099 | ac_prev=includedir ;; | |
1100 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1101 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
13b2be9c | 1102 | includedir=$ac_optarg ;; |
252b5132 RH |
1103 | |
1104 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1105 | ac_prev=infodir ;; | |
1106 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
13b2be9c | 1107 | infodir=$ac_optarg ;; |
252b5132 RH |
1108 | |
1109 | -libdir | --libdir | --libdi | --libd) | |
1110 | ac_prev=libdir ;; | |
1111 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
13b2be9c | 1112 | libdir=$ac_optarg ;; |
252b5132 RH |
1113 | |
1114 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1115 | | --libexe | --libex | --libe) | |
1116 | ac_prev=libexecdir ;; | |
1117 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1118 | | --libexe=* | --libex=* | --libe=*) | |
13b2be9c | 1119 | libexecdir=$ac_optarg ;; |
252b5132 | 1120 | |
81ecdfbb RW |
1121 | -localedir | --localedir | --localedi | --localed | --locale) |
1122 | ac_prev=localedir ;; | |
1123 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1124 | localedir=$ac_optarg ;; | |
1125 | ||
252b5132 | 1126 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1127 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1128 | ac_prev=localstatedir ;; |
1129 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1130 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
13b2be9c | 1131 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1132 | |
1133 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1134 | ac_prev=mandir ;; | |
1135 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
13b2be9c | 1136 | mandir=$ac_optarg ;; |
252b5132 RH |
1137 | |
1138 | -nfp | --nfp | --nf) | |
1139 | # Obsolete; use --without-fp. | |
1140 | with_fp=no ;; | |
1141 | ||
1142 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
13b2be9c | 1143 | | --no-cr | --no-c | -n) |
252b5132 RH |
1144 | no_create=yes ;; |
1145 | ||
1146 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1147 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1148 | no_recursion=yes ;; | |
1149 | ||
1150 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1151 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1152 | | --oldin | --oldi | --old | --ol | --o) | |
1153 | ac_prev=oldincludedir ;; | |
1154 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1155 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1156 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
13b2be9c | 1157 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1158 | |
1159 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1160 | ac_prev=prefix ;; | |
1161 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13b2be9c | 1162 | prefix=$ac_optarg ;; |
252b5132 RH |
1163 | |
1164 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1165 | | --program-pre | --program-pr | --program-p) | |
1166 | ac_prev=program_prefix ;; | |
1167 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1168 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
13b2be9c | 1169 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1170 | |
1171 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1172 | | --program-suf | --program-su | --program-s) | |
1173 | ac_prev=program_suffix ;; | |
1174 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1175 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
13b2be9c | 1176 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1177 | |
1178 | -program-transform-name | --program-transform-name \ | |
1179 | | --program-transform-nam | --program-transform-na \ | |
1180 | | --program-transform-n | --program-transform- \ | |
1181 | | --program-transform | --program-transfor \ | |
1182 | | --program-transfo | --program-transf \ | |
1183 | | --program-trans | --program-tran \ | |
1184 | | --progr-tra | --program-tr | --program-t) | |
1185 | ac_prev=program_transform_name ;; | |
1186 | -program-transform-name=* | --program-transform-name=* \ | |
1187 | | --program-transform-nam=* | --program-transform-na=* \ | |
1188 | | --program-transform-n=* | --program-transform-=* \ | |
1189 | | --program-transform=* | --program-transfor=* \ | |
1190 | | --program-transfo=* | --program-transf=* \ | |
1191 | | --program-trans=* | --program-tran=* \ | |
1192 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
13b2be9c | 1193 | program_transform_name=$ac_optarg ;; |
252b5132 | 1194 | |
81ecdfbb RW |
1195 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1196 | ac_prev=pdfdir ;; | |
1197 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1198 | pdfdir=$ac_optarg ;; | |
1199 | ||
1200 | -psdir | --psdir | --psdi | --psd | --ps) | |
1201 | ac_prev=psdir ;; | |
1202 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1203 | psdir=$ac_optarg ;; | |
1204 | ||
252b5132 RH |
1205 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1206 | | -silent | --silent | --silen | --sile | --sil) | |
1207 | silent=yes ;; | |
1208 | ||
1209 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1210 | ac_prev=sbindir ;; | |
1211 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1212 | | --sbi=* | --sb=*) | |
13b2be9c | 1213 | sbindir=$ac_optarg ;; |
252b5132 RH |
1214 | |
1215 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1216 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1217 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1218 | | --sha | --sh) | |
1219 | ac_prev=sharedstatedir ;; | |
1220 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1221 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1222 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1223 | | --sha=* | --sh=*) | |
13b2be9c | 1224 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1225 | |
1226 | -site | --site | --sit) | |
1227 | ac_prev=site ;; | |
1228 | -site=* | --site=* | --sit=*) | |
13b2be9c | 1229 | site=$ac_optarg ;; |
76bff705 | 1230 | |
252b5132 RH |
1231 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1232 | ac_prev=srcdir ;; | |
1233 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13b2be9c | 1234 | srcdir=$ac_optarg ;; |
252b5132 RH |
1235 | |
1236 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1237 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1238 | ac_prev=sysconfdir ;; | |
1239 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1240 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
13b2be9c | 1241 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1242 | |
1243 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
13b2be9c | 1244 | ac_prev=target_alias ;; |
252b5132 | 1245 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
13b2be9c | 1246 | target_alias=$ac_optarg ;; |
252b5132 RH |
1247 | |
1248 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1249 | verbose=yes ;; | |
1250 | ||
13b2be9c DJ |
1251 | -version | --version | --versio | --versi | --vers | -V) |
1252 | ac_init_version=: ;; | |
252b5132 RH |
1253 | |
1254 | -with-* | --with-*) | |
81ecdfbb | 1255 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1256 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1257 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1258 | as_fn_error "invalid package name: $ac_useropt" | |
1259 | ac_useropt_orig=$ac_useropt | |
1260 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1261 | case $ac_user_opts in | |
1262 | *" | |
1263 | "with_$ac_useropt" | |
1264 | "*) ;; | |
1265 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1266 | ac_unrecognized_sep=', ';; | |
252b5132 | 1267 | esac |
81ecdfbb | 1268 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1269 | |
1270 | -without-* | --without-*) | |
81ecdfbb | 1271 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1272 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1273 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1274 | as_fn_error "invalid package name: $ac_useropt" | |
1275 | ac_useropt_orig=$ac_useropt | |
1276 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1277 | case $ac_user_opts in | |
1278 | *" | |
1279 | "with_$ac_useropt" | |
1280 | "*) ;; | |
1281 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1282 | ac_unrecognized_sep=', ';; | |
1283 | esac | |
1284 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1285 | |
1286 | --x) | |
1287 | # Obsolete; use --with-x. | |
1288 | with_x=yes ;; | |
1289 | ||
1290 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1291 | | --x-incl | --x-inc | --x-in | --x-i) | |
1292 | ac_prev=x_includes ;; | |
1293 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1294 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
13b2be9c | 1295 | x_includes=$ac_optarg ;; |
252b5132 RH |
1296 | |
1297 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1298 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1299 | ac_prev=x_libraries ;; | |
1300 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1301 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
13b2be9c | 1302 | x_libraries=$ac_optarg ;; |
252b5132 | 1303 | |
81ecdfbb RW |
1304 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1305 | Try \`$0 --help' for more information." | |
252b5132 RH |
1306 | ;; |
1307 | ||
13b2be9c DJ |
1308 | *=*) |
1309 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1310 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1311 | case $ac_envvar in #( |
1312 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1313 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1314 | esac | |
1315 | eval $ac_envvar=\$ac_optarg | |
13b2be9c DJ |
1316 | export $ac_envvar ;; |
1317 | ||
252b5132 | 1318 | *) |
13b2be9c | 1319 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1320 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
13b2be9c | 1321 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1322 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
13b2be9c | 1323 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1324 | ;; |
1325 | ||
1326 | esac | |
1327 | done | |
1328 | ||
1329 | if test -n "$ac_prev"; then | |
13b2be9c | 1330 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1331 | as_fn_error "missing argument to $ac_option" |
c8615825 | 1332 | fi |
c8615825 | 1333 | |
81ecdfbb RW |
1334 | if test -n "$ac_unrecognized_opts"; then |
1335 | case $enable_option_checking in | |
1336 | no) ;; | |
1337 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1338 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
13b2be9c | 1339 | esac |
81ecdfbb | 1340 | fi |
252b5132 | 1341 | |
81ecdfbb RW |
1342 | # Check all directory arguments for consistency. |
1343 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1344 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1345 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1346 | libdir localedir mandir | |
252b5132 | 1347 | do |
81ecdfbb RW |
1348 | eval ac_val=\$$ac_var |
1349 | # Remove trailing slashes. | |
1350 | case $ac_val in | |
1351 | */ ) | |
1352 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1353 | eval $ac_var=\$ac_val;; | |
1354 | esac | |
1355 | # Be sure to have absolute directory names. | |
13b2be9c | 1356 | case $ac_val in |
81ecdfbb RW |
1357 | [\\/$]* | ?:[\\/]* ) continue;; |
1358 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1359 | esac |
81ecdfbb | 1360 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1361 | done |
1362 | ||
13b2be9c DJ |
1363 | # There might be people who depend on the old broken behavior: `$host' |
1364 | # used to hold the argument of --host etc. | |
1365 | # FIXME: To remove some day. | |
1366 | build=$build_alias | |
1367 | host=$host_alias | |
1368 | target=$target_alias | |
1369 | ||
1370 | # FIXME: To remove some day. | |
1371 | if test "x$host_alias" != x; then | |
1372 | if test "x$build_alias" = x; then | |
1373 | cross_compiling=maybe | |
81ecdfbb | 1374 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
13b2be9c DJ |
1375 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1376 | elif test "x$build_alias" != "x$host_alias"; then | |
1377 | cross_compiling=yes | |
1378 | fi | |
1379 | fi | |
9b2b7d69 | 1380 | |
13b2be9c DJ |
1381 | ac_tool_prefix= |
1382 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1383 | ||
1384 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1385 | |
252b5132 | 1386 | |
81ecdfbb RW |
1387 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1388 | ac_ls_di=`ls -di .` && | |
1389 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1390 | as_fn_error "working directory cannot be determined" | |
1391 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1392 | as_fn_error "pwd does not report name of working directory" | |
1393 | ||
1394 | ||
252b5132 RH |
1395 | # Find the source files, if location was not specified. |
1396 | if test -z "$srcdir"; then | |
1397 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1398 | # Try the directory containing this script, then the parent directory. |
1399 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1400 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1401 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1402 | X"$as_myself" : 'X\(//\)$' \| \ | |
1403 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1404 | $as_echo X"$as_myself" | | |
1405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1406 | s//\1/ | |
1407 | q | |
1408 | } | |
1409 | /^X\(\/\/\)[^/].*/{ | |
1410 | s//\1/ | |
1411 | q | |
1412 | } | |
1413 | /^X\(\/\/\)$/{ | |
1414 | s//\1/ | |
1415 | q | |
1416 | } | |
1417 | /^X\(\/\).*/{ | |
1418 | s//\1/ | |
1419 | q | |
1420 | } | |
1421 | s/.*/./; q'` | |
252b5132 | 1422 | srcdir=$ac_confdir |
81ecdfbb | 1423 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1424 | srcdir=.. |
1425 | fi | |
1426 | else | |
1427 | ac_srcdir_defaulted=no | |
1428 | fi | |
81ecdfbb RW |
1429 | if test ! -r "$srcdir/$ac_unique_file"; then |
1430 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1431 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1432 | fi | |
1433 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1434 | ac_abs_confdir=`( | |
1435 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1436 | pwd)` | |
1437 | # When building in place, set srcdir=. | |
1438 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1439 | srcdir=. | |
1440 | fi | |
1441 | # Remove unnecessary trailing slashes from srcdir. | |
1442 | # Double slashes in file names in object file debugging info | |
1443 | # mess up M-x gdb in Emacs. | |
1444 | case $srcdir in | |
1445 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1446 | esac | |
1447 | for ac_var in $ac_precious_vars; do | |
1448 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1449 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1450 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1451 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1452 | done | |
d6d788bd | 1453 | |
13b2be9c DJ |
1454 | # |
1455 | # Report the --help message. | |
1456 | # | |
1457 | if test "$ac_init_help" = "long"; then | |
1458 | # Omit some internal or obsolete options to make the list less imposing. | |
1459 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1460 | cat <<_ACEOF | |
1461 | \`configure' configures this package to adapt to many kinds of systems. | |
9b2b7d69 | 1462 | |
13b2be9c | 1463 | Usage: $0 [OPTION]... [VAR=VALUE]... |
9b2b7d69 | 1464 | |
13b2be9c DJ |
1465 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1466 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
9b2b7d69 | 1467 | |
13b2be9c | 1468 | Defaults for the options are specified in brackets. |
9b2b7d69 | 1469 | |
13b2be9c DJ |
1470 | Configuration: |
1471 | -h, --help display this help and exit | |
1472 | --help=short display options specific to this package | |
1473 | --help=recursive display the short help of all the included packages | |
1474 | -V, --version display version information and exit | |
1475 | -q, --quiet, --silent do not print \`checking...' messages | |
1476 | --cache-file=FILE cache test results in FILE [disabled] | |
1477 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1478 | -n, --no-create do not create output files | |
1479 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1480 | ||
13b2be9c DJ |
1481 | Installation directories: |
1482 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1483 | [$ac_default_prefix] |
13b2be9c | 1484 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1485 | [PREFIX] |
9b2b7d69 | 1486 | |
13b2be9c DJ |
1487 | By default, \`make install' will install all the files in |
1488 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1489 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1490 | for instance \`--prefix=\$HOME'. | |
9b2b7d69 | 1491 | |
13b2be9c | 1492 | For better control, use the options below. |
9b2b7d69 | 1493 | |
13b2be9c | 1494 | Fine tuning of the installation directories: |
81ecdfbb RW |
1495 | --bindir=DIR user executables [EPREFIX/bin] |
1496 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1497 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1498 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1499 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1500 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1501 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1502 | --includedir=DIR C header files [PREFIX/include] | |
1503 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1504 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1505 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1506 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1507 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1508 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1509 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1510 | --htmldir=DIR html documentation [DOCDIR] | |
1511 | --dvidir=DIR dvi documentation [DOCDIR] | |
1512 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1513 | --psdir=DIR ps documentation [DOCDIR] | |
13b2be9c | 1514 | _ACEOF |
9b2b7d69 | 1515 | |
13b2be9c | 1516 | cat <<\_ACEOF |
9b2b7d69 | 1517 | |
13b2be9c DJ |
1518 | Program names: |
1519 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1520 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1521 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
9b2b7d69 | 1522 | |
13b2be9c DJ |
1523 | System types: |
1524 | --build=BUILD configure for building on BUILD [guessed] | |
1525 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1526 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1527 | _ACEOF | |
9b2b7d69 | 1528 | fi |
9b2b7d69 | 1529 | |
13b2be9c | 1530 | if test -n "$ac_init_help"; then |
9b2b7d69 | 1531 | |
13b2be9c | 1532 | cat <<\_ACEOF |
9b2b7d69 | 1533 | |
13b2be9c | 1534 | Optional Features: |
81ecdfbb | 1535 | --disable-option-checking ignore unrecognized --enable/--with options |
13b2be9c DJ |
1536 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1537 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ab509236 L |
1538 | --disable-dependency-tracking speeds up one-time build |
1539 | --enable-dependency-tracking do not reject slow dependency extractors | |
d053aef8 | 1540 | --disable-largefile omit support for large files |
81ecdfbb RW |
1541 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1542 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1543 | --enable-fast-install[=PKGS] |
1544 | optimize for fast installation [default=yes] | |
13b2be9c | 1545 | --disable-libtool-lock avoid locking (might break parallel builds) |
241a6c40 | 1546 | --enable-targets alternative target configurations besides the primary |
c43a438d | 1547 | --enable-checking enable run-time checks |
241a6c40 AM |
1548 | --enable-werror treat compile warnings as errors |
1549 | --enable-build-warnings enable build-time compiler warnings | |
13b2be9c | 1550 | --disable-nls do not use Native Language Support |
ab509236 L |
1551 | --enable-maintainer-mode enable make rules and dependencies not useful |
1552 | (and sometimes confusing) to the casual installer | |
9b2b7d69 | 1553 | |
13b2be9c DJ |
1554 | Optional Packages: |
1555 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1556 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1557 | --with-pic try to use only PIC/non-PIC objects [default=use |
1558 | both] | |
1559 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
9b2b7d69 | 1560 | |
13b2be9c DJ |
1561 | Some influential environment variables: |
1562 | CC C compiler command | |
1563 | CFLAGS C compiler flags | |
1564 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1565 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1566 | LIBS libraries to pass to the linker, e.g. -l<library> |
1567 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1568 | you have headers in a nonstandard directory <include dir> | |
13b2be9c | 1569 | CPP C preprocessor |
81ecdfbb RW |
1570 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1571 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1572 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1573 | This script will default YFLAGS to the empty string to avoid a | |
1574 | default value of `-d' given by some make applications. | |
13b2be9c DJ |
1575 | |
1576 | Use these variables to override the choices made by `configure' or to help | |
1577 | it to find libraries and programs with nonstandard names/locations. | |
1578 | ||
81ecdfbb | 1579 | Report bugs to the package provider. |
13b2be9c | 1580 | _ACEOF |
81ecdfbb | 1581 | ac_status=$? |
9b2b7d69 | 1582 | fi |
9b2b7d69 | 1583 | |
13b2be9c DJ |
1584 | if test "$ac_init_help" = "recursive"; then |
1585 | # If there are subdirs, report their specific --help. | |
13b2be9c | 1586 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1587 | test -d "$ac_dir" || |
1588 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1589 | continue | |
13b2be9c DJ |
1590 | ac_builddir=. |
1591 | ||
81ecdfbb RW |
1592 | case "$ac_dir" in |
1593 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1594 | *) | |
1595 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1596 | # A ".." for each directory in $ac_dir_suffix. | |
1597 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1598 | case $ac_top_builddir_sub in | |
1599 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1600 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1601 | esac ;; | |
1602 | esac | |
1603 | ac_abs_top_builddir=$ac_pwd | |
1604 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1605 | # for backward compatibility: | |
1606 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 1607 | |
13b2be9c | 1608 | case $srcdir in |
81ecdfbb | 1609 | .) # We are building in place. |
13b2be9c | 1610 | ac_srcdir=. |
81ecdfbb RW |
1611 | ac_top_srcdir=$ac_top_builddir_sub |
1612 | ac_abs_top_srcdir=$ac_pwd ;; | |
1613 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 1614 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1615 | ac_top_srcdir=$srcdir |
1616 | ac_abs_top_srcdir=$srcdir ;; | |
1617 | *) # Relative name. | |
1618 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1619 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1620 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ab509236 | 1621 | esac |
81ecdfbb RW |
1622 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1623 | ||
1624 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1625 | # Check for guested configure. | |
1626 | if test -f "$ac_srcdir/configure.gnu"; then | |
1627 | echo && | |
1628 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1629 | elif test -f "$ac_srcdir/configure"; then | |
1630 | echo && | |
1631 | $SHELL "$ac_srcdir/configure" --help=recursive | |
13b2be9c | 1632 | else |
81ecdfbb RW |
1633 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1634 | fi || ac_status=$? | |
1635 | cd "$ac_pwd" || { ac_status=$?; break; } | |
13b2be9c DJ |
1636 | done |
1637 | fi | |
6840198f | 1638 | |
81ecdfbb | 1639 | test -n "$ac_init_help" && exit $ac_status |
13b2be9c DJ |
1640 | if $ac_init_version; then |
1641 | cat <<\_ACEOF | |
81ecdfbb RW |
1642 | configure |
1643 | generated by GNU Autoconf 2.64 | |
c8615825 | 1644 | |
81ecdfbb | 1645 | Copyright (C) 2009 Free Software Foundation, Inc. |
13b2be9c DJ |
1646 | This configure script is free software; the Free Software Foundation |
1647 | gives unlimited permission to copy, distribute and modify it. | |
1648 | _ACEOF | |
81ecdfbb | 1649 | exit |
13b2be9c | 1650 | fi |
c8615825 | 1651 | |
81ecdfbb RW |
1652 | ## ------------------------ ## |
1653 | ## Autoconf initialization. ## | |
1654 | ## ------------------------ ## | |
c8615825 | 1655 | |
81ecdfbb RW |
1656 | # ac_fn_c_try_compile LINENO |
1657 | # -------------------------- | |
1658 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1659 | ac_fn_c_try_compile () | |
13b2be9c | 1660 | { |
81ecdfbb RW |
1661 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1662 | rm -f conftest.$ac_objext | |
1663 | if { { ac_try="$ac_compile" | |
1664 | case "(($ac_try" in | |
1665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1666 | *) ac_try_echo=$ac_try;; | |
1667 | esac | |
1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1669 | $as_echo "$ac_try_echo"; } >&5 | |
1670 | (eval "$ac_compile") 2>conftest.err | |
1671 | ac_status=$? | |
1672 | if test -s conftest.err; then | |
1673 | grep -v '^ *+' conftest.err >conftest.er1 | |
1674 | cat conftest.er1 >&5 | |
1675 | mv -f conftest.er1 conftest.err | |
1676 | fi | |
1677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1678 | test $ac_status = 0; } && { | |
1679 | test -z "$ac_c_werror_flag" || | |
1680 | test ! -s conftest.err | |
1681 | } && test -s conftest.$ac_objext; then : | |
1682 | ac_retval=0 | |
1683 | else | |
1684 | $as_echo "$as_me: failed program was:" >&5 | |
1685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13b2be9c | 1686 | |
81ecdfbb RW |
1687 | ac_retval=1 |
1688 | fi | |
1689 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1690 | return $ac_retval | |
13b2be9c | 1691 | |
81ecdfbb | 1692 | } # ac_fn_c_try_compile |
13b2be9c | 1693 | |
81ecdfbb RW |
1694 | # ac_fn_c_try_link LINENO |
1695 | # ----------------------- | |
1696 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1697 | ac_fn_c_try_link () | |
1698 | { | |
1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1701 | if { { ac_try="$ac_link" | |
1702 | case "(($ac_try" in | |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
1708 | (eval "$ac_link") 2>conftest.err | |
1709 | ac_status=$? | |
1710 | if test -s conftest.err; then | |
1711 | grep -v '^ *+' conftest.err >conftest.er1 | |
1712 | cat conftest.er1 >&5 | |
1713 | mv -f conftest.er1 conftest.err | |
1714 | fi | |
1715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1716 | test $ac_status = 0; } && { | |
1717 | test -z "$ac_c_werror_flag" || | |
1718 | test ! -s conftest.err | |
1719 | } && test -s conftest$ac_exeext && { | |
1720 | test "$cross_compiling" = yes || | |
1721 | $as_test_x conftest$ac_exeext | |
1722 | }; then : | |
1723 | ac_retval=0 | |
1724 | else | |
1725 | $as_echo "$as_me: failed program was:" >&5 | |
1726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1727 | ||
1728 | ac_retval=1 | |
1729 | fi | |
1730 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1731 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1732 | # interfere with the next link command; also delete a directory that is | |
1733 | # left behind by Apple's compiler. We do this before executing the actions. | |
1734 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1735 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1736 | return $ac_retval | |
1737 | ||
1738 | } # ac_fn_c_try_link | |
1739 | ||
1740 | # ac_fn_c_try_cpp LINENO | |
1741 | # ---------------------- | |
1742 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1743 | ac_fn_c_try_cpp () | |
1744 | { | |
1745 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1746 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1747 | case "(($ac_try" in | |
1748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1749 | *) ac_try_echo=$ac_try;; | |
1750 | esac | |
1751 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1752 | $as_echo "$ac_try_echo"; } >&5 | |
1753 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1754 | ac_status=$? | |
1755 | if test -s conftest.err; then | |
1756 | grep -v '^ *+' conftest.err >conftest.er1 | |
1757 | cat conftest.er1 >&5 | |
1758 | mv -f conftest.er1 conftest.err | |
1759 | fi | |
1760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1761 | test $ac_status = 0; } >/dev/null && { | |
1762 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1763 | test ! -s conftest.err | |
1764 | }; then : | |
1765 | ac_retval=0 | |
1766 | else | |
1767 | $as_echo "$as_me: failed program was:" >&5 | |
1768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1769 | ||
1770 | ac_retval=1 | |
1771 | fi | |
1772 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1773 | return $ac_retval | |
1774 | ||
1775 | } # ac_fn_c_try_cpp | |
1776 | ||
1777 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1778 | # ------------------------------------------------------- | |
1779 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1780 | # the include files in INCLUDES and setting the cache variable VAR | |
1781 | # accordingly. | |
1782 | ac_fn_c_check_header_mongrel () | |
1783 | { | |
1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1785 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1787 | $as_echo_n "checking for $2... " >&6; } | |
1788 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1789 | $as_echo_n "(cached) " >&6 | |
1790 | fi | |
1791 | eval ac_res=\$$3 | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1793 | $as_echo "$ac_res" >&6; } | |
1794 | else | |
1795 | # Is the header compilable? | |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1797 | $as_echo_n "checking $2 usability... " >&6; } | |
1798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1799 | /* end confdefs.h. */ | |
1800 | $4 | |
1801 | #include <$2> | |
1802 | _ACEOF | |
1803 | if ac_fn_c_try_compile "$LINENO"; then : | |
1804 | ac_header_compiler=yes | |
1805 | else | |
1806 | ac_header_compiler=no | |
1807 | fi | |
1808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1810 | $as_echo "$ac_header_compiler" >&6; } | |
1811 | ||
1812 | # Is the header present? | |
1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1814 | $as_echo_n "checking $2 presence... " >&6; } | |
1815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1816 | /* end confdefs.h. */ | |
1817 | #include <$2> | |
1818 | _ACEOF | |
1819 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1820 | ac_header_preproc=yes | |
1821 | else | |
1822 | ac_header_preproc=no | |
1823 | fi | |
1824 | rm -f conftest.err conftest.$ac_ext | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1826 | $as_echo "$ac_header_preproc" >&6; } | |
1827 | ||
1828 | # So? What about this header? | |
1829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1830 | yes:no: ) | |
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1832 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1834 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1835 | ;; | |
1836 | no:yes:* ) | |
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1838 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1840 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1842 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1844 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1846 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1847 | ;; | |
1848 | esac | |
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1850 | $as_echo_n "checking for $2... " >&6; } | |
1851 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1852 | $as_echo_n "(cached) " >&6 | |
1853 | else | |
1854 | eval "$3=\$ac_header_compiler" | |
1855 | fi | |
1856 | eval ac_res=\$$3 | |
1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1858 | $as_echo "$ac_res" >&6; } | |
1859 | fi | |
1860 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1861 | ||
1862 | } # ac_fn_c_check_header_mongrel | |
1863 | ||
1864 | # ac_fn_c_try_run LINENO | |
1865 | # ---------------------- | |
1866 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1867 | # that executables *can* be run. | |
1868 | ac_fn_c_try_run () | |
1869 | { | |
1870 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1871 | if { { ac_try="$ac_link" | |
1872 | case "(($ac_try" in | |
1873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1874 | *) ac_try_echo=$ac_try;; | |
1875 | esac | |
1876 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1877 | $as_echo "$ac_try_echo"; } >&5 | |
1878 | (eval "$ac_link") 2>&5 | |
1879 | ac_status=$? | |
1880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1881 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1882 | { { case "(($ac_try" in | |
1883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1884 | *) ac_try_echo=$ac_try;; | |
1885 | esac | |
1886 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1887 | $as_echo "$ac_try_echo"; } >&5 | |
1888 | (eval "$ac_try") 2>&5 | |
1889 | ac_status=$? | |
1890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1891 | test $ac_status = 0; }; }; then : | |
1892 | ac_retval=0 | |
1893 | else | |
1894 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1895 | $as_echo "$as_me: failed program was:" >&5 | |
1896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1897 | ||
1898 | ac_retval=$ac_status | |
1899 | fi | |
1900 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1901 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1902 | return $ac_retval | |
1903 | ||
1904 | } # ac_fn_c_try_run | |
1905 | ||
1906 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1907 | # ------------------------------------------------------- | |
1908 | # Tests whether HEADER exists and can be compiled using the include files in | |
1909 | # INCLUDES, setting the cache variable VAR accordingly. | |
1910 | ac_fn_c_check_header_compile () | |
1911 | { | |
1912 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1914 | $as_echo_n "checking for $2... " >&6; } | |
1915 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1916 | $as_echo_n "(cached) " >&6 | |
1917 | else | |
1918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1919 | /* end confdefs.h. */ | |
1920 | $4 | |
1921 | #include <$2> | |
1922 | _ACEOF | |
1923 | if ac_fn_c_try_compile "$LINENO"; then : | |
1924 | eval "$3=yes" | |
1925 | else | |
1926 | eval "$3=no" | |
1927 | fi | |
1928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1929 | fi | |
1930 | eval ac_res=\$$3 | |
1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1932 | $as_echo "$ac_res" >&6; } | |
1933 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1934 | ||
1935 | } # ac_fn_c_check_header_compile | |
1936 | ||
1937 | # ac_fn_c_check_func LINENO FUNC VAR | |
1938 | # ---------------------------------- | |
1939 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1940 | ac_fn_c_check_func () | |
1941 | { | |
1942 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1944 | $as_echo_n "checking for $2... " >&6; } | |
1945 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1946 | $as_echo_n "(cached) " >&6 | |
1947 | else | |
1948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1949 | /* end confdefs.h. */ | |
1950 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1951 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1952 | #define $2 innocuous_$2 | |
1953 | ||
1954 | /* System header to define __stub macros and hopefully few prototypes, | |
1955 | which can conflict with char $2 (); below. | |
1956 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1957 | <limits.h> exists even on freestanding compilers. */ | |
1958 | ||
1959 | #ifdef __STDC__ | |
1960 | # include <limits.h> | |
1961 | #else | |
1962 | # include <assert.h> | |
1963 | #endif | |
1964 | ||
1965 | #undef $2 | |
1966 | ||
1967 | /* Override any GCC internal prototype to avoid an error. | |
1968 | Use char because int might match the return type of a GCC | |
1969 | builtin and then its argument prototype would still apply. */ | |
1970 | #ifdef __cplusplus | |
1971 | extern "C" | |
1972 | #endif | |
1973 | char $2 (); | |
1974 | /* The GNU C library defines this for functions which it implements | |
1975 | to always fail with ENOSYS. Some functions are actually named | |
1976 | something starting with __ and the normal name is an alias. */ | |
1977 | #if defined __stub_$2 || defined __stub___$2 | |
1978 | choke me | |
1979 | #endif | |
1980 | ||
1981 | int | |
1982 | main () | |
1983 | { | |
1984 | return $2 (); | |
1985 | ; | |
1986 | return 0; | |
1987 | } | |
1988 | _ACEOF | |
1989 | if ac_fn_c_try_link "$LINENO"; then : | |
1990 | eval "$3=yes" | |
1991 | else | |
1992 | eval "$3=no" | |
1993 | fi | |
1994 | rm -f core conftest.err conftest.$ac_objext \ | |
1995 | conftest$ac_exeext conftest.$ac_ext | |
1996 | fi | |
1997 | eval ac_res=\$$3 | |
1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1999 | $as_echo "$ac_res" >&6; } | |
2000 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2001 | ||
2002 | } # ac_fn_c_check_func | |
2003 | ||
2004 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
2005 | # ------------------------------------ | |
2006 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2007 | ac_fn_c_check_decl () | |
2008 | { | |
2009 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | |
2011 | $as_echo_n "checking whether $2 is declared... " >&6; } | |
2012 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2013 | $as_echo_n "(cached) " >&6 | |
2014 | else | |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2016 | /* end confdefs.h. */ | |
2017 | $4 | |
2018 | int | |
2019 | main () | |
2020 | { | |
2021 | #ifndef $2 | |
2022 | (void) $2; | |
2023 | #endif | |
2024 | ||
2025 | ; | |
2026 | return 0; | |
2027 | } | |
2028 | _ACEOF | |
2029 | if ac_fn_c_try_compile "$LINENO"; then : | |
2030 | eval "$3=yes" | |
2031 | else | |
2032 | eval "$3=no" | |
2033 | fi | |
2034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2035 | fi | |
2036 | eval ac_res=\$$3 | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2038 | $as_echo "$ac_res" >&6; } | |
2039 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2040 | ||
2041 | } # ac_fn_c_check_decl | |
2042 | cat >config.log <<_ACEOF | |
2043 | This file contains any messages produced by compilers while | |
2044 | running configure, to aid debugging if configure makes a mistake. | |
2045 | ||
2046 | It was created by $as_me, which was | |
2047 | generated by GNU Autoconf 2.64. Invocation command line was | |
2048 | ||
2049 | $ $0 $@ | |
2050 | ||
2051 | _ACEOF | |
2052 | exec 5>>config.log | |
2053 | { | |
2054 | cat <<_ASUNAME | |
2055 | ## --------- ## | |
2056 | ## Platform. ## | |
2057 | ## --------- ## | |
2058 | ||
2059 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2060 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2061 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2062 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2063 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2064 | ||
2065 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2066 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2067 | ||
2068 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
13b2be9c DJ |
2069 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2070 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2071 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
13b2be9c DJ |
2072 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2073 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2074 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2075 | ||
2076 | _ASUNAME | |
2077 | ||
2078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2079 | for as_dir in $PATH | |
2080 | do | |
2081 | IFS=$as_save_IFS | |
2082 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2083 | $as_echo "PATH: $as_dir" |
2084 | done | |
2085 | IFS=$as_save_IFS | |
9b2b7d69 | 2086 | |
13b2be9c | 2087 | } >&5 |
6840198f | 2088 | |
13b2be9c | 2089 | cat >&5 <<_ACEOF |
c8615825 | 2090 | |
9b2b7d69 | 2091 | |
13b2be9c DJ |
2092 | ## ----------- ## |
2093 | ## Core tests. ## | |
2094 | ## ----------- ## | |
87ccc1b0 | 2095 | |
13b2be9c | 2096 | _ACEOF |
9b2b7d69 | 2097 | |
13b2be9c DJ |
2098 | |
2099 | # Keep a trace of the command line. | |
2100 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2101 | # Strip out --silent because we don't want to record it for future runs. | |
2102 | # Also quote any args containing shell meta-characters. | |
2103 | # Make two passes to allow for proper duplicate-argument suppression. | |
2104 | ac_configure_args= | |
2105 | ac_configure_args0= | |
2106 | ac_configure_args1= | |
13b2be9c DJ |
2107 | ac_must_keep_next=false |
2108 | for ac_pass in 1 2 | |
2109 | do | |
2110 | for ac_arg | |
2111 | do | |
2112 | case $ac_arg in | |
2113 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2114 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2115 | | -silent | --silent | --silen | --sile | --sil) | |
2116 | continue ;; | |
81ecdfbb RW |
2117 | *\'*) |
2118 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13b2be9c DJ |
2119 | esac |
2120 | case $ac_pass in | |
81ecdfbb | 2121 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
13b2be9c | 2122 | 2) |
81ecdfbb | 2123 | as_fn_append ac_configure_args1 " '$ac_arg'" |
13b2be9c | 2124 | if test $ac_must_keep_next = true; then |
ab509236 | 2125 | ac_must_keep_next=false # Got value, back to normal. |
13b2be9c | 2126 | else |
ab509236 L |
2127 | case $ac_arg in |
2128 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2129 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2130 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2131 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2132 | case "$ac_configure_args0 " in | |
2133 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2134 | esac | |
2135 | ;; | |
2136 | -* ) ac_must_keep_next=true ;; | |
2137 | esac | |
13b2be9c | 2138 | fi |
81ecdfbb | 2139 | as_fn_append ac_configure_args " '$ac_arg'" |
c8615825 AM |
2140 | ;; |
2141 | esac | |
2142 | done | |
13b2be9c | 2143 | done |
81ecdfbb RW |
2144 | { ac_configure_args0=; unset ac_configure_args0;} |
2145 | { ac_configure_args1=; unset ac_configure_args1;} | |
13b2be9c DJ |
2146 | |
2147 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2148 | # config.log. We remove comments because anyway the quotes in there | |
2149 | # would cause problems or look ugly. | |
81ecdfbb RW |
2150 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2151 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
13b2be9c DJ |
2152 | trap 'exit_status=$? |
2153 | # Save into config.log some information that might help in debugging. | |
2154 | { | |
2155 | echo | |
2156 | ||
2157 | cat <<\_ASBOX | |
2158 | ## ---------------- ## | |
2159 | ## Cache variables. ## | |
2160 | ## ---------------- ## | |
2161 | _ASBOX | |
2162 | echo | |
2163 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2164 | ( |
2165 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2166 | eval ac_val=\$$ac_var | |
2167 | case $ac_val in #( | |
2168 | *${as_nl}*) | |
2169 | case $ac_var in #( | |
2170 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2171 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2172 | esac | |
2173 | case $ac_var in #( | |
2174 | _ | IFS | as_nl) ;; #( | |
2175 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2176 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2177 | esac ;; | |
2178 | esac | |
2179 | done | |
13b2be9c | 2180 | (set) 2>&1 | |
81ecdfbb RW |
2181 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2182 | *${as_nl}ac_space=\ *) | |
13b2be9c | 2183 | sed -n \ |
81ecdfbb RW |
2184 | "s/'\''/'\''\\\\'\'''\''/g; |
2185 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2186 | ;; #( | |
13b2be9c | 2187 | *) |
81ecdfbb | 2188 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 2189 | ;; |
81ecdfbb RW |
2190 | esac | |
2191 | sort | |
2192 | ) | |
13b2be9c DJ |
2193 | echo |
2194 | ||
2195 | cat <<\_ASBOX | |
2196 | ## ----------------- ## | |
2197 | ## Output variables. ## | |
2198 | ## ----------------- ## | |
2199 | _ASBOX | |
2200 | echo | |
2201 | for ac_var in $ac_subst_vars | |
2202 | do | |
81ecdfbb RW |
2203 | eval ac_val=\$$ac_var |
2204 | case $ac_val in | |
2205 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2206 | esac | |
2207 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2208 | done | sort |
2209 | echo | |
2210 | ||
2211 | if test -n "$ac_subst_files"; then | |
2212 | cat <<\_ASBOX | |
81ecdfbb RW |
2213 | ## ------------------- ## |
2214 | ## File substitutions. ## | |
2215 | ## ------------------- ## | |
13b2be9c DJ |
2216 | _ASBOX |
2217 | echo | |
2218 | for ac_var in $ac_subst_files | |
2219 | do | |
81ecdfbb RW |
2220 | eval ac_val=\$$ac_var |
2221 | case $ac_val in | |
2222 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2223 | esac | |
2224 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2225 | done | sort |
2226 | echo | |
2227 | fi | |
2228 | ||
2229 | if test -s confdefs.h; then | |
2230 | cat <<\_ASBOX | |
2231 | ## ----------- ## | |
2232 | ## confdefs.h. ## | |
2233 | ## ----------- ## | |
2234 | _ASBOX | |
2235 | echo | |
81ecdfbb | 2236 | cat confdefs.h |
13b2be9c DJ |
2237 | echo |
2238 | fi | |
2239 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2240 | $as_echo "$as_me: caught signal $ac_signal" |
2241 | $as_echo "$as_me: exit $exit_status" | |
13b2be9c | 2242 | } >&5 |
81ecdfbb RW |
2243 | rm -f core *.core core.conftest.* && |
2244 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
13b2be9c | 2245 | exit $exit_status |
81ecdfbb | 2246 | ' 0 |
13b2be9c | 2247 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2248 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
13b2be9c DJ |
2249 | done |
2250 | ac_signal=0 | |
2251 | ||
2252 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2253 | rm -f -r conftest* confdefs.h |
2254 | ||
2255 | $as_echo "/* confdefs.h */" > confdefs.h | |
13b2be9c DJ |
2256 | |
2257 | # Predefined preprocessor variables. | |
2258 | ||
2259 | cat >>confdefs.h <<_ACEOF | |
2260 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2261 | _ACEOF | |
2262 | ||
13b2be9c DJ |
2263 | cat >>confdefs.h <<_ACEOF |
2264 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2265 | _ACEOF | |
2266 | ||
13b2be9c DJ |
2267 | cat >>confdefs.h <<_ACEOF |
2268 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2269 | _ACEOF | |
2270 | ||
13b2be9c DJ |
2271 | cat >>confdefs.h <<_ACEOF |
2272 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2273 | _ACEOF | |
2274 | ||
13b2be9c DJ |
2275 | cat >>confdefs.h <<_ACEOF |
2276 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2277 | _ACEOF | |
2278 | ||
81ecdfbb RW |
2279 | cat >>confdefs.h <<_ACEOF |
2280 | #define PACKAGE_URL "$PACKAGE_URL" | |
2281 | _ACEOF | |
2282 | ||
13b2be9c DJ |
2283 | |
2284 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2285 | # Prefer an explicitly selected file to automatically selected ones. |
2286 | ac_site_file1=NONE | |
2287 | ac_site_file2=NONE | |
2288 | if test -n "$CONFIG_SITE"; then | |
2289 | ac_site_file1=$CONFIG_SITE | |
2290 | elif test "x$prefix" != xNONE; then | |
2291 | ac_site_file1=$prefix/share/config.site | |
2292 | ac_site_file2=$prefix/etc/config.site | |
2293 | else | |
2294 | ac_site_file1=$ac_default_prefix/share/config.site | |
2295 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2296 | fi | |
2297 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2298 | do | |
2299 | test "x$ac_site_file" = xNONE && continue | |
13b2be9c | 2300 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2302 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
13b2be9c DJ |
2303 | sed 's/^/| /' "$ac_site_file" >&5 |
2304 | . "$ac_site_file" | |
2305 | fi | |
2306 | done | |
2307 | ||
2308 | if test -r "$cache_file"; then | |
2309 | # Some versions of bash will fail to source /dev/null (special | |
2310 | # files actually), so we avoid doing that. | |
2311 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2312 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2313 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
13b2be9c | 2314 | case $cache_file in |
81ecdfbb RW |
2315 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2316 | *) . "./$cache_file";; | |
13b2be9c DJ |
2317 | esac |
2318 | fi | |
2319 | else | |
81ecdfbb RW |
2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2321 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
13b2be9c DJ |
2322 | >$cache_file |
2323 | fi | |
2324 | ||
2325 | # Check that the precious variables saved in the cache have kept the same | |
2326 | # value. | |
2327 | ac_cache_corrupted=false | |
81ecdfbb | 2328 | for ac_var in $ac_precious_vars; do |
13b2be9c DJ |
2329 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2330 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2331 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2332 | eval ac_new_val=\$ac_env_${ac_var}_value | |
13b2be9c DJ |
2333 | case $ac_old_set,$ac_new_set in |
2334 | set,) | |
81ecdfbb RW |
2335 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2336 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
13b2be9c DJ |
2337 | ac_cache_corrupted=: ;; |
2338 | ,set) | |
81ecdfbb RW |
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2340 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
13b2be9c DJ |
2341 | ac_cache_corrupted=: ;; |
2342 | ,);; | |
2343 | *) | |
2344 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2345 | # differences in whitespace do not lead to failure. |
2346 | ac_old_val_w=`echo x $ac_old_val` | |
2347 | ac_new_val_w=`echo x $ac_new_val` | |
2348 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2350 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2351 | ac_cache_corrupted=: | |
2352 | else | |
2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2354 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2355 | eval $ac_var=\$ac_old_val | |
2356 | fi | |
2357 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2358 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2360 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
13b2be9c DJ |
2361 | fi;; |
2362 | esac | |
2363 | # Pass precious variables to config.status. | |
2364 | if test "$ac_new_set" = set; then | |
2365 | case $ac_new_val in | |
81ecdfbb | 2366 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
13b2be9c DJ |
2367 | *) ac_arg=$ac_var=$ac_new_val ;; |
2368 | esac | |
2369 | case " $ac_configure_args " in | |
2370 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2371 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
13b2be9c DJ |
2372 | esac |
2373 | fi | |
2374 | done | |
2375 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2377 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2379 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2380 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
13b2be9c | 2381 | fi |
81ecdfbb RW |
2382 | ## -------------------- ## |
2383 | ## Main body of script. ## | |
2384 | ## -------------------- ## | |
13b2be9c DJ |
2385 | |
2386 | ac_ext=c | |
2387 | ac_cpp='$CPP $CPPFLAGS' | |
2388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2391 | ||
2392 | ||
2393 | ||
13b2be9c | 2394 | |
da594c4a | 2395 | |
13b2be9c DJ |
2396 | |
2397 | ||
2398 | ac_aux_dir= | |
81ecdfbb RW |
2399 | for ac_dir in .. "$srcdir"/..; do |
2400 | for ac_t in install-sh install.sh shtool; do | |
2401 | if test -f "$ac_dir/$ac_t"; then | |
2402 | ac_aux_dir=$ac_dir | |
2403 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2404 | break 2 | |
2405 | fi | |
2406 | done | |
13b2be9c DJ |
2407 | done |
2408 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2409 | as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 |
13b2be9c | 2410 | fi |
81ecdfbb RW |
2411 | |
2412 | # These three variables are undocumented and unsupported, | |
2413 | # and are intended to be withdrawn in a future Autoconf release. | |
2414 | # They can cause serious problems if a builder's source tree is in a directory | |
2415 | # whose full name contains unusual characters. | |
2416 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2417 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2418 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2419 | ||
13b2be9c DJ |
2420 | |
2421 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2422 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2423 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2424 | ||
2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2426 | $as_echo_n "checking build system type... " >&6; } | |
2427 | if test "${ac_cv_build+set}" = set; then : | |
2428 | $as_echo_n "(cached) " >&6 | |
2429 | else | |
2430 | ac_build_alias=$build_alias | |
2431 | test "x$ac_build_alias" = x && | |
2432 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2433 | test "x$ac_build_alias" = x && | |
2434 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2435 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2436 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2437 | ||
2438 | fi | |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2440 | $as_echo "$ac_cv_build" >&6; } | |
2441 | case $ac_cv_build in | |
2442 | *-*-*) ;; | |
2443 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2444 | esac | |
13b2be9c | 2445 | build=$ac_cv_build |
81ecdfbb RW |
2446 | ac_save_IFS=$IFS; IFS='-' |
2447 | set x $ac_cv_build | |
2448 | shift | |
2449 | build_cpu=$1 | |
2450 | build_vendor=$2 | |
2451 | shift; shift | |
2452 | # Remember, the first character of IFS is used to create $*, | |
2453 | # except with old shells: | |
2454 | build_os=$* | |
2455 | IFS=$ac_save_IFS | |
2456 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2457 | |
2458 | ||
81ecdfbb RW |
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2460 | $as_echo_n "checking host system type... " >&6; } | |
2461 | if test "${ac_cv_host+set}" = set; then : | |
2462 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 2463 | else |
81ecdfbb RW |
2464 | if test "x$host_alias" = x; then |
2465 | ac_cv_host=$ac_cv_build | |
2466 | else | |
2467 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2468 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2469 | fi | |
13b2be9c DJ |
2470 | |
2471 | fi | |
81ecdfbb RW |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2473 | $as_echo "$ac_cv_host" >&6; } | |
2474 | case $ac_cv_host in | |
2475 | *-*-*) ;; | |
2476 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2477 | esac | |
13b2be9c | 2478 | host=$ac_cv_host |
81ecdfbb RW |
2479 | ac_save_IFS=$IFS; IFS='-' |
2480 | set x $ac_cv_host | |
2481 | shift | |
2482 | host_cpu=$1 | |
2483 | host_vendor=$2 | |
2484 | shift; shift | |
2485 | # Remember, the first character of IFS is used to create $*, | |
2486 | # except with old shells: | |
2487 | host_os=$* | |
2488 | IFS=$ac_save_IFS | |
2489 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2490 | |
2491 | ||
81ecdfbb RW |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2493 | $as_echo_n "checking target system type... " >&6; } | |
2494 | if test "${ac_cv_target+set}" = set; then : | |
2495 | $as_echo_n "(cached) " >&6 | |
2496 | else | |
2497 | if test "x$target_alias" = x; then | |
2498 | ac_cv_target=$ac_cv_host | |
13b2be9c | 2499 | else |
81ecdfbb RW |
2500 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2501 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2502 | fi | |
13b2be9c DJ |
2503 | |
2504 | fi | |
81ecdfbb RW |
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2506 | $as_echo "$ac_cv_target" >&6; } | |
2507 | case $ac_cv_target in | |
2508 | *-*-*) ;; | |
2509 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2510 | esac | |
13b2be9c | 2511 | target=$ac_cv_target |
81ecdfbb RW |
2512 | ac_save_IFS=$IFS; IFS='-' |
2513 | set x $ac_cv_target | |
2514 | shift | |
2515 | target_cpu=$1 | |
2516 | target_vendor=$2 | |
2517 | shift; shift | |
2518 | # Remember, the first character of IFS is used to create $*, | |
2519 | # except with old shells: | |
2520 | target_os=$* | |
2521 | IFS=$ac_save_IFS | |
2522 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2523 | |
2524 | ||
2525 | # The aliases save the names the user supplied, while $host etc. | |
2526 | # will get canonicalized. | |
2527 | test -n "$target_alias" && | |
2528 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2529 | NONENONEs,x,x, && | |
2530 | program_prefix=${target_alias}- | |
2531 | ac_ext=c | |
2532 | ac_cpp='$CPP $CPPFLAGS' | |
2533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2536 | if test -n "$ac_tool_prefix"; then | |
2537 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2538 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2540 | $as_echo_n "checking for $ac_word... " >&6; } | |
2541 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2542 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2543 | else |
2544 | if test -n "$CC"; then | |
2545 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2546 | else | |
2547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2548 | for as_dir in $PATH | |
2549 | do | |
2550 | IFS=$as_save_IFS | |
2551 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2552 | for ac_exec_ext in '' $ac_executable_extensions; do |
2553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2554 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2556 | break 2 |
2557 | fi | |
2558 | done | |
81ecdfbb RW |
2559 | done |
2560 | IFS=$as_save_IFS | |
13b2be9c DJ |
2561 | |
2562 | fi | |
2563 | fi | |
2564 | CC=$ac_cv_prog_CC | |
2565 | if test -n "$CC"; then | |
81ecdfbb RW |
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2567 | $as_echo "$CC" >&6; } | |
13b2be9c | 2568 | else |
81ecdfbb RW |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2570 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2571 | fi |
2572 | ||
81ecdfbb | 2573 | |
13b2be9c DJ |
2574 | fi |
2575 | if test -z "$ac_cv_prog_CC"; then | |
2576 | ac_ct_CC=$CC | |
2577 | # Extract the first word of "gcc", so it can be a program name with args. | |
2578 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2580 | $as_echo_n "checking for $ac_word... " >&6; } | |
2581 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2582 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2583 | else |
2584 | if test -n "$ac_ct_CC"; then | |
2585 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2586 | else | |
2587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2588 | for as_dir in $PATH | |
2589 | do | |
2590 | IFS=$as_save_IFS | |
2591 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2592 | for ac_exec_ext in '' $ac_executable_extensions; do |
2593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2594 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2596 | break 2 |
2597 | fi | |
2598 | done | |
81ecdfbb RW |
2599 | done |
2600 | IFS=$as_save_IFS | |
13b2be9c DJ |
2601 | |
2602 | fi | |
2603 | fi | |
2604 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2605 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2607 | $as_echo "$ac_ct_CC" >&6; } | |
13b2be9c | 2608 | else |
81ecdfbb RW |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2610 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2611 | fi |
2612 | ||
81ecdfbb RW |
2613 | if test "x$ac_ct_CC" = x; then |
2614 | CC="" | |
2615 | else | |
2616 | case $cross_compiling:$ac_tool_warned in | |
2617 | yes:) | |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2619 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2620 | ac_tool_warned=yes ;; | |
2621 | esac | |
2622 | CC=$ac_ct_CC | |
2623 | fi | |
13b2be9c DJ |
2624 | else |
2625 | CC="$ac_cv_prog_CC" | |
2626 | fi | |
2627 | ||
2628 | if test -z "$CC"; then | |
81ecdfbb RW |
2629 | if test -n "$ac_tool_prefix"; then |
2630 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
13b2be9c | 2631 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2633 | $as_echo_n "checking for $ac_word... " >&6; } | |
2634 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2635 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2636 | else |
2637 | if test -n "$CC"; then | |
2638 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2639 | else | |
2640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2641 | for as_dir in $PATH | |
2642 | do | |
2643 | IFS=$as_save_IFS | |
2644 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2645 | for ac_exec_ext in '' $ac_executable_extensions; do |
2646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2647 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2649 | break 2 |
2650 | fi | |
2651 | done | |
81ecdfbb RW |
2652 | done |
2653 | IFS=$as_save_IFS | |
13b2be9c DJ |
2654 | |
2655 | fi | |
2656 | fi | |
2657 | CC=$ac_cv_prog_CC | |
2658 | if test -n "$CC"; then | |
81ecdfbb RW |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2660 | $as_echo "$CC" >&6; } | |
13b2be9c | 2661 | else |
81ecdfbb RW |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2663 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2664 | fi |
2665 | ||
13b2be9c | 2666 | |
81ecdfbb | 2667 | fi |
13b2be9c DJ |
2668 | fi |
2669 | if test -z "$CC"; then | |
2670 | # Extract the first word of "cc", so it can be a program name with args. | |
2671 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2673 | $as_echo_n "checking for $ac_word... " >&6; } | |
2674 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2675 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2676 | else |
2677 | if test -n "$CC"; then | |
2678 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2679 | else | |
2680 | ac_prog_rejected=no | |
2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2682 | for as_dir in $PATH | |
2683 | do | |
2684 | IFS=$as_save_IFS | |
2685 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2686 | for ac_exec_ext in '' $ac_executable_extensions; do |
2687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c DJ |
2688 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2689 | ac_prog_rejected=yes | |
2690 | continue | |
2691 | fi | |
2692 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2694 | break 2 |
2695 | fi | |
2696 | done | |
81ecdfbb RW |
2697 | done |
2698 | IFS=$as_save_IFS | |
2699 | ||
13b2be9c DJ |
2700 | if test $ac_prog_rejected = yes; then |
2701 | # We found a bogon in the path, so make sure we never use it. | |
2702 | set dummy $ac_cv_prog_CC | |
2703 | shift | |
2704 | if test $# != 0; then | |
2705 | # We chose a different compiler from the bogus one. | |
2706 | # However, it has the same basename, so the bogon will be chosen | |
2707 | # first if we set CC to just the basename; use the full file name. | |
2708 | shift | |
2709 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2710 | fi | |
2711 | fi | |
2712 | fi | |
2713 | fi | |
2714 | CC=$ac_cv_prog_CC | |
2715 | if test -n "$CC"; then | |
81ecdfbb RW |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2717 | $as_echo "$CC" >&6; } | |
13b2be9c | 2718 | else |
81ecdfbb RW |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2720 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2721 | fi |
2722 | ||
81ecdfbb | 2723 | |
13b2be9c DJ |
2724 | fi |
2725 | if test -z "$CC"; then | |
2726 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2727 | for ac_prog in cl.exe |
13b2be9c DJ |
2728 | do |
2729 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2730 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2732 | $as_echo_n "checking for $ac_word... " >&6; } | |
2733 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2734 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2735 | else |
2736 | if test -n "$CC"; then | |
2737 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2738 | else | |
2739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2740 | for as_dir in $PATH | |
2741 | do | |
2742 | IFS=$as_save_IFS | |
2743 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2744 | for ac_exec_ext in '' $ac_executable_extensions; do |
2745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2746 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2748 | break 2 |
2749 | fi | |
2750 | done | |
81ecdfbb RW |
2751 | done |
2752 | IFS=$as_save_IFS | |
13b2be9c DJ |
2753 | |
2754 | fi | |
2755 | fi | |
2756 | CC=$ac_cv_prog_CC | |
2757 | if test -n "$CC"; then | |
81ecdfbb RW |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2759 | $as_echo "$CC" >&6; } | |
13b2be9c | 2760 | else |
81ecdfbb RW |
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2762 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2763 | fi |
2764 | ||
81ecdfbb | 2765 | |
13b2be9c DJ |
2766 | test -n "$CC" && break |
2767 | done | |
2768 | fi | |
2769 | if test -z "$CC"; then | |
2770 | ac_ct_CC=$CC | |
81ecdfbb | 2771 | for ac_prog in cl.exe |
13b2be9c DJ |
2772 | do |
2773 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2774 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2776 | $as_echo_n "checking for $ac_word... " >&6; } | |
2777 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2778 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2779 | else |
2780 | if test -n "$ac_ct_CC"; then | |
2781 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2782 | else | |
2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2784 | for as_dir in $PATH | |
2785 | do | |
2786 | IFS=$as_save_IFS | |
2787 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2788 | for ac_exec_ext in '' $ac_executable_extensions; do |
2789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2790 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2792 | break 2 |
2793 | fi | |
2794 | done | |
81ecdfbb RW |
2795 | done |
2796 | IFS=$as_save_IFS | |
13b2be9c DJ |
2797 | |
2798 | fi | |
2799 | fi | |
2800 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2801 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2803 | $as_echo "$ac_ct_CC" >&6; } | |
13b2be9c | 2804 | else |
81ecdfbb RW |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2806 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2807 | fi |
2808 | ||
81ecdfbb | 2809 | |
13b2be9c DJ |
2810 | test -n "$ac_ct_CC" && break |
2811 | done | |
2812 | ||
81ecdfbb RW |
2813 | if test "x$ac_ct_CC" = x; then |
2814 | CC="" | |
2815 | else | |
2816 | case $cross_compiling:$ac_tool_warned in | |
2817 | yes:) | |
2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2819 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2820 | ac_tool_warned=yes ;; | |
2821 | esac | |
2822 | CC=$ac_ct_CC | |
2823 | fi | |
13b2be9c DJ |
2824 | fi |
2825 | ||
2826 | fi | |
2827 | ||
2828 | ||
81ecdfbb RW |
2829 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2830 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2831 | as_fn_error "no acceptable C compiler found in \$PATH | |
2832 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c DJ |
2833 | |
2834 | # Provide some information about the compiler. | |
81ecdfbb RW |
2835 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2836 | set X $ac_compile | |
2837 | ac_compiler=$2 | |
2838 | for ac_option in --version -v -V -qversion; do | |
2839 | { { ac_try="$ac_compiler $ac_option >&5" | |
2840 | case "(($ac_try" in | |
2841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2842 | *) ac_try_echo=$ac_try;; | |
2843 | esac | |
2844 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2845 | $as_echo "$ac_try_echo"; } >&5 | |
2846 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
13b2be9c | 2847 | ac_status=$? |
81ecdfbb RW |
2848 | if test -s conftest.err; then |
2849 | sed '10a\ | |
2850 | ... rest of stderr output deleted ... | |
2851 | 10q' conftest.err >conftest.er1 | |
2852 | cat conftest.er1 >&5 | |
2853 | rm -f conftest.er1 conftest.err | |
2854 | fi | |
2855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2856 | test $ac_status = 0; } | |
2857 | done | |
13b2be9c | 2858 | |
81ecdfbb | 2859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
2860 | /* end confdefs.h. */ |
2861 | ||
2862 | int | |
2863 | main () | |
2864 | { | |
2865 | ||
2866 | ; | |
2867 | return 0; | |
2868 | } | |
2869 | _ACEOF | |
2870 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2871 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
13b2be9c DJ |
2872 | # Try to create an executable without -o first, disregard a.out. |
2873 | # It will help us diagnose broken compilers, and finding out an intuition | |
2874 | # of exeext. | |
81ecdfbb RW |
2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2876 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2877 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2878 | ||
2879 | # The possible output files: | |
2880 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2881 | ||
2882 | ac_rmfiles= | |
2883 | for ac_file in $ac_files | |
2884 | do | |
2885 | case $ac_file in | |
2886 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2887 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2888 | esac | |
2889 | done | |
2890 | rm -f $ac_rmfiles | |
2891 | ||
2892 | if { { ac_try="$ac_link_default" | |
2893 | case "(($ac_try" in | |
2894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2895 | *) ac_try_echo=$ac_try;; | |
2896 | esac | |
2897 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2898 | $as_echo "$ac_try_echo"; } >&5 | |
2899 | (eval "$ac_link_default") 2>&5 | |
2900 | ac_status=$? | |
2901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2902 | test $ac_status = 0; }; then : | |
2903 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2904 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2905 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2906 | # so that the user can short-circuit this test for compilers unknown to | |
2907 | # Autoconf. | |
2908 | for ac_file in $ac_files '' | |
13b2be9c DJ |
2909 | do |
2910 | test -f "$ac_file" || continue | |
2911 | case $ac_file in | |
81ecdfbb | 2912 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
ab509236 | 2913 | ;; |
13b2be9c | 2914 | [ab].out ) |
ab509236 L |
2915 | # We found the default executable, but exeext='' is most |
2916 | # certainly right. | |
2917 | break;; | |
13b2be9c | 2918 | *.* ) |
81ecdfbb RW |
2919 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2920 | then :; else | |
2921 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2922 | fi | |
2923 | # We set ac_cv_exeext here because the later test for it is not | |
2924 | # safe: cross compilers may not add the suffix if given an `-o' | |
2925 | # argument, so we may need to know it at that point already. | |
2926 | # Even if this section looks crufty: it has the advantage of | |
2927 | # actually working. | |
ab509236 | 2928 | break;; |
13b2be9c | 2929 | * ) |
ab509236 | 2930 | break;; |
13b2be9c DJ |
2931 | esac |
2932 | done | |
81ecdfbb RW |
2933 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2934 | ||
13b2be9c | 2935 | else |
81ecdfbb RW |
2936 | ac_file='' |
2937 | fi | |
2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2939 | $as_echo "$ac_file" >&6; } | |
2940 | if test -z "$ac_file"; then : | |
2941 | $as_echo "$as_me: failed program was:" >&5 | |
13b2be9c DJ |
2942 | sed 's/^/| /' conftest.$ac_ext >&5 |
2943 | ||
81ecdfbb RW |
2944 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2945 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2946 | { as_fn_set_status 77 | |
2947 | as_fn_error "C compiler cannot create executables | |
2948 | See \`config.log' for more details." "$LINENO" 5; }; } | |
13b2be9c | 2949 | fi |
13b2be9c | 2950 | ac_exeext=$ac_cv_exeext |
13b2be9c | 2951 | |
81ecdfbb | 2952 | # Check that the compiler produces executables we can run. If not, either |
13b2be9c | 2953 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2955 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
13b2be9c DJ |
2956 | # If not cross compiling, check that we can run a simple program. |
2957 | if test "$cross_compiling" != yes; then | |
2958 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2959 | { { case "(($ac_try" in |
2960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2961 | *) ac_try_echo=$ac_try;; | |
2962 | esac | |
2963 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2964 | $as_echo "$ac_try_echo"; } >&5 | |
2965 | (eval "$ac_try") 2>&5 | |
13b2be9c | 2966 | ac_status=$? |
81ecdfbb RW |
2967 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2968 | test $ac_status = 0; }; }; then | |
13b2be9c DJ |
2969 | cross_compiling=no |
2970 | else | |
2971 | if test "$cross_compiling" = maybe; then | |
2972 | cross_compiling=yes | |
2973 | else | |
81ecdfbb RW |
2974 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2976 | as_fn_error "cannot run C compiled programs. | |
13b2be9c | 2977 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2978 | See \`config.log' for more details." "$LINENO" 5; } |
13b2be9c DJ |
2979 | fi |
2980 | fi | |
2981 | fi | |
81ecdfbb RW |
2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2983 | $as_echo "yes" >&6; } | |
13b2be9c | 2984 | |
81ecdfbb | 2985 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
13b2be9c | 2986 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2987 | # Check that the compiler produces executables we can run. If not, either |
13b2be9c | 2988 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2990 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2992 | $as_echo "$cross_compiling" >&6; } | |
2993 | ||
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2995 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2996 | if { { ac_try="$ac_link" | |
2997 | case "(($ac_try" in | |
2998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2999 | *) ac_try_echo=$ac_try;; | |
3000 | esac | |
3001 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3002 | $as_echo "$ac_try_echo"; } >&5 | |
3003 | (eval "$ac_link") 2>&5 | |
13b2be9c | 3004 | ac_status=$? |
81ecdfbb RW |
3005 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3006 | test $ac_status = 0; }; then : | |
13b2be9c DJ |
3007 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3008 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3009 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3010 | # `rm'. | |
3011 | for ac_file in conftest.exe conftest conftest.*; do | |
3012 | test -f "$ac_file" || continue | |
3013 | case $ac_file in | |
81ecdfbb | 3014 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
13b2be9c | 3015 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
ab509236 | 3016 | break;; |
13b2be9c DJ |
3017 | * ) break;; |
3018 | esac | |
3019 | done | |
3020 | else | |
81ecdfbb RW |
3021 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3023 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3024 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c | 3025 | fi |
13b2be9c | 3026 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3028 | $as_echo "$ac_cv_exeext" >&6; } | |
13b2be9c DJ |
3029 | |
3030 | rm -f conftest.$ac_ext | |
3031 | EXEEXT=$ac_cv_exeext | |
3032 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3034 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3035 | if test "${ac_cv_objext+set}" = set; then : | |
3036 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3037 | else |
81ecdfbb | 3038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
3039 | /* end confdefs.h. */ |
3040 | ||
3041 | int | |
3042 | main () | |
3043 | { | |
3044 | ||
3045 | ; | |
3046 | return 0; | |
3047 | } | |
3048 | _ACEOF | |
3049 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3050 | if { { ac_try="$ac_compile" |
3051 | case "(($ac_try" in | |
3052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3053 | *) ac_try_echo=$ac_try;; | |
3054 | esac | |
3055 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3056 | $as_echo "$ac_try_echo"; } >&5 | |
3057 | (eval "$ac_compile") 2>&5 | |
3058 | ac_status=$? | |
3059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3060 | test $ac_status = 0; }; then : | |
3061 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3062 | test -f "$ac_file" || continue; | |
13b2be9c | 3063 | case $ac_file in |
81ecdfbb | 3064 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
13b2be9c DJ |
3065 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3066 | break;; | |
3067 | esac | |
3068 | done | |
3069 | else | |
81ecdfbb | 3070 | $as_echo "$as_me: failed program was:" >&5 |
13b2be9c DJ |
3071 | sed 's/^/| /' conftest.$ac_ext >&5 |
3072 | ||
81ecdfbb RW |
3073 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3074 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3075 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3076 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c | 3077 | fi |
13b2be9c DJ |
3078 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3079 | fi | |
81ecdfbb RW |
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3081 | $as_echo "$ac_cv_objext" >&6; } | |
13b2be9c DJ |
3082 | OBJEXT=$ac_cv_objext |
3083 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3085 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3086 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3087 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3088 | else |
81ecdfbb | 3089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
3090 | /* end confdefs.h. */ |
3091 | ||
3092 | int | |
3093 | main () | |
3094 | { | |
3095 | #ifndef __GNUC__ | |
3096 | choke me | |
3097 | #endif | |
3098 | ||
3099 | ; | |
3100 | return 0; | |
3101 | } | |
3102 | _ACEOF | |
81ecdfbb | 3103 | if ac_fn_c_try_compile "$LINENO"; then : |
13b2be9c DJ |
3104 | ac_compiler_gnu=yes |
3105 | else | |
81ecdfbb | 3106 | ac_compiler_gnu=no |
13b2be9c | 3107 | fi |
81ecdfbb | 3108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
3109 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3110 | ||
3111 | fi | |
81ecdfbb RW |
3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3113 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3114 | if test $ac_compiler_gnu = yes; then | |
3115 | GCC=yes | |
3116 | else | |
3117 | GCC= | |
3118 | fi | |
13b2be9c DJ |
3119 | ac_test_CFLAGS=${CFLAGS+set} |
3120 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3122 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3123 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3124 | $as_echo_n "(cached) " >&6 | |
3125 | else | |
3126 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3127 | ac_c_werror_flag=yes | |
3128 | ac_cv_prog_cc_g=no | |
3129 | CFLAGS="-g" | |
3130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13b2be9c DJ |
3131 | /* end confdefs.h. */ |
3132 | ||
3133 | int | |
3134 | main () | |
3135 | { | |
3136 | ||
3137 | ; | |
3138 | return 0; | |
3139 | } | |
3140 | _ACEOF | |
81ecdfbb | 3141 | if ac_fn_c_try_compile "$LINENO"; then : |
13b2be9c DJ |
3142 | ac_cv_prog_cc_g=yes |
3143 | else | |
81ecdfbb RW |
3144 | CFLAGS="" |
3145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3146 | /* end confdefs.h. */ | |
13b2be9c | 3147 | |
81ecdfbb RW |
3148 | int |
3149 | main () | |
3150 | { | |
3151 | ||
3152 | ; | |
3153 | return 0; | |
3154 | } | |
3155 | _ACEOF | |
3156 | if ac_fn_c_try_compile "$LINENO"; then : | |
3157 | ||
3158 | else | |
3159 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3160 | CFLAGS="-g" | |
3161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3162 | /* end confdefs.h. */ | |
3163 | ||
3164 | int | |
3165 | main () | |
3166 | { | |
3167 | ||
3168 | ; | |
3169 | return 0; | |
3170 | } | |
3171 | _ACEOF | |
3172 | if ac_fn_c_try_compile "$LINENO"; then : | |
3173 | ac_cv_prog_cc_g=yes | |
3174 | fi | |
3175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13b2be9c | 3176 | fi |
81ecdfbb | 3177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c | 3178 | fi |
81ecdfbb RW |
3179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3180 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3181 | fi | |
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3183 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
13b2be9c DJ |
3184 | if test "$ac_test_CFLAGS" = set; then |
3185 | CFLAGS=$ac_save_CFLAGS | |
3186 | elif test $ac_cv_prog_cc_g = yes; then | |
3187 | if test "$GCC" = yes; then | |
3188 | CFLAGS="-g -O2" | |
3189 | else | |
3190 | CFLAGS="-g" | |
3191 | fi | |
3192 | else | |
3193 | if test "$GCC" = yes; then | |
3194 | CFLAGS="-O2" | |
3195 | else | |
3196 | CFLAGS= | |
3197 | fi | |
3198 | fi | |
81ecdfbb RW |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3200 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3201 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3202 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3203 | else |
81ecdfbb | 3204 | ac_cv_prog_cc_c89=no |
13b2be9c | 3205 | ac_save_CC=$CC |
81ecdfbb | 3206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
3207 | /* end confdefs.h. */ |
3208 | #include <stdarg.h> | |
3209 | #include <stdio.h> | |
3210 | #include <sys/types.h> | |
3211 | #include <sys/stat.h> | |
3212 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3213 | struct buf { int x; }; | |
3214 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3215 | static char *e (p, i) | |
3216 | char **p; | |
3217 | int i; | |
3218 | { | |
3219 | return p[i]; | |
3220 | } | |
3221 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3222 | { | |
3223 | char *s; | |
3224 | va_list v; | |
3225 | va_start (v,p); | |
3226 | s = g (p, va_arg (v,int)); | |
3227 | va_end (v); | |
3228 | return s; | |
3229 | } | |
ab509236 L |
3230 | |
3231 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3232 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3233 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3234 | as 'x'. The following induces an error, until -std is added to get |
ab509236 L |
3235 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3236 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3237 | that's true only with -std. */ |
ab509236 L |
3238 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3239 | ||
81ecdfbb RW |
3240 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3241 | inside strings and character constants. */ | |
3242 | #define FOO(x) 'x' | |
3243 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3244 | ||
13b2be9c DJ |
3245 | int test (int i, double x); |
3246 | struct s1 {int (*f) (int a);}; | |
3247 | struct s2 {int (*f) (double a);}; | |
3248 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3249 | int argc; | |
3250 | char **argv; | |
3251 | int | |
3252 | main () | |
3253 | { | |
3254 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3255 | ; | |
3256 | return 0; | |
3257 | } | |
3258 | _ACEOF | |
81ecdfbb RW |
3259 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3260 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
13b2be9c DJ |
3261 | do |
3262 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3263 | if ac_fn_c_try_compile "$LINENO"; then : |
3264 | ac_cv_prog_cc_c89=$ac_arg | |
13b2be9c | 3265 | fi |
81ecdfbb RW |
3266 | rm -f core conftest.err conftest.$ac_objext |
3267 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
13b2be9c | 3268 | done |
81ecdfbb | 3269 | rm -f conftest.$ac_ext |
13b2be9c DJ |
3270 | CC=$ac_save_CC |
3271 | ||
3272 | fi | |
81ecdfbb RW |
3273 | # AC_CACHE_VAL |
3274 | case "x$ac_cv_prog_cc_c89" in | |
3275 | x) | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3277 | $as_echo "none needed" >&6; } ;; | |
3278 | xno) | |
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3280 | $as_echo "unsupported" >&6; } ;; | |
13b2be9c | 3281 | *) |
81ecdfbb RW |
3282 | CC="$CC $ac_cv_prog_cc_c89" |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3284 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
13b2be9c | 3285 | esac |
81ecdfbb | 3286 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
13b2be9c | 3287 | |
13b2be9c DJ |
3288 | fi |
3289 | ||
13b2be9c DJ |
3290 | ac_ext=c |
3291 | ac_cpp='$CPP $CPPFLAGS' | |
3292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3295 | ||
3296 | ||
81ecdfbb RW |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3298 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3299 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3300 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3301 | else |
ab509236 | 3302 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 3303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
3304 | /* end confdefs.h. */ |
3305 | ||
81ecdfbb RW |
3306 | /* Override any GCC internal prototype to avoid an error. |
3307 | Use char because int might match the return type of a GCC | |
3308 | builtin and then its argument prototype would still apply. */ | |
13b2be9c DJ |
3309 | #ifdef __cplusplus |
3310 | extern "C" | |
3311 | #endif | |
13b2be9c DJ |
3312 | char strerror (); |
3313 | int | |
3314 | main () | |
3315 | { | |
81ecdfbb | 3316 | return strerror (); |
13b2be9c DJ |
3317 | ; |
3318 | return 0; | |
3319 | } | |
3320 | _ACEOF | |
81ecdfbb RW |
3321 | for ac_lib in '' cposix; do |
3322 | if test -z "$ac_lib"; then | |
3323 | ac_res="none required" | |
3324 | else | |
3325 | ac_res=-l$ac_lib | |
ab509236 | 3326 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3327 | fi |
3328 | if ac_fn_c_try_link "$LINENO"; then : | |
3329 | ac_cv_search_strerror=$ac_res | |
3330 | fi | |
3331 | rm -f core conftest.err conftest.$ac_objext \ | |
3332 | conftest$ac_exeext | |
3333 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3334 | break | |
3335 | fi | |
3336 | done | |
3337 | if test "${ac_cv_search_strerror+set}" = set; then : | |
ab509236 | 3338 | |
ab509236 | 3339 | else |
81ecdfbb | 3340 | ac_cv_search_strerror=no |
13b2be9c | 3341 | fi |
81ecdfbb | 3342 | rm conftest.$ac_ext |
ab509236 L |
3343 | LIBS=$ac_func_search_save_LIBS |
3344 | fi | |
81ecdfbb RW |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3346 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3347 | ac_res=$ac_cv_search_strerror | |
3348 | if test "$ac_res" != no; then : | |
3349 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13b2be9c | 3350 | |
ab509236 | 3351 | fi |
13b2be9c DJ |
3352 | |
3353 | ||
3354 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
81ecdfbb RW |
3355 | am__api_version='1.11' |
3356 | ||
13b2be9c DJ |
3357 | # Find a good install program. We prefer a C program (faster), |
3358 | # so one script is as good as another. But avoid the broken or | |
3359 | # incompatible versions: | |
3360 | # SysV /etc/install, /usr/sbin/install | |
3361 | # SunOS /usr/etc/install | |
3362 | # IRIX /sbin/install | |
3363 | # AIX /bin/install | |
3364 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3365 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3366 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3367 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ab509236 | 3368 | # OS/2's system install, which has a completely different semantic |
13b2be9c | 3369 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3370 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3372 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
13b2be9c | 3373 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3374 | if test "${ac_cv_path_install+set}" = set; then : |
3375 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
3376 | else |
3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3378 | for as_dir in $PATH | |
3379 | do | |
3380 | IFS=$as_save_IFS | |
3381 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3382 | # Account for people who put trailing slashes in PATH elements. |
3383 | case $as_dir/ in #(( | |
3384 | ./ | .// | /[cC]/* | \ | |
13b2be9c | 3385 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3386 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
13b2be9c DJ |
3387 | /usr/ucb/* ) ;; |
3388 | *) | |
3389 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3390 | # Don't use installbsd from OSF since it installs stuff as root | |
3391 | # by default. | |
3392 | for ac_prog in ginstall scoinst install; do | |
3393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3394 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
ab509236 L |
3395 | if test $ac_prog = install && |
3396 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3397 | # AIX install. It has an incompatible calling convention. | |
3398 | : | |
3399 | elif test $ac_prog = install && | |
3400 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3401 | # program-specific install script used by HP pwplus--don't use. | |
3402 | : | |
3403 | else | |
58c85be7 RW |
3404 | rm -rf conftest.one conftest.two conftest.dir |
3405 | echo one > conftest.one | |
3406 | echo two > conftest.two | |
3407 | mkdir conftest.dir | |
3408 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3409 | test -s conftest.one && test -s conftest.two && | |
3410 | test -s conftest.dir/conftest.one && | |
3411 | test -s conftest.dir/conftest.two | |
3412 | then | |
3413 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3414 | break 3 | |
3415 | fi | |
ab509236 L |
3416 | fi |
3417 | fi | |
13b2be9c DJ |
3418 | done |
3419 | done | |
3420 | ;; | |
3421 | esac | |
81ecdfbb RW |
3422 | |
3423 | done | |
3424 | IFS=$as_save_IFS | |
13b2be9c | 3425 | |
58c85be7 | 3426 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3427 | |
3428 | fi | |
3429 | if test "${ac_cv_path_install+set}" = set; then | |
13b2be9c | 3430 | INSTALL=$ac_cv_path_install |
252b5132 | 3431 | else |
58c85be7 RW |
3432 | # As a last resort, use the slow shell script. Don't cache a |
3433 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3434 | # break other packages using the cache if that directory is |
58c85be7 | 3435 | # removed, or if the value is a relative name. |
13b2be9c | 3436 | INSTALL=$ac_install_sh |
252b5132 RH |
3437 | fi |
3438 | fi | |
81ecdfbb RW |
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3440 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3441 | |
3442 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3443 | # It thinks the first close brace ends the variable substitution. | |
3444 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3445 | ||
13b2be9c | 3446 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3447 | |
3448 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3449 | ||
81ecdfbb RW |
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3451 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3452 | # Just in case |
3453 | sleep 1 | |
13b2be9c | 3454 | echo timestamp > conftest.file |
81ecdfbb RW |
3455 | # Reject unsafe characters in $srcdir or the absolute working directory |
3456 | # name. Accept space and tab only in the latter. | |
3457 | am_lf=' | |
3458 | ' | |
3459 | case `pwd` in | |
3460 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3461 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3462 | esac | |
3463 | case $srcdir in | |
3464 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3465 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3466 | esac | |
3467 | ||
252b5132 RH |
3468 | # Do `set' in a subshell so we don't clobber the current shell's |
3469 | # arguments. Must try -L first in case configure is actually a | |
3470 | # symlink; some systems play weird games with the mod time of symlinks | |
3471 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3472 | # directory). | |
3473 | if ( | |
81ecdfbb | 3474 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3475 | if test "$*" = "X"; then |
3476 | # -L didn't work. | |
81ecdfbb | 3477 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3478 | fi |
13b2be9c DJ |
3479 | rm -f conftest.file |
3480 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3481 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3482 | |
3483 | # If neither matched, then we have a broken ls. This can happen | |
3484 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3485 | # broken ls alias from the environment. This has actually | |
3486 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3487 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3488 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3489 | fi |
3490 | ||
13b2be9c DJ |
3491 | test "$2" = conftest.file |
3492 | ) | |
3493 | then | |
3494 | # Ok. | |
3495 | : | |
3496 | else | |
81ecdfbb RW |
3497 | as_fn_error "newly created file is older than distributed files! |
3498 | Check your system clock" "$LINENO" 5 | |
13b2be9c | 3499 | fi |
81ecdfbb RW |
3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3501 | $as_echo "yes" >&6; } | |
13b2be9c | 3502 | test "$program_prefix" != NONE && |
81ecdfbb | 3503 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
13b2be9c DJ |
3504 | # Use a double $ so make ignores it. |
3505 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3506 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3507 | # Double any \ or $. | |
13b2be9c | 3508 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3509 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3510 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
13b2be9c | 3511 | |
13b2be9c DJ |
3512 | # expand $ac_aux_dir to an absolute path |
3513 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3514 | ||
81ecdfbb RW |
3515 | if test x"${MISSING+set}" != xset; then |
3516 | case $am_aux_dir in | |
3517 | *\ * | *\ *) | |
3518 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3519 | *) | |
3520 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3521 | esac | |
3522 | fi | |
13b2be9c DJ |
3523 | # Use eval to expand $SHELL |
3524 | if eval "$MISSING --run true"; then | |
3525 | am_missing_run="$MISSING --run " | |
3526 | else | |
3527 | am_missing_run= | |
81ecdfbb RW |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3529 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
ab509236 L |
3530 | fi |
3531 | ||
81ecdfbb RW |
3532 | if test x"${install_sh}" != xset; then |
3533 | case $am_aux_dir in | |
3534 | *\ * | *\ *) | |
3535 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3536 | *) | |
3537 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3538 | esac | |
3539 | fi | |
3540 | ||
3541 | # Installed binaries are usually stripped using `strip' when the user | |
3542 | # run `make install-strip'. However `strip' might not be the right | |
3543 | # tool to use in cross-compilation environments, therefore Automake | |
3544 | # will honor the `STRIP' environment variable to overrule this program. | |
3545 | if test "$cross_compiling" != no; then | |
3546 | if test -n "$ac_tool_prefix"; then | |
3547 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3548 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3550 | $as_echo_n "checking for $ac_word... " >&6; } | |
3551 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3552 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3553 | else |
81ecdfbb RW |
3554 | if test -n "$STRIP"; then |
3555 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13b2be9c DJ |
3556 | else |
3557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3558 | for as_dir in $PATH | |
3559 | do | |
3560 | IFS=$as_save_IFS | |
3561 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3562 | for ac_exec_ext in '' $ac_executable_extensions; do |
3563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3564 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13b2be9c DJ |
3566 | break 2 |
3567 | fi | |
3568 | done | |
81ecdfbb RW |
3569 | done |
3570 | IFS=$as_save_IFS | |
13b2be9c DJ |
3571 | |
3572 | fi | |
3573 | fi | |
81ecdfbb RW |
3574 | STRIP=$ac_cv_prog_STRIP |
3575 | if test -n "$STRIP"; then | |
3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3577 | $as_echo "$STRIP" >&6; } | |
13b2be9c | 3578 | else |
81ecdfbb RW |
3579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3580 | $as_echo "no" >&6; } | |
13b2be9c DJ |
3581 | fi |
3582 | ||
13b2be9c | 3583 | |
81ecdfbb RW |
3584 | fi |
3585 | if test -z "$ac_cv_prog_STRIP"; then | |
3586 | ac_ct_STRIP=$STRIP | |
3587 | # Extract the first word of "strip", so it can be a program name with args. | |
3588 | set dummy strip; ac_word=$2 | |
3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3590 | $as_echo_n "checking for $ac_word... " >&6; } | |
3591 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3592 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3593 | else |
81ecdfbb RW |
3594 | if test -n "$ac_ct_STRIP"; then |
3595 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13b2be9c | 3596 | else |
81ecdfbb RW |
3597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3598 | for as_dir in $PATH | |
3599 | do | |
3600 | IFS=$as_save_IFS | |
3601 | test -z "$as_dir" && as_dir=. | |
3602 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3604 | ac_cv_prog_ac_ct_STRIP="strip" | |
3605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3606 | break 2 | |
3607 | fi | |
3608 | done | |
3609 | done | |
3610 | IFS=$as_save_IFS | |
3611 | ||
3612 | fi | |
3613 | fi | |
3614 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3615 | if test -n "$ac_ct_STRIP"; then | |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3617 | $as_echo "$ac_ct_STRIP" >&6; } | |
3618 | else | |
3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3620 | $as_echo "no" >&6; } | |
3621 | fi | |
3622 | ||
3623 | if test "x$ac_ct_STRIP" = x; then | |
3624 | STRIP=":" | |
3625 | else | |
3626 | case $cross_compiling:$ac_tool_warned in | |
3627 | yes:) | |
3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3629 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3630 | ac_tool_warned=yes ;; | |
3631 | esac | |
3632 | STRIP=$ac_ct_STRIP | |
3633 | fi | |
3634 | else | |
3635 | STRIP="$ac_cv_prog_STRIP" | |
3636 | fi | |
3637 | ||
3638 | fi | |
3639 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3640 | ||
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3642 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3643 | if test -z "$MKDIR_P"; then | |
3644 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3645 | $as_echo_n "(cached) " >&6 | |
3646 | else | |
3647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3648 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3649 | do | |
3650 | IFS=$as_save_IFS | |
3651 | test -z "$as_dir" && as_dir=. | |
3652 | for ac_prog in mkdir gmkdir; do | |
3653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3654 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3655 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3656 | 'mkdir (GNU coreutils) '* | \ | |
3657 | 'mkdir (coreutils) '* | \ | |
3658 | 'mkdir (fileutils) '4.1*) | |
3659 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3660 | break 3;; | |
3661 | esac | |
3662 | done | |
3663 | done | |
3664 | done | |
3665 | IFS=$as_save_IFS | |
3666 | ||
3667 | fi | |
3668 | ||
3669 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3670 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3671 | else | |
3672 | # As a last resort, use the slow shell script. Don't cache a | |
3673 | # value for MKDIR_P within a source directory, because that will | |
3674 | # break other packages using the cache if that directory is | |
3675 | # removed, or if the value is a relative name. | |
3676 | test -d ./--version && rmdir ./--version | |
3677 | MKDIR_P="$ac_install_sh -d" | |
3678 | fi | |
3679 | fi | |
3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3681 | $as_echo "$MKDIR_P" >&6; } | |
3682 | ||
3683 | mkdir_p="$MKDIR_P" | |
3684 | case $mkdir_p in | |
3685 | [\\/$]* | ?:[\\/]*) ;; | |
3686 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3687 | esac | |
3688 | ||
3689 | for ac_prog in gawk mawk nawk awk | |
3690 | do | |
3691 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3692 | set dummy $ac_prog; ac_word=$2 | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3694 | $as_echo_n "checking for $ac_word... " >&6; } | |
3695 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3696 | $as_echo_n "(cached) " >&6 | |
3697 | else | |
3698 | if test -n "$AWK"; then | |
3699 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3700 | else | |
3701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3702 | for as_dir in $PATH | |
3703 | do | |
3704 | IFS=$as_save_IFS | |
3705 | test -z "$as_dir" && as_dir=. | |
3706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3708 | ac_cv_prog_AWK="$ac_prog" | |
3709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3710 | break 2 | |
3711 | fi | |
3712 | done | |
3713 | done | |
3714 | IFS=$as_save_IFS | |
3715 | ||
3716 | fi | |
3717 | fi | |
3718 | AWK=$ac_cv_prog_AWK | |
3719 | if test -n "$AWK"; then | |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3721 | $as_echo "$AWK" >&6; } | |
3722 | else | |
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3724 | $as_echo "no" >&6; } | |
13b2be9c | 3725 | fi |
81ecdfbb RW |
3726 | |
3727 | ||
3728 | test -n "$AWK" && break | |
3729 | done | |
3730 | ||
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3732 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3733 | set x ${MAKE-make} | |
3734 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3735 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3736 | $as_echo_n "(cached) " >&6 | |
3737 | else | |
3738 | cat >conftest.make <<\_ACEOF | |
3739 | SHELL = /bin/sh | |
3740 | all: | |
3741 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3742 | _ACEOF | |
3743 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3744 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3745 | *@@@%%%=?*=@@@%%%*) | |
3746 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3747 | *) | |
3748 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3749 | esac | |
13b2be9c DJ |
3750 | rm -f conftest.make |
3751 | fi | |
81ecdfbb RW |
3752 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3754 | $as_echo "yes" >&6; } | |
13b2be9c DJ |
3755 | SET_MAKE= |
3756 | else | |
81ecdfbb RW |
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3758 | $as_echo "no" >&6; } | |
13b2be9c DJ |
3759 | SET_MAKE="MAKE=${MAKE-make}" |
3760 | fi | |
3761 | ||
3762 | rm -rf .tst 2>/dev/null | |
3763 | mkdir .tst 2>/dev/null | |
3764 | if test -d .tst; then | |
3765 | am__leading_dot=. | |
3766 | else | |
3767 | am__leading_dot=_ | |
3768 | fi | |
3769 | rmdir .tst 2>/dev/null | |
3770 | ||
3771 | DEPDIR="${am__leading_dot}deps" | |
3772 | ||
81ecdfbb | 3773 | ac_config_commands="$ac_config_commands depfiles" |
13b2be9c DJ |
3774 | |
3775 | ||
3776 | am_make=${MAKE-make} | |
3777 | cat > confinc << 'END' | |
3778 | am__doit: | |
81ecdfbb | 3779 | @echo this is the am__doit target |
13b2be9c DJ |
3780 | .PHONY: am__doit |
3781 | END | |
3782 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3784 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
13b2be9c DJ |
3785 | am__include="#" |
3786 | am__quote= | |
3787 | _am_result=none | |
3788 | # First try GNU make style include. | |
3789 | echo "include confinc" > confmf | |
81ecdfbb RW |
3790 | # Ignore all kinds of additional output from `make'. |
3791 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3792 | *the\ am__doit\ target*) | |
3793 | am__include=include | |
3794 | am__quote= | |
3795 | _am_result=GNU | |
3796 | ;; | |
3797 | esac | |
13b2be9c DJ |
3798 | # Now try BSD make style include. |
3799 | if test "$am__include" = "#"; then | |
3800 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
3801 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3802 | *the\ am__doit\ target*) | |
3803 | am__include=.include | |
3804 | am__quote="\"" | |
3805 | _am_result=BSD | |
3806 | ;; | |
3807 | esac | |
13b2be9c DJ |
3808 | fi |
3809 | ||
3810 | ||
81ecdfbb RW |
3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3812 | $as_echo "$_am_result" >&6; } | |
13b2be9c DJ |
3813 | rm -f confinc confmf |
3814 | ||
81ecdfbb RW |
3815 | # Check whether --enable-dependency-tracking was given. |
3816 | if test "${enable_dependency_tracking+set}" = set; then : | |
3817 | enableval=$enable_dependency_tracking; | |
3818 | fi | |
13b2be9c | 3819 | |
13b2be9c DJ |
3820 | if test "x$enable_dependency_tracking" != xno; then |
3821 | am_depcomp="$ac_aux_dir/depcomp" | |
3822 | AMDEPBACKSLASH='\' | |
3823 | fi | |
81ecdfbb | 3824 | if test "x$enable_dependency_tracking" != xno; then |
13b2be9c DJ |
3825 | AMDEP_TRUE= |
3826 | AMDEP_FALSE='#' | |
3827 | else | |
3828 | AMDEP_TRUE='#' | |
3829 | AMDEP_FALSE= | |
3830 | fi | |
3831 | ||
3832 | ||
81ecdfbb RW |
3833 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3834 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3835 | # is not polluted with repeated "-I." | |
3836 | am__isrc=' -I$(srcdir)' | |
3837 | # test to see if srcdir already configured | |
3838 | if test -f $srcdir/config.status; then | |
3839 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3840 | fi | |
13b2be9c DJ |
3841 | fi |
3842 | ||
3843 | # test whether we have cygpath | |
3844 | if test -z "$CYGPATH_W"; then | |
3845 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3846 | CYGPATH_W='cygpath -w' | |
3847 | else | |
3848 | CYGPATH_W=echo | |
3849 | fi | |
3850 | fi | |
3851 | ||
3852 | ||
3853 | # Define the identity of the package. | |
3854 | PACKAGE=gas | |
3855 | VERSION=${BFD_VERSION} | |
3856 | ||
3857 | ||
3858 | cat >>confdefs.h <<_ACEOF | |
3859 | #define PACKAGE "$PACKAGE" | |
3860 | _ACEOF | |
3861 | ||
3862 | ||
3863 | cat >>confdefs.h <<_ACEOF | |
3864 | #define VERSION "$VERSION" | |
3865 | _ACEOF | |
3866 | ||
3867 | # Some tools Automake needs. | |
3868 | ||
3869 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3870 | ||
3871 | ||
3872 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3873 | ||
3874 | ||
3875 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3876 | ||
3877 | ||
3878 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3879 | ||
3880 | ||
3881 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3882 | ||
13b2be9c DJ |
3883 | # We need awk for the "check" target. The system "awk" is bad on |
3884 | # some platforms. | |
8ea2b00f AM |
3885 | # Always define AMTAR for backward compatibility. |
3886 | ||
3887 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3888 | ||
3889 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3890 | ||
3891 | ||
252b5132 | 3892 | |
d6d788bd | 3893 | |
13b2be9c | 3894 | depcc="$CC" am_compiler_list= |
d6d788bd | 3895 | |
81ecdfbb RW |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3897 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3898 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3899 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3900 | else |
13b2be9c DJ |
3901 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3902 | # We make a subdir and do the tests there. Otherwise we can end up | |
3903 | # making bogus files that we don't know about and never remove. For | |
3904 | # instance it was reported that on HP-UX the gcc test will end up | |
3905 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3906 | # in D'. | |
3907 | mkdir conftest.dir | |
3908 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3909 | # using a relative directory. | |
3910 | cp "$am_depcomp" conftest.dir | |
3911 | cd conftest.dir | |
3912 | # We will build objects and dependencies in a subdirectory because | |
3913 | # it helps to detect inapplicable dependency modes. For instance | |
3914 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3915 | # side effect of compilation, but ICC will put the dependencies in | |
3916 | # the current directory while Tru64 will put them in the object | |
3917 | # directory. | |
3918 | mkdir sub | |
252b5132 | 3919 | |
13b2be9c DJ |
3920 | am_cv_CC_dependencies_compiler_type=none |
3921 | if test "$am_compiler_list" = ""; then | |
3922 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3923 | fi | |
81ecdfbb RW |
3924 | am__universal=false |
3925 | case " $depcc " in #( | |
3926 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3927 | esac | |
3928 | ||
13b2be9c DJ |
3929 | for depmode in $am_compiler_list; do |
3930 | # Setup a source with many dependencies, because some compilers | |
3931 | # like to wrap large dependency lists on column 80 (with \), and | |
3932 | # we should not choose a depcomp mode which is confused by this. | |
3933 | # | |
3934 | # We need to recreate these files for each test, as the compiler may | |
3935 | # overwrite some of them when testing with obscure command lines. | |
3936 | # This happens at least with the AIX C compiler. | |
3937 | : > sub/conftest.c | |
3938 | for i in 1 2 3 4 5 6; do | |
3939 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4b363073 NC |
3940 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3941 | # Solaris 8's {/usr,}/bin/sh. | |
3942 | touch sub/conftst$i.h | |
13b2be9c DJ |
3943 | done |
3944 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3945 | ||
81ecdfbb RW |
3946 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3947 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3948 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3949 | # versions had trouble with output in subdirs | |
3950 | am__obj=sub/conftest.${OBJEXT-o} | |
3951 | am__minus_obj="-o $am__obj" | |
13b2be9c | 3952 | case $depmode in |
81ecdfbb RW |
3953 | gcc) |
3954 | # This depmode causes a compiler race in universal mode. | |
3955 | test "$am__universal" = false || continue | |
3956 | ;; | |
13b2be9c DJ |
3957 | nosideeffect) |
3958 | # after this tag, mechanisms are not by side-effect, so they'll | |
3959 | # only be used when explicitly requested | |
3960 | if test "x$enable_dependency_tracking" = xyes; then | |
3961 | continue | |
3962 | else | |
3963 | break | |
3964 | fi | |
3965 | ;; | |
81ecdfbb RW |
3966 | msvisualcpp | msvcmsys) |
3967 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3968 | # not run yet. These depmodes are late enough in the game, and | |
3969 | # so weak that their functioning should not be impacted. | |
3970 | am__obj=conftest.${OBJEXT-o} | |
3971 | am__minus_obj= | |
3972 | ;; | |
13b2be9c DJ |
3973 | none) break ;; |
3974 | esac | |
13b2be9c | 3975 | if depmode=$depmode \ |
81ecdfbb | 3976 | source=sub/conftest.c object=$am__obj \ |
13b2be9c | 3977 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 3978 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
13b2be9c | 3979 | >/dev/null 2>conftest.err && |
81ecdfbb | 3980 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
13b2be9c | 3981 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 3982 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
13b2be9c DJ |
3983 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3984 | # icc doesn't choke on unknown options, it will just issue warnings | |
4b363073 NC |
3985 | # or remarks (even with -Werror). So we grep stderr for any message |
3986 | # that says an option was ignored or not supported. | |
3987 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3988 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3989 | # The diagnosis changed in icc 8.0: | |
3990 | # icc: Command line remark: option '-MP' not supported | |
3991 | if (grep 'ignoring option' conftest.err || | |
3992 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
13b2be9c DJ |
3993 | am_cv_CC_dependencies_compiler_type=$depmode |
3994 | break | |
3995 | fi | |
3996 | fi | |
3997 | done | |
252b5132 | 3998 | |
13b2be9c DJ |
3999 | cd .. |
4000 | rm -rf conftest.dir | |
252b5132 | 4001 | else |
13b2be9c | 4002 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
4003 | fi |
4004 | ||
252b5132 | 4005 | fi |
81ecdfbb RW |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4007 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
13b2be9c | 4008 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
252b5132 | 4009 | |
81ecdfbb | 4010 | if |
13b2be9c DJ |
4011 | test "x$enable_dependency_tracking" != xno \ |
4012 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4013 | am__fastdepCC_TRUE= | |
4014 | am__fastdepCC_FALSE='#' | |
252b5132 | 4015 | else |
13b2be9c DJ |
4016 | am__fastdepCC_TRUE='#' |
4017 | am__fastdepCC_FALSE= | |
252b5132 RH |
4018 | fi |
4019 | ||
d6d788bd L |
4020 | |
4021 | ||
13b2be9c | 4022 | |
ce2cded5 L |
4023 | ac_ext=c |
4024 | ac_cpp='$CPP $CPPFLAGS' | |
4025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4028 | if test -n "$ac_tool_prefix"; then | |
4029 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4030 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4032 | $as_echo_n "checking for $ac_word... " >&6; } | |
4033 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4034 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4035 | else |
ce2cded5 L |
4036 | if test -n "$CC"; then |
4037 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 4038 | else |
ce2cded5 L |
4039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4040 | for as_dir in $PATH | |
4041 | do | |
4042 | IFS=$as_save_IFS | |
4043 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4044 | for ac_exec_ext in '' $ac_executable_extensions; do |
4045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4046 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4048 | break 2 |
4049 | fi | |
4050 | done | |
81ecdfbb RW |
4051 | done |
4052 | IFS=$as_save_IFS | |
d7040cdb | 4053 | |
ce2cded5 L |
4054 | fi |
4055 | fi | |
4056 | CC=$ac_cv_prog_CC | |
4057 | if test -n "$CC"; then | |
81ecdfbb RW |
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4059 | $as_echo "$CC" >&6; } | |
bedf545c | 4060 | else |
81ecdfbb RW |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4062 | $as_echo "no" >&6; } | |
ce2cded5 | 4063 | fi |
d7040cdb | 4064 | |
81ecdfbb | 4065 | |
ce2cded5 L |
4066 | fi |
4067 | if test -z "$ac_cv_prog_CC"; then | |
4068 | ac_ct_CC=$CC | |
4069 | # Extract the first word of "gcc", so it can be a program name with args. | |
4070 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4072 | $as_echo_n "checking for $ac_word... " >&6; } | |
4073 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4074 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4075 | else |
ce2cded5 L |
4076 | if test -n "$ac_ct_CC"; then |
4077 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4078 | else | |
d7040cdb SE |
4079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4080 | for as_dir in $PATH | |
4081 | do | |
4082 | IFS=$as_save_IFS | |
4083 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4084 | for ac_exec_ext in '' $ac_executable_extensions; do |
4085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4086 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 4088 | break 2 |
d7040cdb | 4089 | fi |
ce2cded5 | 4090 | done |
81ecdfbb RW |
4091 | done |
4092 | IFS=$as_save_IFS | |
d7040cdb | 4093 | |
ce2cded5 L |
4094 | fi |
4095 | fi | |
4096 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4097 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4099 | $as_echo "$ac_ct_CC" >&6; } | |
ce2cded5 | 4100 | else |
81ecdfbb RW |
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4102 | $as_echo "no" >&6; } | |
d7040cdb SE |
4103 | fi |
4104 | ||
81ecdfbb RW |
4105 | if test "x$ac_ct_CC" = x; then |
4106 | CC="" | |
4107 | else | |
4108 | case $cross_compiling:$ac_tool_warned in | |
4109 | yes:) | |
4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4111 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4112 | ac_tool_warned=yes ;; | |
4113 | esac | |
4114 | CC=$ac_ct_CC | |
4115 | fi | |
ce2cded5 L |
4116 | else |
4117 | CC="$ac_cv_prog_CC" | |
4118 | fi | |
d7040cdb | 4119 | |
ce2cded5 | 4120 | if test -z "$CC"; then |
81ecdfbb RW |
4121 | if test -n "$ac_tool_prefix"; then |
4122 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 4123 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4125 | $as_echo_n "checking for $ac_word... " >&6; } | |
4126 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4127 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4128 | else |
ce2cded5 L |
4129 | if test -n "$CC"; then |
4130 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 4131 | else |
ce2cded5 L |
4132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4133 | for as_dir in $PATH | |
4134 | do | |
4135 | IFS=$as_save_IFS | |
4136 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4137 | for ac_exec_ext in '' $ac_executable_extensions; do |
4138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4139 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4141 | break 2 |
4142 | fi | |
4143 | done | |
81ecdfbb RW |
4144 | done |
4145 | IFS=$as_save_IFS | |
d7040cdb | 4146 | |
252b5132 RH |
4147 | fi |
4148 | fi | |
ce2cded5 L |
4149 | CC=$ac_cv_prog_CC |
4150 | if test -n "$CC"; then | |
81ecdfbb RW |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4152 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4153 | else |
81ecdfbb RW |
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4155 | $as_echo "no" >&6; } | |
d7040cdb | 4156 | fi |
f9c19112 | 4157 | |
ce2cded5 | 4158 | |
81ecdfbb | 4159 | fi |
ce2cded5 L |
4160 | fi |
4161 | if test -z "$CC"; then | |
4162 | # Extract the first word of "cc", so it can be a program name with args. | |
4163 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4165 | $as_echo_n "checking for $ac_word... " >&6; } | |
4166 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4167 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4168 | else |
4169 | if test -n "$CC"; then | |
4170 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4171 | else | |
4172 | ac_prog_rejected=no | |
4173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4174 | for as_dir in $PATH | |
4175 | do | |
4176 | IFS=$as_save_IFS | |
4177 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4178 | for ac_exec_ext in '' $ac_executable_extensions; do |
4179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 L |
4180 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4181 | ac_prog_rejected=yes | |
4182 | continue | |
4183 | fi | |
4184 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4186 | break 2 |
4187 | fi | |
4188 | done | |
81ecdfbb RW |
4189 | done |
4190 | IFS=$as_save_IFS | |
ce2cded5 L |
4191 | |
4192 | if test $ac_prog_rejected = yes; then | |
4193 | # We found a bogon in the path, so make sure we never use it. | |
4194 | set dummy $ac_cv_prog_CC | |
4195 | shift | |
4196 | if test $# != 0; then | |
4197 | # We chose a different compiler from the bogus one. | |
4198 | # However, it has the same basename, so the bogon will be chosen | |
4199 | # first if we set CC to just the basename; use the full file name. | |
4200 | shift | |
4201 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4202 | fi | |
4203 | fi | |
4204 | fi | |
4205 | fi | |
4206 | CC=$ac_cv_prog_CC | |
4207 | if test -n "$CC"; then | |
81ecdfbb RW |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4209 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4210 | else |
81ecdfbb RW |
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4212 | $as_echo "no" >&6; } | |
ce2cded5 L |
4213 | fi |
4214 | ||
81ecdfbb | 4215 | |
ce2cded5 L |
4216 | fi |
4217 | if test -z "$CC"; then | |
4218 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4219 | for ac_prog in cl.exe |
ce2cded5 L |
4220 | do |
4221 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4222 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4224 | $as_echo_n "checking for $ac_word... " >&6; } | |
4225 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4226 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4227 | else |
4228 | if test -n "$CC"; then | |
4229 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4230 | else | |
4231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4232 | for as_dir in $PATH | |
4233 | do | |
4234 | IFS=$as_save_IFS | |
4235 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4236 | for ac_exec_ext in '' $ac_executable_extensions; do |
4237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4238 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4240 | break 2 |
4241 | fi | |
4242 | done | |
81ecdfbb RW |
4243 | done |
4244 | IFS=$as_save_IFS | |
ce2cded5 L |
4245 | |
4246 | fi | |
4247 | fi | |
4248 | CC=$ac_cv_prog_CC | |
4249 | if test -n "$CC"; then | |
81ecdfbb RW |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4251 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4252 | else |
81ecdfbb RW |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4254 | $as_echo "no" >&6; } | |
ce2cded5 L |
4255 | fi |
4256 | ||
81ecdfbb | 4257 | |
ce2cded5 | 4258 | test -n "$CC" && break |
d7040cdb SE |
4259 | done |
4260 | fi | |
ce2cded5 L |
4261 | if test -z "$CC"; then |
4262 | ac_ct_CC=$CC | |
81ecdfbb | 4263 | for ac_prog in cl.exe |
d7040cdb SE |
4264 | do |
4265 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4266 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4268 | $as_echo_n "checking for $ac_word... " >&6; } | |
4269 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4270 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4271 | else |
ce2cded5 L |
4272 | if test -n "$ac_ct_CC"; then |
4273 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
4274 | else |
4275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4276 | for as_dir in $PATH | |
4277 | do | |
4278 | IFS=$as_save_IFS | |
4279 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4280 | for ac_exec_ext in '' $ac_executable_extensions; do |
4281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4282 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 4284 | break 2 |
ac48eca1 | 4285 | fi |
d7040cdb | 4286 | done |
81ecdfbb RW |
4287 | done |
4288 | IFS=$as_save_IFS | |
ac48eca1 | 4289 | |
d7040cdb SE |
4290 | fi |
4291 | fi | |
ce2cded5 L |
4292 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4293 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4295 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 4296 | else |
81ecdfbb RW |
4297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4298 | $as_echo "no" >&6; } | |
d7040cdb | 4299 | fi |
ac48eca1 | 4300 | |
81ecdfbb | 4301 | |
ce2cded5 | 4302 | test -n "$ac_ct_CC" && break |
d7040cdb | 4303 | done |
ac48eca1 | 4304 | |
81ecdfbb RW |
4305 | if test "x$ac_ct_CC" = x; then |
4306 | CC="" | |
4307 | else | |
4308 | case $cross_compiling:$ac_tool_warned in | |
4309 | yes:) | |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4311 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4312 | ac_tool_warned=yes ;; | |
4313 | esac | |
4314 | CC=$ac_ct_CC | |
4315 | fi | |
d7040cdb | 4316 | fi |
ac48eca1 | 4317 | |
d7040cdb | 4318 | fi |
ac48eca1 | 4319 | |
ac48eca1 | 4320 | |
81ecdfbb RW |
4321 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4322 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4323 | as_fn_error "no acceptable C compiler found in \$PATH | |
4324 | See \`config.log' for more details." "$LINENO" 5; } | |
6be7c12c | 4325 | |
ce2cded5 | 4326 | # Provide some information about the compiler. |
81ecdfbb RW |
4327 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4328 | set X $ac_compile | |
4329 | ac_compiler=$2 | |
4330 | for ac_option in --version -v -V -qversion; do | |
4331 | { { ac_try="$ac_compiler $ac_option >&5" | |
4332 | case "(($ac_try" in | |
4333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4334 | *) ac_try_echo=$ac_try;; | |
4335 | esac | |
4336 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4337 | $as_echo "$ac_try_echo"; } >&5 | |
4338 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4339 | ac_status=$? |
81ecdfbb RW |
4340 | if test -s conftest.err; then |
4341 | sed '10a\ | |
4342 | ... rest of stderr output deleted ... | |
4343 | 10q' conftest.err >conftest.er1 | |
4344 | cat conftest.er1 >&5 | |
4345 | rm -f conftest.er1 conftest.err | |
4346 | fi | |
4347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4348 | test $ac_status = 0; } | |
4349 | done | |
ac48eca1 | 4350 | |
81ecdfbb RW |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4352 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4353 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4354 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4355 | else |
81ecdfbb | 4356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4357 | /* end confdefs.h. */ |
c8615825 | 4358 | |
ce2cded5 L |
4359 | int |
4360 | main () | |
4361 | { | |
4362 | #ifndef __GNUC__ | |
4363 | choke me | |
4364 | #endif | |
4365 | ||
4366 | ; | |
4367 | return 0; | |
4368 | } | |
4369 | _ACEOF | |
81ecdfbb | 4370 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 4371 | ac_compiler_gnu=yes |
d7040cdb | 4372 | else |
81ecdfbb | 4373 | ac_compiler_gnu=no |
d7040cdb | 4374 | fi |
81ecdfbb | 4375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 4376 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
ac48eca1 | 4377 | |
ce2cded5 | 4378 | fi |
81ecdfbb RW |
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4380 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4381 | if test $ac_compiler_gnu = yes; then | |
4382 | GCC=yes | |
4383 | else | |
4384 | GCC= | |
4385 | fi | |
ce2cded5 L |
4386 | ac_test_CFLAGS=${CFLAGS+set} |
4387 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4389 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4390 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4391 | $as_echo_n "(cached) " >&6 | |
4392 | else | |
4393 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4394 | ac_c_werror_flag=yes | |
4395 | ac_cv_prog_cc_g=no | |
4396 | CFLAGS="-g" | |
4397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 4398 | /* end confdefs.h. */ |
d7040cdb | 4399 | |
ce2cded5 L |
4400 | int |
4401 | main () | |
4402 | { | |
d7040cdb | 4403 | |
ce2cded5 L |
4404 | ; |
4405 | return 0; | |
4406 | } | |
4407 | _ACEOF | |
81ecdfbb | 4408 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
4409 | ac_cv_prog_cc_g=yes |
4410 | else | |
81ecdfbb RW |
4411 | CFLAGS="" |
4412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4413 | /* end confdefs.h. */ | |
4414 | ||
4415 | int | |
4416 | main () | |
4417 | { | |
4418 | ||
4419 | ; | |
4420 | return 0; | |
4421 | } | |
4422 | _ACEOF | |
4423 | if ac_fn_c_try_compile "$LINENO"; then : | |
4424 | ||
4425 | else | |
4426 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4427 | CFLAGS="-g" | |
4428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4429 | /* end confdefs.h. */ | |
d70c5fc7 | 4430 | |
81ecdfbb RW |
4431 | int |
4432 | main () | |
4433 | { | |
4434 | ||
4435 | ; | |
4436 | return 0; | |
4437 | } | |
4438 | _ACEOF | |
4439 | if ac_fn_c_try_compile "$LINENO"; then : | |
4440 | ac_cv_prog_cc_g=yes | |
4441 | fi | |
4442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d70c5fc7 | 4443 | fi |
81ecdfbb | 4444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d70c5fc7 | 4445 | fi |
81ecdfbb RW |
4446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4447 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4448 | fi | |
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4450 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
4451 | if test "$ac_test_CFLAGS" = set; then |
4452 | CFLAGS=$ac_save_CFLAGS | |
4453 | elif test $ac_cv_prog_cc_g = yes; then | |
4454 | if test "$GCC" = yes; then | |
4455 | CFLAGS="-g -O2" | |
4456 | else | |
4457 | CFLAGS="-g" | |
4458 | fi | |
ac48eca1 | 4459 | else |
ce2cded5 L |
4460 | if test "$GCC" = yes; then |
4461 | CFLAGS="-O2" | |
4462 | else | |
4463 | CFLAGS= | |
4464 | fi | |
ac48eca1 | 4465 | fi |
81ecdfbb RW |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4467 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4468 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4469 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4470 | else |
81ecdfbb | 4471 | ac_cv_prog_cc_c89=no |
ce2cded5 | 4472 | ac_save_CC=$CC |
81ecdfbb | 4473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
4474 | /* end confdefs.h. */ |
4475 | #include <stdarg.h> | |
4476 | #include <stdio.h> | |
4477 | #include <sys/types.h> | |
4478 | #include <sys/stat.h> | |
4479 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4480 | struct buf { int x; }; | |
4481 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4482 | static char *e (p, i) | |
4483 | char **p; | |
4484 | int i; | |
4485 | { | |
4486 | return p[i]; | |
4487 | } | |
4488 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4489 | { | |
4490 | char *s; | |
4491 | va_list v; | |
4492 | va_start (v,p); | |
4493 | s = g (p, va_arg (v,int)); | |
4494 | va_end (v); | |
4495 | return s; | |
4496 | } | |
4497 | ||
4498 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4499 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4500 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4501 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
4502 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4503 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4504 | that's true only with -std. */ |
ce2cded5 L |
4505 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4506 | ||
81ecdfbb RW |
4507 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4508 | inside strings and character constants. */ | |
4509 | #define FOO(x) 'x' | |
4510 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4511 | ||
ce2cded5 L |
4512 | int test (int i, double x); |
4513 | struct s1 {int (*f) (int a);}; | |
4514 | struct s2 {int (*f) (double a);}; | |
4515 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4516 | int argc; | |
4517 | char **argv; | |
4518 | int | |
4519 | main () | |
4520 | { | |
4521 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4522 | ; | |
4523 | return 0; | |
4524 | } | |
4525 | _ACEOF | |
81ecdfbb RW |
4526 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4527 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
4528 | do |
4529 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4530 | if ac_fn_c_try_compile "$LINENO"; then : |
4531 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 4532 | fi |
81ecdfbb RW |
4533 | rm -f core conftest.err conftest.$ac_objext |
4534 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 4535 | done |
81ecdfbb | 4536 | rm -f conftest.$ac_ext |
ce2cded5 L |
4537 | CC=$ac_save_CC |
4538 | ||
4539 | fi | |
81ecdfbb RW |
4540 | # AC_CACHE_VAL |
4541 | case "x$ac_cv_prog_cc_c89" in | |
4542 | x) | |
4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4544 | $as_echo "none needed" >&6; } ;; | |
4545 | xno) | |
4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4547 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 4548 | *) |
81ecdfbb RW |
4549 | CC="$CC $ac_cv_prog_cc_c89" |
4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4551 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 4552 | esac |
81ecdfbb | 4553 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 4554 | |
ce2cded5 | 4555 | fi |
d7040cdb | 4556 | |
ce2cded5 L |
4557 | ac_ext=c |
4558 | ac_cpp='$CPP $CPPFLAGS' | |
4559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4562 | |
7357c5b6 AM |
4563 | ac_ext=c |
4564 | ac_cpp='$CPP $CPPFLAGS' | |
4565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4569 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4570 | # On Suns, sometimes $CPP names a directory. |
4571 | if test -n "$CPP" && test -d "$CPP"; then | |
4572 | CPP= | |
4573 | fi | |
4574 | if test -z "$CPP"; then | |
81ecdfbb RW |
4575 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4576 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
4577 | else |
4578 | # Double quotes because CPP needs to be expanded | |
4579 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4580 | do | |
4581 | ac_preproc_ok=false | |
4582 | for ac_c_preproc_warn_flag in '' yes | |
4583 | do | |
4584 | # Use a header file that comes with gcc, so configuring glibc | |
4585 | # with a fresh cross-compiler works. | |
4586 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4587 | # <limits.h> exists even on freestanding compilers. | |
4588 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4589 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4591 | /* end confdefs.h. */ |
4592 | #ifdef __STDC__ | |
4593 | # include <limits.h> | |
4594 | #else | |
4595 | # include <assert.h> | |
4596 | #endif | |
4597 | Syntax error | |
4598 | _ACEOF | |
81ecdfbb | 4599 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4600 | |
81ecdfbb | 4601 | else |
7357c5b6 AM |
4602 | # Broken: fails on valid input. |
4603 | continue | |
4604 | fi | |
4605 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4606 | |
81ecdfbb | 4607 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4608 | # can be detected and how. |
81ecdfbb | 4609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4610 | /* end confdefs.h. */ |
4611 | #include <ac_nonexistent.h> | |
4612 | _ACEOF | |
81ecdfbb | 4613 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4614 | # Broken: success on invalid input. |
4615 | continue | |
4616 | else | |
7357c5b6 AM |
4617 | # Passes both tests. |
4618 | ac_preproc_ok=: | |
4619 | break | |
4620 | fi | |
4621 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4622 | |
7357c5b6 AM |
4623 | done |
4624 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4625 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 4626 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4627 | break |
4628 | fi | |
d7040cdb | 4629 | |
7357c5b6 AM |
4630 | done |
4631 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4632 | |
7357c5b6 AM |
4633 | fi |
4634 | CPP=$ac_cv_prog_CPP | |
4635 | else | |
4636 | ac_cv_prog_CPP=$CPP | |
4637 | fi | |
81ecdfbb RW |
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4639 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4640 | ac_preproc_ok=false |
4641 | for ac_c_preproc_warn_flag in '' yes | |
4642 | do | |
4643 | # Use a header file that comes with gcc, so configuring glibc | |
4644 | # with a fresh cross-compiler works. | |
4645 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4646 | # <limits.h> exists even on freestanding compilers. | |
4647 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4648 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4650 | /* end confdefs.h. */ |
4651 | #ifdef __STDC__ | |
4652 | # include <limits.h> | |
4653 | #else | |
4654 | # include <assert.h> | |
4655 | #endif | |
4656 | Syntax error | |
4657 | _ACEOF | |
81ecdfbb | 4658 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4659 | |
81ecdfbb | 4660 | else |
7357c5b6 AM |
4661 | # Broken: fails on valid input. |
4662 | continue | |
4663 | fi | |
4664 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4665 | |
81ecdfbb | 4666 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4667 | # can be detected and how. |
81ecdfbb | 4668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4669 | /* end confdefs.h. */ |
4670 | #include <ac_nonexistent.h> | |
4671 | _ACEOF | |
81ecdfbb | 4672 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4673 | # Broken: success on invalid input. |
4674 | continue | |
4675 | else | |
7357c5b6 AM |
4676 | # Passes both tests. |
4677 | ac_preproc_ok=: | |
4678 | break | |
4679 | fi | |
4680 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4681 | |
7357c5b6 AM |
4682 | done |
4683 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4684 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
4685 | if $ac_preproc_ok; then : |
4686 | ||
7357c5b6 | 4687 | else |
81ecdfbb RW |
4688 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4689 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4690 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4691 | See \`config.log' for more details." "$LINENO" 5; } | |
7357c5b6 | 4692 | fi |
ac48eca1 | 4693 | |
7357c5b6 AM |
4694 | ac_ext=c |
4695 | ac_cpp='$CPP $CPPFLAGS' | |
4696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4699 | |
ac48eca1 | 4700 | |
81ecdfbb RW |
4701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4702 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4703 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4704 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4705 | else |
81ecdfbb RW |
4706 | if test -z "$GREP"; then |
4707 | ac_path_GREP_found=false | |
4708 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4710 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4711 | do | |
4712 | IFS=$as_save_IFS | |
4713 | test -z "$as_dir" && as_dir=. | |
4714 | for ac_prog in grep ggrep; do | |
4715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4716 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4717 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4718 | # Check for GNU ac_path_GREP and select it if it is found. | |
4719 | # Check for GNU $ac_path_GREP | |
4720 | case `"$ac_path_GREP" --version 2>&1` in | |
4721 | *GNU*) | |
4722 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4723 | *) | |
4724 | ac_count=0 | |
4725 | $as_echo_n 0123456789 >"conftest.in" | |
4726 | while : | |
4727 | do | |
4728 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4729 | mv "conftest.tmp" "conftest.in" | |
4730 | cp "conftest.in" "conftest.nl" | |
4731 | $as_echo 'GREP' >> "conftest.nl" | |
4732 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4733 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4734 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4735 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4736 | # Best one so far, save it but keep looking for a better one | |
4737 | ac_cv_path_GREP="$ac_path_GREP" | |
4738 | ac_path_GREP_max=$ac_count | |
7357c5b6 | 4739 | fi |
81ecdfbb RW |
4740 | # 10*(2^10) chars as input seems more than enough |
4741 | test $ac_count -gt 10 && break | |
4742 | done | |
4743 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4744 | esac | |
4745 | ||
4746 | $ac_path_GREP_found && break 3 | |
4747 | done | |
4748 | done | |
4749 | done | |
4750 | IFS=$as_save_IFS | |
4751 | if test -z "$ac_cv_path_GREP"; then | |
4752 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4753 | fi | |
4754 | else | |
4755 | ac_cv_path_GREP=$GREP | |
7357c5b6 | 4756 | fi |
81ecdfbb RW |
4757 | |
4758 | fi | |
4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4760 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4761 | GREP="$ac_cv_path_GREP" | |
ac48eca1 | 4762 | |
d7040cdb | 4763 | |
81ecdfbb RW |
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4765 | $as_echo_n "checking for egrep... " >&6; } | |
4766 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4767 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4768 | else |
81ecdfbb RW |
4769 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4770 | then ac_cv_path_EGREP="$GREP -E" | |
4771 | else | |
4772 | if test -z "$EGREP"; then | |
4773 | ac_path_EGREP_found=false | |
4774 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4776 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4777 | do | |
4778 | IFS=$as_save_IFS | |
4779 | test -z "$as_dir" && as_dir=. | |
4780 | for ac_prog in egrep; do | |
4781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4782 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4783 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4784 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4785 | # Check for GNU $ac_path_EGREP | |
4786 | case `"$ac_path_EGREP" --version 2>&1` in | |
4787 | *GNU*) | |
4788 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4789 | *) | |
4790 | ac_count=0 | |
4791 | $as_echo_n 0123456789 >"conftest.in" | |
4792 | while : | |
4793 | do | |
4794 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4795 | mv "conftest.tmp" "conftest.in" | |
4796 | cp "conftest.in" "conftest.nl" | |
4797 | $as_echo 'EGREP' >> "conftest.nl" | |
4798 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4799 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4800 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4801 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4802 | # Best one so far, save it but keep looking for a better one | |
4803 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4804 | ac_path_EGREP_max=$ac_count | |
4805 | fi | |
4806 | # 10*(2^10) chars as input seems more than enough | |
4807 | test $ac_count -gt 10 && break | |
4808 | done | |
4809 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4810 | esac | |
4811 | ||
4812 | $ac_path_EGREP_found && break 3 | |
4813 | done | |
4814 | done | |
4815 | done | |
4816 | IFS=$as_save_IFS | |
4817 | if test -z "$ac_cv_path_EGREP"; then | |
4818 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4819 | fi | |
4820 | else | |
4821 | ac_cv_path_EGREP=$EGREP | |
4822 | fi | |
4823 | ||
4824 | fi | |
4825 | fi | |
4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4827 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4828 | EGREP="$ac_cv_path_EGREP" | |
4829 | ||
4830 | ||
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4832 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4833 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4834 | $as_echo_n "(cached) " >&6 | |
4835 | else | |
4836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7357c5b6 AM |
4837 | /* end confdefs.h. */ |
4838 | #include <stdlib.h> | |
4839 | #include <stdarg.h> | |
4840 | #include <string.h> | |
4841 | #include <float.h> | |
d7040cdb | 4842 | |
7357c5b6 AM |
4843 | int |
4844 | main () | |
4845 | { | |
d7040cdb | 4846 | |
7357c5b6 AM |
4847 | ; |
4848 | return 0; | |
4849 | } | |
4850 | _ACEOF | |
81ecdfbb | 4851 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4852 | ac_cv_header_stdc=yes |
4853 | else | |
81ecdfbb | 4854 | ac_cv_header_stdc=no |
7357c5b6 | 4855 | fi |
81ecdfbb | 4856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4857 | |
7357c5b6 AM |
4858 | if test $ac_cv_header_stdc = yes; then |
4859 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4861 | /* end confdefs.h. */ |
4862 | #include <string.h> | |
d7040cdb | 4863 | |
7357c5b6 AM |
4864 | _ACEOF |
4865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4866 | $EGREP "memchr" >/dev/null 2>&1; then : |
4867 | ||
ce2cded5 | 4868 | else |
7357c5b6 AM |
4869 | ac_cv_header_stdc=no |
4870 | fi | |
4871 | rm -f conftest* | |
d7040cdb | 4872 | |
7357c5b6 | 4873 | fi |
d7040cdb | 4874 | |
7357c5b6 AM |
4875 | if test $ac_cv_header_stdc = yes; then |
4876 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4878 | /* end confdefs.h. */ |
4879 | #include <stdlib.h> | |
ac48eca1 | 4880 | |
7357c5b6 AM |
4881 | _ACEOF |
4882 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4883 | $EGREP "free" >/dev/null 2>&1; then : |
4884 | ||
7357c5b6 AM |
4885 | else |
4886 | ac_cv_header_stdc=no | |
4887 | fi | |
4888 | rm -f conftest* | |
d7040cdb | 4889 | |
7357c5b6 | 4890 | fi |
d7040cdb | 4891 | |
7357c5b6 AM |
4892 | if test $ac_cv_header_stdc = yes; then |
4893 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4894 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4895 | : |
4896 | else | |
81ecdfbb | 4897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4898 | /* end confdefs.h. */ |
4899 | #include <ctype.h> | |
81ecdfbb | 4900 | #include <stdlib.h> |
7357c5b6 AM |
4901 | #if ((' ' & 0x0FF) == 0x020) |
4902 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4903 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4904 | #else | |
4905 | # define ISLOWER(c) \ | |
4906 | (('a' <= (c) && (c) <= 'i') \ | |
4907 | || ('j' <= (c) && (c) <= 'r') \ | |
4908 | || ('s' <= (c) && (c) <= 'z')) | |
4909 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4910 | #endif | |
d7040cdb | 4911 | |
7357c5b6 AM |
4912 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4913 | int | |
4914 | main () | |
4915 | { | |
4916 | int i; | |
4917 | for (i = 0; i < 256; i++) | |
4918 | if (XOR (islower (i), ISLOWER (i)) | |
4919 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4920 | return 2; |
4921 | return 0; | |
7357c5b6 AM |
4922 | } |
4923 | _ACEOF | |
81ecdfbb | 4924 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4925 | |
81ecdfbb RW |
4926 | else |
4927 | ac_cv_header_stdc=no | |
7357c5b6 | 4928 | fi |
81ecdfbb RW |
4929 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4930 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4931 | fi |
81ecdfbb | 4932 | |
7357c5b6 AM |
4933 | fi |
4934 | fi | |
81ecdfbb RW |
4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4936 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4937 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4938 | |
81ecdfbb | 4939 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4940 | |
7357c5b6 | 4941 | fi |
d7040cdb | 4942 | |
7357c5b6 | 4943 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4944 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4945 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4946 | do : |
4947 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4948 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4949 | " | |
4950 | eval as_val=\$$as_ac_Header | |
4951 | if test "x$as_val" = x""yes; then : | |
7357c5b6 | 4952 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4953 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4954 | _ACEOF |
ce2cded5 | 4955 | |
7357c5b6 | 4956 | fi |
ce2cded5 | 4957 | |
7357c5b6 | 4958 | done |
ce2cded5 L |
4959 | |
4960 | ||
4961 | ||
81ecdfbb RW |
4962 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4963 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
7357c5b6 AM |
4964 | MINIX=yes |
4965 | else | |
4966 | MINIX= | |
4967 | fi | |
d7040cdb SE |
4968 | |
4969 | ||
7357c5b6 | 4970 | if test "$MINIX" = yes; then |
d7040cdb | 4971 | |
81ecdfbb | 4972 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb SE |
4973 | |
4974 | ||
81ecdfbb | 4975 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4976 | |
4977 | ||
81ecdfbb | 4978 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4979 | |
7357c5b6 | 4980 | fi |
d7040cdb SE |
4981 | |
4982 | ||
81ecdfbb RW |
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4984 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4985 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4986 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4987 | else |
81ecdfbb | 4988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4989 | /* end confdefs.h. */ |
ac48eca1 | 4990 | |
7357c5b6 AM |
4991 | # define __EXTENSIONS__ 1 |
4992 | $ac_includes_default | |
4993 | int | |
4994 | main () | |
4995 | { | |
13b2be9c | 4996 | |
7357c5b6 AM |
4997 | ; |
4998 | return 0; | |
4999 | } | |
5000 | _ACEOF | |
81ecdfbb | 5001 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 5002 | ac_cv_safe_to_define___extensions__=yes |
d6d788bd | 5003 | else |
81ecdfbb | 5004 | ac_cv_safe_to_define___extensions__=no |
d6d788bd | 5005 | fi |
81ecdfbb | 5006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 5007 | fi |
81ecdfbb RW |
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
5009 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 5010 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 5011 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d6d788bd | 5012 | |
81ecdfbb | 5013 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d6d788bd | 5014 | |
81ecdfbb | 5015 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
252b5132 | 5016 | |
81ecdfbb | 5017 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
252b5132 | 5018 | |
81ecdfbb | 5019 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
d6d788bd | 5020 | |
a74801ba | 5021 | |
d053aef8 | 5022 | |
81ecdfbb RW |
5023 | |
5024 | # Check whether --enable-largefile was given. | |
5025 | if test "${enable_largefile+set}" = set; then : | |
5026 | enableval=$enable_largefile; | |
5027 | fi | |
5028 | ||
d053aef8 JK |
5029 | if test "$enable_largefile" != no; then |
5030 | ||
81ecdfbb RW |
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
5032 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
5033 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
5034 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5035 | else |
5036 | ac_cv_sys_largefile_CC=no | |
5037 | if test "$GCC" != yes; then | |
5038 | ac_save_CC=$CC | |
5039 | while :; do | |
81ecdfbb RW |
5040 | # IRIX 6.2 and later do not support large files by default, |
5041 | # so use the C compiler's -n32 option if that helps. | |
5042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5043 | /* end confdefs.h. */ |
5044 | #include <sys/types.h> | |
5045 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5046 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5047 | since some C++ compilers masquerading as C compilers | |
5048 | incorrectly reject 9223372036854775807. */ | |
5049 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5050 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5051 | && LARGE_OFF_T % 2147483647 == 1) | |
5052 | ? 1 : -1]; | |
5053 | int | |
5054 | main () | |
5055 | { | |
5056 | ||
5057 | ; | |
5058 | return 0; | |
5059 | } | |
5060 | _ACEOF | |
81ecdfbb | 5061 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5062 | break |
d053aef8 | 5063 | fi |
81ecdfbb RW |
5064 | rm -f core conftest.err conftest.$ac_objext |
5065 | CC="$CC -n32" | |
5066 | if ac_fn_c_try_compile "$LINENO"; then : | |
d053aef8 | 5067 | ac_cv_sys_largefile_CC=' -n32'; break |
d053aef8 | 5068 | fi |
81ecdfbb | 5069 | rm -f core conftest.err conftest.$ac_objext |
d053aef8 JK |
5070 | break |
5071 | done | |
5072 | CC=$ac_save_CC | |
5073 | rm -f conftest.$ac_ext | |
5074 | fi | |
5075 | fi | |
81ecdfbb RW |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
5077 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
d053aef8 JK |
5078 | if test "$ac_cv_sys_largefile_CC" != no; then |
5079 | CC=$CC$ac_cv_sys_largefile_CC | |
5080 | fi | |
5081 | ||
81ecdfbb RW |
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5083 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
5084 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
5085 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5086 | else |
5087 | while :; do | |
81ecdfbb | 5088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5089 | /* end confdefs.h. */ |
5090 | #include <sys/types.h> | |
5091 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5092 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5093 | since some C++ compilers masquerading as C compilers | |
5094 | incorrectly reject 9223372036854775807. */ | |
5095 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5096 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5097 | && LARGE_OFF_T % 2147483647 == 1) | |
5098 | ? 1 : -1]; | |
5099 | int | |
5100 | main () | |
5101 | { | |
5102 | ||
5103 | ; | |
5104 | return 0; | |
5105 | } | |
5106 | _ACEOF | |
81ecdfbb RW |
5107 | if ac_fn_c_try_compile "$LINENO"; then : |
5108 | ac_cv_sys_file_offset_bits=no; break | |
d053aef8 | 5109 | fi |
81ecdfbb RW |
5110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5112 | /* end confdefs.h. */ |
5113 | #define _FILE_OFFSET_BITS 64 | |
5114 | #include <sys/types.h> | |
5115 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5116 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5117 | since some C++ compilers masquerading as C compilers | |
5118 | incorrectly reject 9223372036854775807. */ | |
5119 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5120 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5121 | && LARGE_OFF_T % 2147483647 == 1) | |
5122 | ? 1 : -1]; | |
5123 | int | |
5124 | main () | |
5125 | { | |
5126 | ||
5127 | ; | |
5128 | return 0; | |
5129 | } | |
5130 | _ACEOF | |
81ecdfbb | 5131 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5132 | ac_cv_sys_file_offset_bits=64; break |
d053aef8 | 5133 | fi |
81ecdfbb RW |
5134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5135 | ac_cv_sys_file_offset_bits=unknown | |
d053aef8 JK |
5136 | break |
5137 | done | |
5138 | fi | |
81ecdfbb RW |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
5140 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
5141 | case $ac_cv_sys_file_offset_bits in #( | |
5142 | no | unknown) ;; | |
5143 | *) | |
d053aef8 JK |
5144 | cat >>confdefs.h <<_ACEOF |
5145 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5146 | _ACEOF | |
81ecdfbb RW |
5147 | ;; |
5148 | esac | |
5149 | rm -rf conftest* | |
5150 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
5152 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
5153 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
5154 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5155 | else |
5156 | while :; do | |
81ecdfbb | 5157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5158 | /* end confdefs.h. */ |
5159 | #include <sys/types.h> | |
5160 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5161 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5162 | since some C++ compilers masquerading as C compilers | |
5163 | incorrectly reject 9223372036854775807. */ | |
5164 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5165 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5166 | && LARGE_OFF_T % 2147483647 == 1) | |
5167 | ? 1 : -1]; | |
5168 | int | |
5169 | main () | |
5170 | { | |
5171 | ||
5172 | ; | |
5173 | return 0; | |
5174 | } | |
5175 | _ACEOF | |
81ecdfbb RW |
5176 | if ac_fn_c_try_compile "$LINENO"; then : |
5177 | ac_cv_sys_large_files=no; break | |
d053aef8 | 5178 | fi |
81ecdfbb RW |
5179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5181 | /* end confdefs.h. */ |
5182 | #define _LARGE_FILES 1 | |
5183 | #include <sys/types.h> | |
5184 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5185 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5186 | since some C++ compilers masquerading as C compilers | |
5187 | incorrectly reject 9223372036854775807. */ | |
5188 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5189 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5190 | && LARGE_OFF_T % 2147483647 == 1) | |
5191 | ? 1 : -1]; | |
5192 | int | |
5193 | main () | |
5194 | { | |
5195 | ||
5196 | ; | |
5197 | return 0; | |
5198 | } | |
5199 | _ACEOF | |
81ecdfbb | 5200 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5201 | ac_cv_sys_large_files=1; break |
d053aef8 | 5202 | fi |
81ecdfbb RW |
5203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5204 | ac_cv_sys_large_files=unknown | |
d053aef8 JK |
5205 | break |
5206 | done | |
5207 | fi | |
81ecdfbb RW |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
5209 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5210 | case $ac_cv_sys_large_files in #( | |
5211 | no | unknown) ;; | |
5212 | *) | |
d053aef8 JK |
5213 | cat >>confdefs.h <<_ACEOF |
5214 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5215 | _ACEOF | |
81ecdfbb RW |
5216 | ;; |
5217 | esac | |
5218 | rm -rf conftest* | |
5219 | fi | |
d053aef8 JK |
5220 | fi |
5221 | ||
a74801ba | 5222 | |
718a6fd8 SE |
5223 | case `pwd` in |
5224 | *\ * | *\ *) | |
81ecdfbb RW |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
5226 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
718a6fd8 | 5227 | esac |
13b2be9c | 5228 | |
252b5132 | 5229 | |
7357c5b6 | 5230 | |
718a6fd8 SE |
5231 | macro_version='2.2.6' |
5232 | macro_revision='1.3012' | |
7357c5b6 AM |
5233 | |
5234 | ||
5235 | ||
5236 | ||
5237 | ||
5238 | ||
7357c5b6 AM |
5239 | |
5240 | ||
5241 | ||
5242 | ||
5243 | ||
5244 | ||
5245 | ||
718a6fd8 | 5246 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 5247 | |
81ecdfbb RW |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5249 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5250 | if test "${ac_cv_path_SED+set}" = set; then : | |
5251 | $as_echo_n "(cached) " >&6 | |
5252 | else | |
5253 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5254 | for ac_i in 1 2 3 4 5 6 7; do | |
5255 | ac_script="$ac_script$as_nl$ac_script" | |
5256 | done | |
5257 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5258 | { ac_script=; unset ac_script;} | |
5259 | if test -z "$SED"; then | |
5260 | ac_path_SED_found=false | |
5261 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5263 | for as_dir in $PATH |
5264 | do | |
5265 | IFS=$as_save_IFS | |
5266 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5267 | for ac_prog in sed gsed; do |
7357c5b6 | 5268 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5269 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5270 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5271 | # Check for GNU ac_path_SED and select it if it is found. | |
5272 | # Check for GNU $ac_path_SED | |
5273 | case `"$ac_path_SED" --version 2>&1` in | |
5274 | *GNU*) | |
5275 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5276 | *) | |
5277 | ac_count=0 | |
5278 | $as_echo_n 0123456789 >"conftest.in" | |
5279 | while : | |
5280 | do | |
5281 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5282 | mv "conftest.tmp" "conftest.in" | |
5283 | cp "conftest.in" "conftest.nl" | |
5284 | $as_echo '' >> "conftest.nl" | |
5285 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5286 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5287 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5288 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5289 | # Best one so far, save it but keep looking for a better one | |
5290 | ac_cv_path_SED="$ac_path_SED" | |
5291 | ac_path_SED_max=$ac_count | |
5292 | fi | |
5293 | # 10*(2^10) chars as input seems more than enough | |
5294 | test $ac_count -gt 10 && break | |
5295 | done | |
5296 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5297 | esac | |
5298 | ||
5299 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5300 | done |
5301 | done | |
81ecdfbb | 5302 | done |
7357c5b6 | 5303 | IFS=$as_save_IFS |
81ecdfbb RW |
5304 | if test -z "$ac_cv_path_SED"; then |
5305 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
7357c5b6 | 5306 | fi |
81ecdfbb RW |
5307 | else |
5308 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
5309 | fi |
5310 | ||
81ecdfbb RW |
5311 | fi |
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5313 | $as_echo "$ac_cv_path_SED" >&6; } | |
5314 | SED="$ac_cv_path_SED" | |
5315 | rm -f conftest.sed | |
7357c5b6 AM |
5316 | |
5317 | test -z "$SED" && SED=sed | |
5318 | Xsed="$SED -e 1s/^X//" | |
5319 | ||
5320 | ||
5321 | ||
5322 | ||
5323 | ||
5324 | ||
5325 | ||
5326 | ||
5327 | ||
5328 | ||
5329 | ||
81ecdfbb RW |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5331 | $as_echo_n "checking for fgrep... " >&6; } | |
5332 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5333 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5334 | else |
81ecdfbb RW |
5335 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5336 | then ac_cv_path_FGREP="$GREP -F" | |
5337 | else | |
5338 | if test -z "$FGREP"; then | |
5339 | ac_path_FGREP_found=false | |
5340 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5342 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5343 | do | |
5344 | IFS=$as_save_IFS | |
5345 | test -z "$as_dir" && as_dir=. | |
5346 | for ac_prog in fgrep; do | |
5347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5348 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5349 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5350 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5351 | # Check for GNU $ac_path_FGREP | |
5352 | case `"$ac_path_FGREP" --version 2>&1` in | |
5353 | *GNU*) | |
5354 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5355 | *) | |
5356 | ac_count=0 | |
5357 | $as_echo_n 0123456789 >"conftest.in" | |
5358 | while : | |
5359 | do | |
5360 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5361 | mv "conftest.tmp" "conftest.in" | |
5362 | cp "conftest.in" "conftest.nl" | |
5363 | $as_echo 'FGREP' >> "conftest.nl" | |
5364 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5365 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5366 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5367 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5368 | # Best one so far, save it but keep looking for a better one | |
5369 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5370 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5371 | fi |
81ecdfbb RW |
5372 | # 10*(2^10) chars as input seems more than enough |
5373 | test $ac_count -gt 10 && break | |
5374 | done | |
5375 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5376 | esac | |
5377 | ||
5378 | $ac_path_FGREP_found && break 3 | |
5379 | done | |
5380 | done | |
5381 | done | |
5382 | IFS=$as_save_IFS | |
5383 | if test -z "$ac_cv_path_FGREP"; then | |
5384 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5385 | fi | |
5386 | else | |
5387 | ac_cv_path_FGREP=$FGREP | |
7357c5b6 | 5388 | fi |
81ecdfbb RW |
5389 | |
5390 | fi | |
5391 | fi | |
5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5393 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5394 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5395 | |
5396 | ||
5397 | test -z "$GREP" && GREP=grep | |
5398 | ||
5399 | ||
5400 | ||
5401 | ||
5402 | ||
5403 | ||
5404 | ||
5405 | ||
5406 | ||
5407 | ||
5408 | ||
5409 | ||
5410 | ||
5411 | ||
5412 | ||
5413 | ||
5414 | ||
5415 | ||
5416 | ||
81ecdfbb RW |
5417 | # Check whether --with-gnu-ld was given. |
5418 | if test "${with_gnu_ld+set}" = set; then : | |
5419 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5420 | else |
5421 | with_gnu_ld=no | |
81ecdfbb RW |
5422 | fi |
5423 | ||
ce2cded5 L |
5424 | ac_prog=ld |
5425 | if test "$GCC" = yes; then | |
5426 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5428 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
ce2cded5 L |
5429 | case $host in |
5430 | *-*-mingw*) | |
5431 | # gcc leaves a trailing carriage return which upsets mingw | |
5432 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5433 | *) | |
5434 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5435 | esac | |
5436 | case $ac_prog in | |
5437 | # Accept absolute paths. | |
5438 | [\\/]* | ?:[\\/]*) | |
5439 | re_direlt='/[^/][^/]*/\.\./' | |
5440 | # Canonicalize the pathname of ld | |
5441 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5442 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5443 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5444 | done | |
5445 | test -z "$LD" && LD="$ac_prog" | |
5446 | ;; | |
5447 | "") | |
5448 | # If it fails, then pretend we aren't using GCC. | |
5449 | ac_prog=ld | |
5450 | ;; | |
5451 | *) | |
5452 | # If it is relative, then search for the first ld in PATH. | |
5453 | with_gnu_ld=unknown | |
5454 | ;; | |
5455 | esac | |
5456 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5458 | $as_echo_n "checking for GNU ld... " >&6; } | |
ce2cded5 | 5459 | else |
81ecdfbb RW |
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5461 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5462 | fi |
81ecdfbb RW |
5463 | if test "${lt_cv_path_LD+set}" = set; then : |
5464 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5465 | else |
5466 | if test -z "$LD"; then | |
5467 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5468 | for ac_dir in $PATH; do | |
5469 | IFS="$lt_save_ifs" | |
5470 | test -z "$ac_dir" && ac_dir=. | |
5471 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5472 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5473 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5474 | # but apparently some variants of GNU ld only accept -v. | |
5475 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5476 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5477 | *GNU* | *'with BFD'*) | |
5478 | test "$with_gnu_ld" != no && break | |
5479 | ;; | |
5480 | *) | |
5481 | test "$with_gnu_ld" != yes && break | |
5482 | ;; | |
5483 | esac | |
5484 | fi | |
5485 | done | |
5486 | IFS="$lt_save_ifs" | |
5487 | else | |
5488 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5489 | fi | |
5490 | fi | |
5491 | ||
5492 | LD="$lt_cv_path_LD" | |
5493 | if test -n "$LD"; then | |
81ecdfbb RW |
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5495 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5496 | else |
81ecdfbb RW |
5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5498 | $as_echo "no" >&6; } | |
ce2cded5 | 5499 | fi |
81ecdfbb RW |
5500 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5502 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5503 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5504 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5505 | else |
5506 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5507 | case `$LD -v 2>&1 </dev/null` in | |
5508 | *GNU* | *'with BFD'*) | |
5509 | lt_cv_prog_gnu_ld=yes | |
5510 | ;; | |
5511 | *) | |
5512 | lt_cv_prog_gnu_ld=no | |
5513 | ;; | |
5514 | esac | |
5515 | fi | |
81ecdfbb RW |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5517 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
ce2cded5 L |
5518 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5519 | ||
5520 | ||
5521 | ||
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
81ecdfbb RW |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5529 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5530 | if test "${lt_cv_path_NM+set}" = set; then : | |
5531 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5532 | else |
5533 | if test -n "$NM"; then | |
5534 | # Let the user override the test. | |
5535 | lt_cv_path_NM="$NM" | |
5536 | else | |
5537 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5538 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5539 | lt_nm_to_check="$lt_nm_to_check nm" | |
5540 | fi | |
5541 | for lt_tmp_nm in $lt_nm_to_check; do | |
5542 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5543 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5544 | IFS="$lt_save_ifs" | |
5545 | test -z "$ac_dir" && ac_dir=. | |
5546 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5547 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5548 | # Check to see if the nm accepts a BSD-compat flag. | |
5549 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5550 | # nm: unknown option "B" ignored | |
5551 | # Tru64's nm complains that /dev/null is an invalid object file | |
5552 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5553 | */dev/null* | *'Invalid file or object type'*) | |
5554 | lt_cv_path_NM="$tmp_nm -B" | |
5555 | break | |
5556 | ;; | |
5557 | *) | |
5558 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5559 | */dev/null*) | |
5560 | lt_cv_path_NM="$tmp_nm -p" | |
5561 | break | |
5562 | ;; | |
5563 | *) | |
5564 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5565 | continue # so that we can try to find one that supports BSD flags | |
5566 | ;; | |
5567 | esac | |
5568 | ;; | |
5569 | esac | |
5570 | fi | |
5571 | done | |
5572 | IFS="$lt_save_ifs" | |
5573 | done | |
5574 | : ${lt_cv_path_NM=no} | |
5575 | fi | |
5576 | fi | |
81ecdfbb RW |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5578 | $as_echo "$lt_cv_path_NM" >&6; } | |
ce2cded5 L |
5579 | if test "$lt_cv_path_NM" != "no"; then |
5580 | NM="$lt_cv_path_NM" | |
5581 | else | |
5582 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5583 | if test -n "$ac_tool_prefix"; then | |
5584 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5585 | do | |
5586 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5587 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5589 | $as_echo_n "checking for $ac_word... " >&6; } | |
5590 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5591 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5592 | else |
ce2cded5 L |
5593 | if test -n "$DUMPBIN"; then |
5594 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5595 | else |
5596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5597 | for as_dir in $PATH | |
5598 | do | |
5599 | IFS=$as_save_IFS | |
5600 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5601 | for ac_exec_ext in '' $ac_executable_extensions; do |
5602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 5603 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5605 | break 2 |
d70c5fc7 | 5606 | fi |
d7040cdb | 5607 | done |
81ecdfbb RW |
5608 | done |
5609 | IFS=$as_save_IFS | |
d70c5fc7 | 5610 | |
d7040cdb SE |
5611 | fi |
5612 | fi | |
ce2cded5 L |
5613 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5614 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5616 | $as_echo "$DUMPBIN" >&6; } | |
bedf545c | 5617 | else |
81ecdfbb RW |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5619 | $as_echo "no" >&6; } | |
d7040cdb | 5620 | fi |
13b2be9c | 5621 | |
81ecdfbb | 5622 | |
ce2cded5 L |
5623 | test -n "$DUMPBIN" && break |
5624 | done | |
5625 | fi | |
5626 | if test -z "$DUMPBIN"; then | |
5627 | ac_ct_DUMPBIN=$DUMPBIN | |
5628 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5629 | do | |
5630 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5631 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5633 | $as_echo_n "checking for $ac_word... " >&6; } | |
5634 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5635 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5636 | else |
ce2cded5 L |
5637 | if test -n "$ac_ct_DUMPBIN"; then |
5638 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5639 | else | |
5640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5641 | for as_dir in $PATH | |
5642 | do | |
5643 | IFS=$as_save_IFS | |
5644 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5645 | for ac_exec_ext in '' $ac_executable_extensions; do |
5646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 5647 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5649 | break 2 |
5650 | fi | |
5651 | done | |
81ecdfbb RW |
5652 | done |
5653 | IFS=$as_save_IFS | |
ce2cded5 L |
5654 | |
5655 | fi | |
5656 | fi | |
5657 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5658 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5660 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 5661 | else |
81ecdfbb RW |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5663 | $as_echo "no" >&6; } | |
d7040cdb SE |
5664 | fi |
5665 | ||
81ecdfbb | 5666 | |
ce2cded5 L |
5667 | test -n "$ac_ct_DUMPBIN" && break |
5668 | done | |
13b2be9c | 5669 | |
81ecdfbb RW |
5670 | if test "x$ac_ct_DUMPBIN" = x; then |
5671 | DUMPBIN=":" | |
5672 | else | |
5673 | case $cross_compiling:$ac_tool_warned in | |
5674 | yes:) | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5676 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5677 | ac_tool_warned=yes ;; | |
5678 | esac | |
5679 | DUMPBIN=$ac_ct_DUMPBIN | |
5680 | fi | |
ce2cded5 | 5681 | fi |
13b2be9c | 5682 | |
bedf545c | 5683 | |
ce2cded5 L |
5684 | if test "$DUMPBIN" != ":"; then |
5685 | NM="$DUMPBIN" | |
5686 | fi | |
5687 | fi | |
5688 | test -z "$NM" && NM=nm | |
6840198f | 5689 | |
13b2be9c | 5690 | |
ac48eca1 | 5691 | |
d7040cdb | 5692 | |
ce2cded5 L |
5693 | |
5694 | ||
81ecdfbb RW |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5696 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5697 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5698 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5699 | else |
5700 | lt_cv_nm_interface="BSD nm" | |
5701 | echo "int some_variable = 0;" > conftest.$ac_ext | |
81ecdfbb | 5702 | (eval echo "\"\$as_me:5702: $ac_compile\"" >&5) |
ce2cded5 L |
5703 | (eval "$ac_compile" 2>conftest.err) |
5704 | cat conftest.err >&5 | |
81ecdfbb | 5705 | (eval echo "\"\$as_me:5705: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
5706 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5707 | cat conftest.err >&5 | |
81ecdfbb | 5708 | (eval echo "\"\$as_me:5708: output\"" >&5) |
ce2cded5 L |
5709 | cat conftest.out >&5 |
5710 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5711 | lt_cv_nm_interface="MS dumpbin" | |
5712 | fi | |
5713 | rm -f conftest* | |
5714 | fi | |
81ecdfbb RW |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5716 | $as_echo "$lt_cv_nm_interface" >&6; } | |
ce2cded5 | 5717 | |
81ecdfbb RW |
5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5719 | $as_echo_n "checking whether ln -s works... " >&6; } | |
ce2cded5 L |
5720 | LN_S=$as_ln_s |
5721 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5723 | $as_echo "yes" >&6; } | |
ce2cded5 | 5724 | else |
81ecdfbb RW |
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5726 | $as_echo "no, using $LN_S" >&6; } | |
ce2cded5 L |
5727 | fi |
5728 | ||
5729 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5731 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5732 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5733 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5734 | else |
5735 | i=0 | |
5736 | teststring="ABCD" | |
5737 | ||
5738 | case $build_os in | |
5739 | msdosdjgpp*) | |
5740 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5741 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5742 | # during glob expansion). Even if it were fixed, the result of this | |
5743 | # check would be larger than it should be. | |
5744 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5745 | ;; | |
5746 | ||
5747 | gnu*) | |
5748 | # Under GNU Hurd, this test is not required because there is | |
5749 | # no limit to the length of command line arguments. | |
5750 | # Libtool will interpret -1 as no limit whatsoever | |
5751 | lt_cv_sys_max_cmd_len=-1; | |
5752 | ;; | |
5753 | ||
718a6fd8 | 5754 | cygwin* | mingw* | cegcc*) |
ce2cded5 L |
5755 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5756 | # about 5 minutes as the teststring grows exponentially. | |
5757 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5758 | # you end up with a "frozen" computer, even though with patience | |
5759 | # the test eventually succeeds (with a max line length of 256k). | |
5760 | # Instead, let's just punt: use the minimum linelength reported by | |
5761 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5762 | lt_cv_sys_max_cmd_len=8192; | |
5763 | ;; | |
5764 | ||
5765 | amigaos*) | |
5766 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5767 | # So we just punt and use a minimum line length of 8192. | |
5768 | lt_cv_sys_max_cmd_len=8192; | |
5769 | ;; | |
5770 | ||
5771 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5772 | # This has been around since 386BSD, at least. Likely further. | |
5773 | if test -x /sbin/sysctl; then | |
5774 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5775 | elif test -x /usr/sbin/sysctl; then | |
5776 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5777 | else | |
5778 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5779 | fi | |
5780 | # And add a safety zone | |
5781 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5782 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5783 | ;; | |
5784 | ||
5785 | interix*) | |
5786 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5787 | lt_cv_sys_max_cmd_len=196608 | |
5788 | ;; | |
5789 | ||
5790 | osf*) | |
5791 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5792 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5793 | # nice to cause kernel panics so lets avoid the loop below. | |
5794 | # First set a reasonable default. | |
5795 | lt_cv_sys_max_cmd_len=16384 | |
5796 | # | |
5797 | if test -x /sbin/sysconfig; then | |
5798 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5799 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5800 | esac | |
5801 | fi | |
5802 | ;; | |
5803 | sco3.2v5*) | |
5804 | lt_cv_sys_max_cmd_len=102400 | |
5805 | ;; | |
5806 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5807 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5808 | if test -n "$kargmax"; then | |
5809 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5810 | else | |
5811 | lt_cv_sys_max_cmd_len=32768 | |
5812 | fi | |
d7040cdb SE |
5813 | ;; |
5814 | *) | |
718a6fd8 SE |
5815 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5816 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
ce2cded5 L |
5817 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5818 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5819 | else | |
5820 | # Make teststring a little bigger before we do anything with it. | |
5821 | # a 1K string should be a reasonable start. | |
5822 | for i in 1 2 3 4 5 6 7 8 ; do | |
5823 | teststring=$teststring$teststring | |
5824 | done | |
5825 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5826 | # If test is not a shell built-in, we'll probably end up computing a | |
5827 | # maximum length that is only half of the actual maximum length, but | |
5828 | # we can't tell. | |
5829 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5830 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5831 | test $i != 17 # 1/2 MB should be enough | |
5832 | do | |
5833 | i=`expr $i + 1` | |
5834 | teststring=$teststring$teststring | |
5835 | done | |
5836 | # Only check the string length outside the loop. | |
5837 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5838 | teststring= | |
5839 | # Add a significant safety factor because C++ compilers can tack on | |
5840 | # massive amounts of additional arguments before passing them to the | |
5841 | # linker. It appears as though 1/2 is a usable value. | |
5842 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5843 | fi | |
d7040cdb SE |
5844 | ;; |
5845 | esac | |
252b5132 | 5846 | |
ce2cded5 | 5847 | fi |
d6d788bd | 5848 | |
ce2cded5 | 5849 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5851 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
ce2cded5 | 5852 | else |
81ecdfbb RW |
5853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5854 | $as_echo "none" >&6; } | |
ce2cded5 L |
5855 | fi |
5856 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5857 | |
d6d788bd | 5858 | |
13b2be9c | 5859 | |
13b2be9c | 5860 | |
bedf545c | 5861 | |
252b5132 | 5862 | |
ce2cded5 L |
5863 | : ${CP="cp -f"} |
5864 | : ${MV="mv -f"} | |
5865 | : ${RM="rm -f"} | |
d6d788bd | 5866 | |
81ecdfbb RW |
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5868 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
ce2cded5 L |
5869 | # Try some XSI features |
5870 | xsi_shell=no | |
5871 | ( _lt_dummy="a/b/c" | |
5872 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
718a6fd8 SE |
5873 | = c,a/b,, \ |
5874 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5875 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
ce2cded5 | 5876 | && xsi_shell=yes |
81ecdfbb RW |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5878 | $as_echo "$xsi_shell" >&6; } | |
bedf545c | 5879 | |
bedf545c | 5880 | |
81ecdfbb RW |
5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5882 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
ce2cded5 L |
5883 | lt_shell_append=no |
5884 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5885 | >/dev/null 2>&1 \ | |
5886 | && lt_shell_append=yes | |
81ecdfbb RW |
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5888 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5889 | |
d6d788bd | 5890 | |
ce2cded5 L |
5891 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5892 | lt_unset=unset | |
5893 | else | |
5894 | lt_unset=false | |
5895 | fi | |
13b2be9c DJ |
5896 | |
5897 | ||
5898 | ||
5899 | ||
d6d788bd | 5900 | |
ce2cded5 L |
5901 | # test EBCDIC or ASCII |
5902 | case `echo X|tr X '\101'` in | |
5903 | A) # ASCII based system | |
5904 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5905 | lt_SP2NL='tr \040 \012' | |
5906 | lt_NL2SP='tr \015\012 \040\040' | |
5907 | ;; | |
5908 | *) # EBCDIC based system | |
5909 | lt_SP2NL='tr \100 \n' | |
5910 | lt_NL2SP='tr \r\n \100\100' | |
5911 | ;; | |
5912 | esac | |
c43a438d | 5913 | |
c43a438d | 5914 | |
c43a438d | 5915 | |
252b5132 | 5916 | |
ad22bfe8 | 5917 | |
1ad12f97 | 5918 | |
1ad12f97 | 5919 | |
9e9b66a9 | 5920 | |
1ad12f97 | 5921 | |
81ecdfbb RW |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5923 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5924 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5925 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5926 | else |
5927 | lt_cv_ld_reload_flag='-r' | |
5928 | fi | |
81ecdfbb RW |
5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5930 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
ce2cded5 L |
5931 | reload_flag=$lt_cv_ld_reload_flag |
5932 | case $reload_flag in | |
5933 | "" | " "*) ;; | |
5934 | *) reload_flag=" $reload_flag" ;; | |
5935 | esac | |
5936 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5937 | case $host_os in | |
5938 | darwin*) | |
5939 | if test "$GCC" = yes; then | |
5940 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5941 | else | |
5942 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5943 | fi | |
5944 | ;; | |
5945 | esac | |
a541e3ce | 5946 | |
9e9b66a9 | 5947 | |
a2d91340 | 5948 | |
d6d788bd | 5949 | |
9e9b66a9 AM |
5950 | |
5951 | ||
5952 | ||
d6d788bd | 5953 | |
252b5132 | 5954 | |
718a6fd8 SE |
5955 | if test -n "$ac_tool_prefix"; then |
5956 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5957 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5959 | $as_echo_n "checking for $ac_word... " >&6; } | |
5960 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5961 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
5962 | else |
5963 | if test -n "$OBJDUMP"; then | |
5964 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5965 | else | |
5966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5967 | for as_dir in $PATH | |
5968 | do | |
5969 | IFS=$as_save_IFS | |
5970 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5971 | for ac_exec_ext in '' $ac_executable_extensions; do |
5972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 5973 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5975 | break 2 |
5976 | fi | |
5977 | done | |
81ecdfbb RW |
5978 | done |
5979 | IFS=$as_save_IFS | |
718a6fd8 SE |
5980 | |
5981 | fi | |
5982 | fi | |
5983 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5984 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5986 | $as_echo "$OBJDUMP" >&6; } | |
718a6fd8 | 5987 | else |
81ecdfbb RW |
5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5989 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5990 | fi |
5991 | ||
81ecdfbb | 5992 | |
718a6fd8 SE |
5993 | fi |
5994 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5995 | ac_ct_OBJDUMP=$OBJDUMP | |
5996 | # Extract the first word of "objdump", so it can be a program name with args. | |
5997 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5999 | $as_echo_n "checking for $ac_word... " >&6; } | |
6000 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6001 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
6002 | else |
6003 | if test -n "$ac_ct_OBJDUMP"; then | |
6004 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6005 | else | |
6006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6007 | for as_dir in $PATH | |
6008 | do | |
6009 | IFS=$as_save_IFS | |
6010 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6011 | for ac_exec_ext in '' $ac_executable_extensions; do |
6012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 6013 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 6014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6015 | break 2 |
6016 | fi | |
6017 | done | |
81ecdfbb RW |
6018 | done |
6019 | IFS=$as_save_IFS | |
718a6fd8 | 6020 | |
718a6fd8 SE |
6021 | fi |
6022 | fi | |
6023 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6024 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6026 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
718a6fd8 | 6027 | else |
81ecdfbb RW |
6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6029 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6030 | fi |
6031 | ||
81ecdfbb RW |
6032 | if test "x$ac_ct_OBJDUMP" = x; then |
6033 | OBJDUMP="false" | |
6034 | else | |
6035 | case $cross_compiling:$ac_tool_warned in | |
6036 | yes:) | |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6039 | ac_tool_warned=yes ;; | |
6040 | esac | |
6041 | OBJDUMP=$ac_ct_OBJDUMP | |
6042 | fi | |
718a6fd8 SE |
6043 | else |
6044 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6045 | fi | |
6046 | ||
6047 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | ||
6053 | ||
6054 | ||
6055 | ||
13b2be9c | 6056 | |
81ecdfbb RW |
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6058 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6059 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6060 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 6061 | else |
ce2cded5 L |
6062 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6063 | lt_cv_file_magic_test_file= | |
6064 | lt_cv_deplibs_check_method='unknown' | |
6065 | # Need to set the preceding variable on all platforms that support | |
6066 | # interlibrary dependencies. | |
6067 | # 'none' -- dependencies not supported. | |
6068 | # `unknown' -- same as none, but documents that we really don't know. | |
6069 | # 'pass_all' -- all dependencies passed with no checks. | |
6070 | # 'test_compile' -- check by making test program. | |
6071 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6072 | # which responds to the $file_magic_cmd with a given extended regex. | |
6073 | # If you have `file' or equivalent on your system and you're not sure | |
6074 | # whether `pass_all' will *always* work, you probably want this one. | |
13b2be9c | 6075 | |
ce2cded5 | 6076 | case $host_os in |
50e7d84b | 6077 | aix[4-9]*) |
ce2cded5 L |
6078 | lt_cv_deplibs_check_method=pass_all |
6079 | ;; | |
d7040cdb | 6080 | |
ce2cded5 L |
6081 | beos*) |
6082 | lt_cv_deplibs_check_method=pass_all | |
6083 | ;; | |
d7040cdb | 6084 | |
ce2cded5 L |
6085 | bsdi[45]*) |
6086 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6087 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6088 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6089 | ;; | |
d7040cdb | 6090 | |
ce2cded5 L |
6091 | cygwin*) |
6092 | # func_win32_libid is a shell function defined in ltmain.sh | |
6093 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6094 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 6095 | ;; |
ce2cded5 L |
6096 | |
6097 | mingw* | pw32*) | |
6098 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6099 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6100 | # unless we find 'file', for example because we are cross-compiling. | |
6101 | if ( file / ) >/dev/null 2>&1; then | |
6102 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6103 | lt_cv_file_magic_cmd='func_win32_libid' | |
6104 | else | |
6105 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6106 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6107 | fi | |
d7040cdb | 6108 | ;; |
ce2cded5 | 6109 | |
718a6fd8 SE |
6110 | cegcc) |
6111 | # use the weaker test based on 'objdump'. See mingw*. | |
6112 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6113 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6114 | ;; | |
6115 | ||
ce2cded5 L |
6116 | darwin* | rhapsody*) |
6117 | lt_cv_deplibs_check_method=pass_all | |
6118 | ;; | |
6119 | ||
6120 | freebsd* | dragonfly*) | |
6121 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6122 | case $host_cpu in | |
6123 | i*86 ) | |
6124 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6125 | # Let's accept both of them until this is cleared up. | |
6126 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6127 | lt_cv_file_magic_cmd=/usr/bin/file | |
6128 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6129 | ;; | |
6130 | esac | |
6131 | else | |
6132 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
6133 | fi |
6134 | ;; | |
ce2cded5 L |
6135 | |
6136 | gnu*) | |
6137 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6138 | ;; |
ce2cded5 L |
6139 | |
6140 | hpux10.20* | hpux11*) | |
6141 | lt_cv_file_magic_cmd=/usr/bin/file | |
6142 | case $host_cpu in | |
6143 | ia64*) | |
6144 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6145 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6146 | ;; | |
6147 | hppa*64*) | |
6148 | 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]' | |
6149 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6150 | ;; | |
6151 | *) | |
6152 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6153 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6154 | ;; | |
6155 | esac | |
d7040cdb | 6156 | ;; |
ce2cded5 L |
6157 | |
6158 | interix[3-9]*) | |
6159 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6160 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 6161 | ;; |
ce2cded5 L |
6162 | |
6163 | irix5* | irix6* | nonstopux*) | |
6164 | case $LD in | |
6165 | *-32|*"-32 ") libmagic=32-bit;; | |
6166 | *-n32|*"-n32 ") libmagic=N32;; | |
6167 | *-64|*"-64 ") libmagic=64-bit;; | |
6168 | *) libmagic=never-match;; | |
6169 | esac | |
6170 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6171 | ;; |
ce2cded5 L |
6172 | |
6173 | # This must be Linux ELF. | |
58e24671 | 6174 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 6175 | lt_cv_deplibs_check_method=pass_all |
d7040cdb | 6176 | ;; |
ce2cded5 L |
6177 | |
6178 | netbsd*) | |
6179 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6180 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6181 | else | |
6182 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6183 | fi | |
d7040cdb | 6184 | ;; |
ce2cded5 L |
6185 | |
6186 | newos6*) | |
6187 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6188 | lt_cv_file_magic_cmd=/usr/bin/file | |
6189 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
d7040cdb | 6190 | ;; |
76a27922 | 6191 | |
ce2cded5 L |
6192 | *nto* | *qnx*) |
6193 | lt_cv_deplibs_check_method=pass_all | |
6194 | ;; | |
d6d788bd | 6195 | |
ce2cded5 L |
6196 | openbsd*) |
6197 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6198 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6199 | else | |
6200 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6201 | fi | |
6202 | ;; | |
44f2f9d2 | 6203 | |
ce2cded5 L |
6204 | osf3* | osf4* | osf5*) |
6205 | lt_cv_deplibs_check_method=pass_all | |
6206 | ;; | |
44f2f9d2 | 6207 | |
ce2cded5 L |
6208 | rdos*) |
6209 | lt_cv_deplibs_check_method=pass_all | |
6210 | ;; | |
6211 | ||
6212 | solaris*) | |
6213 | lt_cv_deplibs_check_method=pass_all | |
6214 | ;; | |
6215 | ||
6216 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6217 | lt_cv_deplibs_check_method=pass_all | |
6218 | ;; | |
6219 | ||
6220 | sysv4 | sysv4.3*) | |
6221 | case $host_vendor in | |
6222 | motorola) | |
6223 | 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]' | |
6224 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6225 | ;; | |
6226 | ncr) | |
6227 | lt_cv_deplibs_check_method=pass_all | |
6228 | ;; | |
6229 | sequent) | |
6230 | lt_cv_file_magic_cmd='/bin/file' | |
6231 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6232 | ;; | |
6233 | sni) | |
6234 | lt_cv_file_magic_cmd='/bin/file' | |
6235 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6236 | lt_cv_file_magic_test_file=/lib/libc.so | |
6237 | ;; | |
6238 | siemens) | |
6239 | lt_cv_deplibs_check_method=pass_all | |
6240 | ;; | |
6241 | pc) | |
6242 | lt_cv_deplibs_check_method=pass_all | |
6243 | ;; | |
6244 | esac | |
6245 | ;; | |
6246 | ||
6247 | tpf*) | |
6248 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
6249 | ;; |
6250 | esac | |
6251 | ||
ce2cded5 | 6252 | fi |
81ecdfbb RW |
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6254 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
ce2cded5 L |
6255 | file_magic_cmd=$lt_cv_file_magic_cmd |
6256 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6257 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6258 | |
d7040cdb | 6259 | |
d7040cdb | 6260 | |
d7040cdb | 6261 | |
d7040cdb | 6262 | |
44f2f9d2 | 6263 | |
d7040cdb | 6264 | |
d7040cdb | 6265 | |
d7040cdb | 6266 | |
d7040cdb | 6267 | |
44f2f9d2 | 6268 | |
d7040cdb | 6269 | |
ce2cded5 L |
6270 | if test -n "$ac_tool_prefix"; then |
6271 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6272 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6274 | $as_echo_n "checking for $ac_word... " >&6; } | |
6275 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6276 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6277 | else |
6278 | if test -n "$AR"; then | |
6279 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6280 | else | |
6281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6282 | for as_dir in $PATH | |
6283 | do | |
6284 | IFS=$as_save_IFS | |
6285 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6286 | for ac_exec_ext in '' $ac_executable_extensions; do |
6287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6288 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 6290 | break 2 |
d7040cdb SE |
6291 | fi |
6292 | done | |
81ecdfbb RW |
6293 | done |
6294 | IFS=$as_save_IFS | |
44f2f9d2 | 6295 | |
ce2cded5 L |
6296 | fi |
6297 | fi | |
6298 | AR=$ac_cv_prog_AR | |
6299 | if test -n "$AR"; then | |
81ecdfbb RW |
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6301 | $as_echo "$AR" >&6; } | |
ce2cded5 | 6302 | else |
81ecdfbb RW |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6304 | $as_echo "no" >&6; } | |
44f2f9d2 | 6305 | fi |
d7040cdb | 6306 | |
81ecdfbb | 6307 | |
d7040cdb | 6308 | fi |
ce2cded5 L |
6309 | if test -z "$ac_cv_prog_AR"; then |
6310 | ac_ct_AR=$AR | |
6311 | # Extract the first word of "ar", so it can be a program name with args. | |
6312 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6314 | $as_echo_n "checking for $ac_word... " >&6; } | |
6315 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6316 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6317 | else |
ce2cded5 L |
6318 | if test -n "$ac_ct_AR"; then |
6319 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6320 | else | |
6321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6322 | for as_dir in $PATH | |
6323 | do | |
6324 | IFS=$as_save_IFS | |
6325 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6326 | for ac_exec_ext in '' $ac_executable_extensions; do |
6327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6328 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6330 | break 2 |
6331 | fi | |
6332 | done | |
81ecdfbb RW |
6333 | done |
6334 | IFS=$as_save_IFS | |
ce2cded5 | 6335 | |
ce2cded5 L |
6336 | fi |
6337 | fi | |
6338 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6339 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6341 | $as_echo "$ac_ct_AR" >&6; } | |
ce2cded5 | 6342 | else |
81ecdfbb RW |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6344 | $as_echo "no" >&6; } | |
d7040cdb | 6345 | fi |
44f2f9d2 | 6346 | |
81ecdfbb RW |
6347 | if test "x$ac_ct_AR" = x; then |
6348 | AR="false" | |
6349 | else | |
6350 | case $cross_compiling:$ac_tool_warned in | |
6351 | yes:) | |
6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6353 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6354 | ac_tool_warned=yes ;; | |
6355 | esac | |
6356 | AR=$ac_ct_AR | |
6357 | fi | |
ce2cded5 L |
6358 | else |
6359 | AR="$ac_cv_prog_AR" | |
6360 | fi | |
d7040cdb | 6361 | |
ce2cded5 L |
6362 | test -z "$AR" && AR=ar |
6363 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
6364 | |
6365 | ||
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
ce2cded5 L |
6375 | if test -n "$ac_tool_prefix"; then |
6376 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6377 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6379 | $as_echo_n "checking for $ac_word... " >&6; } | |
6380 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6381 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6382 | else |
6383 | if test -n "$STRIP"; then | |
6384 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6385 | else | |
6386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6387 | for as_dir in $PATH | |
6388 | do | |
6389 | IFS=$as_save_IFS | |
6390 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6391 | for ac_exec_ext in '' $ac_executable_extensions; do |
6392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6393 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6395 | break 2 |
6396 | fi | |
6397 | done | |
81ecdfbb RW |
6398 | done |
6399 | IFS=$as_save_IFS | |
d7040cdb | 6400 | |
ce2cded5 L |
6401 | fi |
6402 | fi | |
6403 | STRIP=$ac_cv_prog_STRIP | |
6404 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6406 | $as_echo "$STRIP" >&6; } | |
ce2cded5 | 6407 | else |
81ecdfbb RW |
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6409 | $as_echo "no" >&6; } | |
ce2cded5 | 6410 | fi |
d7040cdb | 6411 | |
81ecdfbb | 6412 | |
ce2cded5 L |
6413 | fi |
6414 | if test -z "$ac_cv_prog_STRIP"; then | |
6415 | ac_ct_STRIP=$STRIP | |
6416 | # Extract the first word of "strip", so it can be a program name with args. | |
6417 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6419 | $as_echo_n "checking for $ac_word... " >&6; } | |
6420 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6421 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6422 | else |
6423 | if test -n "$ac_ct_STRIP"; then | |
6424 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6425 | else | |
6426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6427 | for as_dir in $PATH | |
6428 | do | |
6429 | IFS=$as_save_IFS | |
6430 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6431 | for ac_exec_ext in '' $ac_executable_extensions; do |
6432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6433 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6435 | break 2 |
6436 | fi | |
6437 | done | |
81ecdfbb RW |
6438 | done |
6439 | IFS=$as_save_IFS | |
d7040cdb | 6440 | |
ce2cded5 L |
6441 | fi |
6442 | fi | |
6443 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6444 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6446 | $as_echo "$ac_ct_STRIP" >&6; } | |
ce2cded5 | 6447 | else |
81ecdfbb RW |
6448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6449 | $as_echo "no" >&6; } | |
ce2cded5 | 6450 | fi |
d7040cdb | 6451 | |
81ecdfbb RW |
6452 | if test "x$ac_ct_STRIP" = x; then |
6453 | STRIP=":" | |
6454 | else | |
6455 | case $cross_compiling:$ac_tool_warned in | |
6456 | yes:) | |
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6458 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6459 | ac_tool_warned=yes ;; | |
6460 | esac | |
6461 | STRIP=$ac_ct_STRIP | |
6462 | fi | |
ce2cded5 L |
6463 | else |
6464 | STRIP="$ac_cv_prog_STRIP" | |
6465 | fi | |
d7040cdb | 6466 | |
ce2cded5 | 6467 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6468 | |
d7040cdb | 6469 | |
d7040cdb | 6470 | |
d7040cdb | 6471 | |
d7040cdb | 6472 | |
d7040cdb | 6473 | |
ce2cded5 L |
6474 | if test -n "$ac_tool_prefix"; then |
6475 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6476 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6478 | $as_echo_n "checking for $ac_word... " >&6; } | |
6479 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6480 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6481 | else |
ce2cded5 L |
6482 | if test -n "$RANLIB"; then |
6483 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6484 | else | |
6485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6486 | for as_dir in $PATH | |
6487 | do | |
6488 | IFS=$as_save_IFS | |
6489 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6490 | for ac_exec_ext in '' $ac_executable_extensions; do |
6491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6492 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6494 | break 2 |
6495 | fi | |
6496 | done | |
81ecdfbb RW |
6497 | done |
6498 | IFS=$as_save_IFS | |
44f2f9d2 | 6499 | |
d7040cdb | 6500 | fi |
44f2f9d2 | 6501 | fi |
ce2cded5 L |
6502 | RANLIB=$ac_cv_prog_RANLIB |
6503 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6505 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 6506 | else |
81ecdfbb RW |
6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6508 | $as_echo "no" >&6; } | |
ce2cded5 | 6509 | fi |
d7040cdb | 6510 | |
81ecdfbb | 6511 | |
d7040cdb | 6512 | fi |
ce2cded5 L |
6513 | if test -z "$ac_cv_prog_RANLIB"; then |
6514 | ac_ct_RANLIB=$RANLIB | |
6515 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6516 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6518 | $as_echo_n "checking for $ac_word... " >&6; } | |
6519 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6520 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6521 | else |
ce2cded5 L |
6522 | if test -n "$ac_ct_RANLIB"; then |
6523 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6524 | else | |
6525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6526 | for as_dir in $PATH | |
d7040cdb | 6527 | do |
ce2cded5 L |
6528 | IFS=$as_save_IFS |
6529 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6530 | for ac_exec_ext in '' $ac_executable_extensions; do |
6531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6532 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 6534 | break 2 |
d7040cdb | 6535 | fi |
ce2cded5 | 6536 | done |
81ecdfbb RW |
6537 | done |
6538 | IFS=$as_save_IFS | |
ce2cded5 | 6539 | |
d7040cdb | 6540 | fi |
ce2cded5 L |
6541 | fi |
6542 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6543 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6545 | $as_echo "$ac_ct_RANLIB" >&6; } | |
d7040cdb | 6546 | else |
81ecdfbb RW |
6547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6548 | $as_echo "no" >&6; } | |
44f2f9d2 | 6549 | fi |
44f2f9d2 | 6550 | |
81ecdfbb RW |
6551 | if test "x$ac_ct_RANLIB" = x; then |
6552 | RANLIB=":" | |
6553 | else | |
6554 | case $cross_compiling:$ac_tool_warned in | |
6555 | yes:) | |
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6557 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6558 | ac_tool_warned=yes ;; | |
6559 | esac | |
6560 | RANLIB=$ac_ct_RANLIB | |
6561 | fi | |
d7040cdb | 6562 | else |
ce2cded5 | 6563 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6564 | fi |
252b5132 | 6565 | |
ce2cded5 | 6566 | test -z "$RANLIB" && RANLIB=: |
252b5132 | 6567 | |
252b5132 | 6568 | |
ae57792d | 6569 | |
252b5132 | 6570 | |
13b2be9c | 6571 | |
14ee9f48 | 6572 | |
ce2cded5 | 6573 | # Determine commands to create old-style static archives. |
718a6fd8 | 6574 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
ce2cded5 L |
6575 | old_postinstall_cmds='chmod 644 $oldlib' |
6576 | old_postuninstall_cmds= | |
14ee9f48 | 6577 | |
ce2cded5 L |
6578 | if test -n "$RANLIB"; then |
6579 | case $host_os in | |
6580 | openbsd*) | |
6581 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6582 | ;; | |
6583 | *) | |
6584 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6585 | ;; | |
6586 | esac | |
6587 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb | 6588 | fi |
14ee9f48 | 6589 | |
f8fc3443 | 6590 | |
f8fc3443 | 6591 | |
252b5132 | 6592 | |
85fbca6a | 6593 | |
85fbca6a | 6594 | |
13b2be9c | 6595 | |
13b2be9c | 6596 | |
d7040cdb | 6597 | |
d7040cdb SE |
6598 | |
6599 | ||
6600 | ||
252b5132 | 6601 | |
93fbbb04 | 6602 | |
93fbbb04 | 6603 | |
d70c5fc7 | 6604 | |
e0001a05 | 6605 | |
252b5132 | 6606 | |
252b5132 | 6607 | |
252b5132 | 6608 | |
252b5132 | 6609 | |
252b5132 | 6610 | |
3bcbcc3d | 6611 | |
252b5132 | 6612 | |
252b5132 | 6613 | |
252b5132 | 6614 | |
15886821 | 6615 | |
252b5132 | 6616 | |
252b5132 | 6617 | |
13b2be9c DJ |
6618 | |
6619 | ||
252b5132 | 6620 | |
252b5132 | 6621 | |
d6d788bd | 6622 | |
ce2cded5 L |
6623 | # If no C compiler was specified, use CC. |
6624 | LTCC=${LTCC-"$CC"} | |
252b5132 | 6625 | |
ce2cded5 L |
6626 | # If no C compiler flags were specified, use CFLAGS. |
6627 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
252b5132 | 6628 | |
ce2cded5 L |
6629 | # Allow CC to be a program name with arguments. |
6630 | compiler=$CC | |
252b5132 | 6631 | |
252b5132 | 6632 | |
ce2cded5 | 6633 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6635 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6636 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6637 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6638 | else |
252b5132 | 6639 | |
ce2cded5 L |
6640 | # These are sane defaults that work on at least a few old systems. |
6641 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
252b5132 | 6642 | |
ce2cded5 L |
6643 | # Character class describing NM global symbol codes. |
6644 | symcode='[BCDEGRST]' | |
252b5132 | 6645 | |
ce2cded5 L |
6646 | # Regexp to match symbols that can be accessed directly from C. |
6647 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
13b2be9c | 6648 | |
ce2cded5 L |
6649 | # Define system-specific variables. |
6650 | case $host_os in | |
6651 | aix*) | |
6652 | symcode='[BCDT]' | |
6653 | ;; | |
718a6fd8 | 6654 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
6655 | symcode='[ABCDGISTW]' |
6656 | ;; | |
6657 | hpux*) | |
6658 | if test "$host_cpu" = ia64; then | |
6659 | symcode='[ABCDEGRST]' | |
6660 | fi | |
6661 | ;; | |
6662 | irix* | nonstopux*) | |
6663 | symcode='[BCDEGRST]' | |
6664 | ;; | |
6665 | osf*) | |
6666 | symcode='[BCDEGQRST]' | |
6667 | ;; | |
6668 | solaris*) | |
6669 | symcode='[BDRT]' | |
6670 | ;; | |
6671 | sco3.2v5*) | |
6672 | symcode='[DT]' | |
6673 | ;; | |
6674 | sysv4.2uw2*) | |
6675 | symcode='[DT]' | |
6676 | ;; | |
6677 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6678 | symcode='[ABDT]' | |
6679 | ;; | |
6680 | sysv4) | |
6681 | symcode='[DFNSTU]' | |
6682 | ;; | |
6683 | esac | |
6684 | ||
6685 | # If we're using GNU nm, then use its standard symbol codes. | |
6686 | case `$NM -V 2>&1` in | |
6687 | *GNU* | *'with BFD'*) | |
6688 | symcode='[ABCDGIRSTW]' ;; | |
6689 | esac | |
252b5132 | 6690 | |
ce2cded5 L |
6691 | # Transform an extracted symbol line into a proper C declaration. |
6692 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6693 | # so use this general approach. | |
6694 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
13b2be9c | 6695 | |
ce2cded5 | 6696 | # Transform an extracted symbol line into symbol name and symbol address |
7357c5b6 | 6697 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
718a6fd8 | 6698 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
d7040cdb | 6699 | |
7357c5b6 AM |
6700 | # Handle CRLF in mingw tool chain |
6701 | opt_cr= | |
6702 | case $build_os in | |
6703 | mingw*) | |
6704 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6705 | ;; | |
6706 | esac | |
d7040cdb | 6707 | |
7357c5b6 AM |
6708 | # Try without a prefix underscore, then with it. |
6709 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6710 | |
7357c5b6 AM |
6711 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6712 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6713 | |
7357c5b6 AM |
6714 | # Write the raw and C identifiers. |
6715 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6716 | # Fake it for dumpbin and say T for any non-static function | |
6717 | # and D for any global variable. | |
6718 | # Also find C++ and __fastcall symbols from MSVC++, | |
6719 | # which start with @ or ?. | |
6720 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6721 | " {last_section=section; section=\$ 3};"\ | |
6722 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6723 | " \$ 0!~/External *\|/{next};"\ | |
6724 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6725 | " {if(hide[section]) next};"\ | |
6726 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6727 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6728 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6729 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6730 | " ' prfx=^$ac_symprfx" | |
6731 | else | |
6732 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6733 | fi | |
d7040cdb | 6734 | |
7357c5b6 AM |
6735 | # Check to see that the pipe works correctly. |
6736 | pipe_works=no | |
d7040cdb | 6737 | |
7357c5b6 AM |
6738 | rm -f conftest* |
6739 | cat > conftest.$ac_ext <<_LT_EOF | |
6740 | #ifdef __cplusplus | |
6741 | extern "C" { | |
6742 | #endif | |
6743 | char nm_test_var; | |
6744 | void nm_test_func(void); | |
6745 | void nm_test_func(void){} | |
6746 | #ifdef __cplusplus | |
ce2cded5 | 6747 | } |
7357c5b6 AM |
6748 | #endif |
6749 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6750 | _LT_EOF | |
6751 | ||
81ecdfbb | 6752 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6753 | (eval $ac_compile) 2>&5 |
ce2cded5 | 6754 | ac_status=$? |
81ecdfbb RW |
6755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6756 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6757 | # Now try to grab the symbols. |
6758 | nlist=conftest.nm | |
81ecdfbb | 6759 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
7357c5b6 | 6760 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
ce2cded5 | 6761 | ac_status=$? |
81ecdfbb RW |
6762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6763 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6764 | # Try sorting and uniquifying the output. |
6765 | if sort "$nlist" | uniq > "$nlist"T; then | |
6766 | mv -f "$nlist"T "$nlist" | |
6767 | else | |
6768 | rm -f "$nlist"T | |
6769 | fi | |
13b2be9c | 6770 | |
7357c5b6 AM |
6771 | # Make sure that we snagged all the symbols we need. |
6772 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6773 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6774 | cat <<_LT_EOF > conftest.$ac_ext | |
6775 | #ifdef __cplusplus | |
6776 | extern "C" { | |
6777 | #endif | |
13b2be9c | 6778 | |
7357c5b6 AM |
6779 | _LT_EOF |
6780 | # Now generate the symbol file. | |
6781 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
13b2be9c | 6782 | |
7357c5b6 | 6783 | cat <<_LT_EOF >> conftest.$ac_ext |
c8615825 | 6784 | |
7357c5b6 AM |
6785 | /* The mapping between symbol names and symbols. */ |
6786 | const struct { | |
6787 | const char *name; | |
6788 | void *address; | |
6789 | } | |
6790 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6791 | { | |
6792 | { "@PROGRAM@", (void *) 0 }, | |
6793 | _LT_EOF | |
6794 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6795 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6796 | {0, (void *) 0} | |
6797 | }; | |
d7040cdb | 6798 | |
7357c5b6 AM |
6799 | /* This works around a problem in FreeBSD linker */ |
6800 | #ifdef FREEBSD_WORKAROUND | |
6801 | static const void *lt_preloaded_setup() { | |
6802 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6803 | } | |
ce2cded5 | 6804 | #endif |
d7040cdb | 6805 | |
7357c5b6 | 6806 | #ifdef __cplusplus |
ce2cded5 | 6807 | } |
7357c5b6 AM |
6808 | #endif |
6809 | _LT_EOF | |
6810 | # Now try linking the two files. | |
6811 | mv conftest.$ac_objext conftstm.$ac_objext | |
6812 | lt_save_LIBS="$LIBS" | |
6813 | lt_save_CFLAGS="$CFLAGS" | |
6814 | LIBS="conftstm.$ac_objext" | |
6815 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6816 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
6817 | (eval $ac_link) 2>&5 |
6818 | ac_status=$? | |
81ecdfbb RW |
6819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6820 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6821 | pipe_works=yes |
6822 | fi | |
6823 | LIBS="$lt_save_LIBS" | |
6824 | CFLAGS="$lt_save_CFLAGS" | |
6825 | else | |
6826 | echo "cannot find nm_test_func in $nlist" >&5 | |
6827 | fi | |
6828 | else | |
6829 | echo "cannot find nm_test_var in $nlist" >&5 | |
6830 | fi | |
6831 | else | |
6832 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6833 | fi | |
6834 | else | |
6835 | echo "$progname: failed program was:" >&5 | |
6836 | cat conftest.$ac_ext >&5 | |
6837 | fi | |
718a6fd8 | 6838 | rm -rf conftest* conftst* |
7357c5b6 AM |
6839 | |
6840 | # Do not use the global_symbol_pipe unless it works. | |
6841 | if test "$pipe_works" = yes; then | |
6842 | break | |
6843 | else | |
6844 | lt_cv_sys_global_symbol_pipe= | |
6845 | fi | |
6846 | done | |
d7040cdb | 6847 | |
ce2cded5 | 6848 | fi |
7357c5b6 AM |
6849 | |
6850 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6851 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6852 | fi |
7357c5b6 | 6853 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6855 | $as_echo "failed" >&6; } | |
7357c5b6 | 6856 | else |
81ecdfbb RW |
6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6858 | $as_echo "ok" >&6; } | |
ce2cded5 | 6859 | fi |
d7040cdb | 6860 | |
d7040cdb | 6861 | |
d7040cdb | 6862 | |
d7040cdb | 6863 | |
d7040cdb | 6864 | |
d7040cdb | 6865 | |
d7040cdb | 6866 | |
d7040cdb | 6867 | |
d7040cdb | 6868 | |
d7040cdb | 6869 | |
d7040cdb | 6870 | |
d7040cdb | 6871 | |
7357c5b6 AM |
6872 | |
6873 | ||
6874 | ||
718a6fd8 SE |
6875 | |
6876 | ||
6877 | ||
6878 | ||
6879 | ||
7357c5b6 AM |
6880 | |
6881 | ||
81ecdfbb RW |
6882 | # Check whether --enable-libtool-lock was given. |
6883 | if test "${enable_libtool_lock+set}" = set; then : | |
6884 | enableval=$enable_libtool_lock; | |
6885 | fi | |
7357c5b6 | 6886 | |
7357c5b6 AM |
6887 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6888 | ||
6889 | # Some flags need to be propagated to the compiler or linker for good | |
6890 | # libtool support. | |
6891 | case $host in | |
6892 | ia64-*-hpux*) | |
6893 | # Find out which ABI we are using. | |
6894 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6895 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6896 | (eval $ac_compile) 2>&5 |
6897 | ac_status=$? | |
81ecdfbb RW |
6898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6899 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6900 | case `/usr/bin/file conftest.$ac_objext` in |
6901 | *ELF-32*) | |
6902 | HPUX_IA64_MODE="32" | |
6903 | ;; | |
6904 | *ELF-64*) | |
6905 | HPUX_IA64_MODE="64" | |
6906 | ;; | |
6907 | esac | |
6908 | fi | |
6909 | rm -rf conftest* | |
6910 | ;; | |
6911 | *-*-irix6*) | |
6912 | # Find out which ABI we are using. | |
81ecdfbb RW |
6913 | echo '#line 6913 "configure"' > conftest.$ac_ext |
6914 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7357c5b6 AM |
6915 | (eval $ac_compile) 2>&5 |
6916 | ac_status=$? | |
81ecdfbb RW |
6917 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6918 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6919 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6920 | case `/usr/bin/file conftest.$ac_objext` in | |
6921 | *32-bit*) | |
6922 | LD="${LD-ld} -melf32bsmip" | |
6923 | ;; | |
6924 | *N32*) | |
6925 | LD="${LD-ld} -melf32bmipn32" | |
6926 | ;; | |
6927 | *64-bit*) | |
6928 | LD="${LD-ld} -melf64bmip" | |
6929 | ;; | |
6930 | esac | |
6931 | else | |
6932 | case `/usr/bin/file conftest.$ac_objext` in | |
6933 | *32-bit*) | |
6934 | LD="${LD-ld} -32" | |
6935 | ;; | |
6936 | *N32*) | |
6937 | LD="${LD-ld} -n32" | |
6938 | ;; | |
6939 | *64-bit*) | |
6940 | LD="${LD-ld} -64" | |
6941 | ;; | |
6942 | esac | |
6943 | fi | |
6944 | fi | |
6945 | rm -rf conftest* | |
6946 | ;; | |
6947 | ||
6948 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6949 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6950 | # Find out which ABI we are using. | |
6951 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6952 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6953 | (eval $ac_compile) 2>&5 |
6954 | ac_status=$? | |
81ecdfbb RW |
6955 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6956 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6957 | case `/usr/bin/file conftest.o` in |
6958 | *32-bit*) | |
6959 | case $host in | |
6960 | x86_64-*kfreebsd*-gnu) | |
6961 | LD="${LD-ld} -m elf_i386_fbsd" | |
6962 | ;; | |
6963 | x86_64-*linux*) | |
6964 | LD="${LD-ld} -m elf_i386" | |
6965 | ;; | |
6966 | ppc64-*linux*|powerpc64-*linux*) | |
6967 | LD="${LD-ld} -m elf32ppclinux" | |
6968 | ;; | |
6969 | s390x-*linux*) | |
6970 | LD="${LD-ld} -m elf_s390" | |
6971 | ;; | |
6972 | sparc64-*linux*) | |
6973 | LD="${LD-ld} -m elf32_sparc" | |
6974 | ;; | |
6975 | esac | |
6976 | ;; | |
6977 | *64-bit*) | |
6978 | case $host in | |
6979 | x86_64-*kfreebsd*-gnu) | |
6980 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6981 | ;; | |
6982 | x86_64-*linux*) | |
6983 | LD="${LD-ld} -m elf_x86_64" | |
6984 | ;; | |
6985 | ppc*-*linux*|powerpc*-*linux*) | |
6986 | LD="${LD-ld} -m elf64ppc" | |
6987 | ;; | |
6988 | s390*-*linux*|s390*-*tpf*) | |
6989 | LD="${LD-ld} -m elf64_s390" | |
6990 | ;; | |
6991 | sparc*-*linux*) | |
6992 | LD="${LD-ld} -m elf64_sparc" | |
6993 | ;; | |
6994 | esac | |
6995 | ;; | |
6996 | esac | |
6997 | fi | |
6998 | rm -rf conftest* | |
6999 | ;; | |
7000 | ||
7001 | *-*-sco3.2v5*) | |
7002 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7003 | SAVE_CFLAGS="$CFLAGS" | |
7004 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7006 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7007 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7008 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7009 | else |
7357c5b6 AM |
7010 | ac_ext=c |
7011 | ac_cpp='$CPP $CPPFLAGS' | |
7012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7015 | ||
81ecdfbb | 7016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 7017 | /* end confdefs.h. */ |
d7040cdb | 7018 | |
7357c5b6 AM |
7019 | int |
7020 | main () | |
7021 | { | |
7022 | ||
7023 | ; | |
7024 | return 0; | |
7025 | } | |
ce2cded5 | 7026 | _ACEOF |
81ecdfbb | 7027 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7028 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 7029 | else |
81ecdfbb | 7030 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7031 | fi |
81ecdfbb RW |
7032 | rm -f core conftest.err conftest.$ac_objext \ |
7033 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7034 | ac_ext=c |
7035 | ac_cpp='$CPP $CPPFLAGS' | |
7036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7039 | |
ce2cded5 | 7040 | fi |
81ecdfbb RW |
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7042 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
7043 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7044 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7045 | CFLAGS="$SAVE_CFLAGS" | |
7046 | fi | |
7047 | ;; | |
7048 | sparc*-*solaris*) | |
7049 | # Find out which ABI we are using. | |
7050 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7051 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7052 | (eval $ac_compile) 2>&5 |
7053 | ac_status=$? | |
81ecdfbb RW |
7054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7055 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7056 | case `/usr/bin/file conftest.o` in |
7057 | *64-bit*) | |
7058 | case $lt_cv_prog_gnu_ld in | |
7059 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
718a6fd8 SE |
7060 | *) |
7061 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7062 | LD="${LD-ld} -64" | |
7063 | fi | |
7064 | ;; | |
7357c5b6 AM |
7065 | esac |
7066 | ;; | |
7067 | esac | |
7068 | fi | |
7069 | rm -rf conftest* | |
7070 | ;; | |
7071 | esac | |
d7040cdb | 7072 | |
718a6fd8 SE |
7073 | need_locks="$enable_libtool_lock" |
7074 | ||
7075 | ||
7076 | case $host_os in | |
7077 | rhapsody* | darwin*) | |
7078 | if test -n "$ac_tool_prefix"; then | |
7079 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7080 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7082 | $as_echo_n "checking for $ac_word... " >&6; } | |
7083 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7084 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7085 | else |
7086 | if test -n "$DSYMUTIL"; then | |
7087 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7088 | else | |
7089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7090 | for as_dir in $PATH | |
7091 | do | |
7092 | IFS=$as_save_IFS | |
7093 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7094 | for ac_exec_ext in '' $ac_executable_extensions; do |
7095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7096 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7098 | break 2 |
7099 | fi | |
7100 | done | |
81ecdfbb RW |
7101 | done |
7102 | IFS=$as_save_IFS | |
718a6fd8 SE |
7103 | |
7104 | fi | |
7105 | fi | |
7106 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7107 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7109 | $as_echo "$DSYMUTIL" >&6; } | |
718a6fd8 | 7110 | else |
81ecdfbb RW |
7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7112 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7113 | fi |
7114 | ||
81ecdfbb | 7115 | |
718a6fd8 SE |
7116 | fi |
7117 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7118 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7119 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7120 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7122 | $as_echo_n "checking for $ac_word... " >&6; } | |
7123 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7124 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7125 | else |
7126 | if test -n "$ac_ct_DSYMUTIL"; then | |
7127 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7128 | else | |
7129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7130 | for as_dir in $PATH | |
7131 | do | |
7132 | IFS=$as_save_IFS | |
7133 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7134 | for ac_exec_ext in '' $ac_executable_extensions; do |
7135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7136 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7138 | break 2 |
7139 | fi | |
7140 | done | |
81ecdfbb RW |
7141 | done |
7142 | IFS=$as_save_IFS | |
718a6fd8 | 7143 | |
718a6fd8 SE |
7144 | fi |
7145 | fi | |
7146 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7147 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7149 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
718a6fd8 | 7150 | else |
81ecdfbb RW |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7152 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7153 | fi |
7154 | ||
81ecdfbb RW |
7155 | if test "x$ac_ct_DSYMUTIL" = x; then |
7156 | DSYMUTIL=":" | |
7157 | else | |
7158 | case $cross_compiling:$ac_tool_warned in | |
7159 | yes:) | |
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7161 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7162 | ac_tool_warned=yes ;; | |
7163 | esac | |
7164 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7165 | fi | |
718a6fd8 SE |
7166 | else |
7167 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7168 | fi | |
7169 | ||
7170 | if test -n "$ac_tool_prefix"; then | |
7171 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7172 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7174 | $as_echo_n "checking for $ac_word... " >&6; } | |
7175 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7176 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7177 | else |
7178 | if test -n "$NMEDIT"; then | |
7179 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7180 | else | |
7181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7182 | for as_dir in $PATH | |
7183 | do | |
7184 | IFS=$as_save_IFS | |
7185 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7186 | for ac_exec_ext in '' $ac_executable_extensions; do |
7187 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7188 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7190 | break 2 |
7191 | fi | |
7192 | done | |
81ecdfbb RW |
7193 | done |
7194 | IFS=$as_save_IFS | |
718a6fd8 SE |
7195 | |
7196 | fi | |
7197 | fi | |
7198 | NMEDIT=$ac_cv_prog_NMEDIT | |
7199 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7201 | $as_echo "$NMEDIT" >&6; } | |
718a6fd8 | 7202 | else |
81ecdfbb RW |
7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7204 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7205 | fi |
7206 | ||
81ecdfbb | 7207 | |
718a6fd8 SE |
7208 | fi |
7209 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7210 | ac_ct_NMEDIT=$NMEDIT | |
7211 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7212 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7214 | $as_echo_n "checking for $ac_word... " >&6; } | |
7215 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7216 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7217 | else |
7218 | if test -n "$ac_ct_NMEDIT"; then | |
7219 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7220 | else | |
7221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7222 | for as_dir in $PATH | |
7223 | do | |
7224 | IFS=$as_save_IFS | |
7225 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7226 | for ac_exec_ext in '' $ac_executable_extensions; do |
7227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7228 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7230 | break 2 |
7231 | fi | |
7232 | done | |
81ecdfbb RW |
7233 | done |
7234 | IFS=$as_save_IFS | |
718a6fd8 | 7235 | |
718a6fd8 SE |
7236 | fi |
7237 | fi | |
7238 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7239 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7241 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
718a6fd8 | 7242 | else |
81ecdfbb RW |
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7244 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7245 | fi |
7246 | ||
81ecdfbb RW |
7247 | if test "x$ac_ct_NMEDIT" = x; then |
7248 | NMEDIT=":" | |
7249 | else | |
7250 | case $cross_compiling:$ac_tool_warned in | |
7251 | yes:) | |
7252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7253 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7254 | ac_tool_warned=yes ;; | |
7255 | esac | |
7256 | NMEDIT=$ac_ct_NMEDIT | |
7257 | fi | |
718a6fd8 SE |
7258 | else |
7259 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7260 | fi | |
7261 | ||
7262 | if test -n "$ac_tool_prefix"; then | |
7263 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7264 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7266 | $as_echo_n "checking for $ac_word... " >&6; } | |
7267 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7268 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7269 | else |
7270 | if test -n "$LIPO"; then | |
7271 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7272 | else | |
7273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7274 | for as_dir in $PATH | |
7275 | do | |
7276 | IFS=$as_save_IFS | |
7277 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7278 | for ac_exec_ext in '' $ac_executable_extensions; do |
7279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7280 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7282 | break 2 |
7283 | fi | |
7284 | done | |
81ecdfbb RW |
7285 | done |
7286 | IFS=$as_save_IFS | |
718a6fd8 SE |
7287 | |
7288 | fi | |
7289 | fi | |
7290 | LIPO=$ac_cv_prog_LIPO | |
7291 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7293 | $as_echo "$LIPO" >&6; } | |
718a6fd8 | 7294 | else |
81ecdfbb RW |
7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7296 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7297 | fi |
7298 | ||
81ecdfbb | 7299 | |
718a6fd8 SE |
7300 | fi |
7301 | if test -z "$ac_cv_prog_LIPO"; then | |
7302 | ac_ct_LIPO=$LIPO | |
7303 | # Extract the first word of "lipo", so it can be a program name with args. | |
7304 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7306 | $as_echo_n "checking for $ac_word... " >&6; } | |
7307 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7308 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7309 | else |
7310 | if test -n "$ac_ct_LIPO"; then | |
7311 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7312 | else | |
7313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7314 | for as_dir in $PATH | |
7315 | do | |
7316 | IFS=$as_save_IFS | |
7317 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7318 | for ac_exec_ext in '' $ac_executable_extensions; do |
7319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7320 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7322 | break 2 |
7323 | fi | |
7324 | done | |
81ecdfbb RW |
7325 | done |
7326 | IFS=$as_save_IFS | |
718a6fd8 | 7327 | |
718a6fd8 SE |
7328 | fi |
7329 | fi | |
7330 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7331 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7333 | $as_echo "$ac_ct_LIPO" >&6; } | |
718a6fd8 | 7334 | else |
81ecdfbb RW |
7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7336 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7337 | fi |
7338 | ||
81ecdfbb RW |
7339 | if test "x$ac_ct_LIPO" = x; then |
7340 | LIPO=":" | |
7341 | else | |
7342 | case $cross_compiling:$ac_tool_warned in | |
7343 | yes:) | |
7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7345 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7346 | ac_tool_warned=yes ;; | |
7347 | esac | |
7348 | LIPO=$ac_ct_LIPO | |
7349 | fi | |
718a6fd8 SE |
7350 | else |
7351 | LIPO="$ac_cv_prog_LIPO" | |
7352 | fi | |
7353 | ||
7354 | if test -n "$ac_tool_prefix"; then | |
7355 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7356 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7358 | $as_echo_n "checking for $ac_word... " >&6; } | |
7359 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7360 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7361 | else |
7362 | if test -n "$OTOOL"; then | |
7363 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7364 | else | |
7365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7366 | for as_dir in $PATH | |
7367 | do | |
7368 | IFS=$as_save_IFS | |
7369 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7370 | for ac_exec_ext in '' $ac_executable_extensions; do |
7371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7372 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7374 | break 2 |
7375 | fi | |
7376 | done | |
81ecdfbb RW |
7377 | done |
7378 | IFS=$as_save_IFS | |
718a6fd8 SE |
7379 | |
7380 | fi | |
7381 | fi | |
7382 | OTOOL=$ac_cv_prog_OTOOL | |
7383 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7385 | $as_echo "$OTOOL" >&6; } | |
718a6fd8 | 7386 | else |
81ecdfbb RW |
7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7388 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7389 | fi |
7390 | ||
81ecdfbb | 7391 | |
718a6fd8 SE |
7392 | fi |
7393 | if test -z "$ac_cv_prog_OTOOL"; then | |
7394 | ac_ct_OTOOL=$OTOOL | |
7395 | # Extract the first word of "otool", so it can be a program name with args. | |
7396 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7398 | $as_echo_n "checking for $ac_word... " >&6; } | |
7399 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7400 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7401 | else |
7402 | if test -n "$ac_ct_OTOOL"; then | |
7403 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7404 | else | |
7405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7406 | for as_dir in $PATH | |
7407 | do | |
7408 | IFS=$as_save_IFS | |
7409 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7410 | for ac_exec_ext in '' $ac_executable_extensions; do |
7411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7412 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7414 | break 2 |
7415 | fi | |
7416 | done | |
81ecdfbb RW |
7417 | done |
7418 | IFS=$as_save_IFS | |
718a6fd8 | 7419 | |
718a6fd8 SE |
7420 | fi |
7421 | fi | |
7422 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7423 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7425 | $as_echo "$ac_ct_OTOOL" >&6; } | |
718a6fd8 | 7426 | else |
81ecdfbb RW |
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7428 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7429 | fi |
7430 | ||
81ecdfbb RW |
7431 | if test "x$ac_ct_OTOOL" = x; then |
7432 | OTOOL=":" | |
7433 | else | |
7434 | case $cross_compiling:$ac_tool_warned in | |
7435 | yes:) | |
7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7437 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7438 | ac_tool_warned=yes ;; | |
7439 | esac | |
7440 | OTOOL=$ac_ct_OTOOL | |
7441 | fi | |
718a6fd8 SE |
7442 | else |
7443 | OTOOL="$ac_cv_prog_OTOOL" | |
7444 | fi | |
7445 | ||
7446 | if test -n "$ac_tool_prefix"; then | |
7447 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7448 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7450 | $as_echo_n "checking for $ac_word... " >&6; } | |
7451 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7452 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7453 | else |
7454 | if test -n "$OTOOL64"; then | |
7455 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7456 | else | |
7457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7458 | for as_dir in $PATH | |
7459 | do | |
7460 | IFS=$as_save_IFS | |
7461 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7462 | for ac_exec_ext in '' $ac_executable_extensions; do |
7463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7464 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7466 | break 2 |
7467 | fi | |
7468 | done | |
81ecdfbb RW |
7469 | done |
7470 | IFS=$as_save_IFS | |
718a6fd8 SE |
7471 | |
7472 | fi | |
7473 | fi | |
7474 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7475 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7477 | $as_echo "$OTOOL64" >&6; } | |
718a6fd8 | 7478 | else |
81ecdfbb RW |
7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7480 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7481 | fi |
7482 | ||
81ecdfbb | 7483 | |
718a6fd8 SE |
7484 | fi |
7485 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7486 | ac_ct_OTOOL64=$OTOOL64 | |
7487 | # Extract the first word of "otool64", so it can be a program name with args. | |
7488 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7490 | $as_echo_n "checking for $ac_word... " >&6; } | |
7491 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7492 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7493 | else |
7494 | if test -n "$ac_ct_OTOOL64"; then | |
7495 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7496 | else | |
7497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7498 | for as_dir in $PATH | |
7499 | do | |
7500 | IFS=$as_save_IFS | |
7501 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7502 | for ac_exec_ext in '' $ac_executable_extensions; do |
7503 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7504 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7505 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7506 | break 2 |
7507 | fi | |
7508 | done | |
81ecdfbb RW |
7509 | done |
7510 | IFS=$as_save_IFS | |
718a6fd8 | 7511 | |
718a6fd8 SE |
7512 | fi |
7513 | fi | |
7514 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7515 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7517 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
718a6fd8 | 7518 | else |
81ecdfbb RW |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7520 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7521 | fi |
7522 | ||
81ecdfbb RW |
7523 | if test "x$ac_ct_OTOOL64" = x; then |
7524 | OTOOL64=":" | |
7525 | else | |
7526 | case $cross_compiling:$ac_tool_warned in | |
7527 | yes:) | |
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7529 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7530 | ac_tool_warned=yes ;; | |
7531 | esac | |
7532 | OTOOL64=$ac_ct_OTOOL64 | |
7533 | fi | |
718a6fd8 SE |
7534 | else |
7535 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7536 | fi | |
7537 | ||
7538 | ||
7539 | ||
7540 | ||
7541 | ||
7542 | ||
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | ||
7548 | ||
7549 | ||
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
81ecdfbb RW |
7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7565 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7566 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7567 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7568 | else |
7569 | lt_cv_apple_cc_single_mod=no | |
7570 | if test -z "${LT_MULTI_MODULE}"; then | |
7571 | # By default we will add the -single_module flag. You can override | |
7572 | # by either setting the environment variable LT_MULTI_MODULE | |
7573 | # non-empty at configure time, or by adding -multi_module to the | |
7574 | # link flags. | |
7575 | rm -rf libconftest.dylib* | |
7576 | echo "int foo(void){return 1;}" > conftest.c | |
7577 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7578 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7579 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7580 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7581 | _lt_result=$? | |
7582 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7583 | lt_cv_apple_cc_single_mod=yes | |
7584 | else | |
7585 | cat conftest.err >&5 | |
7586 | fi | |
7587 | rm -rf libconftest.dylib* | |
7588 | rm -f conftest.* | |
7589 | fi | |
7590 | fi | |
81ecdfbb RW |
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7592 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7594 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7595 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7596 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7597 | else |
7598 | lt_cv_ld_exported_symbols_list=no | |
7599 | save_LDFLAGS=$LDFLAGS | |
7600 | echo "_main" > conftest.sym | |
7601 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
718a6fd8 SE |
7603 | /* end confdefs.h. */ |
7604 | ||
7605 | int | |
7606 | main () | |
7607 | { | |
7608 | ||
7609 | ; | |
7610 | return 0; | |
7611 | } | |
7612 | _ACEOF | |
81ecdfbb | 7613 | if ac_fn_c_try_link "$LINENO"; then : |
718a6fd8 SE |
7614 | lt_cv_ld_exported_symbols_list=yes |
7615 | else | |
81ecdfbb | 7616 | lt_cv_ld_exported_symbols_list=no |
718a6fd8 | 7617 | fi |
81ecdfbb RW |
7618 | rm -f core conftest.err conftest.$ac_objext \ |
7619 | conftest$ac_exeext conftest.$ac_ext | |
718a6fd8 SE |
7620 | LDFLAGS="$save_LDFLAGS" |
7621 | ||
7622 | fi | |
81ecdfbb RW |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7624 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
718a6fd8 SE |
7625 | case $host_os in |
7626 | rhapsody* | darwin1.[012]) | |
7627 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7628 | darwin1.*) | |
7629 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7630 | darwin*) # darwin 5.x on | |
7631 | # if running on 10.5 or later, the deployment target defaults | |
7632 | # to the OS version, if on x86, and 10.4, the deployment | |
7633 | # target defaults to 10.4. Don't you love it? | |
7634 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7635 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7636 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7637 | 10.[012]*) | |
7638 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7639 | 10.*) | |
7640 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7641 | esac | |
7642 | ;; | |
7643 | esac | |
7644 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7645 | _lt_dar_single_mod='$single_module' | |
7646 | fi | |
7647 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7648 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7649 | else | |
7650 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7651 | fi | |
7652 | if test "$DSYMUTIL" != ":"; then | |
7653 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7654 | else | |
7655 | _lt_dsymutil= | |
7656 | fi | |
7657 | ;; | |
7658 | esac | |
7659 | ||
718a6fd8 | 7660 | for ac_header in dlfcn.h |
81ecdfbb RW |
7661 | do : |
7662 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7663 | " | |
7664 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
718a6fd8 | 7665 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7666 | #define HAVE_DLFCN_H 1 |
718a6fd8 SE |
7667 | _ACEOF |
7668 | ||
7669 | fi | |
7670 | ||
7671 | done | |
7672 | ||
7673 | ||
7674 | ||
7675 | # Set options | |
7676 | ||
7677 | ||
7678 | ||
7679 | enable_dlopen=no | |
7680 | ||
7681 | ||
7682 | enable_win32_dll=no | |
7683 | ||
7684 | ||
81ecdfbb RW |
7685 | # Check whether --enable-shared was given. |
7686 | if test "${enable_shared+set}" = set; then : | |
7687 | enableval=$enable_shared; p=${PACKAGE-default} | |
718a6fd8 SE |
7688 | case $enableval in |
7689 | yes) enable_shared=yes ;; | |
7690 | no) enable_shared=no ;; | |
7691 | *) | |
7692 | enable_shared=no | |
7693 | # Look at the argument we got. We use all the common list separators. | |
7694 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7695 | for pkg in $enableval; do | |
7696 | IFS="$lt_save_ifs" | |
7697 | if test "X$pkg" = "X$p"; then | |
7698 | enable_shared=yes | |
7699 | fi | |
7700 | done | |
7701 | IFS="$lt_save_ifs" | |
7702 | ;; | |
7703 | esac | |
7704 | else | |
7705 | enable_shared=yes | |
81ecdfbb RW |
7706 | fi |
7707 | ||
718a6fd8 SE |
7708 | |
7709 | ||
7710 | ||
7711 | ||
7712 | ||
7713 | ||
7714 | ||
7715 | ||
81ecdfbb RW |
7716 | # Check whether --enable-static was given. |
7717 | if test "${enable_static+set}" = set; then : | |
7718 | enableval=$enable_static; p=${PACKAGE-default} | |
718a6fd8 SE |
7719 | case $enableval in |
7720 | yes) enable_static=yes ;; | |
7721 | no) enable_static=no ;; | |
7722 | *) | |
7723 | enable_static=no | |
7724 | # Look at the argument we got. We use all the common list separators. | |
7725 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7726 | for pkg in $enableval; do | |
7727 | IFS="$lt_save_ifs" | |
7728 | if test "X$pkg" = "X$p"; then | |
7729 | enable_static=yes | |
7730 | fi | |
7731 | done | |
7732 | IFS="$lt_save_ifs" | |
7733 | ;; | |
7734 | esac | |
7735 | else | |
7736 | enable_static=yes | |
81ecdfbb RW |
7737 | fi |
7738 | ||
718a6fd8 SE |
7739 | |
7740 | ||
d7040cdb | 7741 | |
d7040cdb | 7742 | |
718a6fd8 SE |
7743 | |
7744 | ||
7745 | ||
7746 | ||
7747 | ||
81ecdfbb RW |
7748 | # Check whether --with-pic was given. |
7749 | if test "${with_pic+set}" = set; then : | |
7750 | withval=$with_pic; pic_mode="$withval" | |
ce2cded5 | 7751 | else |
718a6fd8 | 7752 | pic_mode=default |
81ecdfbb RW |
7753 | fi |
7754 | ||
d7040cdb | 7755 | |
718a6fd8 SE |
7756 | test -z "$pic_mode" && pic_mode=default |
7757 | ||
7758 | ||
7759 | ||
7760 | ||
7761 | ||
7762 | ||
7763 | ||
81ecdfbb RW |
7764 | # Check whether --enable-fast-install was given. |
7765 | if test "${enable_fast_install+set}" = set; then : | |
7766 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
718a6fd8 SE |
7767 | case $enableval in |
7768 | yes) enable_fast_install=yes ;; | |
7769 | no) enable_fast_install=no ;; | |
7770 | *) | |
7771 | enable_fast_install=no | |
7772 | # Look at the argument we got. We use all the common list separators. | |
7773 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7774 | for pkg in $enableval; do | |
7775 | IFS="$lt_save_ifs" | |
7776 | if test "X$pkg" = "X$p"; then | |
7777 | enable_fast_install=yes | |
7778 | fi | |
7779 | done | |
7780 | IFS="$lt_save_ifs" | |
7781 | ;; | |
7782 | esac | |
ce2cded5 | 7783 | else |
718a6fd8 | 7784 | enable_fast_install=yes |
81ecdfbb RW |
7785 | fi |
7786 | ||
718a6fd8 SE |
7787 | |
7788 | ||
7789 | ||
7790 | ||
d7040cdb | 7791 | |
d7040cdb | 7792 | |
d7040cdb | 7793 | |
d7040cdb | 7794 | |
d7040cdb | 7795 | |
d7040cdb | 7796 | |
ce2cded5 L |
7797 | # This can be used to rebuild libtool when needed |
7798 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7799 | |
ce2cded5 L |
7800 | # Always use our own libtool. |
7801 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7802 | |
d7040cdb | 7803 | |
d7040cdb | 7804 | |
d7040cdb SE |
7805 | |
7806 | ||
7807 | ||
7808 | ||
7809 | ||
7810 | ||
d7040cdb | 7811 | |
d7040cdb | 7812 | |
ab509236 | 7813 | |
ab509236 | 7814 | |
d7040cdb SE |
7815 | |
7816 | ||
7817 | ||
7818 | ||
7819 | ||
13b2be9c | 7820 | |
13b2be9c | 7821 | |
13b2be9c | 7822 | |
13b2be9c | 7823 | |
d7040cdb SE |
7824 | |
7825 | ||
7826 | ||
ce2cded5 | 7827 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7828 | |
7829 | ||
d7040cdb | 7830 | |
d7040cdb | 7831 | |
d7040cdb SE |
7832 | |
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
ce2cded5 L |
7838 | |
7839 | ||
7840 | ||
7841 | ||
7842 | if test -n "${ZSH_VERSION+set}" ; then | |
7843 | setopt NO_GLOB_SUBST | |
7844 | fi | |
7845 | ||
81ecdfbb RW |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7847 | $as_echo_n "checking for objdir... " >&6; } | |
7848 | if test "${lt_cv_objdir+set}" = set; then : | |
7849 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 7850 | else |
ce2cded5 L |
7851 | rm -f .libs 2>/dev/null |
7852 | mkdir .libs 2>/dev/null | |
7853 | if test -d .libs; then | |
7854 | lt_cv_objdir=.libs | |
7855 | else | |
7856 | # MS-DOS does not allow filenames that begin with a dot. | |
7857 | lt_cv_objdir=_libs | |
d7040cdb | 7858 | fi |
ce2cded5 L |
7859 | rmdir .libs 2>/dev/null |
7860 | fi | |
81ecdfbb RW |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7862 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 7863 | objdir=$lt_cv_objdir |
d7040cdb SE |
7864 | |
7865 | ||
7866 | ||
7867 | ||
d7040cdb | 7868 | |
ce2cded5 L |
7869 | cat >>confdefs.h <<_ACEOF |
7870 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7871 | _ACEOF | |
d7040cdb SE |
7872 | |
7873 | ||
7874 | ||
7875 | ||
7876 | ||
d7040cdb | 7877 | |
d7040cdb | 7878 | |
d7040cdb | 7879 | |
d7040cdb | 7880 | |
d7040cdb | 7881 | |
d7040cdb | 7882 | |
d7040cdb | 7883 | |
d7040cdb | 7884 | |
d7040cdb | 7885 | |
d7040cdb | 7886 | |
d7040cdb | 7887 | |
d7040cdb | 7888 | |
ce2cded5 L |
7889 | case $host_os in |
7890 | aix3*) | |
7891 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7892 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7893 | # vanish in a puff of smoke. | |
7894 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7895 | COLLECT_NAMES= | |
7896 | export COLLECT_NAMES | |
7897 | fi | |
7898 | ;; | |
7899 | esac | |
d7040cdb | 7900 | |
ce2cded5 L |
7901 | # Sed substitution that helps us do robust quoting. It backslashifies |
7902 | # metacharacters that are still active within double-quoted strings. | |
7903 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 7904 | |
ce2cded5 L |
7905 | # Same as above, but do not quote variable references. |
7906 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 7907 | |
ce2cded5 L |
7908 | # Sed substitution to delay expansion of an escaped shell variable in a |
7909 | # double_quote_subst'ed string. | |
7910 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 7911 | |
ce2cded5 L |
7912 | # Sed substitution to delay expansion of an escaped single quote. |
7913 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 7914 | |
ce2cded5 L |
7915 | # Sed substitution to avoid accidental globbing in evaled expressions |
7916 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 7917 | |
ce2cded5 L |
7918 | # Global variables: |
7919 | ofile=libtool | |
7920 | can_build_shared=yes | |
d7040cdb | 7921 | |
ce2cded5 L |
7922 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7923 | # which needs '.lib'). | |
7924 | libext=a | |
d7040cdb | 7925 | |
ce2cded5 | 7926 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7927 | |
ce2cded5 L |
7928 | old_CC="$CC" |
7929 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7930 | |
ce2cded5 L |
7931 | # Set sane defaults for various variables |
7932 | test -z "$CC" && CC=cc | |
7933 | test -z "$LTCC" && LTCC=$CC | |
7934 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7935 | test -z "$LD" && LD=ld | |
7936 | test -z "$ac_objext" && ac_objext=o | |
7937 | ||
7938 | for cc_temp in $compiler""; do | |
7939 | case $cc_temp in | |
7940 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7941 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7942 | \-*) ;; | |
7943 | *) break;; | |
7944 | esac | |
7945 | done | |
7946 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7947 | ||
7948 | ||
7949 | # Only perform the check for file, if the check method requires it | |
7950 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7951 | case $deplibs_check_method in | |
7952 | file_magic*) | |
7953 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7955 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7956 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7957 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
7958 | else |
7959 | case $MAGIC_CMD in | |
7960 | [\\/*] | ?:[\\/]*) | |
7961 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7962 | ;; | |
7963 | *) | |
7964 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7965 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7966 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7967 | for ac_dir in $ac_dummy; do | |
7968 | IFS="$lt_save_ifs" | |
7969 | test -z "$ac_dir" && ac_dir=. | |
7970 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7971 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7972 | if test -n "$file_magic_test_file"; then | |
7973 | case $deplibs_check_method in | |
7974 | "file_magic "*) | |
7975 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7976 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7977 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7978 | $EGREP "$file_magic_regex" > /dev/null; then | |
7979 | : | |
d7040cdb | 7980 | else |
ce2cded5 | 7981 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7982 | |
ce2cded5 L |
7983 | *** Warning: the command libtool uses to detect shared libraries, |
7984 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7985 | *** The result is that libtool may fail to recognize shared libraries | |
7986 | *** as such. This will affect the creation of libtool libraries that | |
7987 | *** depend on shared libraries, but programs linked with such libtool | |
7988 | *** libraries will work regardless of this problem. Nevertheless, you | |
7989 | *** may want to report the problem to your system manager and/or to | |
7990 | *** [email protected] | |
d7040cdb | 7991 | |
ce2cded5 L |
7992 | _LT_EOF |
7993 | fi ;; | |
7994 | esac | |
d7040cdb | 7995 | fi |
ce2cded5 | 7996 | break |
d7040cdb | 7997 | fi |
ce2cded5 L |
7998 | done |
7999 | IFS="$lt_save_ifs" | |
8000 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8001 | ;; | |
8002 | esac | |
8003 | fi | |
d7040cdb | 8004 | |
ce2cded5 L |
8005 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8006 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8008 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8009 | else |
81ecdfbb RW |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8011 | $as_echo "no" >&6; } | |
ce2cded5 | 8012 | fi |
d7040cdb | 8013 | |
d7040cdb | 8014 | |
d7040cdb | 8015 | |
d7040cdb | 8016 | |
d7040cdb | 8017 | |
ce2cded5 L |
8018 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8019 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8021 | $as_echo_n "checking for file... " >&6; } | |
8022 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8023 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8024 | else |
8025 | case $MAGIC_CMD in | |
8026 | [\\/*] | ?:[\\/]*) | |
8027 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8028 | ;; | |
8029 | *) | |
8030 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8031 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8032 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8033 | for ac_dir in $ac_dummy; do | |
8034 | IFS="$lt_save_ifs" | |
8035 | test -z "$ac_dir" && ac_dir=. | |
8036 | if test -f $ac_dir/file; then | |
8037 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8038 | if test -n "$file_magic_test_file"; then | |
8039 | case $deplibs_check_method in | |
8040 | "file_magic "*) | |
8041 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8042 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8043 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8044 | $EGREP "$file_magic_regex" > /dev/null; then | |
8045 | : | |
d7040cdb | 8046 | else |
ce2cded5 L |
8047 | cat <<_LT_EOF 1>&2 |
8048 | ||
8049 | *** Warning: the command libtool uses to detect shared libraries, | |
8050 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8051 | *** The result is that libtool may fail to recognize shared libraries | |
8052 | *** as such. This will affect the creation of libtool libraries that | |
8053 | *** depend on shared libraries, but programs linked with such libtool | |
8054 | *** libraries will work regardless of this problem. Nevertheless, you | |
8055 | *** may want to report the problem to your system manager and/or to | |
8056 | *** [email protected] | |
8057 | ||
8058 | _LT_EOF | |
8059 | fi ;; | |
d7040cdb | 8060 | esac |
d7040cdb | 8061 | fi |
ce2cded5 L |
8062 | break |
8063 | fi | |
8064 | done | |
8065 | IFS="$lt_save_ifs" | |
8066 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8067 | ;; | |
8068 | esac | |
8069 | fi | |
d7040cdb | 8070 | |
ce2cded5 L |
8071 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8072 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8074 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8075 | else |
81ecdfbb RW |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8077 | $as_echo "no" >&6; } | |
ce2cded5 | 8078 | fi |
d7040cdb | 8079 | |
d7040cdb | 8080 | |
ce2cded5 L |
8081 | else |
8082 | MAGIC_CMD=: | |
8083 | fi | |
d7040cdb | 8084 | fi |
d7040cdb | 8085 | |
ce2cded5 L |
8086 | fi |
8087 | ;; | |
8088 | esac | |
d7040cdb | 8089 | |
ce2cded5 | 8090 | # Use C for the default configuration in the libtool script |
d7040cdb | 8091 | |
ce2cded5 L |
8092 | lt_save_CC="$CC" |
8093 | ac_ext=c | |
8094 | ac_cpp='$CPP $CPPFLAGS' | |
8095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 8098 | |
d7040cdb | 8099 | |
ce2cded5 L |
8100 | # Source file extension for C test sources. |
8101 | ac_ext=c | |
d7040cdb | 8102 | |
ce2cded5 L |
8103 | # Object file extension for compiled C test sources. |
8104 | objext=o | |
8105 | objext=$objext | |
d7040cdb | 8106 | |
ce2cded5 L |
8107 | # Code to be used in simple compile tests |
8108 | lt_simple_compile_test_code="int some_variable = 0;" | |
8109 | ||
8110 | # Code to be used in simple link tests | |
8111 | lt_simple_link_test_code='int main(){return(0);}' | |
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | ||
8119 | # If no C compiler was specified, use CC. | |
8120 | LTCC=${LTCC-"$CC"} | |
8121 | ||
8122 | # If no C compiler flags were specified, use CFLAGS. | |
8123 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8124 | ||
8125 | # Allow CC to be a program name with arguments. | |
8126 | compiler=$CC | |
8127 | ||
8128 | # Save the default compiler, since it gets overwritten when the other | |
8129 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8130 | compiler_DEFAULT=$CC | |
8131 | ||
8132 | # save warnings/boilerplate of simple test code | |
8133 | ac_outfile=conftest.$ac_objext | |
8134 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8135 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8136 | _lt_compiler_boilerplate=`cat conftest.err` | |
8137 | $RM conftest* | |
8138 | ||
8139 | ac_outfile=conftest.$ac_objext | |
8140 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8141 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8142 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 8143 | $RM -r conftest* |
ce2cded5 L |
8144 | |
8145 | ||
8146 | ## CAVEAT EMPTOR: | |
8147 | ## There is no encapsulation within the following macros, do not change | |
8148 | ## the running order or otherwise move them around unless you know exactly | |
8149 | ## what you are doing... | |
8150 | if test -n "$compiler"; then | |
8151 | ||
8152 | lt_prog_compiler_no_builtin_flag= | |
8153 | ||
8154 | if test "$GCC" = yes; then | |
8155 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8156 | ||
81ecdfbb RW |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8158 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8159 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8160 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8161 | else |
8162 | lt_cv_prog_compiler_rtti_exceptions=no | |
8163 | ac_outfile=conftest.$ac_objext | |
8164 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8165 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8166 | # Insert the option either (1) after the last *FLAGS variable, or | |
8167 | # (2) before a word containing "conftest.", or (3) at the end. | |
8168 | # Note that $ac_compile itself does not contain backslashes and begins | |
8169 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8170 | # The option is referenced via a variable to avoid confusing sed. | |
8171 | lt_compile=`echo "$ac_compile" | $SED \ | |
8172 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8173 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8174 | -e 's:$: $lt_compiler_flag:'` | |
81ecdfbb | 8175 | (eval echo "\"\$as_me:8175: $lt_compile\"" >&5) |
ce2cded5 L |
8176 | (eval "$lt_compile" 2>conftest.err) |
8177 | ac_status=$? | |
8178 | cat conftest.err >&5 | |
81ecdfbb | 8179 | echo "$as_me:8179: \$? = $ac_status" >&5 |
ce2cded5 L |
8180 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8181 | # The compiler can only warn and ignore the option if not recognized | |
8182 | # So say no if there are warnings other than the usual output. | |
8183 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8184 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8185 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8186 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8187 | fi | |
8188 | fi | |
8189 | $RM conftest* | |
8190 | ||
8191 | fi | |
81ecdfbb RW |
8192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8193 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
ce2cded5 L |
8194 | |
8195 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8196 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8197 | else | |
8198 | : | |
8199 | fi | |
8200 | ||
8201 | fi | |
8202 | ||
8203 | ||
8204 | ||
8205 | ||
8206 | ||
8207 | ||
8208 | lt_prog_compiler_wl= | |
8209 | lt_prog_compiler_pic= | |
8210 | lt_prog_compiler_static= | |
8211 | ||
81ecdfbb RW |
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8213 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
ce2cded5 L |
8214 | |
8215 | if test "$GCC" = yes; then | |
8216 | lt_prog_compiler_wl='-Wl,' | |
8217 | lt_prog_compiler_static='-static' | |
8218 | ||
8219 | case $host_os in | |
8220 | aix*) | |
8221 | # All AIX code is PIC. | |
8222 | if test "$host_cpu" = ia64; then | |
8223 | # AIX 5 now supports IA64 processor | |
8224 | lt_prog_compiler_static='-Bstatic' | |
8225 | fi | |
8226 | ;; | |
d7040cdb SE |
8227 | |
8228 | amigaos*) | |
718a6fd8 SE |
8229 | case $host_cpu in |
8230 | powerpc) | |
8231 | # see comment about AmigaOS4 .so support | |
8232 | lt_prog_compiler_pic='-fPIC' | |
8233 | ;; | |
8234 | m68k) | |
8235 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8236 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8237 | # like `-m68040'. | |
8238 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8239 | ;; | |
8240 | esac | |
d7040cdb SE |
8241 | ;; |
8242 | ||
ce2cded5 L |
8243 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8244 | # PIC is the default for these OSes. | |
d7040cdb SE |
8245 | ;; |
8246 | ||
718a6fd8 | 8247 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8248 | # This hack is so that the source file can tell whether it is being |
8249 | # built for inclusion in a dll (and should export symbols for example). | |
8250 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8251 | # (--disable-auto-import) libraries | |
8252 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8253 | ;; |
8254 | ||
8255 | darwin* | rhapsody*) | |
ce2cded5 L |
8256 | # PIC is the default on this platform |
8257 | # Common symbols not allowed in MH_DYLIB files | |
8258 | lt_prog_compiler_pic='-fno-common' | |
8259 | ;; | |
8260 | ||
8261 | hpux*) | |
718a6fd8 SE |
8262 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8263 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8264 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8265 | case $host_cpu in |
718a6fd8 | 8266 | hppa*64*) |
ce2cded5 | 8267 | # +Z the default |
d7040cdb | 8268 | ;; |
ce2cded5 L |
8269 | *) |
8270 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
8271 | ;; |
8272 | esac | |
ce2cded5 | 8273 | ;; |
d7040cdb | 8274 | |
ce2cded5 L |
8275 | interix[3-9]*) |
8276 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8277 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
8278 | ;; |
8279 | ||
ce2cded5 L |
8280 | msdosdjgpp*) |
8281 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8282 | # on systems that don't support them. | |
8283 | lt_prog_compiler_can_build_shared=no | |
8284 | enable_shared=no | |
d7040cdb SE |
8285 | ;; |
8286 | ||
ce2cded5 L |
8287 | *nto* | *qnx*) |
8288 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8289 | # it will coredump. | |
8290 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8291 | ;; |
8292 | ||
ce2cded5 L |
8293 | sysv4*MP*) |
8294 | if test -d /usr/nec; then | |
8295 | lt_prog_compiler_pic=-Kconform_pic | |
8296 | fi | |
d7040cdb SE |
8297 | ;; |
8298 | ||
ce2cded5 L |
8299 | *) |
8300 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 8301 | ;; |
ce2cded5 L |
8302 | esac |
8303 | else | |
8304 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8305 | case $host_os in | |
8306 | aix*) | |
8307 | lt_prog_compiler_wl='-Wl,' | |
8308 | if test "$host_cpu" = ia64; then | |
8309 | # AIX 5 now supports IA64 processor | |
8310 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 8311 | else |
ce2cded5 | 8312 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 8313 | fi |
ce2cded5 | 8314 | ;; |
d7040cdb | 8315 | |
718a6fd8 | 8316 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8317 | # This hack is so that the source file can tell whether it is being |
8318 | # built for inclusion in a dll (and should export symbols for example). | |
8319 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8320 | ;; |
8321 | ||
ce2cded5 L |
8322 | hpux9* | hpux10* | hpux11*) |
8323 | lt_prog_compiler_wl='-Wl,' | |
8324 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8325 | # not for PA HP-UX. | |
8326 | case $host_cpu in | |
8327 | hppa*64*|ia64*) | |
8328 | # +Z the default | |
8329 | ;; | |
8330 | *) | |
8331 | lt_prog_compiler_pic='+Z' | |
8332 | ;; | |
8333 | esac | |
8334 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8335 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
8336 | ;; |
8337 | ||
ce2cded5 L |
8338 | irix5* | irix6* | nonstopux*) |
8339 | lt_prog_compiler_wl='-Wl,' | |
8340 | # PIC (with -KPIC) is the default. | |
8341 | lt_prog_compiler_static='-non_shared' | |
8342 | ;; | |
d7040cdb | 8343 | |
58e24671 | 8344 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8345 | case $cc_basename in |
718a6fd8 SE |
8346 | # old Intel for x86_64 which still supported -KPIC. |
8347 | ecc*) | |
ce2cded5 L |
8348 | lt_prog_compiler_wl='-Wl,' |
8349 | lt_prog_compiler_pic='-KPIC' | |
8350 | lt_prog_compiler_static='-static' | |
8351 | ;; | |
718a6fd8 SE |
8352 | # icc used to be incompatible with GCC. |
8353 | # ICC 10 doesn't accept -KPIC any more. | |
8354 | icc* | ifort*) | |
8355 | lt_prog_compiler_wl='-Wl,' | |
8356 | lt_prog_compiler_pic='-fPIC' | |
8357 | lt_prog_compiler_static='-static' | |
8358 | ;; | |
8359 | # Lahey Fortran 8.1. | |
8360 | lf95*) | |
8361 | lt_prog_compiler_wl='-Wl,' | |
8362 | lt_prog_compiler_pic='--shared' | |
8363 | lt_prog_compiler_static='--static' | |
8364 | ;; | |
ce2cded5 L |
8365 | pgcc* | pgf77* | pgf90* | pgf95*) |
8366 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8367 | # which looks to be a dead project) | |
8368 | lt_prog_compiler_wl='-Wl,' | |
8369 | lt_prog_compiler_pic='-fpic' | |
8370 | lt_prog_compiler_static='-Bstatic' | |
8371 | ;; | |
8372 | ccc*) | |
8373 | lt_prog_compiler_wl='-Wl,' | |
8374 | # All Alpha code is PIC. | |
8375 | lt_prog_compiler_static='-non_shared' | |
8376 | ;; | |
718a6fd8 SE |
8377 | xl*) |
8378 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8379 | lt_prog_compiler_wl='-Wl,' | |
8380 | lt_prog_compiler_pic='-qpic' | |
8381 | lt_prog_compiler_static='-qstaticlink' | |
8382 | ;; | |
ce2cded5 L |
8383 | *) |
8384 | case `$CC -V 2>&1 | sed 5q` in | |
8385 | *Sun\ C*) | |
8386 | # Sun C 5.9 | |
8387 | lt_prog_compiler_pic='-KPIC' | |
8388 | lt_prog_compiler_static='-Bstatic' | |
8389 | lt_prog_compiler_wl='-Wl,' | |
d7040cdb | 8390 | ;; |
ce2cded5 L |
8391 | *Sun\ F*) |
8392 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8393 | lt_prog_compiler_pic='-KPIC' | |
8394 | lt_prog_compiler_static='-Bstatic' | |
8395 | lt_prog_compiler_wl='' | |
d7040cdb SE |
8396 | ;; |
8397 | esac | |
ce2cded5 L |
8398 | ;; |
8399 | esac | |
d7040cdb SE |
8400 | ;; |
8401 | ||
ce2cded5 L |
8402 | newsos6) |
8403 | lt_prog_compiler_pic='-KPIC' | |
8404 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8405 | ;; |
8406 | ||
ce2cded5 L |
8407 | *nto* | *qnx*) |
8408 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8409 | # it will coredump. | |
8410 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8411 | ;; |
8412 | ||
ce2cded5 L |
8413 | osf3* | osf4* | osf5*) |
8414 | lt_prog_compiler_wl='-Wl,' | |
8415 | # All OSF/1 code is PIC. | |
8416 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8417 | ;; |
8418 | ||
ce2cded5 L |
8419 | rdos*) |
8420 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8421 | ;; |
8422 | ||
8423 | solaris*) | |
ce2cded5 L |
8424 | lt_prog_compiler_pic='-KPIC' |
8425 | lt_prog_compiler_static='-Bstatic' | |
8426 | case $cc_basename in | |
8427 | f77* | f90* | f95*) | |
8428 | lt_prog_compiler_wl='-Qoption ld ';; | |
d7040cdb | 8429 | *) |
ce2cded5 | 8430 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 8431 | esac |
d7040cdb SE |
8432 | ;; |
8433 | ||
8434 | sunos4*) | |
ce2cded5 L |
8435 | lt_prog_compiler_wl='-Qoption ld ' |
8436 | lt_prog_compiler_pic='-PIC' | |
8437 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8438 | ;; |
8439 | ||
ce2cded5 L |
8440 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8441 | lt_prog_compiler_wl='-Wl,' | |
8442 | lt_prog_compiler_pic='-KPIC' | |
8443 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8444 | ;; |
8445 | ||
8446 | sysv4*MP*) | |
ce2cded5 L |
8447 | if test -d /usr/nec ;then |
8448 | lt_prog_compiler_pic='-Kconform_pic' | |
8449 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8450 | fi |
8451 | ;; | |
8452 | ||
ce2cded5 L |
8453 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8454 | lt_prog_compiler_wl='-Wl,' | |
8455 | lt_prog_compiler_pic='-KPIC' | |
8456 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8457 | ;; |
8458 | ||
ce2cded5 L |
8459 | unicos*) |
8460 | lt_prog_compiler_wl='-Wl,' | |
8461 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
8462 | ;; |
8463 | ||
8464 | uts4*) | |
ce2cded5 L |
8465 | lt_prog_compiler_pic='-pic' |
8466 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8467 | ;; |
8468 | ||
8469 | *) | |
ce2cded5 | 8470 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
8471 | ;; |
8472 | esac | |
d7040cdb SE |
8473 | fi |
8474 | ||
ce2cded5 L |
8475 | case $host_os in |
8476 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8477 | *djgpp*) | |
8478 | lt_prog_compiler_pic= | |
8479 | ;; | |
8480 | *) | |
8481 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8482 | ;; | |
8483 | esac | |
81ecdfbb RW |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8485 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8486 | |
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | # | |
ce2cded5 | 8493 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8494 | # |
ce2cded5 | 8495 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8497 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8498 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8499 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8500 | else |
718a6fd8 | 8501 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8502 | ac_outfile=conftest.$ac_objext |
8503 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8504 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8505 | # Insert the option either (1) after the last *FLAGS variable, or | |
8506 | # (2) before a word containing "conftest.", or (3) at the end. | |
8507 | # Note that $ac_compile itself does not contain backslashes and begins | |
8508 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8509 | # The option is referenced via a variable to avoid confusing sed. | |
8510 | lt_compile=`echo "$ac_compile" | $SED \ | |
8511 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8512 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8513 | -e 's:$: $lt_compiler_flag:'` | |
81ecdfbb | 8514 | (eval echo "\"\$as_me:8514: $lt_compile\"" >&5) |
ce2cded5 L |
8515 | (eval "$lt_compile" 2>conftest.err) |
8516 | ac_status=$? | |
8517 | cat conftest.err >&5 | |
81ecdfbb | 8518 | echo "$as_me:8518: \$? = $ac_status" >&5 |
ce2cded5 L |
8519 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8520 | # The compiler can only warn and ignore the option if not recognized | |
8521 | # So say no if there are warnings other than the usual output. | |
8522 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8523 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8524 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8525 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8526 | fi |
8527 | fi | |
8528 | $RM conftest* | |
d7040cdb | 8529 | |
ce2cded5 | 8530 | fi |
81ecdfbb RW |
8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8532 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8533 | |
718a6fd8 | 8534 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8535 | case $lt_prog_compiler_pic in |
8536 | "" | " "*) ;; | |
8537 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8538 | esac | |
8539 | else | |
8540 | lt_prog_compiler_pic= | |
8541 | lt_prog_compiler_can_build_shared=no | |
8542 | fi | |
d7040cdb | 8543 | |
ce2cded5 | 8544 | fi |
d7040cdb SE |
8545 | |
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
ce2cded5 L |
8551 | # |
8552 | # Check to make sure the static flag actually works. | |
8553 | # | |
8554 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8556 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8557 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8558 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8559 | else |
718a6fd8 | 8560 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8561 | save_LDFLAGS="$LDFLAGS" |
8562 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8563 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8564 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8565 | # The linker can only warn and ignore the option if not recognized | |
8566 | # So say no if there are warnings | |
8567 | if test -s conftest.err; then | |
8568 | # Append any errors to the config.log. | |
8569 | cat conftest.err 1>&5 | |
8570 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8571 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8572 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8573 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8574 | fi |
8575 | else | |
718a6fd8 | 8576 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8577 | fi |
8578 | fi | |
718a6fd8 | 8579 | $RM -r conftest* |
ce2cded5 | 8580 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8581 | |
ce2cded5 | 8582 | fi |
81ecdfbb RW |
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8584 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8585 | |
718a6fd8 | 8586 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
8587 | : |
8588 | else | |
8589 | lt_prog_compiler_static= | |
8590 | fi | |
d7040cdb SE |
8591 | |
8592 | ||
8593 | ||
8594 | ||
8595 | ||
8596 | ||
8597 | ||
81ecdfbb RW |
8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8599 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8600 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8601 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8602 | else |
8603 | lt_cv_prog_compiler_c_o=no | |
8604 | $RM -r conftest 2>/dev/null | |
8605 | mkdir conftest | |
8606 | cd conftest | |
8607 | mkdir out | |
8608 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8609 | |
ce2cded5 L |
8610 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8611 | # Insert the option either (1) after the last *FLAGS variable, or | |
8612 | # (2) before a word containing "conftest.", or (3) at the end. | |
8613 | # Note that $ac_compile itself does not contain backslashes and begins | |
8614 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8615 | lt_compile=`echo "$ac_compile" | $SED \ | |
8616 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8617 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8618 | -e 's:$: $lt_compiler_flag:'` | |
81ecdfbb | 8619 | (eval echo "\"\$as_me:8619: $lt_compile\"" >&5) |
ce2cded5 L |
8620 | (eval "$lt_compile" 2>out/conftest.err) |
8621 | ac_status=$? | |
8622 | cat out/conftest.err >&5 | |
81ecdfbb | 8623 | echo "$as_me:8623: \$? = $ac_status" >&5 |
ce2cded5 L |
8624 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8625 | then | |
8626 | # The compiler can only warn and ignore the option if not recognized | |
8627 | # So say no if there are warnings | |
8628 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8629 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8630 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8631 | lt_cv_prog_compiler_c_o=yes | |
8632 | fi | |
8633 | fi | |
8634 | chmod u+w . 2>&5 | |
8635 | $RM conftest* | |
8636 | # SGI C++ compiler will create directory out/ii_files/ for | |
8637 | # template instantiation | |
8638 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8639 | $RM out/* && rmdir out | |
8640 | cd .. | |
8641 | $RM -r conftest | |
8642 | $RM conftest* | |
d7040cdb | 8643 | |
ce2cded5 | 8644 | fi |
81ecdfbb RW |
8645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8646 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8647 | |
8648 | ||
8649 | ||
8650 | ||
8651 | ||
8652 | ||
81ecdfbb RW |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8654 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8655 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8656 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8657 | else |
8658 | lt_cv_prog_compiler_c_o=no | |
8659 | $RM -r conftest 2>/dev/null | |
8660 | mkdir conftest | |
8661 | cd conftest | |
8662 | mkdir out | |
8663 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8664 | |
ce2cded5 L |
8665 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8666 | # Insert the option either (1) after the last *FLAGS variable, or | |
8667 | # (2) before a word containing "conftest.", or (3) at the end. | |
8668 | # Note that $ac_compile itself does not contain backslashes and begins | |
8669 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8670 | lt_compile=`echo "$ac_compile" | $SED \ | |
8671 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8672 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8673 | -e 's:$: $lt_compiler_flag:'` | |
81ecdfbb | 8674 | (eval echo "\"\$as_me:8674: $lt_compile\"" >&5) |
ce2cded5 L |
8675 | (eval "$lt_compile" 2>out/conftest.err) |
8676 | ac_status=$? | |
8677 | cat out/conftest.err >&5 | |
81ecdfbb | 8678 | echo "$as_me:8678: \$? = $ac_status" >&5 |
ce2cded5 L |
8679 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8680 | then | |
8681 | # The compiler can only warn and ignore the option if not recognized | |
8682 | # So say no if there are warnings | |
8683 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8684 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8685 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8686 | lt_cv_prog_compiler_c_o=yes | |
8687 | fi | |
8688 | fi | |
8689 | chmod u+w . 2>&5 | |
8690 | $RM conftest* | |
8691 | # SGI C++ compiler will create directory out/ii_files/ for | |
8692 | # template instantiation | |
8693 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8694 | $RM out/* && rmdir out | |
8695 | cd .. | |
8696 | $RM -r conftest | |
8697 | $RM conftest* | |
d7040cdb | 8698 | |
ce2cded5 | 8699 | fi |
81ecdfbb RW |
8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8701 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8702 | |
8703 | ||
8704 | ||
8705 | ||
ce2cded5 L |
8706 | hard_links="nottested" |
8707 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8708 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8710 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
8711 | hard_links=yes |
8712 | $RM conftest* | |
8713 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8714 | touch conftest.a | |
8715 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8716 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8718 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 8719 | if test "$hard_links" = no; then |
81ecdfbb RW |
8720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8721 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 L |
8722 | need_locks=warn |
8723 | fi | |
8724 | else | |
8725 | need_locks=no | |
8726 | fi | |
d7040cdb SE |
8727 | |
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | ||
81ecdfbb RW |
8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8734 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8735 | |
ce2cded5 L |
8736 | runpath_var= |
8737 | allow_undefined_flag= | |
8738 | always_export_symbols=no | |
8739 | archive_cmds= | |
8740 | archive_expsym_cmds= | |
8741 | compiler_needs_object=no | |
8742 | enable_shared_with_static_runtimes=no | |
8743 | export_dynamic_flag_spec= | |
8744 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8745 | hardcode_automatic=no | |
8746 | hardcode_direct=no | |
8747 | hardcode_direct_absolute=no | |
8748 | hardcode_libdir_flag_spec= | |
8749 | hardcode_libdir_flag_spec_ld= | |
8750 | hardcode_libdir_separator= | |
8751 | hardcode_minus_L=no | |
8752 | hardcode_shlibpath_var=unsupported | |
8753 | inherit_rpath=no | |
8754 | link_all_deplibs=unknown | |
8755 | module_cmds= | |
8756 | module_expsym_cmds= | |
8757 | old_archive_from_new_cmds= | |
8758 | old_archive_from_expsyms_cmds= | |
8759 | thread_safe_flag_spec= | |
8760 | whole_archive_flag_spec= | |
8761 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8762 | # included in the symbol list | |
8763 | include_expsyms= | |
8764 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8765 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8766 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8767 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8768 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
8769 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8770 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8771 | # the symbol is explicitly referenced. Since portable code cannot | |
8772 | # rely on this symbol name, it's probably fine to never include it in | |
8773 | # preloaded symbol tables. | |
718a6fd8 | 8774 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 8775 | extract_expsyms_cmds= |
d7040cdb | 8776 | |
ce2cded5 | 8777 | case $host_os in |
718a6fd8 | 8778 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8779 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8780 | # When not using gcc, we currently assume that we are using | |
8781 | # Microsoft Visual C++. | |
8782 | if test "$GCC" != yes; then | |
8783 | with_gnu_ld=no | |
8784 | fi | |
8785 | ;; | |
8786 | interix*) | |
8787 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8788 | with_gnu_ld=yes | |
8789 | ;; | |
8790 | openbsd*) | |
8791 | with_gnu_ld=no | |
8792 | ;; | |
8793 | esac | |
d7040cdb | 8794 | |
ce2cded5 L |
8795 | ld_shlibs=yes |
8796 | if test "$with_gnu_ld" = yes; then | |
8797 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8798 | wlarc='${wl}' | |
d7040cdb | 8799 | |
ce2cded5 L |
8800 | # Set some defaults for GNU ld with shared library support. These |
8801 | # are reset later if shared libraries are not supported. Putting them | |
8802 | # here allows them to be overridden if necessary. | |
8803 | runpath_var=LD_RUN_PATH | |
8804 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8805 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8806 | # ancient GNU ld didn't support --whole-archive et. al. | |
8807 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8808 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8809 | else | |
8810 | whole_archive_flag_spec= | |
8811 | fi | |
8812 | supports_anon_versioning=no | |
8813 | case `$LD -v 2>&1` in | |
8814 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8815 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8816 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8817 | *\ 2.11.*) ;; # other 2.11 versions | |
8818 | *) supports_anon_versioning=yes ;; | |
8819 | esac | |
d7040cdb | 8820 | |
ce2cded5 L |
8821 | # See if GNU ld supports shared libraries. |
8822 | case $host_os in | |
50e7d84b | 8823 | aix[3-9]*) |
ce2cded5 L |
8824 | # On AIX/PPC, the GNU linker is very broken |
8825 | if test "$host_cpu" != ia64; then | |
8826 | ld_shlibs=no | |
8827 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8828 | |
ce2cded5 L |
8829 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8830 | *** to be unable to reliably create shared libraries on AIX. | |
8831 | *** Therefore, libtool is disabling shared libraries support. If you | |
8832 | *** really care for shared libraries, you may want to modify your PATH | |
8833 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 8834 | |
ce2cded5 L |
8835 | _LT_EOF |
8836 | fi | |
8837 | ;; | |
d7040cdb | 8838 | |
ce2cded5 | 8839 | amigaos*) |
718a6fd8 SE |
8840 | case $host_cpu in |
8841 | powerpc) | |
8842 | # see comment about AmigaOS4 .so support | |
8843 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8844 | archive_expsym_cmds='' | |
8845 | ;; | |
8846 | m68k) | |
8847 | 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)' | |
8848 | hardcode_libdir_flag_spec='-L$libdir' | |
8849 | hardcode_minus_L=yes | |
8850 | ;; | |
8851 | esac | |
ce2cded5 | 8852 | ;; |
d7040cdb | 8853 | |
ce2cded5 L |
8854 | beos*) |
8855 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8856 | allow_undefined_flag=unsupported | |
8857 | # Joseph Beckenbach <[email protected]> says some releases of gcc | |
8858 | # support --undefined. This deserves some investigation. FIXME | |
8859 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8860 | else | |
8861 | ld_shlibs=no | |
8862 | fi | |
8863 | ;; | |
d7040cdb | 8864 | |
718a6fd8 | 8865 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8866 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8867 | # as there is no search path for DLLs. | |
8868 | hardcode_libdir_flag_spec='-L$libdir' | |
8869 | allow_undefined_flag=unsupported | |
8870 | always_export_symbols=no | |
8871 | enable_shared_with_static_runtimes=yes | |
8872 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8873 | |
ce2cded5 L |
8874 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8875 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8876 | # If the export-symbols file already is a .def file (1st line | |
8877 | # is EXPORTS), use it as is; otherwise, prepend... | |
8878 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8879 | cp $export_symbols $output_objdir/$soname.def; | |
8880 | else | |
8881 | echo EXPORTS > $output_objdir/$soname.def; | |
8882 | cat $export_symbols >> $output_objdir/$soname.def; | |
8883 | fi~ | |
8884 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8885 | else | |
8886 | ld_shlibs=no | |
8887 | fi | |
8888 | ;; | |
d7040cdb | 8889 | |
ce2cded5 L |
8890 | interix[3-9]*) |
8891 | hardcode_direct=no | |
8892 | hardcode_shlibpath_var=no | |
8893 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8894 | export_dynamic_flag_spec='${wl}-E' | |
8895 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8896 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8897 | # default) and relocated if they conflict, which is a slow very memory | |
8898 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8899 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8900 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8901 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8902 | 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' | |
8903 | ;; | |
d7040cdb | 8904 | |
58e24671 | 8905 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
8906 | tmp_diet=no |
8907 | if test "$host_os" = linux-dietlibc; then | |
8908 | case $cc_basename in | |
8909 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8910 | esac | |
8911 | fi | |
8912 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8913 | && test "$tmp_diet" = no | |
8914 | then | |
8915 | tmp_addflag= | |
718a6fd8 | 8916 | tmp_sharedflag='-shared' |
ce2cded5 L |
8917 | case $cc_basename,$host_cpu in |
8918 | pgcc*) # Portland Group C compiler | |
8919 | 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' | |
8920 | tmp_addflag=' $pic_flag' | |
8921 | ;; | |
8922 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8923 | 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' | |
8924 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8925 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8926 | tmp_addflag=' -i_dynamic' ;; | |
8927 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8928 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8929 | ifc* | ifort*) # Intel Fortran compiler | |
8930 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8931 | lf95*) # Lahey Fortran 8.1 |
8932 | whole_archive_flag_spec= | |
8933 | tmp_sharedflag='--shared' ;; | |
8934 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8935 | tmp_sharedflag='-qmkshrobj' | |
8936 | tmp_addflag= ;; | |
ce2cded5 L |
8937 | esac |
8938 | case `$CC -V 2>&1 | sed 5q` in | |
8939 | *Sun\ C*) # Sun C 5.9 | |
8940 | 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' | |
8941 | compiler_needs_object=yes | |
8942 | tmp_sharedflag='-G' ;; | |
8943 | *Sun\ F*) # Sun Fortran 8.3 | |
8944 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
8945 | esac |
8946 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8947 | |
ce2cded5 L |
8948 | if test "x$supports_anon_versioning" = xyes; then |
8949 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8950 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8951 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8952 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8953 | fi | |
718a6fd8 SE |
8954 | |
8955 | case $cc_basename in | |
8956 | xlf*) | |
8957 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8958 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8959 | hardcode_libdir_flag_spec= | |
8960 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8961 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8962 | if test "x$supports_anon_versioning" = xyes; then | |
8963 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8964 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8965 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8966 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8967 | fi | |
8968 | ;; | |
8969 | esac | |
ce2cded5 L |
8970 | else |
8971 | ld_shlibs=no | |
8972 | fi | |
8973 | ;; | |
d7040cdb | 8974 | |
ce2cded5 L |
8975 | netbsd*) |
8976 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8977 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8978 | wlarc= | |
8979 | else | |
8980 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8981 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8982 | fi | |
8983 | ;; | |
d7040cdb | 8984 | |
ce2cded5 L |
8985 | solaris*) |
8986 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8987 | ld_shlibs=no | |
8988 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8989 | |
ce2cded5 L |
8990 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8991 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8992 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8993 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8994 | *** your PATH or compiler configuration so that the native linker is | |
8995 | *** used, and then restart. | |
d7040cdb | 8996 | |
ce2cded5 L |
8997 | _LT_EOF |
8998 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8999 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9000 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9001 | else | |
9002 | ld_shlibs=no | |
9003 | fi | |
9004 | ;; | |
d7040cdb | 9005 | |
ce2cded5 L |
9006 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9007 | case `$LD -v 2>&1` in | |
9008 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9009 | ld_shlibs=no | |
9010 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9011 | |
ce2cded5 L |
9012 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9013 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9014 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9015 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9016 | *** your PATH or compiler configuration so that the native linker is | |
9017 | *** used, and then restart. | |
d7040cdb | 9018 | |
ce2cded5 L |
9019 | _LT_EOF |
9020 | ;; | |
9021 | *) | |
9022 | # For security reasons, it is highly recommended that you always | |
9023 | # use absolute paths for naming shared libraries, and exclude the | |
9024 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9025 | # requires that you compile everything twice, which is a pain. | |
9026 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9027 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9028 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9029 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9030 | else | |
9031 | ld_shlibs=no | |
9032 | fi | |
9033 | ;; | |
9034 | esac | |
9035 | ;; | |
d7040cdb | 9036 | |
ce2cded5 L |
9037 | sunos4*) |
9038 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9039 | wlarc= | |
9040 | hardcode_direct=yes | |
9041 | hardcode_shlibpath_var=no | |
9042 | ;; | |
d7040cdb | 9043 | |
ce2cded5 L |
9044 | *) |
9045 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9046 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9047 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9048 | else | |
9049 | ld_shlibs=no | |
9050 | fi | |
9051 | ;; | |
9052 | esac | |
d7040cdb | 9053 | |
ce2cded5 L |
9054 | if test "$ld_shlibs" = no; then |
9055 | runpath_var= | |
9056 | hardcode_libdir_flag_spec= | |
9057 | export_dynamic_flag_spec= | |
9058 | whole_archive_flag_spec= | |
9059 | fi | |
9060 | else | |
9061 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9062 | case $host_os in | |
9063 | aix3*) | |
9064 | allow_undefined_flag=unsupported | |
9065 | always_export_symbols=yes | |
9066 | 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' | |
9067 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9068 | # are no directories specified by -L. | |
9069 | hardcode_minus_L=yes | |
9070 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9071 | # Neither direct hardcoding nor static linking is supported with a | |
9072 | # broken collect2. | |
9073 | hardcode_direct=unsupported | |
9074 | fi | |
9075 | ;; | |
d7040cdb | 9076 | |
50e7d84b | 9077 | aix[4-9]*) |
ce2cded5 L |
9078 | if test "$host_cpu" = ia64; then |
9079 | # On IA64, the linker does run time linking by default, so we don't | |
9080 | # have to do anything special. | |
9081 | aix_use_runtimelinking=no | |
9082 | exp_sym_flag='-Bexport' | |
9083 | no_entry_flag="" | |
9084 | else | |
9085 | # If we're using GNU nm, then we don't want the "-C" option. | |
9086 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9087 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9088 | 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' | |
9089 | else | |
9090 | 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' | |
9091 | fi | |
9092 | aix_use_runtimelinking=no | |
d7040cdb | 9093 | |
ce2cded5 L |
9094 | # Test if we are trying to use run time linking or normal |
9095 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9096 | # need to do runtime linking. | |
50e7d84b | 9097 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
9098 | for ld_flag in $LDFLAGS; do |
9099 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9100 | aix_use_runtimelinking=yes | |
9101 | break | |
9102 | fi | |
9103 | done | |
9104 | ;; | |
9105 | esac | |
d7040cdb | 9106 | |
ce2cded5 L |
9107 | exp_sym_flag='-bexport' |
9108 | no_entry_flag='-bnoentry' | |
9109 | fi | |
d7040cdb | 9110 | |
ce2cded5 L |
9111 | # When large executables or shared objects are built, AIX ld can |
9112 | # have problems creating the table of contents. If linking a library | |
9113 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9114 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9115 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 9116 | |
ce2cded5 L |
9117 | archive_cmds='' |
9118 | hardcode_direct=yes | |
9119 | hardcode_direct_absolute=yes | |
9120 | hardcode_libdir_separator=':' | |
9121 | link_all_deplibs=yes | |
9122 | file_list_spec='${wl}-f,' | |
d7040cdb | 9123 | |
ce2cded5 L |
9124 | if test "$GCC" = yes; then |
9125 | case $host_os in aix4.[012]|aix4.[012].*) | |
9126 | # We only want to do this on AIX 4.2 and lower, the check | |
9127 | # below for broken collect2 doesn't work under 4.3+ | |
9128 | collect2name=`${CC} -print-prog-name=collect2` | |
9129 | if test -f "$collect2name" && | |
9130 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9131 | then | |
9132 | # We have reworked collect2 | |
9133 | : | |
9134 | else | |
9135 | # We have old collect2 | |
9136 | hardcode_direct=unsupported | |
9137 | # It fails to find uninstalled libraries when the uninstalled | |
9138 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9139 | # to unsupported forces relinking | |
9140 | hardcode_minus_L=yes | |
9141 | hardcode_libdir_flag_spec='-L$libdir' | |
9142 | hardcode_libdir_separator= | |
9143 | fi | |
9144 | ;; | |
9145 | esac | |
9146 | shared_flag='-shared' | |
9147 | if test "$aix_use_runtimelinking" = yes; then | |
9148 | shared_flag="$shared_flag "'${wl}-G' | |
9149 | fi | |
9150 | else | |
9151 | # not using gcc | |
9152 | if test "$host_cpu" = ia64; then | |
9153 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9154 | # chokes on -Wl,-G. The following line is correct: | |
9155 | shared_flag='-G' | |
9156 | else | |
9157 | if test "$aix_use_runtimelinking" = yes; then | |
9158 | shared_flag='${wl}-G' | |
9159 | else | |
9160 | shared_flag='${wl}-bM:SRE' | |
9161 | fi | |
9162 | fi | |
9163 | fi | |
d7040cdb | 9164 | |
718a6fd8 | 9165 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9166 | # It seems that -bexpall does not export symbols beginning with |
9167 | # underscore (_), so it is better to generate a list of symbols to export. | |
9168 | always_export_symbols=yes | |
9169 | if test "$aix_use_runtimelinking" = yes; then | |
9170 | # Warning - without using the other runtime loading flags (-brtl), | |
9171 | # -berok will link without error, but may produce a broken library. | |
9172 | allow_undefined_flag='-berok' | |
9173 | # Determine the default libpath from the value encoded in an | |
9174 | # empty executable. | |
81ecdfbb | 9175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9176 | /* end confdefs.h. */ |
d7040cdb | 9177 | |
ce2cded5 L |
9178 | int |
9179 | main () | |
9180 | { | |
d7040cdb | 9181 | |
ce2cded5 L |
9182 | ; |
9183 | return 0; | |
9184 | } | |
9185 | _ACEOF | |
81ecdfbb | 9186 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9187 | |
ce2cded5 L |
9188 | lt_aix_libpath_sed=' |
9189 | /Import File Strings/,/^$/ { | |
9190 | /^0/ { | |
9191 | s/^0 *\(.*\)$/\1/ | |
9192 | p | |
9193 | } | |
9194 | }' | |
9195 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9196 | # Check for a 64-bit object if we didn't find anything. | |
9197 | if test -z "$aix_libpath"; then | |
9198 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9199 | fi | |
ce2cded5 | 9200 | fi |
81ecdfbb RW |
9201 | rm -f core conftest.err conftest.$ac_objext \ |
9202 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9203 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9204 | |
ce2cded5 L |
9205 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9206 | 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" | |
9207 | else | |
9208 | if test "$host_cpu" = ia64; then | |
9209 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9210 | allow_undefined_flag="-z nodefs" | |
9211 | 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" | |
9212 | else | |
9213 | # Determine the default libpath from the value encoded in an | |
9214 | # empty executable. | |
81ecdfbb | 9215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9216 | /* end confdefs.h. */ |
d7040cdb | 9217 | |
ce2cded5 L |
9218 | int |
9219 | main () | |
9220 | { | |
d7040cdb | 9221 | |
ce2cded5 L |
9222 | ; |
9223 | return 0; | |
9224 | } | |
9225 | _ACEOF | |
81ecdfbb | 9226 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9227 | |
ce2cded5 L |
9228 | lt_aix_libpath_sed=' |
9229 | /Import File Strings/,/^$/ { | |
9230 | /^0/ { | |
9231 | s/^0 *\(.*\)$/\1/ | |
9232 | p | |
9233 | } | |
9234 | }' | |
9235 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9236 | # Check for a 64-bit object if we didn't find anything. | |
9237 | if test -z "$aix_libpath"; then | |
9238 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9239 | fi | |
ce2cded5 | 9240 | fi |
81ecdfbb RW |
9241 | rm -f core conftest.err conftest.$ac_objext \ |
9242 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9243 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9244 | |
ce2cded5 L |
9245 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9246 | # Warning - without using the other run time loading flags, | |
9247 | # -berok will link without error, but may produce a broken library. | |
9248 | no_undefined_flag=' ${wl}-bernotok' | |
9249 | allow_undefined_flag=' ${wl}-berok' | |
9250 | # Exported symbols can be pulled into shared objects from archives | |
9251 | whole_archive_flag_spec='$convenience' | |
9252 | archive_cmds_need_lc=yes | |
9253 | # This is similar to how AIX traditionally builds its shared libraries. | |
9254 | 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' | |
9255 | fi | |
9256 | fi | |
9257 | ;; | |
d7040cdb | 9258 | |
ce2cded5 | 9259 | amigaos*) |
718a6fd8 SE |
9260 | case $host_cpu in |
9261 | powerpc) | |
9262 | # see comment about AmigaOS4 .so support | |
9263 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9264 | archive_expsym_cmds='' | |
9265 | ;; | |
9266 | m68k) | |
9267 | 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)' | |
9268 | hardcode_libdir_flag_spec='-L$libdir' | |
9269 | hardcode_minus_L=yes | |
9270 | ;; | |
9271 | esac | |
ce2cded5 | 9272 | ;; |
d7040cdb | 9273 | |
ce2cded5 L |
9274 | bsdi[45]*) |
9275 | export_dynamic_flag_spec=-rdynamic | |
9276 | ;; | |
d7040cdb | 9277 | |
718a6fd8 | 9278 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9279 | # When not using gcc, we currently assume that we are using |
9280 | # Microsoft Visual C++. | |
9281 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9282 | # no search path for DLLs. | |
9283 | hardcode_libdir_flag_spec=' ' | |
9284 | allow_undefined_flag=unsupported | |
9285 | # Tell ltmain to make .lib files, not .a files. | |
9286 | libext=lib | |
9287 | # Tell ltmain to make .dll files, not .so files. | |
9288 | shrext_cmds=".dll" | |
9289 | # FIXME: Setting linknames here is a bad hack. | |
9290 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9291 | # The linker will automatically build a .lib file if we build a DLL. | |
9292 | old_archive_from_new_cmds='true' | |
9293 | # FIXME: Should let the user specify the lib program. | |
9294 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9295 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9296 | enable_shared_with_static_runtimes=yes | |
9297 | ;; | |
d7040cdb | 9298 | |
ce2cded5 | 9299 | darwin* | rhapsody*) |
d7040cdb | 9300 | |
718a6fd8 SE |
9301 | |
9302 | archive_cmds_need_lc=no | |
9303 | hardcode_direct=no | |
9304 | hardcode_automatic=yes | |
9305 | hardcode_shlibpath_var=unsupported | |
9306 | whole_archive_flag_spec='' | |
9307 | link_all_deplibs=yes | |
9308 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9309 | case $cc_basename in | |
9310 | ifort*) _lt_dar_can_shared=yes ;; | |
9311 | *) _lt_dar_can_shared=$GCC ;; | |
9312 | esac | |
9313 | if test "$_lt_dar_can_shared" = "yes"; then | |
9314 | output_verbose_link_cmd=echo | |
9315 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9316 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9317 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9318 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
9319 | ||
9320 | else | |
9321 | ld_shlibs=no | |
9322 | fi | |
9323 | ||
ce2cded5 | 9324 | ;; |
d7040cdb | 9325 | |
ce2cded5 L |
9326 | dgux*) |
9327 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9328 | hardcode_libdir_flag_spec='-L$libdir' | |
9329 | hardcode_shlibpath_var=no | |
9330 | ;; | |
d7040cdb | 9331 | |
ce2cded5 L |
9332 | freebsd1*) |
9333 | ld_shlibs=no | |
9334 | ;; | |
d7040cdb | 9335 | |
ce2cded5 L |
9336 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9337 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9338 | # does not break anything, and helps significantly (at the cost of a little | |
9339 | # extra space). | |
9340 | freebsd2.2*) | |
9341 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9342 | hardcode_libdir_flag_spec='-R$libdir' | |
9343 | hardcode_direct=yes | |
9344 | hardcode_shlibpath_var=no | |
9345 | ;; | |
d7040cdb | 9346 | |
ce2cded5 L |
9347 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9348 | freebsd2*) | |
9349 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9350 | hardcode_direct=yes | |
9351 | hardcode_minus_L=yes | |
9352 | hardcode_shlibpath_var=no | |
9353 | ;; | |
d7040cdb | 9354 | |
ce2cded5 L |
9355 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9356 | freebsd* | dragonfly*) | |
9357 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9358 | hardcode_libdir_flag_spec='-R$libdir' | |
9359 | hardcode_direct=yes | |
9360 | hardcode_shlibpath_var=no | |
9361 | ;; | |
d7040cdb | 9362 | |
ce2cded5 L |
9363 | hpux9*) |
9364 | if test "$GCC" = yes; then | |
9365 | 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' | |
9366 | else | |
9367 | 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' | |
9368 | fi | |
9369 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9370 | hardcode_libdir_separator=: | |
9371 | hardcode_direct=yes | |
d7040cdb | 9372 | |
ce2cded5 L |
9373 | # hardcode_minus_L: Not really in the search PATH, |
9374 | # but as the default location of the library. | |
9375 | hardcode_minus_L=yes | |
9376 | export_dynamic_flag_spec='${wl}-E' | |
9377 | ;; | |
d7040cdb | 9378 | |
ce2cded5 L |
9379 | hpux10*) |
9380 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9381 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9382 | else | |
9383 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9384 | fi | |
9385 | if test "$with_gnu_ld" = no; then | |
9386 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9387 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9388 | hardcode_libdir_separator=: | |
9389 | hardcode_direct=yes | |
9390 | hardcode_direct_absolute=yes | |
9391 | export_dynamic_flag_spec='${wl}-E' | |
9392 | # hardcode_minus_L: Not really in the search PATH, | |
9393 | # but as the default location of the library. | |
9394 | hardcode_minus_L=yes | |
9395 | fi | |
9396 | ;; | |
d7040cdb | 9397 | |
ce2cded5 L |
9398 | hpux11*) |
9399 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9400 | case $host_cpu in | |
9401 | hppa*64*) | |
9402 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9403 | ;; | |
9404 | ia64*) | |
718a6fd8 | 9405 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9406 | ;; |
9407 | *) | |
9408 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9409 | ;; | |
9410 | esac | |
9411 | else | |
9412 | case $host_cpu in | |
9413 | hppa*64*) | |
9414 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9415 | ;; | |
9416 | ia64*) | |
9417 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9418 | ;; | |
9419 | *) | |
9420 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9421 | ;; | |
9422 | esac | |
9423 | fi | |
9424 | if test "$with_gnu_ld" = no; then | |
9425 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9426 | hardcode_libdir_separator=: | |
d7040cdb | 9427 | |
ce2cded5 L |
9428 | case $host_cpu in |
9429 | hppa*64*|ia64*) | |
9430 | hardcode_direct=no | |
9431 | hardcode_shlibpath_var=no | |
9432 | ;; | |
9433 | *) | |
9434 | hardcode_direct=yes | |
9435 | hardcode_direct_absolute=yes | |
9436 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9437 | |
ce2cded5 L |
9438 | # hardcode_minus_L: Not really in the search PATH, |
9439 | # but as the default location of the library. | |
9440 | hardcode_minus_L=yes | |
9441 | ;; | |
9442 | esac | |
9443 | fi | |
9444 | ;; | |
9445 | ||
9446 | irix5* | irix6* | nonstopux*) | |
9447 | if test "$GCC" = yes; then | |
9448 | 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' | |
9449 | # Try to use the -exported_symbol ld option, if it does not | |
9450 | # work, assume that -exports_file does not work either and | |
9451 | # implicitly export all symbols. | |
9452 | save_LDFLAGS="$LDFLAGS" | |
9453 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9455 | /* end confdefs.h. */ | |
ce2cded5 L |
9456 | int foo(void) {} |
9457 | _ACEOF | |
81ecdfbb | 9458 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 9459 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
d7040cdb | 9460 | |
d7040cdb | 9461 | fi |
81ecdfbb RW |
9462 | rm -f core conftest.err conftest.$ac_objext \ |
9463 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
9464 | LDFLAGS="$save_LDFLAGS" |
9465 | else | |
9466 | 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' | |
9467 | 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' | |
9468 | fi | |
9469 | archive_cmds_need_lc='no' | |
9470 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9471 | hardcode_libdir_separator=: | |
9472 | inherit_rpath=yes | |
9473 | link_all_deplibs=yes | |
9474 | ;; | |
d7040cdb | 9475 | |
ce2cded5 L |
9476 | netbsd*) |
9477 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9478 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9479 | else | |
9480 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9481 | fi | |
9482 | hardcode_libdir_flag_spec='-R$libdir' | |
9483 | hardcode_direct=yes | |
9484 | hardcode_shlibpath_var=no | |
9485 | ;; | |
d7040cdb | 9486 | |
ce2cded5 L |
9487 | newsos6) |
9488 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9489 | hardcode_direct=yes | |
9490 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9491 | hardcode_libdir_separator=: | |
9492 | hardcode_shlibpath_var=no | |
9493 | ;; | |
d7040cdb | 9494 | |
ce2cded5 L |
9495 | *nto* | *qnx*) |
9496 | ;; | |
d7040cdb | 9497 | |
ce2cded5 | 9498 | openbsd*) |
718a6fd8 SE |
9499 | if test -f /usr/libexec/ld.so; then |
9500 | hardcode_direct=yes | |
9501 | hardcode_shlibpath_var=no | |
9502 | hardcode_direct_absolute=yes | |
9503 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9504 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9505 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9506 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9507 | export_dynamic_flag_spec='${wl}-E' |
9508 | else | |
9509 | case $host_os in | |
9510 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9511 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9512 | hardcode_libdir_flag_spec='-R$libdir' | |
9513 | ;; | |
9514 | *) | |
9515 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9516 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9517 | ;; | |
9518 | esac | |
9519 | fi | |
9520 | else | |
9521 | ld_shlibs=no | |
d7040cdb SE |
9522 | fi |
9523 | ;; | |
d7040cdb | 9524 | |
ce2cded5 L |
9525 | os2*) |
9526 | hardcode_libdir_flag_spec='-L$libdir' | |
9527 | hardcode_minus_L=yes | |
9528 | allow_undefined_flag=unsupported | |
9529 | 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' | |
9530 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9531 | ;; | |
d7040cdb | 9532 | |
ce2cded5 L |
9533 | osf3*) |
9534 | if test "$GCC" = yes; then | |
9535 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9536 | 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' | |
9537 | else | |
9538 | allow_undefined_flag=' -expect_unresolved \*' | |
9539 | 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' | |
9540 | fi | |
9541 | archive_cmds_need_lc='no' | |
9542 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9543 | hardcode_libdir_separator=: | |
9544 | ;; | |
d7040cdb | 9545 | |
ce2cded5 L |
9546 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9547 | if test "$GCC" = yes; then | |
9548 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9549 | 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' | |
9550 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9551 | else | |
9552 | allow_undefined_flag=' -expect_unresolved \*' | |
9553 | 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' | |
9554 | 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~ | |
9555 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
d7040cdb | 9556 | |
ce2cded5 L |
9557 | # Both c and cxx compiler support -rpath directly |
9558 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9559 | fi | |
9560 | archive_cmds_need_lc='no' | |
9561 | hardcode_libdir_separator=: | |
9562 | ;; | |
d7040cdb | 9563 | |
ce2cded5 L |
9564 | solaris*) |
9565 | no_undefined_flag=' -z defs' | |
9566 | if test "$GCC" = yes; then | |
9567 | wlarc='${wl}' | |
9568 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9569 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9570 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9571 | else | |
9572 | case `$CC -V 2>&1` in | |
9573 | *"Compilers 5.0"*) | |
9574 | wlarc='' | |
9575 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9576 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9577 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9578 | ;; | |
9579 | *) | |
9580 | wlarc='${wl}' | |
9581 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9582 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9583 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9584 | ;; | |
9585 | esac | |
9586 | fi | |
9587 | hardcode_libdir_flag_spec='-R$libdir' | |
9588 | hardcode_shlibpath_var=no | |
9589 | case $host_os in | |
9590 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9591 | *) | |
9592 | # The compiler driver will combine and reorder linker options, | |
9593 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9594 | # but is careful enough not to reorder. | |
9595 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9596 | if test "$GCC" = yes; then | |
9597 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9598 | else | |
9599 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9600 | fi | |
9601 | ;; | |
9602 | esac | |
9603 | link_all_deplibs=yes | |
d7040cdb | 9604 | ;; |
ce2cded5 L |
9605 | |
9606 | sunos4*) | |
9607 | if test "x$host_vendor" = xsequent; then | |
9608 | # Use $CC to link under sequent, because it throws in some extra .o | |
9609 | # files that make .init and .fini sections work. | |
9610 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9611 | else |
ce2cded5 | 9612 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9613 | fi |
ce2cded5 L |
9614 | hardcode_libdir_flag_spec='-L$libdir' |
9615 | hardcode_direct=yes | |
9616 | hardcode_minus_L=yes | |
9617 | hardcode_shlibpath_var=no | |
d7040cdb | 9618 | ;; |
ce2cded5 L |
9619 | |
9620 | sysv4) | |
9621 | case $host_vendor in | |
9622 | sni) | |
9623 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9624 | hardcode_direct=yes # is this really true??? | |
9625 | ;; | |
9626 | siemens) | |
9627 | ## LD is ld it makes a PLAMLIB | |
9628 | ## CC just makes a GrossModule. | |
9629 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9630 | reload_cmds='$CC -r -o $output$reload_objs' | |
9631 | hardcode_direct=no | |
9632 | ;; | |
9633 | motorola) | |
9634 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9635 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9636 | ;; | |
9637 | esac | |
9638 | runpath_var='LD_RUN_PATH' | |
9639 | hardcode_shlibpath_var=no | |
d7040cdb | 9640 | ;; |
d7040cdb | 9641 | |
ce2cded5 L |
9642 | sysv4.3*) |
9643 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9644 | hardcode_shlibpath_var=no | |
9645 | export_dynamic_flag_spec='-Bexport' | |
9646 | ;; | |
d7040cdb | 9647 | |
ce2cded5 L |
9648 | sysv4*MP*) |
9649 | if test -d /usr/nec; then | |
9650 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9651 | hardcode_shlibpath_var=no | |
9652 | runpath_var=LD_RUN_PATH | |
9653 | hardcode_runpath_var=yes | |
9654 | ld_shlibs=yes | |
9655 | fi | |
9656 | ;; | |
d7040cdb | 9657 | |
ce2cded5 L |
9658 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9659 | no_undefined_flag='${wl}-z,text' | |
9660 | archive_cmds_need_lc=no | |
9661 | hardcode_shlibpath_var=no | |
9662 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9663 | |
ce2cded5 L |
9664 | if test "$GCC" = yes; then |
9665 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9666 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9667 | else | |
9668 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9669 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9670 | fi | |
9671 | ;; | |
d7040cdb | 9672 | |
ce2cded5 L |
9673 | sysv5* | sco3.2v5* | sco5v6*) |
9674 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9675 | # link with -lc, and that would cause any symbols used from libc to | |
9676 | # always be unresolved, which means just about no library would | |
9677 | # ever link correctly. If we're not using GNU ld we use -z text | |
9678 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9679 | # as -z defs. | |
9680 | no_undefined_flag='${wl}-z,text' | |
9681 | allow_undefined_flag='${wl}-z,nodefs' | |
9682 | archive_cmds_need_lc=no | |
9683 | hardcode_shlibpath_var=no | |
9684 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9685 | hardcode_libdir_separator=':' | |
9686 | link_all_deplibs=yes | |
9687 | export_dynamic_flag_spec='${wl}-Bexport' | |
9688 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9689 | |
ce2cded5 L |
9690 | if test "$GCC" = yes; then |
9691 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9692 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9693 | else | |
9694 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9695 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9696 | fi | |
d7040cdb | 9697 | ;; |
d7040cdb | 9698 | |
ce2cded5 L |
9699 | uts4*) |
9700 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9701 | hardcode_libdir_flag_spec='-L$libdir' | |
9702 | hardcode_shlibpath_var=no | |
9703 | ;; | |
d7040cdb | 9704 | |
ce2cded5 L |
9705 | *) |
9706 | ld_shlibs=no | |
9707 | ;; | |
9708 | esac | |
9709 | ||
9710 | if test x$host_vendor = xsni; then | |
9711 | case $host in | |
9712 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9713 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9714 | ;; | |
9715 | esac | |
d7040cdb | 9716 | fi |
ce2cded5 | 9717 | fi |
d7040cdb | 9718 | |
81ecdfbb RW |
9719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9720 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 9721 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9722 | |
ce2cded5 | 9723 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9724 | |
d7040cdb | 9725 | |
d7040cdb | 9726 | |
d7040cdb | 9727 | |
d7040cdb | 9728 | |
d7040cdb | 9729 | |
d7040cdb | 9730 | |
d7040cdb | 9731 | |
d7040cdb | 9732 | |
d7040cdb | 9733 | |
d7040cdb | 9734 | |
d7040cdb | 9735 | |
d7040cdb | 9736 | |
d7040cdb | 9737 | |
d7040cdb | 9738 | |
ce2cded5 L |
9739 | # |
9740 | # Do we need to explicitly link libc? | |
9741 | # | |
9742 | case "x$archive_cmds_need_lc" in | |
9743 | x|xyes) | |
9744 | # Assume -lc should be added | |
9745 | archive_cmds_need_lc=yes | |
d7040cdb | 9746 | |
ce2cded5 L |
9747 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9748 | case $archive_cmds in | |
9749 | *'~'*) | |
9750 | # FIXME: we may have to deal with multi-command sequences. | |
9751 | ;; | |
9752 | '$CC '*) | |
9753 | # Test whether the compiler implicitly links with -lc since on some | |
9754 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9755 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9757 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9758 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9759 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
9760 | else |
9761 | $RM conftest* | |
9762 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9763 | |
81ecdfbb | 9764 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
9765 | (eval $ac_compile) 2>&5 |
9766 | ac_status=$? | |
81ecdfbb RW |
9767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9768 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9769 | soname=conftest |
9770 | lib=conftest | |
9771 | libobjs=conftest.$ac_objext | |
9772 | deplibs= | |
9773 | wl=$lt_prog_compiler_wl | |
9774 | pic_flag=$lt_prog_compiler_pic | |
9775 | compiler_flags=-v | |
9776 | linker_flags=-v | |
9777 | verstring= | |
9778 | output_objdir=. | |
9779 | libname=conftest | |
9780 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9781 | allow_undefined_flag= | |
81ecdfbb | 9782 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
9783 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9784 | ac_status=$? | |
81ecdfbb RW |
9785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9786 | test $ac_status = 0; } | |
39144654 RW |
9787 | then |
9788 | lt_cv_archive_cmds_need_lc=no | |
9789 | else | |
9790 | lt_cv_archive_cmds_need_lc=yes | |
9791 | fi | |
9792 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9793 | else | |
9794 | cat conftest.err 1>&5 | |
9795 | fi | |
9796 | $RM conftest* | |
9797 | ||
9798 | fi | |
81ecdfbb RW |
9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9800 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9801 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
9802 | ;; |
9803 | esac | |
d7040cdb | 9804 | fi |
d7040cdb | 9805 | ;; |
ce2cded5 | 9806 | esac |
d7040cdb | 9807 | |
d7040cdb | 9808 | |
d7040cdb | 9809 | |
d7040cdb | 9810 | |
d7040cdb | 9811 | |
d7040cdb | 9812 | |
d7040cdb | 9813 | |
d7040cdb SE |
9814 | |
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
d7040cdb | 9901 | |
d7040cdb | 9902 | |
d7040cdb SE |
9903 | |
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
d7040cdb | 9909 | |
d7040cdb | 9910 | |
d7040cdb | 9911 | |
d7040cdb | 9912 | |
d7040cdb | 9913 | |
d7040cdb | 9914 | |
d7040cdb | 9915 | |
d7040cdb | 9916 | |
d7040cdb | 9917 | |
d7040cdb | 9918 | |
d7040cdb | 9919 | |
d7040cdb | 9920 | |
d7040cdb | 9921 | |
d7040cdb | 9922 | |
d7040cdb | 9923 | |
d7040cdb | 9924 | |
d7040cdb | 9925 | |
d7040cdb | 9926 | |
d7040cdb | 9927 | |
d7040cdb | 9928 | |
d7040cdb | 9929 | |
d7040cdb | 9930 | |
d7040cdb | 9931 | |
ce2cded5 L |
9932 | |
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | ||
9942 | ||
9943 | ||
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | ||
9950 | ||
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
81ecdfbb RW |
9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9965 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
718a6fd8 SE |
9966 | |
9967 | if test "$GCC" = yes; then | |
ce2cded5 L |
9968 | case $host_os in |
9969 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9970 | *) lt_awk_arg="/^libraries:/" ;; | |
9971 | esac | |
9972 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9973 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9974 | # if the path contains ";" then we assume it to be the separator | |
9975 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9976 | # assumed that no part of a normal pathname contains ";" but that should | |
9977 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9978 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9979 | else | |
9980 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9981 | fi | |
9982 | # Ok, now we have the path, separated by spaces, we can step through it | |
9983 | # and add multilib dir if necessary. | |
9984 | lt_tmp_lt_search_path_spec= | |
9985 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9986 | for lt_sys_path in $lt_search_path_spec; do | |
9987 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9988 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9989 | else | |
9990 | test -d "$lt_sys_path" && \ | |
9991 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9992 | fi | |
9993 | done | |
9994 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9995 | BEGIN {RS=" "; FS="/|\n";} { | |
9996 | lt_foo=""; | |
9997 | lt_count=0; | |
9998 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9999 | if ($lt_i != "" && $lt_i != ".") { | |
10000 | if ($lt_i == "..") { | |
10001 | lt_count++; | |
10002 | } else { | |
10003 | if (lt_count == 0) { | |
10004 | lt_foo="/" $lt_i lt_foo; | |
10005 | } else { | |
10006 | lt_count--; | |
10007 | } | |
10008 | } | |
10009 | } | |
10010 | } | |
10011 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10012 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10013 | }'` | |
10014 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
d7040cdb | 10015 | else |
ce2cded5 L |
10016 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10017 | fi | |
10018 | library_names_spec= | |
10019 | libname_spec='lib$name' | |
10020 | soname_spec= | |
10021 | shrext_cmds=".so" | |
10022 | postinstall_cmds= | |
10023 | postuninstall_cmds= | |
10024 | finish_cmds= | |
10025 | finish_eval= | |
10026 | shlibpath_var= | |
10027 | shlibpath_overrides_runpath=unknown | |
10028 | version_type=none | |
10029 | dynamic_linker="$host_os ld.so" | |
10030 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10031 | need_lib_prefix=unknown | |
10032 | hardcode_into_libs=no | |
10033 | ||
10034 | # when you set need_version to no, make sure it does not cause -set_version | |
10035 | # flags to be left without arguments | |
10036 | need_version=unknown | |
10037 | ||
10038 | case $host_os in | |
10039 | aix3*) | |
10040 | version_type=linux | |
10041 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10042 | shlibpath_var=LIBPATH | |
10043 | ||
10044 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10045 | soname_spec='${libname}${release}${shared_ext}$major' | |
10046 | ;; | |
10047 | ||
50e7d84b | 10048 | aix[4-9]*) |
ce2cded5 L |
10049 | version_type=linux |
10050 | need_lib_prefix=no | |
10051 | need_version=no | |
10052 | hardcode_into_libs=yes | |
10053 | if test "$host_cpu" = ia64; then | |
10054 | # AIX 5 supports IA64 | |
10055 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10056 | shlibpath_var=LD_LIBRARY_PATH | |
10057 | else | |
10058 | # With GCC up to 2.95.x, collect2 would create an import file | |
10059 | # for dependence libraries. The import file would start with | |
10060 | # the line `#! .'. This would cause the generated library to | |
10061 | # depend on `.', always an invalid library. This was fixed in | |
10062 | # development snapshots of GCC prior to 3.0. | |
10063 | case $host_os in | |
10064 | aix4 | aix4.[01] | aix4.[01].*) | |
10065 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10066 | echo ' yes ' | |
10067 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10068 | : | |
10069 | else | |
10070 | can_build_shared=no | |
10071 | fi | |
10072 | ;; | |
10073 | esac | |
10074 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10075 | # soname into executable. Probably we can add versioning support to | |
10076 | # collect2, so additional links can be useful in future. | |
10077 | if test "$aix_use_runtimelinking" = yes; then | |
10078 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10079 | # instead of lib<name>.a to let people know that these are not | |
10080 | # typical AIX shared libraries. | |
10081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10082 | else | |
10083 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10084 | # and later when we are not doing run time linking. | |
10085 | library_names_spec='${libname}${release}.a $libname.a' | |
10086 | soname_spec='${libname}${release}${shared_ext}$major' | |
10087 | fi | |
10088 | shlibpath_var=LIBPATH | |
10089 | fi | |
10090 | ;; | |
10091 | ||
10092 | amigaos*) | |
718a6fd8 SE |
10093 | case $host_cpu in |
10094 | powerpc) | |
10095 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10096 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10098 | ;; | |
10099 | m68k) | |
ce2cded5 L |
10100 | library_names_spec='$libname.ixlibrary $libname.a' |
10101 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10102 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
718a6fd8 SE |
10103 | ;; |
10104 | esac | |
ce2cded5 L |
10105 | ;; |
10106 | ||
10107 | beos*) | |
10108 | library_names_spec='${libname}${shared_ext}' | |
10109 | dynamic_linker="$host_os ld.so" | |
10110 | shlibpath_var=LIBRARY_PATH | |
10111 | ;; | |
10112 | ||
10113 | bsdi[45]*) | |
10114 | version_type=linux | |
10115 | need_version=no | |
10116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10117 | soname_spec='${libname}${release}${shared_ext}$major' | |
10118 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10119 | shlibpath_var=LD_LIBRARY_PATH | |
10120 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10121 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10122 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10123 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10124 | # libtool to hard-code these into programs | |
10125 | ;; | |
10126 | ||
718a6fd8 | 10127 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10128 | version_type=windows |
10129 | shrext_cmds=".dll" | |
10130 | need_version=no | |
10131 | need_lib_prefix=no | |
10132 | ||
718a6fd8 SE |
10133 | case $GCC,$host_os in |
10134 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10135 | library_names_spec='$libname.dll.a' |
10136 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10137 | postinstall_cmds='base_file=`basename \${file}`~ | |
10138 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10139 | dldir=$destdir/`dirname \$dlpath`~ | |
10140 | test -d \$dldir || mkdir -p \$dldir~ | |
10141 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10142 | chmod a+x \$dldir/$dlname~ | |
10143 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10144 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10145 | fi' | |
10146 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10147 | dlpath=$dir/\$dldll~ | |
10148 | $RM \$dlpath' | |
10149 | shlibpath_overrides_runpath=yes | |
10150 | ||
10151 | case $host_os in | |
10152 | cygwin*) | |
10153 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10154 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10155 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10156 | ;; | |
718a6fd8 | 10157 | mingw* | cegcc*) |
ce2cded5 L |
10158 | # MinGW DLLs use traditional 'lib' prefix |
10159 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10160 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10161 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10162 | # It is most probably a Windows format PATH printed by | |
10163 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10164 | # path with ; separators, and with drive letters. We can handle the | |
10165 | # drive letters (cygwin fileutils understands them), so leave them, | |
10166 | # especially as we might pass files found there to a mingw objdump, | |
10167 | # which wouldn't understand a cygwinified path. Ahh. | |
10168 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10169 | else | |
10170 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10171 | fi | |
10172 | ;; | |
10173 | pw32*) | |
10174 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10175 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10176 | ;; | |
10177 | esac | |
10178 | ;; | |
10179 | ||
10180 | *) | |
10181 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10182 | ;; | |
10183 | esac | |
10184 | dynamic_linker='Win32 ld.exe' | |
10185 | # FIXME: first we should search . and the directory the executable is in | |
10186 | shlibpath_var=PATH | |
10187 | ;; | |
10188 | ||
10189 | darwin* | rhapsody*) | |
10190 | dynamic_linker="$host_os dyld" | |
10191 | version_type=darwin | |
10192 | need_lib_prefix=no | |
10193 | need_version=no | |
10194 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10195 | soname_spec='${libname}${release}${major}$shared_ext' | |
10196 | shlibpath_overrides_runpath=yes | |
10197 | shlibpath_var=DYLD_LIBRARY_PATH | |
10198 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10199 | ||
10200 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10201 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10202 | ;; | |
10203 | ||
10204 | dgux*) | |
10205 | version_type=linux | |
10206 | need_lib_prefix=no | |
10207 | need_version=no | |
10208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10209 | soname_spec='${libname}${release}${shared_ext}$major' | |
10210 | shlibpath_var=LD_LIBRARY_PATH | |
10211 | ;; | |
10212 | ||
10213 | freebsd1*) | |
10214 | dynamic_linker=no | |
10215 | ;; | |
10216 | ||
10217 | freebsd* | dragonfly*) | |
10218 | # DragonFly does not have aout. When/if they implement a new | |
10219 | # versioning mechanism, adjust this. | |
10220 | if test -x /usr/bin/objformat; then | |
10221 | objformat=`/usr/bin/objformat` | |
10222 | else | |
10223 | case $host_os in | |
10224 | freebsd[123]*) objformat=aout ;; | |
10225 | *) objformat=elf ;; | |
10226 | esac | |
10227 | fi | |
10228 | version_type=freebsd-$objformat | |
10229 | case $version_type in | |
10230 | freebsd-elf*) | |
10231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10232 | need_version=no | |
10233 | need_lib_prefix=no | |
10234 | ;; | |
10235 | freebsd-*) | |
10236 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10237 | need_version=yes | |
10238 | ;; | |
10239 | esac | |
10240 | shlibpath_var=LD_LIBRARY_PATH | |
10241 | case $host_os in | |
10242 | freebsd2*) | |
10243 | shlibpath_overrides_runpath=yes | |
10244 | ;; | |
10245 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10246 | shlibpath_overrides_runpath=yes | |
10247 | hardcode_into_libs=yes | |
10248 | ;; | |
10249 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10250 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10251 | shlibpath_overrides_runpath=no | |
10252 | hardcode_into_libs=yes | |
10253 | ;; | |
10254 | *) # from 4.6 on, and DragonFly | |
10255 | shlibpath_overrides_runpath=yes | |
10256 | hardcode_into_libs=yes | |
10257 | ;; | |
10258 | esac | |
10259 | ;; | |
10260 | ||
10261 | gnu*) | |
10262 | version_type=linux | |
10263 | need_lib_prefix=no | |
10264 | need_version=no | |
10265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10266 | soname_spec='${libname}${release}${shared_ext}$major' | |
10267 | shlibpath_var=LD_LIBRARY_PATH | |
10268 | hardcode_into_libs=yes | |
10269 | ;; | |
10270 | ||
10271 | hpux9* | hpux10* | hpux11*) | |
10272 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10273 | # link against other versions. | |
10274 | version_type=sunos | |
10275 | need_lib_prefix=no | |
10276 | need_version=no | |
10277 | case $host_cpu in | |
10278 | ia64*) | |
10279 | shrext_cmds='.so' | |
10280 | hardcode_into_libs=yes | |
10281 | dynamic_linker="$host_os dld.so" | |
10282 | shlibpath_var=LD_LIBRARY_PATH | |
10283 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10285 | soname_spec='${libname}${release}${shared_ext}$major' | |
10286 | if test "X$HPUX_IA64_MODE" = X32; then | |
10287 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10288 | else | |
10289 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10290 | fi | |
10291 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10292 | ;; | |
10293 | hppa*64*) | |
10294 | shrext_cmds='.sl' | |
10295 | hardcode_into_libs=yes | |
10296 | dynamic_linker="$host_os dld.sl" | |
10297 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10298 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10300 | soname_spec='${libname}${release}${shared_ext}$major' | |
10301 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10302 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10303 | ;; | |
10304 | *) | |
10305 | shrext_cmds='.sl' | |
10306 | dynamic_linker="$host_os dld.sl" | |
10307 | shlibpath_var=SHLIB_PATH | |
10308 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10310 | soname_spec='${libname}${release}${shared_ext}$major' | |
10311 | ;; | |
10312 | esac | |
10313 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10314 | postinstall_cmds='chmod 555 $lib' | |
10315 | ;; | |
10316 | ||
10317 | interix[3-9]*) | |
10318 | version_type=linux | |
10319 | need_lib_prefix=no | |
10320 | need_version=no | |
10321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10322 | soname_spec='${libname}${release}${shared_ext}$major' | |
10323 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10324 | shlibpath_var=LD_LIBRARY_PATH | |
10325 | shlibpath_overrides_runpath=no | |
10326 | hardcode_into_libs=yes | |
10327 | ;; | |
10328 | ||
10329 | irix5* | irix6* | nonstopux*) | |
10330 | case $host_os in | |
10331 | nonstopux*) version_type=nonstopux ;; | |
10332 | *) | |
10333 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10334 | version_type=linux | |
10335 | else | |
10336 | version_type=irix | |
10337 | fi ;; | |
10338 | esac | |
10339 | need_lib_prefix=no | |
10340 | need_version=no | |
10341 | soname_spec='${libname}${release}${shared_ext}$major' | |
10342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10343 | case $host_os in | |
10344 | irix5* | nonstopux*) | |
10345 | libsuff= shlibsuff= | |
10346 | ;; | |
10347 | *) | |
10348 | case $LD in # libtool.m4 will add one of these switches to LD | |
10349 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10350 | libsuff= shlibsuff= libmagic=32-bit;; | |
10351 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10352 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10353 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10354 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10355 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10356 | esac | |
10357 | ;; | |
10358 | esac | |
10359 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10360 | shlibpath_overrides_runpath=no | |
10361 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10362 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10363 | hardcode_into_libs=yes | |
10364 | ;; | |
d7040cdb | 10365 | |
ce2cded5 L |
10366 | # No shared lib support for Linux oldld, aout, or coff. |
10367 | linux*oldld* | linux*aout* | linux*coff*) | |
10368 | dynamic_linker=no | |
10369 | ;; | |
10370 | ||
10371 | # This must be Linux ELF. | |
58e24671 | 10372 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
10373 | version_type=linux |
10374 | need_lib_prefix=no | |
10375 | need_version=no | |
10376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10377 | soname_spec='${libname}${release}${shared_ext}$major' | |
10378 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10379 | shlibpath_var=LD_LIBRARY_PATH | |
10380 | shlibpath_overrides_runpath=no | |
39144654 | 10381 | |
ce2cded5 | 10382 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
10383 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10384 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10385 | else |
10386 | lt_cv_shlibpath_overrides_runpath=no | |
10387 | save_LDFLAGS=$LDFLAGS | |
10388 | save_libdir=$libdir | |
10389 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10390 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10392 | /* end confdefs.h. */ |
10393 | ||
d7040cdb SE |
10394 | int |
10395 | main () | |
10396 | { | |
ce2cded5 | 10397 | |
d7040cdb SE |
10398 | ; |
10399 | return 0; | |
10400 | } | |
10401 | _ACEOF | |
81ecdfbb RW |
10402 | if ac_fn_c_try_link "$LINENO"; then : |
10403 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10404 | lt_cv_shlibpath_overrides_runpath=yes |
ce2cded5 | 10405 | fi |
ce2cded5 | 10406 | fi |
81ecdfbb RW |
10407 | rm -f core conftest.err conftest.$ac_objext \ |
10408 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10409 | LDFLAGS=$save_LDFLAGS |
10410 | libdir=$save_libdir | |
10411 | ||
10412 | fi | |
10413 | ||
10414 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
ce2cded5 L |
10415 | |
10416 | # This implies no fast_install, which is unacceptable. | |
10417 | # Some rework will be needed to allow for fast_install | |
10418 | # before this can be enabled. | |
10419 | hardcode_into_libs=yes | |
10420 | ||
10421 | # Append ld.so.conf contents to the search path | |
10422 | if test -f /etc/ld.so.conf; then | |
718a6fd8 | 10423 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
ce2cded5 L |
10424 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10425 | fi | |
10426 | ||
10427 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10428 | # powerpc, because MkLinux only supported shared libraries with the | |
10429 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10430 | # most powerpc-linux boxes support dynamic linking these days and | |
10431 | # people can always --disable-shared, the test was removed, and we | |
10432 | # assume the GNU/Linux dynamic linker is in use. | |
10433 | dynamic_linker='GNU/Linux ld.so' | |
10434 | ;; | |
10435 | ||
10436 | netbsd*) | |
10437 | version_type=sunos | |
10438 | need_lib_prefix=no | |
10439 | need_version=no | |
10440 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10442 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10443 | dynamic_linker='NetBSD (a.out) ld.so' | |
10444 | else | |
10445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10446 | soname_spec='${libname}${release}${shared_ext}$major' | |
10447 | dynamic_linker='NetBSD ld.elf_so' | |
10448 | fi | |
10449 | shlibpath_var=LD_LIBRARY_PATH | |
10450 | shlibpath_overrides_runpath=yes | |
10451 | hardcode_into_libs=yes | |
10452 | ;; | |
10453 | ||
10454 | newsos6) | |
10455 | version_type=linux | |
10456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10457 | shlibpath_var=LD_LIBRARY_PATH | |
10458 | shlibpath_overrides_runpath=yes | |
10459 | ;; | |
10460 | ||
10461 | *nto* | *qnx*) | |
10462 | version_type=qnx | |
10463 | need_lib_prefix=no | |
10464 | need_version=no | |
10465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10466 | soname_spec='${libname}${release}${shared_ext}$major' | |
10467 | shlibpath_var=LD_LIBRARY_PATH | |
10468 | shlibpath_overrides_runpath=no | |
10469 | hardcode_into_libs=yes | |
10470 | dynamic_linker='ldqnx.so' | |
10471 | ;; | |
10472 | ||
10473 | openbsd*) | |
10474 | version_type=sunos | |
10475 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10476 | need_lib_prefix=no | |
10477 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10478 | case $host_os in | |
10479 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10480 | *) need_version=no ;; | |
10481 | esac | |
10482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10483 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10484 | shlibpath_var=LD_LIBRARY_PATH | |
10485 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10486 | case $host_os in | |
10487 | openbsd2.[89] | openbsd2.[89].*) | |
10488 | shlibpath_overrides_runpath=no | |
10489 | ;; | |
10490 | *) | |
10491 | shlibpath_overrides_runpath=yes | |
10492 | ;; | |
10493 | esac | |
10494 | else | |
10495 | shlibpath_overrides_runpath=yes | |
10496 | fi | |
10497 | ;; | |
10498 | ||
10499 | os2*) | |
10500 | libname_spec='$name' | |
10501 | shrext_cmds=".dll" | |
10502 | need_lib_prefix=no | |
10503 | library_names_spec='$libname${shared_ext} $libname.a' | |
10504 | dynamic_linker='OS/2 ld.exe' | |
10505 | shlibpath_var=LIBPATH | |
10506 | ;; | |
10507 | ||
10508 | osf3* | osf4* | osf5*) | |
10509 | version_type=osf | |
10510 | need_lib_prefix=no | |
10511 | need_version=no | |
10512 | soname_spec='${libname}${release}${shared_ext}$major' | |
10513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10514 | shlibpath_var=LD_LIBRARY_PATH | |
10515 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10516 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10517 | ;; | |
10518 | ||
10519 | rdos*) | |
10520 | dynamic_linker=no | |
10521 | ;; | |
10522 | ||
10523 | solaris*) | |
10524 | version_type=linux | |
10525 | need_lib_prefix=no | |
10526 | need_version=no | |
10527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10528 | soname_spec='${libname}${release}${shared_ext}$major' | |
10529 | shlibpath_var=LD_LIBRARY_PATH | |
10530 | shlibpath_overrides_runpath=yes | |
10531 | hardcode_into_libs=yes | |
10532 | # ldd complains unless libraries are executable | |
10533 | postinstall_cmds='chmod +x $lib' | |
10534 | ;; | |
10535 | ||
10536 | sunos4*) | |
10537 | version_type=sunos | |
10538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10539 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10540 | shlibpath_var=LD_LIBRARY_PATH | |
10541 | shlibpath_overrides_runpath=yes | |
10542 | if test "$with_gnu_ld" = yes; then | |
10543 | need_lib_prefix=no | |
10544 | fi | |
10545 | need_version=yes | |
10546 | ;; | |
10547 | ||
10548 | sysv4 | sysv4.3*) | |
10549 | version_type=linux | |
10550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10551 | soname_spec='${libname}${release}${shared_ext}$major' | |
10552 | shlibpath_var=LD_LIBRARY_PATH | |
10553 | case $host_vendor in | |
10554 | sni) | |
10555 | shlibpath_overrides_runpath=no | |
10556 | need_lib_prefix=no | |
10557 | runpath_var=LD_RUN_PATH | |
10558 | ;; | |
10559 | siemens) | |
10560 | need_lib_prefix=no | |
10561 | ;; | |
10562 | motorola) | |
10563 | need_lib_prefix=no | |
10564 | need_version=no | |
10565 | shlibpath_overrides_runpath=no | |
10566 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10567 | ;; | |
10568 | esac | |
10569 | ;; | |
10570 | ||
10571 | sysv4*MP*) | |
10572 | if test -d /usr/nec ;then | |
10573 | version_type=linux | |
10574 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10575 | soname_spec='$libname${shared_ext}.$major' | |
10576 | shlibpath_var=LD_LIBRARY_PATH | |
10577 | fi | |
10578 | ;; | |
10579 | ||
10580 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10581 | version_type=freebsd-elf | |
10582 | need_lib_prefix=no | |
10583 | need_version=no | |
10584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10585 | soname_spec='${libname}${release}${shared_ext}$major' | |
10586 | shlibpath_var=LD_LIBRARY_PATH | |
10587 | shlibpath_overrides_runpath=yes | |
10588 | hardcode_into_libs=yes | |
10589 | if test "$with_gnu_ld" = yes; then | |
10590 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10591 | else | |
10592 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10593 | case $host_os in | |
10594 | sco3.2v5*) | |
10595 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10596 | ;; | |
10597 | esac | |
10598 | fi | |
10599 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10600 | ;; | |
10601 | ||
10602 | tpf*) | |
10603 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10604 | version_type=linux | |
10605 | need_lib_prefix=no | |
10606 | need_version=no | |
718a6fd8 | 10607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
10608 | shlibpath_var=LD_LIBRARY_PATH |
10609 | shlibpath_overrides_runpath=no | |
10610 | hardcode_into_libs=yes | |
10611 | ;; | |
d7040cdb | 10612 | |
ce2cded5 L |
10613 | uts4*) |
10614 | version_type=linux | |
10615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10616 | soname_spec='${libname}${release}${shared_ext}$major' | |
10617 | shlibpath_var=LD_LIBRARY_PATH | |
10618 | ;; | |
d7040cdb | 10619 | |
ce2cded5 L |
10620 | *) |
10621 | dynamic_linker=no | |
10622 | ;; | |
10623 | esac | |
81ecdfbb RW |
10624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10625 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
10626 | test "$dynamic_linker" = no && can_build_shared=no |
10627 | ||
10628 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10629 | if test "$GCC" = yes; then | |
10630 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10631 | fi |
d7040cdb | 10632 | |
718a6fd8 SE |
10633 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10634 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10635 | fi | |
10636 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10637 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10638 | fi | |
10639 | ||
d7040cdb | 10640 | |
d7040cdb SE |
10641 | |
10642 | ||
d7040cdb SE |
10643 | |
10644 | ||
d7040cdb SE |
10645 | |
10646 | ||
d7040cdb SE |
10647 | |
10648 | ||
d7040cdb SE |
10649 | |
10650 | ||
d7040cdb | 10651 | |
d7040cdb | 10652 | |
d7040cdb | 10653 | |
d7040cdb | 10654 | |
d7040cdb | 10655 | |
d7040cdb | 10656 | |
d7040cdb | 10657 | |
d7040cdb | 10658 | |
d7040cdb | 10659 | |
d7040cdb | 10660 | |
d7040cdb | 10661 | |
d7040cdb | 10662 | |
d7040cdb | 10663 | |
d7040cdb | 10664 | |
d7040cdb SE |
10665 | |
10666 | ||
d7040cdb | 10667 | |
d7040cdb | 10668 | |
d7040cdb | 10669 | |
d7040cdb | 10670 | |
d7040cdb | 10671 | |
d7040cdb | 10672 | |
d7040cdb | 10673 | |
d7040cdb | 10674 | |
d7040cdb | 10675 | |
d7040cdb SE |
10676 | |
10677 | ||
d7040cdb | 10678 | |
d7040cdb | 10679 | |
d7040cdb | 10680 | |
d7040cdb SE |
10681 | |
10682 | ||
10683 | ||
10684 | ||
10685 | ||
10686 | ||
10687 | ||
10688 | ||
10689 | ||
10690 | ||
10691 | ||
10692 | ||
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
d7040cdb SE |
10698 | |
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
d7040cdb | 10710 | |
d7040cdb | 10711 | |
d7040cdb | 10712 | |
d7040cdb | 10713 | |
d7040cdb SE |
10714 | |
10715 | ||
10716 | ||
10717 | ||
ce2cded5 L |
10718 | |
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
81ecdfbb RW |
10726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10727 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
10728 | hardcode_action= |
10729 | if test -n "$hardcode_libdir_flag_spec" || | |
10730 | test -n "$runpath_var" || | |
10731 | test "X$hardcode_automatic" = "Xyes" ; then | |
10732 | ||
10733 | # We can hardcode non-existent directories. | |
10734 | if test "$hardcode_direct" != no && | |
10735 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10736 | # have to relink, otherwise we might link with an installed library | |
10737 | # when we should be linking with a yet-to-be-installed one | |
10738 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10739 | test "$hardcode_minus_L" != no; then | |
10740 | # Linking always hardcodes the temporary library directory. | |
10741 | hardcode_action=relink | |
10742 | else | |
10743 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10744 | hardcode_action=immediate | |
10745 | fi | |
10746 | else | |
10747 | # We cannot hardcode anything, or else we can only hardcode existing | |
10748 | # directories. | |
10749 | hardcode_action=unsupported | |
10750 | fi | |
81ecdfbb RW |
10751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10752 | $as_echo "$hardcode_action" >&6; } | |
ce2cded5 L |
10753 | |
10754 | if test "$hardcode_action" = relink || | |
10755 | test "$inherit_rpath" = yes; then | |
10756 | # Fast installation is not supported | |
10757 | enable_fast_install=no | |
10758 | elif test "$shlibpath_overrides_runpath" = yes || | |
10759 | test "$enable_shared" = no; then | |
10760 | # Fast installation is not necessary | |
10761 | enable_fast_install=needless | |
d7040cdb | 10762 | fi |
d7040cdb | 10763 | |
d7040cdb SE |
10764 | |
10765 | ||
10766 | ||
10767 | ||
10768 | ||
ce2cded5 L |
10769 | if test "x$enable_dlopen" != xyes; then |
10770 | enable_dlopen=unknown | |
10771 | enable_dlopen_self=unknown | |
10772 | enable_dlopen_self_static=unknown | |
10773 | else | |
10774 | lt_cv_dlopen=no | |
10775 | lt_cv_dlopen_libs= | |
10776 | ||
10777 | case $host_os in | |
10778 | beos*) | |
10779 | lt_cv_dlopen="load_add_on" | |
10780 | lt_cv_dlopen_libs= | |
10781 | lt_cv_dlopen_self=yes | |
10782 | ;; | |
d7040cdb | 10783 | |
718a6fd8 | 10784 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10785 | lt_cv_dlopen="LoadLibrary" |
10786 | lt_cv_dlopen_libs= | |
10787 | ;; | |
d7040cdb | 10788 | |
ce2cded5 L |
10789 | cygwin*) |
10790 | lt_cv_dlopen="dlopen" | |
10791 | lt_cv_dlopen_libs= | |
10792 | ;; | |
d7040cdb | 10793 | |
ce2cded5 L |
10794 | darwin*) |
10795 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10797 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10798 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10799 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10800 | else |
10801 | ac_check_lib_save_LIBS=$LIBS | |
10802 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10804 | /* end confdefs.h. */ |
d7040cdb | 10805 | |
81ecdfbb RW |
10806 | /* Override any GCC internal prototype to avoid an error. |
10807 | Use char because int might match the return type of a GCC | |
10808 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10809 | #ifdef __cplusplus |
10810 | extern "C" | |
10811 | #endif | |
ce2cded5 L |
10812 | char dlopen (); |
10813 | int | |
10814 | main () | |
10815 | { | |
81ecdfbb | 10816 | return dlopen (); |
ce2cded5 L |
10817 | ; |
10818 | return 0; | |
10819 | } | |
10820 | _ACEOF | |
81ecdfbb | 10821 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10822 | ac_cv_lib_dl_dlopen=yes |
10823 | else | |
81ecdfbb | 10824 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10825 | fi |
81ecdfbb RW |
10826 | rm -f core conftest.err conftest.$ac_objext \ |
10827 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10828 | LIBS=$ac_check_lib_save_LIBS |
10829 | fi | |
81ecdfbb RW |
10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10831 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10832 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 L |
10833 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10834 | else | |
d7040cdb | 10835 | |
ce2cded5 L |
10836 | lt_cv_dlopen="dyld" |
10837 | lt_cv_dlopen_libs= | |
10838 | lt_cv_dlopen_self=yes | |
d7040cdb | 10839 | |
ce2cded5 | 10840 | fi |
d7040cdb | 10841 | |
ce2cded5 | 10842 | ;; |
d7040cdb | 10843 | |
ce2cded5 | 10844 | *) |
81ecdfbb RW |
10845 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
10846 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
10847 | lt_cv_dlopen="shl_load" |
10848 | else | |
81ecdfbb RW |
10849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10850 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10851 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10852 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10853 | else |
10854 | ac_check_lib_save_LIBS=$LIBS | |
10855 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10857 | /* end confdefs.h. */ |
d7040cdb | 10858 | |
81ecdfbb RW |
10859 | /* Override any GCC internal prototype to avoid an error. |
10860 | Use char because int might match the return type of a GCC | |
10861 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10862 | #ifdef __cplusplus |
10863 | extern "C" | |
10864 | #endif | |
ce2cded5 L |
10865 | char shl_load (); |
10866 | int | |
10867 | main () | |
10868 | { | |
81ecdfbb | 10869 | return shl_load (); |
ce2cded5 L |
10870 | ; |
10871 | return 0; | |
10872 | } | |
d7040cdb | 10873 | _ACEOF |
81ecdfbb | 10874 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10875 | ac_cv_lib_dld_shl_load=yes |
10876 | else | |
81ecdfbb | 10877 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 10878 | fi |
81ecdfbb RW |
10879 | rm -f core conftest.err conftest.$ac_objext \ |
10880 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10881 | LIBS=$ac_check_lib_save_LIBS |
10882 | fi | |
81ecdfbb RW |
10883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10884 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10885 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
718a6fd8 | 10886 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 10887 | else |
81ecdfbb RW |
10888 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
10889 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
10890 | lt_cv_dlopen="dlopen" |
10891 | else | |
81ecdfbb RW |
10892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10893 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10894 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10895 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 10896 | else |
ce2cded5 L |
10897 | ac_check_lib_save_LIBS=$LIBS |
10898 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10900 | /* end confdefs.h. */ |
d7040cdb | 10901 | |
81ecdfbb RW |
10902 | /* Override any GCC internal prototype to avoid an error. |
10903 | Use char because int might match the return type of a GCC | |
10904 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10905 | #ifdef __cplusplus |
10906 | extern "C" | |
10907 | #endif | |
ce2cded5 | 10908 | char dlopen (); |
d7040cdb SE |
10909 | int |
10910 | main () | |
10911 | { | |
81ecdfbb | 10912 | return dlopen (); |
d7040cdb SE |
10913 | ; |
10914 | return 0; | |
10915 | } | |
10916 | _ACEOF | |
81ecdfbb | 10917 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10918 | ac_cv_lib_dl_dlopen=yes |
10919 | else | |
81ecdfbb | 10920 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10921 | fi |
81ecdfbb RW |
10922 | rm -f core conftest.err conftest.$ac_objext \ |
10923 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10924 | LIBS=$ac_check_lib_save_LIBS |
10925 | fi | |
81ecdfbb RW |
10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10927 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10928 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 L |
10929 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10930 | else | |
81ecdfbb RW |
10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10932 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10933 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10934 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10935 | else |
10936 | ac_check_lib_save_LIBS=$LIBS | |
10937 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10939 | /* end confdefs.h. */ |
d7040cdb | 10940 | |
81ecdfbb RW |
10941 | /* Override any GCC internal prototype to avoid an error. |
10942 | Use char because int might match the return type of a GCC | |
10943 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10944 | #ifdef __cplusplus |
10945 | extern "C" | |
10946 | #endif | |
ce2cded5 | 10947 | char dlopen (); |
d7040cdb SE |
10948 | int |
10949 | main () | |
10950 | { | |
81ecdfbb | 10951 | return dlopen (); |
d7040cdb SE |
10952 | ; |
10953 | return 0; | |
10954 | } | |
10955 | _ACEOF | |
81ecdfbb | 10956 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 10957 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 10958 | else |
81ecdfbb | 10959 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 10960 | fi |
81ecdfbb RW |
10961 | rm -f core conftest.err conftest.$ac_objext \ |
10962 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10963 | LIBS=$ac_check_lib_save_LIBS |
10964 | fi | |
81ecdfbb RW |
10965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10966 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10967 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
10968 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10969 | else | |
81ecdfbb RW |
10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10971 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10972 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
10973 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 10974 | else |
ce2cded5 L |
10975 | ac_check_lib_save_LIBS=$LIBS |
10976 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 10978 | /* end confdefs.h. */ |
ce2cded5 | 10979 | |
81ecdfbb RW |
10980 | /* Override any GCC internal prototype to avoid an error. |
10981 | Use char because int might match the return type of a GCC | |
10982 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10983 | #ifdef __cplusplus |
10984 | extern "C" | |
10985 | #endif | |
ce2cded5 | 10986 | char dld_link (); |
d7040cdb SE |
10987 | int |
10988 | main () | |
10989 | { | |
81ecdfbb | 10990 | return dld_link (); |
d7040cdb SE |
10991 | ; |
10992 | return 0; | |
10993 | } | |
10994 | _ACEOF | |
81ecdfbb | 10995 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10996 | ac_cv_lib_dld_dld_link=yes |
10997 | else | |
81ecdfbb | 10998 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10999 | fi |
81ecdfbb RW |
11000 | rm -f core conftest.err conftest.$ac_objext \ |
11001 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11002 | LIBS=$ac_check_lib_save_LIBS |
11003 | fi | |
81ecdfbb RW |
11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11005 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11006 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
718a6fd8 | 11007 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11008 | fi |
11009 | ||
11010 | ||
11011 | fi | |
11012 | ||
11013 | ||
11014 | fi | |
11015 | ||
11016 | ||
11017 | fi | |
11018 | ||
11019 | ||
11020 | fi | |
11021 | ||
11022 | ||
11023 | fi | |
11024 | ||
11025 | ;; | |
11026 | esac | |
11027 | ||
11028 | if test "x$lt_cv_dlopen" != xno; then | |
11029 | enable_dlopen=yes | |
d7040cdb | 11030 | else |
ce2cded5 | 11031 | enable_dlopen=no |
d7040cdb | 11032 | fi |
ce2cded5 L |
11033 | |
11034 | case $lt_cv_dlopen in | |
11035 | dlopen) | |
11036 | save_CPPFLAGS="$CPPFLAGS" | |
11037 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11038 | ||
11039 | save_LDFLAGS="$LDFLAGS" | |
11040 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11041 | ||
11042 | save_LIBS="$LIBS" | |
11043 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11044 | ||
81ecdfbb RW |
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11046 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11047 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11048 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11049 | else |
ce2cded5 L |
11050 | if test "$cross_compiling" = yes; then : |
11051 | lt_cv_dlopen_self=cross | |
11052 | else | |
11053 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11054 | lt_status=$lt_dlunknown | |
11055 | cat > conftest.$ac_ext <<_LT_EOF | |
81ecdfbb | 11056 | #line 11056 "configure" |
ce2cded5 L |
11057 | #include "confdefs.h" |
11058 | ||
11059 | #if HAVE_DLFCN_H | |
11060 | #include <dlfcn.h> | |
11061 | #endif | |
11062 | ||
11063 | #include <stdio.h> | |
11064 | ||
11065 | #ifdef RTLD_GLOBAL | |
11066 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11067 | #else | |
11068 | # ifdef DL_GLOBAL | |
11069 | # define LT_DLGLOBAL DL_GLOBAL | |
11070 | # else | |
11071 | # define LT_DLGLOBAL 0 | |
11072 | # endif | |
11073 | #endif | |
11074 | ||
11075 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11076 | find out it does not work in some platform. */ | |
11077 | #ifndef LT_DLLAZY_OR_NOW | |
11078 | # ifdef RTLD_LAZY | |
11079 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11080 | # else | |
11081 | # ifdef DL_LAZY | |
11082 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11083 | # else | |
11084 | # ifdef RTLD_NOW | |
11085 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11086 | # else | |
11087 | # ifdef DL_NOW | |
11088 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11089 | # else | |
11090 | # define LT_DLLAZY_OR_NOW 0 | |
11091 | # endif | |
11092 | # endif | |
11093 | # endif | |
11094 | # endif | |
11095 | #endif | |
11096 | ||
ce2cded5 L |
11097 | void fnord() { int i=42;} |
11098 | int main () | |
11099 | { | |
11100 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11101 | int status = $lt_dlunknown; | |
11102 | ||
11103 | if (self) | |
11104 | { | |
11105 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11106 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11107 | /* dlclose (self); */ | |
11108 | } | |
11109 | else | |
11110 | puts (dlerror ()); | |
11111 | ||
718a6fd8 | 11112 | return status; |
ce2cded5 L |
11113 | } |
11114 | _LT_EOF | |
81ecdfbb | 11115 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
11116 | (eval $ac_link) 2>&5 |
11117 | ac_status=$? | |
81ecdfbb RW |
11118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11119 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11120 | (./conftest; exit; ) >&5 2>/dev/null |
11121 | lt_status=$? | |
11122 | case x$lt_status in | |
11123 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11124 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11125 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11126 | esac | |
11127 | else : | |
11128 | # compilation failed | |
11129 | lt_cv_dlopen_self=no | |
11130 | fi | |
11131 | fi | |
11132 | rm -fr conftest* | |
11133 | ||
d7040cdb SE |
11134 | |
11135 | fi | |
81ecdfbb RW |
11136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11137 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11138 | |
11139 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11140 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11142 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11143 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11144 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11145 | else |
ce2cded5 L |
11146 | if test "$cross_compiling" = yes; then : |
11147 | lt_cv_dlopen_self_static=cross | |
11148 | else | |
11149 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11150 | lt_status=$lt_dlunknown | |
11151 | cat > conftest.$ac_ext <<_LT_EOF | |
81ecdfbb | 11152 | #line 11152 "configure" |
ce2cded5 L |
11153 | #include "confdefs.h" |
11154 | ||
11155 | #if HAVE_DLFCN_H | |
11156 | #include <dlfcn.h> | |
11157 | #endif | |
11158 | ||
11159 | #include <stdio.h> | |
11160 | ||
11161 | #ifdef RTLD_GLOBAL | |
11162 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11163 | #else | |
11164 | # ifdef DL_GLOBAL | |
11165 | # define LT_DLGLOBAL DL_GLOBAL | |
11166 | # else | |
11167 | # define LT_DLGLOBAL 0 | |
11168 | # endif | |
11169 | #endif | |
11170 | ||
11171 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11172 | find out it does not work in some platform. */ | |
11173 | #ifndef LT_DLLAZY_OR_NOW | |
11174 | # ifdef RTLD_LAZY | |
11175 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11176 | # else | |
11177 | # ifdef DL_LAZY | |
11178 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11179 | # else | |
11180 | # ifdef RTLD_NOW | |
11181 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11182 | # else | |
11183 | # ifdef DL_NOW | |
11184 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11185 | # else | |
11186 | # define LT_DLLAZY_OR_NOW 0 | |
11187 | # endif | |
11188 | # endif | |
11189 | # endif | |
11190 | # endif | |
11191 | #endif | |
11192 | ||
ce2cded5 L |
11193 | void fnord() { int i=42;} |
11194 | int main () | |
d7040cdb | 11195 | { |
ce2cded5 L |
11196 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11197 | int status = $lt_dlunknown; | |
11198 | ||
11199 | if (self) | |
11200 | { | |
11201 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11202 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11203 | /* dlclose (self); */ | |
11204 | } | |
11205 | else | |
11206 | puts (dlerror ()); | |
11207 | ||
718a6fd8 | 11208 | return status; |
d7040cdb | 11209 | } |
ce2cded5 | 11210 | _LT_EOF |
81ecdfbb | 11211 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
11212 | (eval $ac_link) 2>&5 |
11213 | ac_status=$? | |
81ecdfbb RW |
11214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11215 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11216 | (./conftest; exit; ) >&5 2>/dev/null |
11217 | lt_status=$? | |
11218 | case x$lt_status in | |
11219 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11220 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11221 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11222 | esac | |
11223 | else : | |
11224 | # compilation failed | |
11225 | lt_cv_dlopen_self_static=no | |
11226 | fi | |
d7040cdb | 11227 | fi |
ce2cded5 L |
11228 | rm -fr conftest* |
11229 | ||
11230 | ||
d7040cdb | 11231 | fi |
81ecdfbb RW |
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11233 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
ce2cded5 L |
11234 | fi |
11235 | ||
11236 | CPPFLAGS="$save_CPPFLAGS" | |
11237 | LDFLAGS="$save_LDFLAGS" | |
11238 | LIBS="$save_LIBS" | |
11239 | ;; | |
11240 | esac | |
11241 | ||
11242 | case $lt_cv_dlopen_self in | |
11243 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11244 | *) enable_dlopen_self=unknown ;; | |
11245 | esac | |
11246 | ||
11247 | case $lt_cv_dlopen_self_static in | |
11248 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11249 | *) enable_dlopen_self_static=unknown ;; | |
11250 | esac | |
d7040cdb | 11251 | fi |
d7040cdb | 11252 | |
d7040cdb SE |
11253 | |
11254 | ||
d7040cdb | 11255 | |
d7040cdb | 11256 | |
ce2cded5 L |
11257 | |
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | striplib= | |
11270 | old_striplib= | |
81ecdfbb RW |
11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11272 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
ce2cded5 L |
11273 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11274 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11275 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11277 | $as_echo "yes" >&6; } | |
ce2cded5 L |
11278 | else |
11279 | # FIXME - insert some real tests, host_os isn't really good enough | |
11280 | case $host_os in | |
11281 | darwin*) | |
11282 | if test -n "$STRIP" ; then | |
11283 | striplib="$STRIP -x" | |
11284 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11286 | $as_echo "yes" >&6; } | |
ce2cded5 | 11287 | else |
81ecdfbb RW |
11288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11289 | $as_echo "no" >&6; } | |
d7040cdb | 11290 | fi |
ce2cded5 L |
11291 | ;; |
11292 | *) | |
81ecdfbb RW |
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11294 | $as_echo "no" >&6; } | |
ce2cded5 | 11295 | ;; |
d7040cdb | 11296 | esac |
d7040cdb SE |
11297 | fi |
11298 | ||
d7040cdb | 11299 | |
d7040cdb | 11300 | |
d7040cdb | 11301 | |
d7040cdb | 11302 | |
d7040cdb | 11303 | |
d7040cdb | 11304 | |
d7040cdb | 11305 | |
d7040cdb | 11306 | |
d7040cdb | 11307 | |
d7040cdb | 11308 | |
d7040cdb | 11309 | |
ce2cded5 | 11310 | # Report which library types will actually be built |
81ecdfbb RW |
11311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11312 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11314 | $as_echo "$can_build_shared" >&6; } | |
d7040cdb | 11315 | |
81ecdfbb RW |
11316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11317 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
ce2cded5 | 11318 | test "$can_build_shared" = "no" && enable_shared=no |
d7040cdb | 11319 | |
ce2cded5 L |
11320 | # On AIX, shared libraries and static libraries use the same namespace, and |
11321 | # are all built from PIC. | |
11322 | case $host_os in | |
11323 | aix3*) | |
11324 | test "$enable_shared" = yes && enable_static=no | |
11325 | if test -n "$RANLIB"; then | |
11326 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11327 | postinstall_cmds='$RANLIB $lib' | |
11328 | fi | |
11329 | ;; | |
d7040cdb | 11330 | |
50e7d84b | 11331 | aix[4-9]*) |
ce2cded5 L |
11332 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11333 | test "$enable_shared" = yes && enable_static=no | |
11334 | fi | |
11335 | ;; | |
11336 | esac | |
81ecdfbb RW |
11337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11338 | $as_echo "$enable_shared" >&6; } | |
ce2cded5 | 11339 | |
81ecdfbb RW |
11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11341 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
ce2cded5 L |
11342 | # Make sure either enable_shared or enable_static is yes. |
11343 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11345 | $as_echo "$enable_static" >&6; } | |
d7040cdb | 11346 | |
d7040cdb | 11347 | |
d7040cdb | 11348 | |
d7040cdb | 11349 | |
ce2cded5 L |
11350 | fi |
11351 | ac_ext=c | |
11352 | ac_cpp='$CPP $CPPFLAGS' | |
11353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 11356 | |
ce2cded5 | 11357 | CC="$lt_save_CC" |
d7040cdb | 11358 | |
d7040cdb | 11359 | |
d7040cdb | 11360 | |
d7040cdb | 11361 | |
d7040cdb | 11362 | |
d7040cdb | 11363 | |
d7040cdb | 11364 | |
d7040cdb | 11365 | |
d7040cdb | 11366 | |
d7040cdb SE |
11367 | |
11368 | ||
d7040cdb SE |
11369 | |
11370 | ||
81ecdfbb | 11371 | ac_config_commands="$ac_config_commands libtool" |
d7040cdb SE |
11372 | |
11373 | ||
d7040cdb | 11374 | |
d7040cdb | 11375 | |
ce2cded5 | 11376 | # Only expand once: |
d7040cdb | 11377 | |
d7040cdb | 11378 | |
d7040cdb | 11379 | |
81ecdfbb RW |
11380 | # Check whether --enable-targets was given. |
11381 | if test "${enable_targets+set}" = set; then : | |
11382 | enableval=$enable_targets; case "${enableval}" in | |
11383 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
ce2cded5 L |
11384 | ;; |
11385 | no) enable_targets= ;; | |
11386 | *) enable_targets=$enableval ;; | |
11387 | esac | |
81ecdfbb RW |
11388 | fi |
11389 | ||
ce2cded5 L |
11390 | ac_checking=yes |
11391 | if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then | |
11392 | ac_checking= | |
11393 | fi | |
81ecdfbb RW |
11394 | # Check whether --enable-checking was given. |
11395 | if test "${enable_checking+set}" = set; then : | |
11396 | enableval=$enable_checking; case "${enableval}" in | |
ce2cded5 L |
11397 | no|none) ac_checking= ;; |
11398 | *) ac_checking=yes ;; | |
11399 | esac | |
81ecdfbb RW |
11400 | fi |
11401 | if test x$ac_checking != x ; then | |
d7040cdb | 11402 | |
81ecdfbb | 11403 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
d7040cdb | 11404 | |
ce2cded5 | 11405 | fi |
d7040cdb | 11406 | |
ce2cded5 | 11407 | using_cgen=no |
d7040cdb | 11408 | |
d7040cdb | 11409 | |
ce2cded5 | 11410 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
d7040cdb | 11411 | |
81ecdfbb RW |
11412 | # Check whether --enable-werror was given. |
11413 | if test "${enable_werror+set}" = set; then : | |
11414 | enableval=$enable_werror; case "${enableval}" in | |
ce2cded5 L |
11415 | yes | y) ERROR_ON_WARNING="yes" ;; |
11416 | no | n) ERROR_ON_WARNING="no" ;; | |
81ecdfbb | 11417 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
ce2cded5 | 11418 | esac |
81ecdfbb RW |
11419 | fi |
11420 | ||
d7040cdb | 11421 | |
bb8541b9 L |
11422 | # Enable -Wno-format by default when using gcc on mingw |
11423 | case "${host}" in | |
11424 | *-*-mingw32*) | |
11425 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11426 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11427 | fi | |
11428 | ;; | |
11429 | *) ;; | |
11430 | esac | |
11431 | ||
ce2cded5 L |
11432 | # Enable -Werror by default when using gcc |
11433 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11434 | ERROR_ON_WARNING=yes | |
11435 | fi | |
11436 | ||
11437 | NO_WERROR= | |
11438 | if test "${ERROR_ON_WARNING}" = yes ; then | |
11439 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
11440 | NO_WERROR="-Wno-error" | |
11441 | fi | |
11442 | ||
11443 | if test "${GCC}" = yes ; then | |
11444 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11445 | fi | |
11446 | ||
81ecdfbb RW |
11447 | # Check whether --enable-build-warnings was given. |
11448 | if test "${enable_build_warnings+set}" = set; then : | |
11449 | enableval=$enable_build_warnings; case "${enableval}" in | |
ce2cded5 L |
11450 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
11451 | no) if test "${GCC}" = yes ; then | |
11452 | WARN_CFLAGS="-w" | |
11453 | fi;; | |
11454 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11455 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
11456 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11457 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
11458 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11459 | esac | |
81ecdfbb RW |
11460 | fi |
11461 | ||
d7040cdb | 11462 | |
ce2cded5 L |
11463 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11464 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
11465 | fi | |
d7040cdb | 11466 | |
d7040cdb | 11467 | |
d7040cdb | 11468 | |
d7040cdb | 11469 | |
d7040cdb | 11470 | |
ce2cded5 | 11471 | # Generate a header file |
81ecdfbb | 11472 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb | 11473 | |
d7040cdb | 11474 | |
ce2cded5 L |
11475 | # If we are on a DOS filesystem, we must use gdb.ini rather than |
11476 | # .gdbinit. | |
11477 | case "${host}" in | |
11478 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) | |
11479 | GDBINIT="gdb.ini" | |
81ecdfbb | 11480 | ac_config_files="$ac_config_files gdb.ini:gdbinit.in" |
d7040cdb | 11481 | |
ce2cded5 L |
11482 | ;; |
11483 | *) | |
11484 | GDBINIT=".gdbinit" | |
81ecdfbb | 11485 | ac_config_files="$ac_config_files .gdbinit:gdbinit.in" |
d7040cdb | 11486 | |
ce2cded5 L |
11487 | ;; |
11488 | esac | |
d7040cdb | 11489 | |
d7040cdb | 11490 | |
ce2cded5 | 11491 | #We need this for the host. BOUT header is in host order. |
81ecdfbb RW |
11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
11493 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
11494 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
11495 | $as_echo_n "(cached) " >&6 | |
11496 | else | |
11497 | ac_cv_c_bigendian=unknown | |
11498 | # See if we're dealing with a universal compiler. | |
11499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11500 | /* end confdefs.h. */ | |
11501 | #ifndef __APPLE_CC__ | |
11502 | not a universal capable compiler | |
11503 | #endif | |
11504 | typedef int dummy; | |
11505 | ||
11506 | _ACEOF | |
11507 | if ac_fn_c_try_compile "$LINENO"; then : | |
11508 | ||
11509 | # Check for potential -arch flags. It is not universal unless | |
11510 | # there are at least two -arch flags with different values. | |
11511 | ac_arch= | |
11512 | ac_prev= | |
11513 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
11514 | if test -n "$ac_prev"; then | |
11515 | case $ac_word in | |
11516 | i?86 | x86_64 | ppc | ppc64) | |
11517 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
11518 | ac_arch=$ac_word | |
11519 | else | |
11520 | ac_cv_c_bigendian=universal | |
11521 | break | |
11522 | fi | |
11523 | ;; | |
11524 | esac | |
11525 | ac_prev= | |
11526 | elif test "x$ac_word" = "x-arch"; then | |
11527 | ac_prev=arch | |
11528 | fi | |
11529 | done | |
11530 | fi | |
11531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11532 | if test $ac_cv_c_bigendian = unknown; then | |
11533 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 L |
11535 | /* end confdefs.h. */ |
11536 | #include <sys/types.h> | |
81ecdfbb | 11537 | #include <sys/param.h> |
d7040cdb | 11538 | |
ce2cded5 L |
11539 | int |
11540 | main () | |
11541 | { | |
81ecdfbb RW |
11542 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
11543 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
11544 | && LITTLE_ENDIAN) | |
11545 | bogus endian macros | |
11546 | #endif | |
d7040cdb | 11547 | |
ce2cded5 L |
11548 | ; |
11549 | return 0; | |
11550 | } | |
11551 | _ACEOF | |
81ecdfbb | 11552 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 11553 | # It does; now see whether it defined to BIG_ENDIAN or not. |
81ecdfbb | 11554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11555 | /* end confdefs.h. */ |
11556 | #include <sys/types.h> | |
81ecdfbb | 11557 | #include <sys/param.h> |
d7040cdb | 11558 | |
ce2cded5 L |
11559 | int |
11560 | main () | |
11561 | { | |
11562 | #if BYTE_ORDER != BIG_ENDIAN | |
81ecdfbb RW |
11563 | not big endian |
11564 | #endif | |
d7040cdb | 11565 | |
ce2cded5 L |
11566 | ; |
11567 | return 0; | |
11568 | } | |
11569 | _ACEOF | |
81ecdfbb | 11570 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
11571 | ac_cv_c_bigendian=yes |
11572 | else | |
81ecdfbb | 11573 | ac_cv_c_bigendian=no |
ce2cded5 | 11574 | fi |
81ecdfbb RW |
11575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11576 | fi | |
11577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11578 | fi | |
11579 | if test $ac_cv_c_bigendian = unknown; then | |
11580 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
11581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11582 | /* end confdefs.h. */ | |
11583 | #include <limits.h> | |
d7040cdb | 11584 | |
81ecdfbb RW |
11585 | int |
11586 | main () | |
11587 | { | |
11588 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
11589 | bogus endian macros | |
11590 | #endif | |
11591 | ||
11592 | ; | |
11593 | return 0; | |
11594 | } | |
ce2cded5 | 11595 | _ACEOF |
81ecdfbb RW |
11596 | if ac_fn_c_try_compile "$LINENO"; then : |
11597 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
11598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 11599 | /* end confdefs.h. */ |
81ecdfbb RW |
11600 | #include <limits.h> |
11601 | ||
ce2cded5 L |
11602 | int |
11603 | main () | |
11604 | { | |
81ecdfbb RW |
11605 | #ifndef _BIG_ENDIAN |
11606 | not big endian | |
11607 | #endif | |
11608 | ||
ce2cded5 L |
11609 | ; |
11610 | return 0; | |
11611 | } | |
11612 | _ACEOF | |
81ecdfbb | 11613 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 11614 | ac_cv_c_bigendian=yes |
81ecdfbb RW |
11615 | else |
11616 | ac_cv_c_bigendian=no | |
d7040cdb | 11617 | fi |
81ecdfbb | 11618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 11619 | fi |
81ecdfbb RW |
11620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11621 | fi | |
11622 | if test $ac_cv_c_bigendian = unknown; then | |
11623 | # Compile a test program. | |
11624 | if test "$cross_compiling" = yes; then : | |
11625 | # Try to guess by grepping values from an object file. | |
11626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11627 | /* end confdefs.h. */ | |
11628 | short int ascii_mm[] = | |
11629 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
11630 | short int ascii_ii[] = | |
11631 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
11632 | int use_ascii (int i) { | |
11633 | return ascii_mm[i] + ascii_ii[i]; | |
11634 | } | |
11635 | short int ebcdic_ii[] = | |
11636 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
11637 | short int ebcdic_mm[] = | |
11638 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
11639 | int use_ebcdic (int i) { | |
11640 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
11641 | } | |
11642 | extern int foo; | |
d7040cdb | 11643 | |
81ecdfbb RW |
11644 | int |
11645 | main () | |
11646 | { | |
11647 | return use_ascii (foo) == use_ebcdic (foo); | |
11648 | ; | |
11649 | return 0; | |
11650 | } | |
11651 | _ACEOF | |
11652 | if ac_fn_c_try_compile "$LINENO"; then : | |
11653 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
11654 | ac_cv_c_bigendian=yes | |
11655 | fi | |
11656 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
11657 | if test "$ac_cv_c_bigendian" = unknown; then | |
11658 | ac_cv_c_bigendian=no | |
11659 | else | |
11660 | # finding both strings is unlikely to happen, but who knows? | |
11661 | ac_cv_c_bigendian=unknown | |
11662 | fi | |
11663 | fi | |
ce2cded5 | 11664 | fi |
81ecdfbb | 11665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 11666 | else |
81ecdfbb | 11667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11668 | /* end confdefs.h. */ |
81ecdfbb | 11669 | $ac_includes_default |
ce2cded5 L |
11670 | int |
11671 | main () | |
11672 | { | |
81ecdfbb RW |
11673 | |
11674 | /* Are we little or big endian? From Harbison&Steele. */ | |
11675 | union | |
11676 | { | |
11677 | long int l; | |
11678 | char c[sizeof (long int)]; | |
11679 | } u; | |
11680 | u.l = 1; | |
11681 | return u.c[sizeof (long int) - 1] == 1; | |
11682 | ||
11683 | ; | |
11684 | return 0; | |
ce2cded5 | 11685 | } |
d7040cdb | 11686 | _ACEOF |
81ecdfbb | 11687 | if ac_fn_c_try_run "$LINENO"; then : |
ce2cded5 L |
11688 | ac_cv_c_bigendian=no |
11689 | else | |
81ecdfbb | 11690 | ac_cv_c_bigendian=yes |
d7040cdb | 11691 | fi |
81ecdfbb RW |
11692 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11693 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d7040cdb | 11694 | fi |
81ecdfbb RW |
11695 | |
11696 | fi | |
ce2cded5 | 11697 | fi |
81ecdfbb RW |
11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
11699 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
11700 | case $ac_cv_c_bigendian in #( | |
11701 | yes) | |
11702 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
11703 | ;; #( | |
11704 | no) | |
11705 | ;; #( | |
11706 | universal) | |
d7040cdb | 11707 | |
81ecdfbb RW |
11708 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
11709 | ||
11710 | ;; #( | |
11711 | *) | |
11712 | as_fn_error "unknown endianness | |
11713 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
11714 | esac | |
d7040cdb | 11715 | |
d7040cdb | 11716 | |
ce2cded5 | 11717 | te_file=generic |
d7040cdb | 11718 | |
ce2cded5 L |
11719 | # Makefile target for installing gas in $(tooldir)/bin. |
11720 | install_tooldir=install-exec-tooldir | |
d7040cdb | 11721 | |
ce2cded5 L |
11722 | canon_targets="" |
11723 | all_targets=no | |
11724 | if test -n "$enable_targets" ; then | |
11725 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
11726 | if test $t = "all"; then | |
11727 | all_targets=yes | |
11728 | continue | |
11729 | fi | |
11730 | result=`$ac_config_sub $t 2>/dev/null` | |
11731 | if test -n "$result" ; then | |
11732 | canon_targets="$canon_targets $result" | |
11733 | # else | |
11734 | # # Permit "all", etc. We don't support it yet though. | |
11735 | # canon_targets="$canon_targets $t" | |
11736 | fi | |
11737 | done | |
11738 | _gas_uniq_list="$canon_targets" | |
d7040cdb SE |
11739 | _gas_uniq_newlist="" |
11740 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11741 | case $_gas_uniq_i in | |
11742 | _gas_uniq_dummy) ;; | |
11743 | *) case " $_gas_uniq_newlist " in | |
11744 | *" $_gas_uniq_i "*) ;; | |
11745 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11746 | esac ;; | |
11747 | esac | |
11748 | done | |
ce2cded5 | 11749 | canon_targets=$_gas_uniq_newlist |
d7040cdb | 11750 | |
ce2cded5 L |
11751 | fi |
11752 | ||
11753 | emulations="" | |
11754 | ||
11755 | for this_target in $target $canon_targets ; do | |
11756 | ||
11757 | targ=${this_target} | |
11758 | . ${srcdir}/configure.tgt | |
11759 | ||
11760 | case ${target_cpu} in | |
11761 | crisv32) | |
11762 | ||
11763 | cat >>confdefs.h <<_ACEOF | |
11764 | #define DEFAULT_CRIS_ARCH $arch | |
d7040cdb | 11765 | _ACEOF |
ce2cded5 L |
11766 | |
11767 | ;; | |
11768 | esac | |
11769 | ||
11770 | if test ${this_target} = $target ; then | |
11771 | target_cpu_type=${cpu_type} | |
11772 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
11773 | continue | |
11774 | fi | |
11775 | ||
11776 | generic_target=${cpu_type}-${target_vendor}-${target_os} | |
11777 | case ${generic_target} in | |
11778 | i386-*-sco3.2v5*) | |
11779 | if test ${this_target} = $target; then | |
11780 | ||
81ecdfbb | 11781 | $as_echo "#define SCO_ELF 1" >>confdefs.h |
ce2cded5 L |
11782 | |
11783 | fi | |
11784 | ;; | |
11785 | ||
11786 | i386-*-msdosdjgpp* \ | |
11787 | | i386-*-go32* \ | |
11788 | | i386-go32-rtems*) | |
11789 | ||
81ecdfbb | 11790 | $as_echo "#define STRICTCOFF 1" >>confdefs.h |
ce2cded5 L |
11791 | |
11792 | ;; | |
11793 | ||
11794 | i860-*-*) | |
81ecdfbb RW |
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5 |
11796 | $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} | |
ce2cded5 L |
11797 | ;; |
11798 | ||
7ba29e2a NC |
11799 | microblaze*) |
11800 | ;; | |
11801 | ||
ce2cded5 L |
11802 | mips-sony-bsd*) |
11803 | ;; | |
11804 | mips-*-bsd*) | |
81ecdfbb | 11805 | as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5 |
ce2cded5 L |
11806 | ;; |
11807 | ||
e5231592 | 11808 | ppc-*-aix[5-9].*) |
ce2cded5 | 11809 | |
81ecdfbb | 11810 | $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h |
ce2cded5 L |
11811 | |
11812 | ;; | |
11813 | ppc-*-linux-*) | |
11814 | case "$endian" in | |
11815 | big) ;; | |
81ecdfbb | 11816 | *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;; |
ce2cded5 L |
11817 | esac |
11818 | ;; | |
11819 | ppc-*-solaris*) | |
11820 | if test ${this_target} = $target; then | |
11821 | ||
81ecdfbb | 11822 | $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h |
ce2cded5 L |
11823 | |
11824 | fi | |
11825 | if test x${endian} = xbig; then | |
81ecdfbb | 11826 | as_fn_error "Solaris must be configured little endian" "$LINENO" 5 |
ce2cded5 L |
11827 | fi |
11828 | ;; | |
11829 | ||
11830 | sh*-*-symbianelf*) | |
11831 | ||
81ecdfbb | 11832 | $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h |
ce2cded5 L |
11833 | |
11834 | ;; | |
d7040cdb | 11835 | esac |
d7040cdb | 11836 | |
ce2cded5 L |
11837 | if test ${this_target} = $target ; then |
11838 | endian_def= | |
11839 | if test x${endian} = xbig; then | |
11840 | endian_def=1 | |
11841 | elif test x${endian} = xlittle; then | |
11842 | endian_def=0 | |
11843 | fi | |
11844 | if test x${endian_def} != x; then | |
11845 | ||
11846 | cat >>confdefs.h <<_ACEOF | |
11847 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | |
11848 | _ACEOF | |
11849 | ||
11850 | fi | |
11851 | fi | |
11852 | ||
11853 | # Other random stuff. | |
11854 | ||
11855 | case ${cpu_type} in | |
11856 | mips) | |
11857 | # Set mips_cpu to the name of the default CPU. | |
11858 | case ${target_cpu} in | |
11859 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | |
11860 | mips_cpu=from-abi | |
11861 | ;; | |
11862 | mipsisa32 | mipsisa32el) | |
11863 | mips_cpu=mips32 | |
11864 | ;; | |
11865 | mipsisa32r2 | mipsisa32r2el) | |
11866 | mips_cpu=mips32r2 | |
11867 | ;; | |
11868 | mipsisa64 | mipsisa64el) | |
11869 | mips_cpu=mips64 | |
11870 | ;; | |
11871 | mipsisa64r2 | mipsisa64r2el) | |
11872 | mips_cpu=mips64r2 | |
11873 | ;; | |
11874 | mipstx39 | mipstx39el) | |
11875 | mips_cpu=r3900 | |
11876 | ;; | |
11877 | mips64vr | mips64vrel) | |
11878 | mips_cpu=vr4100 | |
11879 | ;; | |
11880 | mipsisa32r2* | mipsisa64r2*) | |
11881 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` | |
11882 | ;; | |
11883 | mips64* | mipsisa64* | mipsisa32*) | |
11884 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | |
11885 | ;; | |
11886 | *) | |
81ecdfbb | 11887 | as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5 |
ce2cded5 L |
11888 | ;; |
11889 | esac | |
11890 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | |
11891 | # binaries. It's a GNU extension that some OSes don't understand. | |
11892 | # The value only matters on ELF targets. | |
11893 | case ${target} in | |
11894 | *-*-irix*) | |
11895 | use_e_mips_abi_o32=0 | |
11896 | ;; | |
11897 | *) | |
11898 | use_e_mips_abi_o32=1 | |
11899 | ;; | |
11900 | esac | |
11901 | # Decide whether to generate 32-bit or 64-bit code by default. | |
11902 | # Used to resolve -march=from-abi when an embedded ABI is selected. | |
11903 | case ${target} in | |
11904 | mips64*-*-* | mipsisa64*-*-*) | |
11905 | mips_default_64bit=1 | |
11906 | ;; | |
11907 | *) | |
11908 | mips_default_64bit=0 | |
11909 | ;; | |
11910 | esac | |
11911 | # Decide which ABI to target by default. | |
11912 | case ${target} in | |
11913 | mips64*-linux* | mips-sgi-irix6*) | |
11914 | mips_default_abi=N32_ABI | |
11915 | ;; | |
11916 | mips*-linux*) | |
11917 | mips_default_abi=O32_ABI | |
11918 | ;; | |
11919 | mips64*-openbsd*) | |
11920 | mips_default_abi=N64_ABI | |
11921 | ;; | |
11922 | *) | |
11923 | mips_default_abi=NO_ABI | |
11924 | ;; | |
11925 | esac | |
11926 | ||
11927 | cat >>confdefs.h <<_ACEOF | |
11928 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" | |
d7040cdb | 11929 | _ACEOF |
d7040cdb SE |
11930 | |
11931 | ||
11932 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 11933 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 |
d7040cdb SE |
11934 | _ACEOF |
11935 | ||
11936 | ||
11937 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 11938 | #define MIPS_DEFAULT_64BIT $mips_default_64bit |
d7040cdb SE |
11939 | _ACEOF |
11940 | ||
11941 | ||
ce2cded5 L |
11942 | cat >>confdefs.h <<_ACEOF |
11943 | #define MIPS_DEFAULT_ABI $mips_default_abi | |
11944 | _ACEOF | |
d7040cdb | 11945 | |
ce2cded5 L |
11946 | ;; |
11947 | esac | |
d7040cdb | 11948 | |
ce2cded5 L |
11949 | # Do we need the opcodes library? |
11950 | case ${cpu_type} in | |
11951 | vax | tic30) | |
11952 | ;; | |
d7040cdb | 11953 | |
ce2cded5 L |
11954 | *) |
11955 | need_opcodes=yes | |
d7040cdb | 11956 | |
ce2cded5 L |
11957 | case "${enable_shared}" in |
11958 | yes) shared_opcodes=true ;; | |
11959 | *opcodes*) shared_opcodes=true ;; | |
11960 | *) shared_opcodes=false ;; | |
11961 | esac | |
11962 | ;; | |
11963 | esac | |
d7040cdb | 11964 | |
ce2cded5 L |
11965 | # Any other special object files needed ? |
11966 | case ${cpu_type} in | |
d7040cdb | 11967 | |
ce2cded5 L |
11968 | bfin) |
11969 | echo ${extra_objects} | grep -s "bfin-parse.o" | |
11970 | if test $? -ne 0 ; then | |
11971 | extra_objects="$extra_objects bfin-parse.o" | |
11972 | fi | |
d7040cdb | 11973 | |
ce2cded5 L |
11974 | echo ${extra_objects} | grep -s "bfin-lex.o" |
11975 | if test $? -ne 0 ; then | |
11976 | extra_objects="$extra_objects bfin-lex.o" | |
11977 | fi | |
11978 | ;; | |
d7040cdb | 11979 | |
84e94c90 | 11980 | fr30 | ip2k | iq2000 | lm32 | m32r | openrisc) |
ce2cded5 L |
11981 | using_cgen=yes |
11982 | ;; | |
d7040cdb | 11983 | |
ce2cded5 L |
11984 | m32c) |
11985 | using_cgen=yes | |
11986 | ;; | |
11987 | frv) | |
11988 | using_cgen=yes | |
11989 | ;; | |
11990 | m68k) | |
11991 | case ${extra_objects} in | |
11992 | *m68k-parse.o*) ;; | |
11993 | *) extra_objects="$extra_objects m68k-parse.o" ;; | |
11994 | esac | |
11995 | ;; | |
d7040cdb | 11996 | |
ce2cded5 L |
11997 | mep) |
11998 | using_cgen=yes | |
11999 | ;; | |
d7040cdb | 12000 | |
ce2cded5 L |
12001 | mips) |
12002 | echo ${extra_objects} | grep -s "itbl-parse.o" | |
12003 | if test $? -ne 0 ; then | |
12004 | extra_objects="$extra_objects itbl-parse.o" | |
12005 | fi | |
d7040cdb | 12006 | |
ce2cded5 L |
12007 | echo ${extra_objects} | grep -s "itbl-lex.o" |
12008 | if test $? -ne 0 ; then | |
12009 | extra_objects="$extra_objects itbl-lex.o" | |
12010 | fi | |
d7040cdb | 12011 | |
ce2cded5 L |
12012 | echo ${extra_objects} | grep -s "itbl-ops.o" |
12013 | if test $? -ne 0 ; then | |
12014 | extra_objects="$extra_objects itbl-ops.o" | |
12015 | fi | |
12016 | ;; | |
d7040cdb | 12017 | |
ce2cded5 L |
12018 | mt) |
12019 | using_cgen=yes | |
12020 | ;; | |
d7040cdb | 12021 | |
ce2cded5 L |
12022 | i386 | s390 | sparc) |
12023 | if test $this_target = $target ; then | |
d7040cdb SE |
12024 | |
12025 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12026 | #define DEFAULT_ARCH "${arch}" |
d7040cdb SE |
12027 | _ACEOF |
12028 | ||
ce2cded5 L |
12029 | fi |
12030 | ;; | |
d7040cdb | 12031 | |
c7927a3c NC |
12032 | rx) |
12033 | echo ${extra_objects} | grep -s "rx-parse.o" | |
12034 | if test $? -ne 0 ; then | |
12035 | extra_objects="$extra_objects rx-parse.o" | |
12036 | fi | |
12037 | ;; | |
12038 | ||
ce2cded5 L |
12039 | xstormy16) |
12040 | using_cgen=yes | |
12041 | ;; | |
d7040cdb | 12042 | |
ce2cded5 L |
12043 | xc16x) |
12044 | using_cgen=yes | |
12045 | ;; | |
d7040cdb | 12046 | |
ce2cded5 L |
12047 | xtensa) |
12048 | echo ${extra_objects} | grep -s "xtensa-relax.o" | |
12049 | if test $? -ne 0 ; then | |
12050 | extra_objects="$extra_objects xtensa-relax.o" | |
12051 | fi | |
12052 | ;; | |
d7040cdb | 12053 | |
ce2cded5 L |
12054 | *) |
12055 | ;; | |
12056 | esac | |
d7040cdb | 12057 | |
ce2cded5 L |
12058 | if test $using_cgen = yes ; then |
12059 | case "x${extra_objects}" in | |
12060 | *cgen.o*) ;; | |
12061 | *) extra_objects="$extra_objects cgen.o" ;; | |
12062 | esac | |
12063 | fi | |
d7040cdb | 12064 | |
ce2cded5 | 12065 | # See if we really can support this configuration with the emulation code. |
d7040cdb | 12066 | |
ce2cded5 L |
12067 | if test $this_target = $target ; then |
12068 | obj_format=$fmt | |
12069 | te_file=$em | |
12070 | fi | |
d7040cdb | 12071 | |
b11d79f2 TG |
12072 | case ${te_file} in |
12073 | vms) extra_objects="$extra_objects te-vms.o" ;; | |
12074 | esac | |
12075 | ||
ce2cded5 | 12076 | # From target name and format, produce a list of supported emulations. |
d7040cdb | 12077 | |
ce2cded5 L |
12078 | case ${generic_target}-${fmt} in |
12079 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
12080 | mips*-*-linux*-*) case "$endian" in | |
12081 | big) emulation="mipsbelf mipslelf mipself" ;; | |
12082 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12083 | esac ;; | |
12084 | mips-*-lnews*-ecoff) ;; | |
12085 | mips-*-*-ecoff) case "$endian" in | |
12086 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;; | |
12087 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;; | |
12088 | esac ;; | |
12089 | mips-*-*-elf) case "$endian" in | |
12090 | big) emulation="mipsbelf mipslelf mipself" ;; | |
12091 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12092 | esac ;; | |
12093 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
12094 | # i386-pc-pe-coff != i386-pc-coff. | |
12095 | i386-*-pe-coff) ;; | |
12096 | # Uncommenting the next line will turn on support for i386 AOUT | |
12097 | # for the default linux configuration | |
12098 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | |
12099 | # | |
12100 | i386-*-aout) emulation="i386aout" ;; | |
12101 | i386-*-coff) emulation="i386coff" ;; | |
12102 | i386-*-elf) emulation="i386elf" ;; | |
d7040cdb | 12103 | |
ce2cded5 L |
12104 | # Always all formats. The first stated emulation becomes the default. |
12105 | cris-*-*aout*) emulation="crisaout criself" ;; | |
12106 | cris-*-*) emulation="criself crisaout" ;; | |
12107 | esac | |
13b2be9c | 12108 | |
ce2cded5 | 12109 | emulations="$emulations $emulation" |
13b2be9c | 12110 | |
13b2be9c | 12111 | done |
13b2be9c | 12112 | |
ce2cded5 L |
12113 | # Turn on all targets if possible |
12114 | if test ${all_targets} = "yes"; then | |
12115 | case ${target_cpu_type} in | |
12116 | i386) | |
12117 | case ${obj_format} in | |
12118 | aout) | |
12119 | emulations="$emulations i386coff i386elf" | |
12120 | ;; | |
12121 | coff) | |
12122 | emulations="$emulations i386aout i386elf" | |
12123 | ;; | |
12124 | elf) | |
12125 | emulations="$emulations i386aout i386coff" | |
12126 | ;; | |
12127 | esac | |
12128 | ;; | |
12129 | x86_64) | |
12130 | case ${obj_format} in | |
12131 | aout) | |
12132 | emulations="$emulations i386coff i386elf" | |
12133 | ;; | |
12134 | coff) | |
12135 | emulations="$emulations i386aout i386elf" | |
12136 | ;; | |
12137 | elf) | |
12138 | emulations="$emulations i386aout i386coff" | |
12139 | ;; | |
12140 | esac | |
12141 | ;; | |
12142 | esac | |
13b2be9c | 12143 | fi |
c8615825 | 12144 | |
ce2cded5 L |
12145 | # Assign floating point type. Most processors with FP support |
12146 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
12147 | # is emulated. | |
12148 | case ${target_cpu} in | |
12149 | vax | pdp11 ) atof=vax ;; | |
12150 | *) atof=ieee ;; | |
12151 | esac | |
c8615825 | 12152 | |
ce2cded5 | 12153 | case "${obj_format}" in |
81ecdfbb | 12154 | "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;; |
ce2cded5 | 12155 | esac |
13b2be9c | 12156 | |
ce2cded5 L |
12157 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). |
12158 | cgen_cpu_prefix="" | |
12159 | if test $using_cgen = yes ; then | |
12160 | case ${target_cpu} in | |
12161 | *) cgen_cpu_prefix=${target_cpu} ;; | |
12162 | esac | |
c8615825 | 12163 | |
c8615825 | 12164 | |
81ecdfbb | 12165 | $as_echo "#define USING_CGEN 1" >>confdefs.h |
d7040cdb | 12166 | |
d7040cdb | 12167 | fi |
13b2be9c | 12168 | |
ce2cded5 L |
12169 | |
12170 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | |
81ecdfbb | 12171 | as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5 |
13b2be9c | 12172 | fi |
ce2cded5 L |
12173 | |
12174 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | |
81ecdfbb | 12175 | as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5 |
13b2be9c DJ |
12176 | fi |
12177 | ||
ce2cded5 L |
12178 | # Some COFF configurations want these random other flags set. |
12179 | case ${obj_format} in | |
12180 | coff) | |
12181 | case ${target_cpu_type} in | |
12182 | i386) | |
81ecdfbb | 12183 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12184 | ;; |
12185 | m68k) | |
81ecdfbb | 12186 | $as_echo "#define M68KCOFF 1" >>confdefs.h |
ce2cded5 L |
12187 | ;; |
12188 | m88k) | |
81ecdfbb | 12189 | $as_echo "#define M88KCOFF 1" >>confdefs.h |
ce2cded5 L |
12190 | ;; |
12191 | x86_64) | |
81ecdfbb | 12192 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12193 | ;; |
12194 | esac | |
12195 | ;; | |
12196 | esac | |
12197 | ||
12198 | # Getting this done right is going to be a bitch. Each configuration specified | |
12199 | # with --enable-targets=... should be checked for environment, format, cpu | |
12200 | # setting. | |
12201 | # | |
12202 | # For each configuration, the necessary object file support code must be linked | |
12203 | # in. This might be only one, it might be up to four. The necessary emulation | |
12204 | # code needs to be provided, too. | |
12205 | # | |
12206 | # And then there's "--enable-targets=all".... | |
12207 | # | |
12208 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. | |
12209 | ||
12210 | formats="${obj_format}" | |
12211 | emfiles="" | |
12212 | EMULATIONS="" | |
12213 | _gas_uniq_list="$emulations" | |
12214 | _gas_uniq_newlist="" | |
12215 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12216 | case $_gas_uniq_i in | |
12217 | _gas_uniq_dummy) ;; | |
12218 | *) case " $_gas_uniq_newlist " in | |
12219 | *" $_gas_uniq_i "*) ;; | |
12220 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12221 | esac ;; | |
12222 | esac | |
12223 | done | |
12224 | emulations=$_gas_uniq_newlist | |
12225 | ||
12226 | for em in . $emulations ; do | |
12227 | case $em in | |
12228 | .) continue ;; | |
12229 | mipsbelf | mipslelf | mipself) | |
12230 | fmt=elf file=mipself ;; | |
12231 | mipsbecoff | mipslecoff | mipsecoff) | |
12232 | fmt=ecoff file=mipsecoff ;; | |
12233 | *coff) | |
12234 | fmt=coff file=$em ;; | |
12235 | *aout) | |
12236 | fmt=aout file=$em ;; | |
12237 | *elf) | |
12238 | fmt=elf file=$em ;; | |
12239 | esac | |
12240 | formats="$formats $fmt" | |
12241 | emfiles="$emfiles e-$file.o" | |
12242 | EMULATIONS="$EMULATIONS &$em," | |
12243 | done | |
12244 | _gas_uniq_list="$formats" | |
12245 | _gas_uniq_newlist="" | |
12246 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12247 | case $_gas_uniq_i in | |
12248 | _gas_uniq_dummy) ;; | |
12249 | *) case " $_gas_uniq_newlist " in | |
12250 | *" $_gas_uniq_i "*) ;; | |
12251 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12252 | esac ;; | |
12253 | esac | |
13b2be9c | 12254 | done |
ce2cded5 | 12255 | formats=$_gas_uniq_newlist |
13b2be9c | 12256 | |
ce2cded5 L |
12257 | _gas_uniq_list="$emfiles" |
12258 | _gas_uniq_newlist="" | |
12259 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12260 | case $_gas_uniq_i in | |
12261 | _gas_uniq_dummy) ;; | |
12262 | *) case " $_gas_uniq_newlist " in | |
12263 | *" $_gas_uniq_i "*) ;; | |
12264 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12265 | esac ;; | |
12266 | esac | |
12267 | done | |
12268 | emfiles=$_gas_uniq_newlist | |
d7040cdb | 12269 | |
ce2cded5 L |
12270 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then |
12271 | for fmt in $formats ; do | |
12272 | case $fmt in | |
12273 | aout) | |
81ecdfbb | 12274 | $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h |
ce2cded5 L |
12275 | ;; |
12276 | bout) | |
81ecdfbb | 12277 | $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h |
ce2cded5 L |
12278 | ;; |
12279 | coff) | |
81ecdfbb | 12280 | $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h |
ce2cded5 L |
12281 | ;; |
12282 | ecoff) | |
81ecdfbb | 12283 | $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h |
ce2cded5 L |
12284 | ;; |
12285 | elf) | |
81ecdfbb | 12286 | $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h |
ce2cded5 L |
12287 | ;; |
12288 | generic) | |
81ecdfbb | 12289 | $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h |
ce2cded5 L |
12290 | ;; |
12291 | som) | |
81ecdfbb | 12292 | $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h |
ce2cded5 L |
12293 | ;; |
12294 | esac | |
12295 | extra_objects="$extra_objects obj-$fmt.o" | |
12296 | done | |
12297 | obj_format=multi | |
13b2be9c | 12298 | fi |
ce2cded5 L |
12299 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then |
12300 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
12301 | # e-mips* has more than one emulation per file, e-i386* has just one at the | |
12302 | # moment. If only one emulation is specified, then don't define | |
12303 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | |
12304 | case "${obj_format}${emfiles}" in | |
12305 | multi* | *mips*) | |
12306 | extra_objects="$extra_objects $emfiles" | |
d7040cdb | 12307 | |
81ecdfbb | 12308 | $as_echo "#define USE_EMULATIONS 1" >>confdefs.h |
ce2cded5 L |
12309 | ;; |
12310 | esac | |
12311 | fi | |
d7040cdb | 12312 | |
13b2be9c | 12313 | |
ce2cded5 L |
12314 | cat >>confdefs.h <<_ACEOF |
12315 | #define EMULATIONS $EMULATIONS | |
13b2be9c | 12316 | _ACEOF |
d7040cdb | 12317 | |
d7040cdb | 12318 | |
ce2cded5 L |
12319 | cat >>confdefs.h <<_ACEOF |
12320 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
d7040cdb | 12321 | _ACEOF |
d7040cdb | 12322 | |
d7040cdb | 12323 | |
ce2cded5 | 12324 | reject_dev_configs=yes |
252b5132 | 12325 | |
ce2cded5 L |
12326 | case ${reject_dev_configs}-${dev} in |
12327 | yes-yes) # Oops. | |
81ecdfbb | 12328 | as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5 |
ce2cded5 | 12329 | ;; |
d7040cdb SE |
12330 | esac |
12331 | ||
13b2be9c | 12332 | |
ce2cded5 L |
12333 | |
12334 | ||
12335 | ||
12336 | ||
12337 | ||
12338 | # do we need the opcodes library? | |
12339 | case "${need_opcodes}" in | |
12340 | yes) | |
12341 | OPCODES_LIB=../opcodes/libopcodes.la | |
12342 | ;; | |
12343 | esac | |
12344 | ||
12345 | ||
12346 | ||
12347 | ||
12348 | cat >>confdefs.h <<_ACEOF | |
12349 | #define TARGET_ALIAS "${target_alias}" | |
d7040cdb | 12350 | _ACEOF |
20e95c23 | 12351 | |
20e95c23 | 12352 | |
ce2cded5 L |
12353 | cat >>confdefs.h <<_ACEOF |
12354 | #define TARGET_CANONICAL "${target}" | |
12355 | _ACEOF | |
20e95c23 | 12356 | |
d6d788bd | 12357 | |
ce2cded5 L |
12358 | cat >>confdefs.h <<_ACEOF |
12359 | #define TARGET_CPU "${target_cpu}" | |
12360 | _ACEOF | |
20e95c23 | 12361 | |
ce2cded5 L |
12362 | |
12363 | cat >>confdefs.h <<_ACEOF | |
12364 | #define TARGET_VENDOR "${target_vendor}" | |
0efedc4c AM |
12365 | _ACEOF |
12366 | ||
12367 | ||
ce2cded5 L |
12368 | cat >>confdefs.h <<_ACEOF |
12369 | #define TARGET_OS "${target_os}" | |
12370 | _ACEOF | |
12371 | ||
0efedc4c | 12372 | |
d7040cdb SE |
12373 | for ac_prog in 'bison -y' byacc |
12374 | do | |
12375 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12376 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12378 | $as_echo_n "checking for $ac_word... " >&6; } | |
12379 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
12380 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 12381 | else |
d7040cdb SE |
12382 | if test -n "$YACC"; then |
12383 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
d6d788bd | 12384 | else |
d7040cdb SE |
12385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12386 | for as_dir in $PATH | |
12387 | do | |
12388 | IFS=$as_save_IFS | |
12389 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12390 | for ac_exec_ext in '' $ac_executable_extensions; do |
12391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12392 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 12393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 12394 | break 2 |
20e95c23 | 12395 | fi |
d7040cdb | 12396 | done |
81ecdfbb RW |
12397 | done |
12398 | IFS=$as_save_IFS | |
20e95c23 | 12399 | |
d7040cdb SE |
12400 | fi |
12401 | fi | |
12402 | YACC=$ac_cv_prog_YACC | |
12403 | if test -n "$YACC"; then | |
81ecdfbb RW |
12404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12405 | $as_echo "$YACC" >&6; } | |
d7040cdb | 12406 | else |
81ecdfbb RW |
12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12408 | $as_echo "no" >&6; } | |
d7040cdb | 12409 | fi |
20e95c23 | 12410 | |
81ecdfbb | 12411 | |
d7040cdb SE |
12412 | test -n "$YACC" && break |
12413 | done | |
12414 | test -n "$YACC" || YACC="yacc" | |
20e95c23 | 12415 | |
d7040cdb SE |
12416 | for ac_prog in flex lex |
12417 | do | |
12418 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12419 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12421 | $as_echo_n "checking for $ac_word... " >&6; } | |
12422 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
12423 | $as_echo_n "(cached) " >&6 | |
d6d788bd | 12424 | else |
d7040cdb SE |
12425 | if test -n "$LEX"; then |
12426 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12427 | else | |
12428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12429 | for as_dir in $PATH | |
12430 | do | |
12431 | IFS=$as_save_IFS | |
12432 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12433 | for ac_exec_ext in '' $ac_executable_extensions; do |
12434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12435 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 12436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12437 | break 2 |
12438 | fi | |
12439 | done | |
81ecdfbb RW |
12440 | done |
12441 | IFS=$as_save_IFS | |
20e95c23 | 12442 | |
d7040cdb SE |
12443 | fi |
12444 | fi | |
12445 | LEX=$ac_cv_prog_LEX | |
12446 | if test -n "$LEX"; then | |
81ecdfbb RW |
12447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12448 | $as_echo "$LEX" >&6; } | |
20e95c23 | 12449 | else |
81ecdfbb RW |
12450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12451 | $as_echo "no" >&6; } | |
13b2be9c DJ |
12452 | fi |
12453 | ||
81ecdfbb | 12454 | |
d7040cdb SE |
12455 | test -n "$LEX" && break |
12456 | done | |
12457 | test -n "$LEX" || LEX=":" | |
20e95c23 | 12458 | |
81ecdfbb RW |
12459 | if test "x$LEX" != "x:"; then |
12460 | cat >conftest.l <<_ACEOF | |
12461 | %% | |
12462 | a { ECHO; } | |
12463 | b { REJECT; } | |
12464 | c { yymore (); } | |
12465 | d { yyless (1); } | |
12466 | e { yyless (input () != 0); } | |
12467 | f { unput (yytext[0]); } | |
12468 | . { BEGIN INITIAL; } | |
12469 | %% | |
12470 | #ifdef YYTEXT_POINTER | |
12471 | extern char *yytext; | |
d7040cdb | 12472 | #endif |
d7040cdb | 12473 | int |
81ecdfbb | 12474 | main (void) |
d7040cdb | 12475 | { |
81ecdfbb | 12476 | return ! yylex () + ! yywrap (); |
d7040cdb SE |
12477 | } |
12478 | _ACEOF | |
81ecdfbb RW |
12479 | { { ac_try="$LEX conftest.l" |
12480 | case "(($ac_try" in | |
12481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12482 | *) ac_try_echo=$ac_try;; | |
12483 | esac | |
12484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12485 | $as_echo "$ac_try_echo"; } >&5 | |
12486 | (eval "$LEX conftest.l") 2>&5 | |
d7040cdb | 12487 | ac_status=$? |
81ecdfbb RW |
12488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12489 | test $ac_status = 0; } | |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
12491 | $as_echo_n "checking lex output file root... " >&6; } | |
12492 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
12493 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 12494 | else |
d5fbea21 | 12495 | |
81ecdfbb RW |
12496 | if test -f lex.yy.c; then |
12497 | ac_cv_prog_lex_root=lex.yy | |
12498 | elif test -f lexyy.c; then | |
12499 | ac_cv_prog_lex_root=lexyy | |
12500 | else | |
12501 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
d6d788bd | 12502 | fi |
d7040cdb | 12503 | fi |
81ecdfbb RW |
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12505 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
12506 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
d7040cdb | 12507 | |
81ecdfbb RW |
12508 | if test -z "${LEXLIB+set}"; then |
12509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
12510 | $as_echo_n "checking lex library... " >&6; } | |
12511 | if test "${ac_cv_lib_lex+set}" = set; then : | |
12512 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 12513 | else |
d7040cdb | 12514 | |
81ecdfbb RW |
12515 | ac_save_LIBS=$LIBS |
12516 | ac_cv_lib_lex='none needed' | |
12517 | for ac_lib in '' -lfl -ll; do | |
12518 | LIBS="$ac_lib $ac_save_LIBS" | |
12519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12520 | /* end confdefs.h. */ | |
12521 | `cat $LEX_OUTPUT_ROOT.c` | |
12522 | _ACEOF | |
12523 | if ac_fn_c_try_link "$LINENO"; then : | |
12524 | ac_cv_lib_lex=$ac_lib | |
d7040cdb | 12525 | fi |
81ecdfbb RW |
12526 | rm -f core conftest.err conftest.$ac_objext \ |
12527 | conftest$ac_exeext conftest.$ac_ext | |
12528 | test "$ac_cv_lib_lex" != 'none needed' && break | |
12529 | done | |
12530 | LIBS=$ac_save_LIBS | |
d7040cdb SE |
12531 | |
12532 | fi | |
81ecdfbb RW |
12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12534 | $as_echo "$ac_cv_lib_lex" >&6; } | |
12535 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb SE |
12536 | fi |
12537 | ||
13b2be9c | 12538 | |
81ecdfbb RW |
12539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12540 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
12541 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
12542 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
12543 | else |
12544 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 12545 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
12546 | # not all implementations provide the %pointer and %array declarations. |
12547 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 12548 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
12549 | LIBS="$LEXLIB $ac_save_LIBS" |
12550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12551 | /* end confdefs.h. */ | |
12552 | #define YYTEXT_POINTER 1 | |
d7040cdb | 12553 | `cat $LEX_OUTPUT_ROOT.c` |
13b2be9c | 12554 | _ACEOF |
81ecdfbb | 12555 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 12556 | ac_cv_prog_lex_yytext_pointer=yes |
13b2be9c | 12557 | fi |
81ecdfbb RW |
12558 | rm -f core conftest.err conftest.$ac_objext \ |
12559 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 12560 | LIBS=$ac_save_LIBS |
252b5132 | 12561 | |
9b2b7d69 | 12562 | fi |
81ecdfbb RW |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12564 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb | 12565 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
13b2be9c | 12566 | |
81ecdfbb | 12567 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
9b2b7d69 | 12568 | |
d6d788bd | 12569 | fi |
81ecdfbb | 12570 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
d7040cdb | 12571 | |
c8615825 | 12572 | fi |
d7040cdb SE |
12573 | if test "$LEX" = :; then |
12574 | LEX=${am_missing_run}flex | |
12575 | fi | |
12576 | ||
8cc9115f | 12577 | ALL_LINGUAS="fr tr es rw id" |
d7040cdb SE |
12578 | # If we haven't got the data from the intl directory, |
12579 | # assume NLS is disabled. | |
12580 | USE_NLS=no | |
12581 | LIBINTL= | |
12582 | LIBINTL_DEP= | |
12583 | INCINTL= | |
12584 | XGETTEXT= | |
12585 | GMSGFMT= | |
12586 | POSUB= | |
12587 | ||
12588 | if test -f ../intl/config.intl; then | |
12589 | . ../intl/config.intl | |
12590 | fi | |
81ecdfbb RW |
12591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
12592 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 12593 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
12594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12595 | $as_echo "no" >&6; } | |
d7040cdb | 12596 | else |
81ecdfbb RW |
12597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12598 | $as_echo "yes" >&6; } | |
d7040cdb | 12599 | |
81ecdfbb | 12600 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
12601 | |
12602 | ||
81ecdfbb RW |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
12604 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
12605 | # Look for .po and .gmo files in the source directory. |
12606 | CATALOGS= | |
12607 | XLINGUAS= | |
12608 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
12609 | # If there aren't any .gmo files the shell will give us the | |
12610 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
12611 | # weeded out. | |
12612 | case "$cat" in *\**) | |
12613 | continue;; | |
12614 | esac | |
12615 | # The quadruple backslash is collapsed to a double backslash | |
12616 | # by the backticks, then collapsed again by the double quotes, | |
12617 | # leaving us with one backslash in the sed expression (right | |
12618 | # before the dot that mustn't act as a wildcard). | |
12619 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
12620 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
12621 | # The user is allowed to set LINGUAS to a list of languages to | |
12622 | # install catalogs for. If it's empty that means "all of them." | |
12623 | if test "x$LINGUAS" = x; then | |
12624 | CATALOGS="$CATALOGS $cat" | |
12625 | XLINGUAS="$XLINGUAS $lang" | |
12626 | else | |
12627 | case "$LINGUAS" in *$lang*) | |
12628 | CATALOGS="$CATALOGS $cat" | |
12629 | XLINGUAS="$XLINGUAS $lang" | |
12630 | ;; | |
12631 | esac | |
12632 | fi | |
12633 | done | |
12634 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
12636 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
12637 | |
12638 | ||
12639 | DATADIRNAME=share | |
12640 | ||
12641 | INSTOBJEXT=.mo | |
12642 | ||
12643 | GENCAT=gencat | |
12644 | ||
12645 | CATOBJEXT=.gmo | |
12646 | ||
12647 | fi | |
12648 | ||
12649 | MKINSTALLDIRS= | |
12650 | if test -n "$ac_aux_dir"; then | |
12651 | case "$ac_aux_dir" in | |
12652 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
12653 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
12654 | esac | |
12655 | fi | |
12656 | if test -z "$MKINSTALLDIRS"; then | |
12657 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
12658 | fi | |
12659 | ||
12660 | ||
12661 | ||
81ecdfbb RW |
12662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
12663 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
12664 | # Check whether --enable-nls was given. | |
12665 | if test "${enable_nls+set}" = set; then : | |
12666 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
12667 | else |
12668 | USE_NLS=yes | |
81ecdfbb RW |
12669 | fi |
12670 | ||
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
12672 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
12673 | |
12674 | ||
12675 | ||
12676 | ||
12677 | ||
12678 | ||
12679 | # Prepare PATH_SEPARATOR. | |
12680 | # The user is always right. | |
12681 | if test "${PATH_SEPARATOR+set}" != set; then | |
12682 | echo "#! /bin/sh" >conf$$.sh | |
12683 | echo "exit 0" >>conf$$.sh | |
12684 | chmod +x conf$$.sh | |
12685 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12686 | PATH_SEPARATOR=';' | |
13b2be9c | 12687 | else |
d7040cdb | 12688 | PATH_SEPARATOR=: |
13b2be9c | 12689 | fi |
d7040cdb | 12690 | rm -f conf$$.sh |
252b5132 | 12691 | fi |
13b2be9c | 12692 | |
d7040cdb SE |
12693 | # Find out how to test for executable files. Don't use a zero-byte file, |
12694 | # as systems may use methods other than mode bits to determine executability. | |
12695 | cat >conf$$.file <<_ASEOF | |
12696 | #! /bin/sh | |
12697 | exit 0 | |
12698 | _ASEOF | |
12699 | chmod +x conf$$.file | |
12700 | if test -x conf$$.file >/dev/null 2>&1; then | |
12701 | ac_executable_p="test -x" | |
12702 | else | |
12703 | ac_executable_p="test -f" | |
13b2be9c | 12704 | fi |
d7040cdb | 12705 | rm -f conf$$.file |
13b2be9c | 12706 | |
d7040cdb SE |
12707 | # Extract the first word of "msgfmt", so it can be a program name with args. |
12708 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12710 | $as_echo_n "checking for $ac_word... " >&6; } | |
12711 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
12712 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12713 | else |
d7040cdb SE |
12714 | case "$MSGFMT" in |
12715 | [\\/]* | ?:[\\/]*) | |
12716 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
12717 | ;; | |
12718 | *) | |
12719 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12720 | for ac_dir in $PATH; do | |
12721 | IFS="$ac_save_IFS" | |
12722 | test -z "$ac_dir" && ac_dir=. | |
12723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12724 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12725 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
12726 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12727 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
12728 | break 2 | |
12729 | fi | |
12730 | fi | |
12731 | done | |
12732 | done | |
12733 | IFS="$ac_save_IFS" | |
12734 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
12735 | ;; | |
12736 | esac | |
252b5132 | 12737 | fi |
d7040cdb SE |
12738 | MSGFMT="$ac_cv_path_MSGFMT" |
12739 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
12740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
12741 | $as_echo "$MSGFMT" >&6; } | |
252b5132 | 12742 | else |
81ecdfbb RW |
12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12744 | $as_echo "no" >&6; } | |
252b5132 | 12745 | fi |
252b5132 | 12746 | |
d7040cdb SE |
12747 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
12748 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12750 | $as_echo_n "checking for $ac_word... " >&6; } | |
12751 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
12752 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 12753 | else |
d7040cdb SE |
12754 | case $GMSGFMT in |
12755 | [\\/]* | ?:[\\/]*) | |
12756 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
12757 | ;; | |
12758 | *) | |
12759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12760 | for as_dir in $PATH | |
12761 | do | |
12762 | IFS=$as_save_IFS | |
12763 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12764 | for ac_exec_ext in '' $ac_executable_extensions; do |
12765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12766 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12768 | break 2 |
12769 | fi | |
12770 | done | |
81ecdfbb RW |
12771 | done |
12772 | IFS=$as_save_IFS | |
252b5132 | 12773 | |
d7040cdb SE |
12774 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
12775 | ;; | |
12776 | esac | |
12777 | fi | |
12778 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 12779 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
12781 | $as_echo "$GMSGFMT" >&6; } | |
ac48eca1 | 12782 | else |
81ecdfbb RW |
12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12784 | $as_echo "no" >&6; } | |
6840198f | 12785 | fi |
6840198f | 12786 | |
13b2be9c | 12787 | |
20e95c23 | 12788 | |
81ecdfbb | 12789 | |
d7040cdb SE |
12790 | # Prepare PATH_SEPARATOR. |
12791 | # The user is always right. | |
12792 | if test "${PATH_SEPARATOR+set}" != set; then | |
12793 | echo "#! /bin/sh" >conf$$.sh | |
12794 | echo "exit 0" >>conf$$.sh | |
12795 | chmod +x conf$$.sh | |
12796 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12797 | PATH_SEPARATOR=';' | |
12798 | else | |
12799 | PATH_SEPARATOR=: | |
12800 | fi | |
12801 | rm -f conf$$.sh | |
12802 | fi | |
20e95c23 | 12803 | |
d7040cdb SE |
12804 | # Find out how to test for executable files. Don't use a zero-byte file, |
12805 | # as systems may use methods other than mode bits to determine executability. | |
12806 | cat >conf$$.file <<_ASEOF | |
12807 | #! /bin/sh | |
12808 | exit 0 | |
12809 | _ASEOF | |
12810 | chmod +x conf$$.file | |
12811 | if test -x conf$$.file >/dev/null 2>&1; then | |
12812 | ac_executable_p="test -x" | |
13b2be9c | 12813 | else |
d7040cdb | 12814 | ac_executable_p="test -f" |
13b2be9c | 12815 | fi |
d7040cdb | 12816 | rm -f conf$$.file |
20e95c23 | 12817 | |
d7040cdb SE |
12818 | # Extract the first word of "xgettext", so it can be a program name with args. |
12819 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
12820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12821 | $as_echo_n "checking for $ac_word... " >&6; } | |
12822 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
12823 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12824 | else |
d7040cdb SE |
12825 | case "$XGETTEXT" in |
12826 | [\\/]* | ?:[\\/]*) | |
12827 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12828 | ;; | |
12829 | *) | |
12830 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12831 | for ac_dir in $PATH; do | |
12832 | IFS="$ac_save_IFS" | |
12833 | test -z "$ac_dir" && ac_dir=. | |
12834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12835 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12836 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12837 | (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 | |
12838 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12839 | break 2 | |
12840 | fi | |
12841 | fi | |
12842 | done | |
12843 | done | |
12844 | IFS="$ac_save_IFS" | |
12845 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
12846 | ;; | |
12847 | esac | |
13b2be9c | 12848 | fi |
d7040cdb SE |
12849 | XGETTEXT="$ac_cv_path_XGETTEXT" |
12850 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
12852 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 12853 | else |
81ecdfbb RW |
12854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12855 | $as_echo "no" >&6; } | |
13b2be9c | 12856 | fi |
13b2be9c | 12857 | |
d7040cdb | 12858 | rm -f messages.po |
20e95c23 | 12859 | |
13b2be9c | 12860 | |
d7040cdb SE |
12861 | # Prepare PATH_SEPARATOR. |
12862 | # The user is always right. | |
12863 | if test "${PATH_SEPARATOR+set}" != set; then | |
12864 | echo "#! /bin/sh" >conf$$.sh | |
12865 | echo "exit 0" >>conf$$.sh | |
12866 | chmod +x conf$$.sh | |
12867 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12868 | PATH_SEPARATOR=';' | |
12869 | else | |
12870 | PATH_SEPARATOR=: | |
12871 | fi | |
12872 | rm -f conf$$.sh | |
252b5132 | 12873 | fi |
20e95c23 | 12874 | |
d7040cdb SE |
12875 | # Find out how to test for executable files. Don't use a zero-byte file, |
12876 | # as systems may use methods other than mode bits to determine executability. | |
12877 | cat >conf$$.file <<_ASEOF | |
12878 | #! /bin/sh | |
12879 | exit 0 | |
12880 | _ASEOF | |
12881 | chmod +x conf$$.file | |
12882 | if test -x conf$$.file >/dev/null 2>&1; then | |
12883 | ac_executable_p="test -x" | |
252b5132 | 12884 | else |
d7040cdb SE |
12885 | ac_executable_p="test -f" |
12886 | fi | |
12887 | rm -f conf$$.file | |
20e95c23 | 12888 | |
d7040cdb SE |
12889 | # Extract the first word of "msgmerge", so it can be a program name with args. |
12890 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12892 | $as_echo_n "checking for $ac_word... " >&6; } | |
12893 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
12894 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 12895 | else |
d7040cdb SE |
12896 | case "$MSGMERGE" in |
12897 | [\\/]* | ?:[\\/]*) | |
12898 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
12899 | ;; | |
12900 | *) | |
12901 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12902 | for ac_dir in $PATH; do | |
12903 | IFS="$ac_save_IFS" | |
12904 | test -z "$ac_dir" && ac_dir=. | |
12905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12906 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12907 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
12908 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
12909 | break 2 | |
12910 | fi | |
12911 | fi | |
12912 | done | |
12913 | done | |
12914 | IFS="$ac_save_IFS" | |
12915 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
12916 | ;; | |
12917 | esac | |
20e95c23 | 12918 | fi |
d7040cdb SE |
12919 | MSGMERGE="$ac_cv_path_MSGMERGE" |
12920 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
12921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
12922 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 12923 | else |
81ecdfbb RW |
12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12925 | $as_echo "no" >&6; } | |
20e95c23 | 12926 | fi |
252b5132 | 12927 | |
252b5132 | 12928 | |
d7040cdb SE |
12929 | if test "$GMSGFMT" != ":"; then |
12930 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12931 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12932 | : ; | |
12933 | else | |
12934 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
12936 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
12937 | GMSGFMT=":" |
12938 | fi | |
12939 | fi | |
13b2be9c | 12940 | |
d7040cdb SE |
12941 | if test "$XGETTEXT" != ":"; then |
12942 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12943 | (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 | |
12944 | : ; | |
12945 | else | |
81ecdfbb RW |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
12947 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
12948 | XGETTEXT=":" |
12949 | fi | |
12950 | rm -f messages.po | |
12951 | fi | |
252b5132 | 12952 | |
81ecdfbb | 12953 | ac_config_commands="$ac_config_commands default-1" |
13b2be9c | 12954 | |
13b2be9c | 12955 | |
81ecdfbb RW |
12956 | |
12957 | ||
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
12959 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
12960 | # Check whether --enable-maintainer-mode was given. | |
12961 | if test "${enable_maintainer_mode+set}" = set; then : | |
12962 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
9b2b7d69 | 12963 | else |
81ecdfbb | 12964 | USE_MAINTAINER_MODE=no |
13b2be9c | 12965 | fi |
13b2be9c | 12966 | |
81ecdfbb RW |
12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
12968 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
12969 | if test $USE_MAINTAINER_MODE = yes; then | |
12970 | MAINTAINER_MODE_TRUE= | |
12971 | MAINTAINER_MODE_FALSE='#' | |
12972 | else | |
12973 | MAINTAINER_MODE_TRUE='#' | |
12974 | MAINTAINER_MODE_FALSE= | |
13b2be9c | 12975 | fi |
13b2be9c | 12976 | |
81ecdfbb RW |
12977 | MAINT=$MAINTAINER_MODE_TRUE |
12978 | ||
12979 | ||
12980 | if false; then | |
12981 | GENINSRC_NEVER_TRUE= | |
12982 | GENINSRC_NEVER_FALSE='#' | |
13b2be9c | 12983 | else |
81ecdfbb RW |
12984 | GENINSRC_NEVER_TRUE='#' |
12985 | GENINSRC_NEVER_FALSE= | |
252b5132 | 12986 | fi |
13b2be9c | 12987 | |
81ecdfbb RW |
12988 | |
12989 | ||
b11d79f2 | 12990 | for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h time.h sys/stat.h |
81ecdfbb RW |
12991 | do : |
12992 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12993 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12994 | eval as_val=\$$as_ac_Header | |
12995 | if test "x$as_val" = x""yes; then : | |
13b2be9c | 12996 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12997 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13b2be9c DJ |
12998 | _ACEOF |
12999 | ||
252b5132 | 13000 | fi |
13b2be9c | 13001 | |
252b5132 RH |
13002 | done |
13003 | ||
d6d788bd | 13004 | |
252b5132 RH |
13005 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
13006 | # people who are not cross-compiling but are compiling cross-assemblers. | |
81ecdfbb RW |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5 |
13008 | $as_echo_n "checking whether compiling a cross-assembler... " >&6; } | |
252b5132 RH |
13009 | if test "${host}" = "${target}"; then |
13010 | cross_gas=no | |
13011 | else | |
13012 | cross_gas=yes | |
13b2be9c | 13013 | |
81ecdfbb | 13014 | $as_echo "#define CROSS_COMPILE 1" >>confdefs.h |
252b5132 RH |
13015 | |
13016 | fi | |
81ecdfbb RW |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5 |
13018 | $as_echo "$cross_gas" >&6; } | |
252b5132 RH |
13019 | |
13020 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
13021 | # for constant arguments. Useless! | |
81ecdfbb RW |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
13023 | $as_echo_n "checking for working alloca.h... " >&6; } | |
13024 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
13025 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13026 | else |
81ecdfbb | 13027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13028 | /* end confdefs.h. */ |
252b5132 | 13029 | #include <alloca.h> |
13b2be9c DJ |
13030 | int |
13031 | main () | |
13032 | { | |
13033 | char *p = (char *) alloca (2 * sizeof (int)); | |
81ecdfbb | 13034 | if (p) return 0; |
13b2be9c DJ |
13035 | ; |
13036 | return 0; | |
13037 | } | |
13038 | _ACEOF | |
81ecdfbb | 13039 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13040 | ac_cv_working_alloca_h=yes |
13041 | else | |
81ecdfbb | 13042 | ac_cv_working_alloca_h=no |
13b2be9c | 13043 | fi |
81ecdfbb RW |
13044 | rm -f core conftest.err conftest.$ac_objext \ |
13045 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13046 | fi |
81ecdfbb RW |
13047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
13048 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
13b2be9c DJ |
13049 | if test $ac_cv_working_alloca_h = yes; then |
13050 | ||
81ecdfbb | 13051 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
252b5132 RH |
13052 | |
13053 | fi | |
13054 | ||
81ecdfbb RW |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
13056 | $as_echo_n "checking for alloca... " >&6; } | |
13057 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
13058 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13059 | else |
81ecdfbb | 13060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13061 | /* end confdefs.h. */ |
252b5132 RH |
13062 | #ifdef __GNUC__ |
13063 | # define alloca __builtin_alloca | |
13064 | #else | |
13065 | # ifdef _MSC_VER | |
13066 | # include <malloc.h> | |
13067 | # define alloca _alloca | |
13068 | # else | |
81ecdfbb | 13069 | # ifdef HAVE_ALLOCA_H |
252b5132 RH |
13070 | # include <alloca.h> |
13071 | # else | |
13072 | # ifdef _AIX | |
13073 | #pragma alloca | |
13074 | # else | |
13075 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
13076 | char *alloca (); | |
13077 | # endif | |
13078 | # endif | |
13079 | # endif | |
13080 | # endif | |
13081 | #endif | |
13082 | ||
13b2be9c DJ |
13083 | int |
13084 | main () | |
13085 | { | |
13086 | char *p = (char *) alloca (1); | |
81ecdfbb | 13087 | if (p) return 0; |
13b2be9c DJ |
13088 | ; |
13089 | return 0; | |
13090 | } | |
13091 | _ACEOF | |
81ecdfbb | 13092 | if ac_fn_c_try_link "$LINENO"; then : |
252b5132 RH |
13093 | ac_cv_func_alloca_works=yes |
13094 | else | |
81ecdfbb | 13095 | ac_cv_func_alloca_works=no |
252b5132 | 13096 | fi |
81ecdfbb RW |
13097 | rm -f core conftest.err conftest.$ac_objext \ |
13098 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13099 | fi |
81ecdfbb RW |
13100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
13101 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
252b5132 | 13102 | |
252b5132 | 13103 | if test $ac_cv_func_alloca_works = yes; then |
9b2b7d69 | 13104 | |
81ecdfbb | 13105 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
9b2b7d69 | 13106 | |
13b2be9c | 13107 | else |
c8615825 | 13108 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13b2be9c DJ |
13109 | # that cause trouble. Some versions do not even contain alloca or |
13110 | # contain a buggy version. If you still want to use their alloca, | |
13111 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13112 | ||
81ecdfbb | 13113 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
13b2be9c | 13114 | |
81ecdfbb | 13115 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
252b5132 | 13116 | |
d6d788bd | 13117 | |
81ecdfbb RW |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
13119 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
13120 | if test "${ac_cv_os_cray+set}" = set; then : | |
13121 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13122 | else |
81ecdfbb | 13123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13124 | /* end confdefs.h. */ |
81ecdfbb | 13125 | #if defined CRAY && ! defined CRAY2 |
252b5132 RH |
13126 | webecray |
13127 | #else | |
13128 | wenotbecray | |
13129 | #endif | |
13130 | ||
13b2be9c | 13131 | _ACEOF |
252b5132 | 13132 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb | 13133 | $EGREP "webecray" >/dev/null 2>&1; then : |
252b5132 RH |
13134 | ac_cv_os_cray=yes |
13135 | else | |
252b5132 RH |
13136 | ac_cv_os_cray=no |
13137 | fi | |
13138 | rm -f conftest* | |
13139 | ||
13140 | fi | |
81ecdfbb RW |
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
13142 | $as_echo "$ac_cv_os_cray" >&6; } | |
252b5132 | 13143 | if test $ac_cv_os_cray = yes; then |
13b2be9c | 13144 | for ac_func in _getb67 GETB67 getb67; do |
81ecdfbb RW |
13145 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13146 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13147 | eval as_val=\$$as_ac_var | |
13148 | if test "x$as_val" = x""yes; then : | |
13b2be9c DJ |
13149 | |
13150 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 13151 | #define CRAY_STACKSEG_END $ac_func |
13b2be9c | 13152 | _ACEOF |
252b5132 | 13153 | |
13b2be9c | 13154 | break |
252b5132 RH |
13155 | fi |
13156 | ||
13b2be9c | 13157 | done |
252b5132 RH |
13158 | fi |
13159 | ||
81ecdfbb RW |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
13161 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
13162 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
13163 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13164 | else |
81ecdfbb | 13165 | if test "$cross_compiling" = yes; then : |
252b5132 RH |
13166 | ac_cv_c_stack_direction=0 |
13167 | else | |
81ecdfbb | 13168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13169 | /* end confdefs.h. */ |
81ecdfbb | 13170 | $ac_includes_default |
13b2be9c | 13171 | int |
252b5132 RH |
13172 | find_stack_direction () |
13173 | { | |
13174 | static char *addr = 0; | |
13175 | auto char dummy; | |
13176 | if (addr == 0) | |
13177 | { | |
13178 | addr = &dummy; | |
13179 | return find_stack_direction (); | |
13180 | } | |
13181 | else | |
13182 | return (&dummy > addr) ? 1 : -1; | |
13183 | } | |
13b2be9c DJ |
13184 | |
13185 | int | |
252b5132 RH |
13186 | main () |
13187 | { | |
81ecdfbb | 13188 | return find_stack_direction () < 0; |
252b5132 | 13189 | } |
13b2be9c | 13190 | _ACEOF |
81ecdfbb | 13191 | if ac_fn_c_try_run "$LINENO"; then : |
252b5132 RH |
13192 | ac_cv_c_stack_direction=1 |
13193 | else | |
81ecdfbb | 13194 | ac_cv_c_stack_direction=-1 |
252b5132 | 13195 | fi |
81ecdfbb RW |
13196 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13197 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
252b5132 | 13198 | fi |
252b5132 | 13199 | |
81ecdfbb RW |
13200 | fi |
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
13202 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
13b2be9c | 13203 | cat >>confdefs.h <<_ACEOF |
252b5132 | 13204 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
13b2be9c DJ |
13205 | _ACEOF |
13206 | ||
252b5132 RH |
13207 | |
13208 | fi | |
13209 | ||
81ecdfbb RW |
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13211 | $as_echo_n "checking for inline... " >&6; } | |
13212 | if test "${ac_cv_c_inline+set}" = set; then : | |
13213 | $as_echo_n "(cached) " >&6 | |
252b5132 RH |
13214 | else |
13215 | ac_cv_c_inline=no | |
13216 | for ac_kw in inline __inline__ __inline; do | |
81ecdfbb | 13217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13218 | /* end confdefs.h. */ |
13219 | #ifndef __cplusplus | |
13220 | typedef int foo_t; | |
13221 | static $ac_kw foo_t static_foo () {return 0; } | |
13222 | $ac_kw foo_t foo () {return 0; } | |
13223 | #endif | |
252b5132 | 13224 | |
13b2be9c | 13225 | _ACEOF |
81ecdfbb RW |
13226 | if ac_fn_c_try_compile "$LINENO"; then : |
13227 | ac_cv_c_inline=$ac_kw | |
252b5132 | 13228 | fi |
81ecdfbb RW |
13229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13230 | test "$ac_cv_c_inline" != no && break | |
252b5132 RH |
13231 | done |
13232 | ||
13233 | fi | |
81ecdfbb RW |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
13235 | $as_echo "$ac_cv_c_inline" >&6; } | |
ab509236 | 13236 | |
13b2be9c | 13237 | case $ac_cv_c_inline in |
252b5132 | 13238 | inline | yes) ;; |
ab509236 L |
13239 | *) |
13240 | case $ac_cv_c_inline in | |
13241 | no) ac_val=;; | |
13242 | *) ac_val=$ac_cv_c_inline;; | |
13243 | esac | |
13244 | cat >>confdefs.h <<_ACEOF | |
13245 | #ifndef __cplusplus | |
13246 | #define inline $ac_val | |
13247 | #endif | |
13b2be9c | 13248 | _ACEOF |
ab509236 | 13249 | ;; |
252b5132 RH |
13250 | esac |
13251 | ||
6840198f | 13252 | |
d6d788bd | 13253 | # VMS doesn't have unlink. |
252b5132 | 13254 | for ac_func in unlink remove |
81ecdfbb RW |
13255 | do : |
13256 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13257 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13258 | eval as_val=\$$as_ac_var | |
13259 | if test "x$as_val" = x""yes; then : | |
13b2be9c | 13260 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 13261 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13b2be9c | 13262 | _ACEOF |
252b5132 | 13263 | break |
252b5132 RH |
13264 | fi |
13265 | done | |
13266 | ||
6840198f | 13267 | |
d6d788bd | 13268 | # Some systems don't have sbrk(). |
252b5132 | 13269 | for ac_func in sbrk |
81ecdfbb RW |
13270 | do : |
13271 | ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk" | |
13272 | if test "x$ac_cv_func_sbrk" = x""yes; then : | |
13b2be9c | 13273 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 13274 | #define HAVE_SBRK 1 |
13b2be9c | 13275 | _ACEOF |
252b5132 | 13276 | |
252b5132 RH |
13277 | fi |
13278 | done | |
13279 | ||
d6d788bd | 13280 | |
39bec121 TW |
13281 | # do we need the math library? |
13282 | case "${need_libm}" in | |
13b2be9c | 13283 | yes) |
39bec121 | 13284 | LIBM= |
f9c19112 | 13285 | case $host in |
d70c5fc7 | 13286 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
d7040cdb | 13287 | # These system don't have libm, or don't need it |
39bec121 TW |
13288 | ;; |
13289 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
13291 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
13292 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then : | |
13293 | $as_echo_n "(cached) " >&6 | |
39bec121 | 13294 | else |
13b2be9c | 13295 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13296 | LIBS="-lmw $LIBS" |
81ecdfbb | 13297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13298 | /* end confdefs.h. */ |
13299 | ||
81ecdfbb RW |
13300 | /* Override any GCC internal prototype to avoid an error. |
13301 | Use char because int might match the return type of a GCC | |
13302 | builtin and then its argument prototype would still apply. */ | |
13b2be9c DJ |
13303 | #ifdef __cplusplus |
13304 | extern "C" | |
13305 | #endif | |
13b2be9c DJ |
13306 | char _mwvalidcheckl (); |
13307 | int | |
13308 | main () | |
13309 | { | |
81ecdfbb | 13310 | return _mwvalidcheckl (); |
13b2be9c DJ |
13311 | ; |
13312 | return 0; | |
13313 | } | |
13314 | _ACEOF | |
81ecdfbb | 13315 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13316 | ac_cv_lib_mw__mwvalidcheckl=yes |
13317 | else | |
81ecdfbb | 13318 | ac_cv_lib_mw__mwvalidcheckl=no |
13b2be9c | 13319 | fi |
81ecdfbb RW |
13320 | rm -f core conftest.err conftest.$ac_objext \ |
13321 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13322 | LIBS=$ac_check_lib_save_LIBS |
13323 | fi | |
81ecdfbb RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
13325 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
13326 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then : | |
39bec121 | 13327 | LIBM="-lmw" |
39bec121 TW |
13328 | fi |
13329 | ||
81ecdfbb RW |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13331 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13332 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
13333 | $as_echo_n "(cached) " >&6 | |
39bec121 | 13334 | else |
13b2be9c | 13335 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13336 | LIBS="-lm $LIBS" |
81ecdfbb | 13337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13338 | /* end confdefs.h. */ |
39bec121 | 13339 | |
81ecdfbb RW |
13340 | /* Override any GCC internal prototype to avoid an error. |
13341 | Use char because int might match the return type of a GCC | |
13342 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
13343 | #ifdef __cplusplus |
13344 | extern "C" | |
13345 | #endif | |
d7040cdb | 13346 | char cos (); |
13b2be9c DJ |
13347 | int |
13348 | main () | |
13349 | { | |
81ecdfbb | 13350 | return cos (); |
13b2be9c DJ |
13351 | ; |
13352 | return 0; | |
13353 | } | |
13354 | _ACEOF | |
81ecdfbb | 13355 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13356 | ac_cv_lib_m_cos=yes |
13b2be9c | 13357 | else |
81ecdfbb | 13358 | ac_cv_lib_m_cos=no |
13b2be9c | 13359 | fi |
81ecdfbb RW |
13360 | rm -f core conftest.err conftest.$ac_objext \ |
13361 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13362 | LIBS=$ac_check_lib_save_LIBS |
13363 | fi | |
81ecdfbb RW |
13364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
13365 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13366 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
39bec121 | 13367 | LIBM="$LIBM -lm" |
39bec121 TW |
13368 | fi |
13369 | ||
13370 | ;; | |
13371 | *) | |
81ecdfbb RW |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13373 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13374 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
13375 | $as_echo_n "(cached) " >&6 | |
39bec121 | 13376 | else |
13b2be9c | 13377 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13378 | LIBS="-lm $LIBS" |
81ecdfbb | 13379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13380 | /* end confdefs.h. */ |
39bec121 | 13381 | |
81ecdfbb RW |
13382 | /* Override any GCC internal prototype to avoid an error. |
13383 | Use char because int might match the return type of a GCC | |
13384 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
13385 | #ifdef __cplusplus |
13386 | extern "C" | |
13387 | #endif | |
d7040cdb | 13388 | char cos (); |
13b2be9c DJ |
13389 | int |
13390 | main () | |
13391 | { | |
81ecdfbb | 13392 | return cos (); |
13b2be9c DJ |
13393 | ; |
13394 | return 0; | |
13395 | } | |
13396 | _ACEOF | |
81ecdfbb | 13397 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13398 | ac_cv_lib_m_cos=yes |
13b2be9c | 13399 | else |
81ecdfbb | 13400 | ac_cv_lib_m_cos=no |
13b2be9c | 13401 | fi |
81ecdfbb RW |
13402 | rm -f core conftest.err conftest.$ac_objext \ |
13403 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13404 | LIBS=$ac_check_lib_save_LIBS |
13405 | fi | |
81ecdfbb RW |
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
13407 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13408 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
39bec121 | 13409 | LIBM="-lm" |
39bec121 TW |
13410 | fi |
13411 | ||
13412 | ;; | |
13413 | esac | |
13414 | ||
13b2be9c | 13415 | |
d7040cdb | 13416 | |
39bec121 TW |
13417 | ;; |
13418 | esac | |
13419 | ||
252b5132 RH |
13420 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
13421 | # enough, but on some of those systems, the assert macro relies on requoting | |
13422 | # working properly! | |
81ecdfbb RW |
13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5 |
13424 | $as_echo_n "checking for working assert macro... " >&6; } | |
13425 | if test "${gas_cv_assert_ok+set}" = set; then : | |
13426 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13427 | else |
81ecdfbb | 13428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13429 | /* end confdefs.h. */ |
252b5132 RH |
13430 | #include <assert.h> |
13431 | #include <stdio.h> | |
13b2be9c DJ |
13432 | int |
13433 | main () | |
13434 | { | |
252b5132 RH |
13435 | |
13436 | /* check for requoting problems */ | |
13437 | static int a, b, c, d; | |
13438 | static char *s; | |
13439 | assert (!strcmp(s, "foo bar baz quux")); | |
13440 | /* check for newline handling */ | |
13441 | assert (a == b | |
13442 | || c == d); | |
13443 | ||
13b2be9c DJ |
13444 | ; |
13445 | return 0; | |
81ecdfbb RW |
13446 | } |
13447 | _ACEOF | |
13448 | if ac_fn_c_try_link "$LINENO"; then : | |
252b5132 RH |
13449 | gas_cv_assert_ok=yes |
13450 | else | |
81ecdfbb | 13451 | gas_cv_assert_ok=no |
252b5132 | 13452 | fi |
81ecdfbb RW |
13453 | rm -f core conftest.err conftest.$ac_objext \ |
13454 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13455 | fi |
81ecdfbb RW |
13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5 |
13457 | $as_echo "$gas_cv_assert_ok" >&6; } | |
13b2be9c | 13458 | test $gas_cv_assert_ok = yes || |
81ecdfbb | 13459 | $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h |
252b5132 | 13460 | |
d6d788bd L |
13461 | |
13462 | ||
252b5132 RH |
13463 | # On some systems, the system header files may not declare malloc, realloc, |
13464 | # and free. There are places where gas needs these functions to have been | |
13465 | # declared -- such as when taking their addresses. | |
13466 | gas_test_headers=" | |
13467 | #ifdef HAVE_MEMORY_H | |
13468 | #include <memory.h> | |
13469 | #endif | |
13470 | #ifdef HAVE_STRING_H | |
13471 | #include <string.h> | |
13472 | #else | |
13473 | #ifdef HAVE_STRINGS_H | |
13474 | #include <strings.h> | |
13475 | #endif | |
13476 | #endif | |
13477 | #ifdef HAVE_STDLIB_H | |
13478 | #include <stdlib.h> | |
13479 | #endif | |
13480 | #ifdef HAVE_UNISTD_H | |
13481 | #include <unistd.h> | |
13482 | #endif | |
13483 | " | |
13484 | ||
e8a38df5 AL |
13485 | # Does errno.h declare errno, or do we have to add a separate declaration |
13486 | # for it? | |
13487 | ||
81ecdfbb RW |
13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5 |
13489 | $as_echo_n "checking whether declaration is required for errno... " >&6; } | |
13490 | if test "${gas_cv_decl_needed_errno+set}" = set; then : | |
13491 | $as_echo_n "(cached) " >&6 | |
e8a38df5 | 13492 | else |
81ecdfbb | 13493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a38df5 AL |
13494 | /* end confdefs.h. */ |
13495 | ||
13496 | #ifdef HAVE_ERRNO_H | |
13497 | #include <errno.h> | |
13498 | #endif | |
13499 | ||
13500 | int | |
13501 | main () | |
13502 | { | |
13503 | ||
13504 | typedef int f; | |
13505 | f x; | |
13506 | x = (f) errno; | |
13507 | ||
13508 | ; | |
13509 | return 0; | |
13510 | } | |
13511 | _ACEOF | |
81ecdfbb | 13512 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 AL |
13513 | gas_cv_decl_needed_errno=no |
13514 | else | |
81ecdfbb | 13515 | gas_cv_decl_needed_errno=yes |
e8a38df5 | 13516 | fi |
81ecdfbb RW |
13517 | rm -f core conftest.err conftest.$ac_objext \ |
13518 | conftest$ac_exeext conftest.$ac_ext | |
e8a38df5 | 13519 | fi |
81ecdfbb RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5 |
13521 | $as_echo "$gas_cv_decl_needed_errno" >&6; } | |
e8a38df5 AL |
13522 | if test $gas_cv_decl_needed_errno = yes; then |
13523 | ||
81ecdfbb | 13524 | $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h |
e8a38df5 AL |
13525 | |
13526 | fi | |
13527 | ||
13528 | ||
81ecdfbb RW |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
13530 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
13531 | if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then : | |
13532 | $as_echo_n "(cached) " >&6 | |
56f36663 | 13533 | else |
81ecdfbb | 13534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
56f36663 NC |
13535 | /* end confdefs.h. */ |
13536 | #include <unistd.h> | |
13537 | int | |
13538 | main () | |
13539 | { | |
13540 | extern int getopt (int, char *const*, const char *); | |
13541 | ; | |
13542 | return 0; | |
13543 | } | |
13544 | _ACEOF | |
81ecdfbb | 13545 | if ac_fn_c_try_compile "$LINENO"; then : |
56f36663 NC |
13546 | gas_cv_decl_getopt_unistd_h=yes |
13547 | else | |
81ecdfbb | 13548 | gas_cv_decl_getopt_unistd_h=no |
56f36663 | 13549 | fi |
81ecdfbb | 13550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
56f36663 NC |
13551 | fi |
13552 | ||
81ecdfbb RW |
13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5 |
13554 | $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; } | |
56f36663 NC |
13555 | if test $gas_cv_decl_getopt_unistd_h = yes; then |
13556 | ||
81ecdfbb | 13557 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
56f36663 NC |
13558 | |
13559 | fi | |
13560 | ||
e8a38df5 | 13561 | |
81ecdfbb RW |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5 |
13563 | $as_echo_n "checking whether declaration is required for environ... " >&6; } | |
13564 | if test "${gas_cv_decl_needed_environ+set}" = set; then : | |
13565 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13566 | else |
81ecdfbb | 13567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13568 | /* end confdefs.h. */ |
252b5132 | 13569 | $gas_test_headers |
13b2be9c DJ |
13570 | int |
13571 | main () | |
13572 | { | |
252b5132 | 13573 | |
e8a38df5 | 13574 | typedef char **f; |
252b5132 | 13575 | f x; |
e8a38df5 | 13576 | x = (f) environ; |
252b5132 | 13577 | |
13b2be9c DJ |
13578 | ; |
13579 | return 0; | |
13580 | } | |
13581 | _ACEOF | |
81ecdfbb | 13582 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13583 | gas_cv_decl_needed_environ=no |
252b5132 | 13584 | else |
81ecdfbb | 13585 | gas_cv_decl_needed_environ=yes |
252b5132 | 13586 | fi |
81ecdfbb RW |
13587 | rm -f core conftest.err conftest.$ac_objext \ |
13588 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13589 | fi |
81ecdfbb RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5 |
13591 | $as_echo "$gas_cv_decl_needed_environ" >&6; } | |
e8a38df5 | 13592 | if test $gas_cv_decl_needed_environ = yes; then |
13b2be9c | 13593 | |
81ecdfbb | 13594 | $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h |
13b2be9c DJ |
13595 | |
13596 | fi | |
13597 | ||
13598 | ||
81ecdfbb RW |
13599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5 |
13600 | $as_echo_n "checking whether declaration is required for ffs... " >&6; } | |
13601 | if test "${gas_cv_decl_needed_ffs+set}" = set; then : | |
13602 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13603 | else |
81ecdfbb | 13604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13605 | /* end confdefs.h. */ |
13606 | $gas_test_headers | |
13607 | int | |
13608 | main () | |
13609 | { | |
13610 | ||
e8a38df5 | 13611 | typedef int (*f)(int); |
13b2be9c | 13612 | f x; |
e8a38df5 | 13613 | x = (f) ffs; |
13b2be9c DJ |
13614 | |
13615 | ; | |
13616 | return 0; | |
13617 | } | |
13618 | _ACEOF | |
81ecdfbb | 13619 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13620 | gas_cv_decl_needed_ffs=no |
13b2be9c | 13621 | else |
81ecdfbb | 13622 | gas_cv_decl_needed_ffs=yes |
13b2be9c | 13623 | fi |
81ecdfbb RW |
13624 | rm -f core conftest.err conftest.$ac_objext \ |
13625 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13626 | fi |
81ecdfbb RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5 |
13628 | $as_echo "$gas_cv_decl_needed_ffs" >&6; } | |
e8a38df5 | 13629 | if test $gas_cv_decl_needed_ffs = yes; then |
13b2be9c | 13630 | |
81ecdfbb | 13631 | $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h |
13b2be9c DJ |
13632 | |
13633 | fi | |
13634 | ||
13635 | ||
81ecdfbb RW |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5 |
13637 | $as_echo_n "checking whether declaration is required for free... " >&6; } | |
13638 | if test "${gas_cv_decl_needed_free+set}" = set; then : | |
13639 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13640 | else |
81ecdfbb | 13641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13642 | /* end confdefs.h. */ |
13643 | $gas_test_headers | |
13644 | int | |
13645 | main () | |
13646 | { | |
13647 | ||
13648 | typedef void (*f)(); | |
13649 | f x; | |
13650 | x = (f) free; | |
13651 | ||
13652 | ; | |
13653 | return 0; | |
13654 | } | |
13655 | _ACEOF | |
81ecdfbb | 13656 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13657 | gas_cv_decl_needed_free=no |
13658 | else | |
81ecdfbb | 13659 | gas_cv_decl_needed_free=yes |
13b2be9c | 13660 | fi |
81ecdfbb RW |
13661 | rm -f core conftest.err conftest.$ac_objext \ |
13662 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13663 | fi |
81ecdfbb RW |
13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5 |
13665 | $as_echo "$gas_cv_decl_needed_free" >&6; } | |
13b2be9c DJ |
13666 | if test $gas_cv_decl_needed_free = yes; then |
13667 | ||
81ecdfbb | 13668 | $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h |
13b2be9c DJ |
13669 | |
13670 | fi | |
13671 | ||
13672 | ||
81ecdfbb RW |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5 |
13674 | $as_echo_n "checking whether declaration is required for malloc... " >&6; } | |
13675 | if test "${gas_cv_decl_needed_malloc+set}" = set; then : | |
13676 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13677 | else |
81ecdfbb | 13678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13679 | /* end confdefs.h. */ |
13680 | $gas_test_headers | |
13681 | int | |
13682 | main () | |
13683 | { | |
13684 | ||
13685 | typedef char *(*f)(); | |
13686 | f x; | |
e8a38df5 | 13687 | x = (f) malloc; |
13b2be9c DJ |
13688 | |
13689 | ; | |
13690 | return 0; | |
13691 | } | |
13692 | _ACEOF | |
81ecdfbb | 13693 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13694 | gas_cv_decl_needed_malloc=no |
13b2be9c | 13695 | else |
81ecdfbb | 13696 | gas_cv_decl_needed_malloc=yes |
13b2be9c | 13697 | fi |
81ecdfbb RW |
13698 | rm -f core conftest.err conftest.$ac_objext \ |
13699 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13700 | fi |
81ecdfbb RW |
13701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5 |
13702 | $as_echo "$gas_cv_decl_needed_malloc" >&6; } | |
e8a38df5 | 13703 | if test $gas_cv_decl_needed_malloc = yes; then |
13b2be9c | 13704 | |
81ecdfbb | 13705 | $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h |
13b2be9c DJ |
13706 | |
13707 | fi | |
13708 | ||
13709 | ||
81ecdfbb RW |
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5 |
13711 | $as_echo_n "checking whether declaration is required for sbrk... " >&6; } | |
13712 | if test "${gas_cv_decl_needed_sbrk+set}" = set; then : | |
13713 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13714 | else |
81ecdfbb | 13715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13716 | /* end confdefs.h. */ |
13717 | $gas_test_headers | |
13718 | int | |
13719 | main () | |
13720 | { | |
13721 | ||
e8a38df5 | 13722 | typedef char *(*f)(); |
13b2be9c | 13723 | f x; |
e8a38df5 | 13724 | x = (f) sbrk; |
13b2be9c DJ |
13725 | |
13726 | ; | |
13727 | return 0; | |
13728 | } | |
13729 | _ACEOF | |
81ecdfbb | 13730 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13731 | gas_cv_decl_needed_sbrk=no |
13b2be9c | 13732 | else |
81ecdfbb | 13733 | gas_cv_decl_needed_sbrk=yes |
13b2be9c | 13734 | fi |
81ecdfbb RW |
13735 | rm -f core conftest.err conftest.$ac_objext \ |
13736 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13737 | fi |
81ecdfbb RW |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5 |
13739 | $as_echo "$gas_cv_decl_needed_sbrk" >&6; } | |
e8a38df5 | 13740 | if test $gas_cv_decl_needed_sbrk = yes; then |
13b2be9c | 13741 | |
81ecdfbb | 13742 | $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h |
13b2be9c DJ |
13743 | |
13744 | fi | |
13745 | ||
13746 | ||
81ecdfbb RW |
13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5 |
13748 | $as_echo_n "checking whether declaration is required for strstr... " >&6; } | |
13749 | if test "${gas_cv_decl_needed_strstr+set}" = set; then : | |
13750 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13751 | else |
81ecdfbb | 13752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13753 | /* end confdefs.h. */ |
e8a38df5 | 13754 | $gas_test_headers |
13b2be9c DJ |
13755 | int |
13756 | main () | |
13757 | { | |
13758 | ||
e8a38df5 | 13759 | typedef char *(*f)(); |
13b2be9c | 13760 | f x; |
e8a38df5 | 13761 | x = (f) strstr; |
13b2be9c DJ |
13762 | |
13763 | ; | |
13764 | return 0; | |
13765 | } | |
13766 | _ACEOF | |
81ecdfbb | 13767 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13768 | gas_cv_decl_needed_strstr=no |
13b2be9c | 13769 | else |
81ecdfbb | 13770 | gas_cv_decl_needed_strstr=yes |
13b2be9c | 13771 | fi |
81ecdfbb RW |
13772 | rm -f core conftest.err conftest.$ac_objext \ |
13773 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13774 | fi |
81ecdfbb RW |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5 |
13776 | $as_echo "$gas_cv_decl_needed_strstr" >&6; } | |
e8a38df5 | 13777 | if test $gas_cv_decl_needed_strstr = yes; then |
13b2be9c | 13778 | |
81ecdfbb | 13779 | $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h |
13b2be9c DJ |
13780 | |
13781 | fi | |
13782 | ||
13783 | ||
81ecdfbb RW |
13784 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
13785 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
13786 | ac_have_decl=1 | |
6d74f28b | 13787 | else |
81ecdfbb | 13788 | ac_have_decl=0 |
6d74f28b | 13789 | fi |
6d74f28b EB |
13790 | |
13791 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 13792 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
6d74f28b EB |
13793 | _ACEOF |
13794 | ||
13795 | ||
13b2be9c | 13796 | |
c973bc5c NC |
13797 | case "${host}" in |
13798 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
13799 | ||
81ecdfbb | 13800 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
c973bc5c NC |
13801 | ;; |
13802 | esac | |
13803 | ||
b11d79f2 TG |
13804 | # Support for VMS timestamps via cross compile |
13805 | ||
13806 | if test "$ac_cv_header_time_h" = yes; then | |
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5 | |
13808 | $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; } | |
13809 | if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then : | |
13810 | $as_echo_n "(cached) " >&6 | |
13811 | else | |
13812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13813 | /* end confdefs.h. */ | |
13814 | ||
13815 | #define _BSD_SOURCE 1 | |
13816 | #include <time.h> | |
13817 | int | |
13818 | main () | |
13819 | { | |
13820 | struct tm avar; void* aref = (void*) &avar.tm_gmtoff | |
13821 | ; | |
13822 | return 0; | |
13823 | } | |
13824 | _ACEOF | |
13825 | if ac_fn_c_try_compile "$LINENO"; then : | |
13826 | gas_cv_have_time_type_member_tm_gmtoff=yes | |
13827 | else | |
13828 | gas_cv_have_time_type_member_tm_gmtoff=no | |
13829 | ||
13830 | fi | |
13831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13832 | fi | |
13833 | ||
13834 | if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then | |
13835 | ||
13836 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
13837 | ||
13838 | fi | |
13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5 | |
13840 | $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; } | |
13841 | ||
13842 | fi | |
13843 | ||
13844 | if test "$ac_cv_header_sys_stat_h" = yes; then | |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5 | |
13846 | $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; } | |
13847 | if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then : | |
13848 | $as_echo_n "(cached) " >&6 | |
13849 | else | |
13850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13851 | /* end confdefs.h. */ | |
13852 | ||
13853 | #define _BSD_SOURCE 1 | |
13854 | #include <sys/stat.h> | |
13855 | int | |
13856 | main () | |
13857 | { | |
13858 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec | |
13859 | ; | |
13860 | return 0; | |
13861 | } | |
13862 | _ACEOF | |
13863 | if ac_fn_c_try_compile "$LINENO"; then : | |
13864 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes | |
13865 | else | |
13866 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no | |
13867 | ||
13868 | fi | |
13869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13870 | fi | |
13871 | ||
13872 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then | |
13873 | ||
13874 | $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h | |
13875 | ||
13876 | fi | |
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5 | |
13878 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; } | |
13879 | ||
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5 | |
13881 | $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; } | |
13882 | if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then : | |
13883 | $as_echo_n "(cached) " >&6 | |
13884 | else | |
13885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13886 | /* end confdefs.h. */ | |
13887 | ||
13888 | #define _BSD_SOURCE 1 | |
13889 | #include <sys/stat.h> | |
13890 | int | |
13891 | main () | |
13892 | { | |
13893 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec | |
13894 | ; | |
13895 | return 0; | |
13896 | } | |
13897 | _ACEOF | |
13898 | if ac_fn_c_try_compile "$LINENO"; then : | |
13899 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes | |
13900 | else | |
13901 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no | |
13902 | ||
13903 | fi | |
13904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13905 | fi | |
13906 | ||
13907 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then | |
13908 | ||
13909 | $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h | |
13910 | ||
13911 | fi | |
13912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5 | |
13913 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; } | |
13914 | ||
13915 | fi | |
13916 | ||
13917 | ||
c973bc5c | 13918 | |
13b2be9c | 13919 | |
108a6f8e CD |
13920 | |
13921 | ||
13922 | ||
13923 | ||
31dd3154 | 13924 | |
81ecdfbb | 13925 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
13b2be9c | 13926 | |
81ecdfbb | 13927 | ac_config_commands="$ac_config_commands default" |
13b2be9c DJ |
13928 | |
13929 | ||
13930 | cat >confcache <<\_ACEOF | |
13931 | # This file is a shell script that caches the results of configure | |
13932 | # tests run on this system so they can be shared between configure | |
13933 | # scripts and configure runs, see configure's option --config-cache. | |
13934 | # It is not useful on other systems. If it contains results you don't | |
13935 | # want to keep, you may remove or edit it. | |
13936 | # | |
13937 | # config.status only pays attention to the cache file if you give it | |
13938 | # the --recheck option to rerun configure. | |
13939 | # | |
13940 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13941 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13942 | # following values. | |
13943 | ||
13944 | _ACEOF | |
13945 | ||
13946 | # The following way of writing the cache mishandles newlines in values, | |
13947 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 13948 | # So, we kill variables containing newlines. |
13b2be9c DJ |
13949 | # Ultrix sh set writes to stderr and can't be redirected directly, |
13950 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
13951 | ( |
13952 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13953 | eval ac_val=\$$ac_var | |
13954 | case $ac_val in #( | |
13955 | *${as_nl}*) | |
13956 | case $ac_var in #( | |
13957 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
13958 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
13959 | esac | |
13960 | case $ac_var in #( | |
13961 | _ | IFS | as_nl) ;; #( | |
13962 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
13963 | *) { eval $ac_var=; unset $ac_var;} ;; | |
13964 | esac ;; | |
13965 | esac | |
13966 | done | |
13967 | ||
13b2be9c | 13968 | (set) 2>&1 | |
81ecdfbb RW |
13969 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13970 | *${as_nl}ac_space=\ *) | |
13971 | # `set' does not quote correctly, so add quotes: double-quote | |
13972 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13b2be9c | 13973 | sed -n \ |
ab509236 L |
13974 | "s/'/'\\\\''/g; |
13975 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 13976 | ;; #( |
13b2be9c DJ |
13977 | *) |
13978 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 13979 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 13980 | ;; |
81ecdfbb RW |
13981 | esac | |
13982 | sort | |
13983 | ) | | |
13b2be9c | 13984 | sed ' |
81ecdfbb | 13985 | /^ac_cv_env_/b end |
13b2be9c | 13986 | t clear |
81ecdfbb | 13987 | :clear |
13b2be9c DJ |
13988 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13989 | t end | |
81ecdfbb RW |
13990 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13991 | :end' >>confcache | |
13992 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13993 | if test -w "$cache_file"; then | |
13994 | test "x$cache_file" != "x/dev/null" && | |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
13996 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
13b2be9c DJ |
13997 | cat confcache >$cache_file |
13998 | else | |
81ecdfbb RW |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14000 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13b2be9c DJ |
14001 | fi |
14002 | fi | |
14003 | rm -f confcache | |
14004 | ||
14005 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14006 | # Let make expand exec_prefix. | |
14007 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14008 | ||
13b2be9c DJ |
14009 | DEFS=-DHAVE_CONFIG_H |
14010 | ||
14011 | ac_libobjs= | |
14012 | ac_ltlibobjs= | |
14013 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14014 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14015 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14016 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14017 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14018 | # will be set to the directory where LIBOBJS objects are built. | |
14019 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14020 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13b2be9c DJ |
14021 | done |
14022 | LIBOBJS=$ac_libobjs | |
14023 | ||
14024 | LTLIBOBJS=$ac_ltlibobjs | |
14025 | ||
14026 | ||
14027 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
14028 | as_fn_error "conditional \"AMDEP\" was never defined. |
14029 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13b2be9c DJ |
14030 | fi |
14031 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
14032 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
14033 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14034 | fi | |
14035 | if test -n "$EXEEXT"; then | |
14036 | am__EXEEXT_TRUE= | |
14037 | am__EXEEXT_FALSE='#' | |
14038 | else | |
14039 | am__EXEEXT_TRUE='#' | |
14040 | am__EXEEXT_FALSE= | |
13b2be9c | 14041 | fi |
81ecdfbb RW |
14042 | |
14043 | ||
13b2be9c | 14044 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
14045 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
14046 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13b2be9c | 14047 | fi |
d5fbea21 | 14048 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
14049 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
14050 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 14051 | fi |
13b2be9c DJ |
14052 | |
14053 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14054 | ac_write_fail=0 |
13b2be9c DJ |
14055 | ac_clean_files_save=$ac_clean_files |
14056 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14058 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14059 | as_write_fail=0 | |
14060 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13b2be9c DJ |
14061 | #! $SHELL |
14062 | # Generated by $as_me. | |
14063 | # Run this file to recreate the current configuration. | |
14064 | # Compiler output produced by configure, useful for debugging | |
14065 | # configure, is in config.log if it exists. | |
14066 | ||
14067 | debug=false | |
14068 | ac_cs_recheck=false | |
14069 | ac_cs_silent=false | |
13b2be9c | 14070 | |
81ecdfbb RW |
14071 | SHELL=\${CONFIG_SHELL-$SHELL} |
14072 | export SHELL | |
14073 | _ASEOF | |
14074 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14075 | ## -------------------- ## | |
14076 | ## M4sh Initialization. ## | |
14077 | ## -------------------- ## | |
13b2be9c | 14078 | |
81ecdfbb RW |
14079 | # Be more Bourne compatible |
14080 | DUALCASE=1; export DUALCASE # for MKS sh | |
14081 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13b2be9c DJ |
14082 | emulate sh |
14083 | NULLCMD=: | |
81ecdfbb | 14084 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13b2be9c DJ |
14085 | # is contrary to our usage. Disable this feature. |
14086 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14087 | setopt NO_GLOB_SUBST |
14088 | else | |
14089 | case `(set -o) 2>/dev/null` in #( | |
14090 | *posix*) : | |
14091 | set -o posix ;; #( | |
14092 | *) : | |
14093 | ;; | |
14094 | esac | |
13b2be9c DJ |
14095 | fi |
14096 | ||
81ecdfbb RW |
14097 | |
14098 | as_nl=' | |
14099 | ' | |
14100 | export as_nl | |
14101 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14102 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14103 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14104 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14105 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14106 | # but without wasting forks for bash or zsh. | |
14107 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14108 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14109 | as_echo='print -r --' | |
14110 | as_echo_n='print -rn --' | |
14111 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14112 | as_echo='printf %s\n' | |
14113 | as_echo_n='printf %s' | |
14114 | else | |
14115 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14116 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14117 | as_echo_n='/usr/ucb/echo -n' | |
14118 | else | |
14119 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14120 | as_echo_n_body='eval | |
14121 | arg=$1; | |
14122 | case $arg in #( | |
14123 | *"$as_nl"*) | |
14124 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14125 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14126 | esac; | |
14127 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14128 | ' | |
14129 | export as_echo_n_body | |
14130 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14131 | fi | |
14132 | export as_echo_body | |
14133 | as_echo='sh -c $as_echo_body as_echo' | |
13b2be9c DJ |
14134 | fi |
14135 | ||
81ecdfbb RW |
14136 | # The user is always right. |
14137 | if test "${PATH_SEPARATOR+set}" != set; then | |
14138 | PATH_SEPARATOR=: | |
14139 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14140 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14141 | PATH_SEPARATOR=';' | |
14142 | } | |
14143 | fi | |
14144 | ||
14145 | ||
14146 | # IFS | |
14147 | # We need space, tab and new line, in precisely that order. Quoting is | |
14148 | # there to prevent editors from complaining about space-tab. | |
14149 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14150 | # splitting by setting IFS to empty value.) | |
14151 | IFS=" "" $as_nl" | |
14152 | ||
14153 | # Find who we are. Look in the path if we contain no directory separator. | |
14154 | case $0 in #(( | |
14155 | *[\\/]* ) as_myself=$0 ;; | |
14156 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14157 | for as_dir in $PATH | |
14158 | do | |
14159 | IFS=$as_save_IFS | |
14160 | test -z "$as_dir" && as_dir=. | |
14161 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14162 | done | |
14163 | IFS=$as_save_IFS | |
14164 | ||
14165 | ;; | |
14166 | esac | |
14167 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14168 | # in which case we are not to be found in the path. | |
14169 | if test "x$as_myself" = x; then | |
14170 | as_myself=$0 | |
14171 | fi | |
14172 | if test ! -f "$as_myself"; then | |
14173 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14174 | exit 1 | |
14175 | fi | |
13b2be9c | 14176 | |
81ecdfbb RW |
14177 | # Unset variables that we do not need and which cause bugs (e.g. in |
14178 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14179 | # suppresses any "Segmentation fault" message there. '((' could | |
14180 | # trigger a bug in pdksh 5.2.14. | |
14181 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14182 | do eval test x\${$as_var+set} = xset \ | |
14183 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14184 | done | |
13b2be9c DJ |
14185 | PS1='$ ' |
14186 | PS2='> ' | |
14187 | PS4='+ ' | |
14188 | ||
14189 | # NLS nuisances. | |
81ecdfbb RW |
14190 | LC_ALL=C |
14191 | export LC_ALL | |
14192 | LANGUAGE=C | |
14193 | export LANGUAGE | |
14194 | ||
14195 | # CDPATH. | |
14196 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14197 | ||
14198 | ||
14199 | # as_fn_error ERROR [LINENO LOG_FD] | |
14200 | # --------------------------------- | |
14201 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14202 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14203 | # script with status $?, using 1 if that was 0. | |
14204 | as_fn_error () | |
14205 | { | |
14206 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14207 | if test "$3"; then | |
14208 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14209 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
13b2be9c | 14210 | fi |
81ecdfbb RW |
14211 | $as_echo "$as_me: error: $1" >&2 |
14212 | as_fn_exit $as_status | |
14213 | } # as_fn_error | |
14214 | ||
14215 | ||
14216 | # as_fn_set_status STATUS | |
14217 | # ----------------------- | |
14218 | # Set $? to STATUS, without forking. | |
14219 | as_fn_set_status () | |
14220 | { | |
14221 | return $1 | |
14222 | } # as_fn_set_status | |
14223 | ||
14224 | # as_fn_exit STATUS | |
14225 | # ----------------- | |
14226 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14227 | as_fn_exit () | |
14228 | { | |
14229 | set +e | |
14230 | as_fn_set_status $1 | |
14231 | exit $1 | |
14232 | } # as_fn_exit | |
14233 | ||
14234 | # as_fn_unset VAR | |
14235 | # --------------- | |
14236 | # Portably unset VAR. | |
14237 | as_fn_unset () | |
14238 | { | |
14239 | { eval $1=; unset $1;} | |
14240 | } | |
14241 | as_unset=as_fn_unset | |
14242 | # as_fn_append VAR VALUE | |
14243 | # ---------------------- | |
14244 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14245 | # advantage of any shell optimizations that allow amortized linear growth over | |
14246 | # repeated appends, instead of the typical quadratic growth present in naive | |
14247 | # implementations. | |
14248 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14249 | eval 'as_fn_append () | |
14250 | { | |
14251 | eval $1+=\$2 | |
14252 | }' | |
14253 | else | |
14254 | as_fn_append () | |
14255 | { | |
14256 | eval $1=\$$1\$2 | |
14257 | } | |
14258 | fi # as_fn_append | |
14259 | ||
14260 | # as_fn_arith ARG... | |
14261 | # ------------------ | |
14262 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14263 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14264 | # must be portable across $(()) and expr. | |
14265 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14266 | eval 'as_fn_arith () | |
14267 | { | |
14268 | as_val=$(( $* )) | |
14269 | }' | |
14270 | else | |
14271 | as_fn_arith () | |
14272 | { | |
14273 | as_val=`expr "$@" || test $? -eq 1` | |
14274 | } | |
14275 | fi # as_fn_arith | |
14276 | ||
13b2be9c | 14277 | |
81ecdfbb RW |
14278 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14279 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
14280 | as_expr=expr |
14281 | else | |
14282 | as_expr=false | |
14283 | fi | |
14284 | ||
81ecdfbb | 14285 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13b2be9c DJ |
14286 | as_basename=basename |
14287 | else | |
14288 | as_basename=false | |
14289 | fi | |
14290 | ||
81ecdfbb RW |
14291 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14292 | as_dirname=dirname | |
14293 | else | |
14294 | as_dirname=false | |
14295 | fi | |
13b2be9c | 14296 | |
81ecdfbb | 14297 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
14298 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14299 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14300 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14301 | $as_echo X/"$0" | | |
14302 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14303 | s//\1/ | |
14304 | q | |
14305 | } | |
14306 | /^X\/\(\/\/\)$/{ | |
14307 | s//\1/ | |
14308 | q | |
14309 | } | |
14310 | /^X\/\(\/\).*/{ | |
14311 | s//\1/ | |
14312 | q | |
14313 | } | |
14314 | s/.*/./; q'` | |
13b2be9c | 14315 | |
13b2be9c DJ |
14316 | # Avoid depending upon Character Ranges. |
14317 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14318 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14319 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14320 | as_cr_digits='0123456789' | |
14321 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14322 | ||
81ecdfbb RW |
14323 | ECHO_C= ECHO_N= ECHO_T= |
14324 | case `echo -n x` in #((((( | |
14325 | -n*) | |
14326 | case `echo 'xy\c'` in | |
14327 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14328 | xy) ECHO_C='\c';; | |
14329 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14330 | ECHO_T=' ';; | |
14331 | esac;; | |
14332 | *) | |
14333 | ECHO_N='-n';; | |
13b2be9c | 14334 | esac |
252b5132 | 14335 | |
81ecdfbb RW |
14336 | rm -f conf$$ conf$$.exe conf$$.file |
14337 | if test -d conf$$.dir; then | |
14338 | rm -f conf$$.dir/conf$$.file | |
252b5132 | 14339 | else |
81ecdfbb RW |
14340 | rm -f conf$$.dir |
14341 | mkdir conf$$.dir 2>/dev/null | |
252b5132 | 14342 | fi |
81ecdfbb RW |
14343 | if (echo >conf$$.file) 2>/dev/null; then |
14344 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 14345 | as_ln_s='ln -s' |
81ecdfbb RW |
14346 | # ... but there are two gotchas: |
14347 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14348 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14349 | # In both cases, we have to default to `cp -p'. | |
14350 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14351 | as_ln_s='cp -p' | |
14352 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14353 | as_ln_s=ln | |
14354 | else | |
14355 | as_ln_s='cp -p' | |
13b2be9c | 14356 | fi |
13b2be9c DJ |
14357 | else |
14358 | as_ln_s='cp -p' | |
252b5132 | 14359 | fi |
81ecdfbb RW |
14360 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14361 | rmdir conf$$.dir 2>/dev/null | |
252b5132 | 14362 | |
81ecdfbb RW |
14363 | |
14364 | # as_fn_mkdir_p | |
14365 | # ------------- | |
14366 | # Create "$as_dir" as a directory, including parents if necessary. | |
14367 | as_fn_mkdir_p () | |
14368 | { | |
14369 | ||
14370 | case $as_dir in #( | |
14371 | -*) as_dir=./$as_dir;; | |
14372 | esac | |
14373 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14374 | as_dirs= | |
14375 | while :; do | |
14376 | case $as_dir in #( | |
14377 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14378 | *) as_qdir=$as_dir;; | |
14379 | esac | |
14380 | as_dirs="'$as_qdir' $as_dirs" | |
14381 | as_dir=`$as_dirname -- "$as_dir" || | |
14382 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14383 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14384 | X"$as_dir" : 'X\(//\)$' \| \ | |
14385 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14386 | $as_echo X"$as_dir" | | |
14387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14388 | s//\1/ | |
14389 | q | |
14390 | } | |
14391 | /^X\(\/\/\)[^/].*/{ | |
14392 | s//\1/ | |
14393 | q | |
14394 | } | |
14395 | /^X\(\/\/\)$/{ | |
14396 | s//\1/ | |
14397 | q | |
14398 | } | |
14399 | /^X\(\/\).*/{ | |
14400 | s//\1/ | |
14401 | q | |
14402 | } | |
14403 | s/.*/./; q'` | |
14404 | test -d "$as_dir" && break | |
14405 | done | |
14406 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14407 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14408 | ||
14409 | ||
14410 | } # as_fn_mkdir_p | |
13b2be9c | 14411 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14412 | as_mkdir_p='mkdir -p "$as_dir"' |
252b5132 | 14413 | else |
ab509236 | 14414 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
14415 | as_mkdir_p=false |
14416 | fi | |
81ecdfbb RW |
14417 | |
14418 | if test -x / >/dev/null 2>&1; then | |
14419 | as_test_x='test -x' | |
14420 | else | |
14421 | if ls -dL / >/dev/null 2>&1; then | |
14422 | as_ls_L_option=L | |
14423 | else | |
14424 | as_ls_L_option= | |
14425 | fi | |
14426 | as_test_x=' | |
14427 | eval sh -c '\'' | |
14428 | if test -d "$1"; then | |
14429 | test -d "$1/."; | |
14430 | else | |
14431 | case $1 in #( | |
14432 | -*)set "./$1";; | |
14433 | esac; | |
14434 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14435 | ???[sx]*):;;*)false;;esac;fi | |
14436 | '\'' sh | |
14437 | ' | |
14438 | fi | |
14439 | as_executable_p=$as_test_x | |
252b5132 | 14440 | |
13b2be9c | 14441 | # Sed expression to map a string onto a valid CPP name. |
ab509236 | 14442 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14443 | |
13b2be9c | 14444 | # Sed expression to map a string onto a valid variable name. |
ab509236 | 14445 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14446 | |
d6d788bd | 14447 | |
13b2be9c | 14448 | exec 6>&1 |
81ecdfbb RW |
14449 | ## ----------------------------------- ## |
14450 | ## Main body of $CONFIG_STATUS script. ## | |
14451 | ## ----------------------------------- ## | |
14452 | _ASEOF | |
14453 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
252b5132 | 14454 | |
81ecdfbb RW |
14455 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14456 | # Save the log message, to keep $0 and so on meaningful, and to | |
13b2be9c | 14457 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14458 | # values after options handling. |
14459 | ac_log=" | |
13b2be9c | 14460 | This file was extended by $as_me, which was |
81ecdfbb | 14461 | generated by GNU Autoconf 2.64. Invocation command line was |
d6d788bd | 14462 | |
13b2be9c DJ |
14463 | CONFIG_FILES = $CONFIG_FILES |
14464 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14465 | CONFIG_LINKS = $CONFIG_LINKS | |
14466 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14467 | $ $0 $@ | |
252b5132 | 14468 | |
81ecdfbb RW |
14469 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14470 | " | |
14471 | ||
13b2be9c | 14472 | _ACEOF |
252b5132 | 14473 | |
81ecdfbb RW |
14474 | case $ac_config_files in *" |
14475 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14476 | esac | |
13b2be9c | 14477 | |
81ecdfbb RW |
14478 | case $ac_config_headers in *" |
14479 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14480 | esac | |
252b5132 | 14481 | |
252b5132 | 14482 | |
81ecdfbb RW |
14483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14484 | # Files that config.status was made for. | |
14485 | config_files="$ac_config_files" | |
14486 | config_headers="$ac_config_headers" | |
14487 | config_commands="$ac_config_commands" | |
d6d788bd | 14488 | |
81ecdfbb | 14489 | _ACEOF |
252b5132 | 14490 | |
81ecdfbb | 14491 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 14492 | ac_cs_usage="\ |
81ecdfbb RW |
14493 | \`$as_me' instantiates files and other configuration actions |
14494 | from templates according to the current configuration. Unless the files | |
14495 | and actions are specified as TAGs, all are instantiated by default. | |
252b5132 | 14496 | |
81ecdfbb | 14497 | Usage: $0 [OPTION]... [TAG]... |
252b5132 | 14498 | |
13b2be9c | 14499 | -h, --help print this help, then exit |
81ecdfbb RW |
14500 | -V, --version print version number and configuration settings, then exit |
14501 | -q, --quiet, --silent | |
14502 | do not print progress messages | |
13b2be9c DJ |
14503 | -d, --debug don't remove temporary files |
14504 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14505 | --file=FILE[:TEMPLATE] |
14506 | instantiate the configuration file FILE | |
14507 | --header=FILE[:TEMPLATE] | |
14508 | instantiate the configuration header FILE | |
252b5132 | 14509 | |
13b2be9c DJ |
14510 | Configuration files: |
14511 | $config_files | |
252b5132 | 14512 | |
13b2be9c DJ |
14513 | Configuration headers: |
14514 | $config_headers | |
252b5132 | 14515 | |
13b2be9c DJ |
14516 | Configuration commands: |
14517 | $config_commands | |
252b5132 | 14518 | |
81ecdfbb | 14519 | Report bugs to the package provider." |
d6d788bd | 14520 | |
81ecdfbb RW |
14521 | _ACEOF |
14522 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13b2be9c DJ |
14523 | ac_cs_version="\\ |
14524 | config.status | |
81ecdfbb RW |
14525 | configured by $0, generated by GNU Autoconf 2.64, |
14526 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d6d788bd | 14527 | |
81ecdfbb | 14528 | Copyright (C) 2009 Free Software Foundation, Inc. |
13b2be9c DJ |
14529 | This config.status script is free software; the Free Software Foundation |
14530 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14531 | |
14532 | ac_pwd='$ac_pwd' | |
14533 | srcdir='$srcdir' | |
14534 | INSTALL='$INSTALL' | |
14535 | MKDIR_P='$MKDIR_P' | |
14536 | AWK='$AWK' | |
14537 | test -n "\$AWK" || AWK=awk | |
13b2be9c | 14538 | _ACEOF |
d6d788bd | 14539 | |
81ecdfbb RW |
14540 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14541 | # The default lists apply if the user does not specify any file. | |
13b2be9c DJ |
14542 | ac_need_defaults=: |
14543 | while test $# != 0 | |
14544 | do | |
14545 | case $1 in | |
14546 | --*=*) | |
81ecdfbb RW |
14547 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14548 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13b2be9c | 14549 | ac_shift=: |
c8615825 | 14550 | ;; |
81ecdfbb | 14551 | *) |
13b2be9c DJ |
14552 | ac_option=$1 |
14553 | ac_optarg=$2 | |
14554 | ac_shift=shift | |
c8615825 | 14555 | ;; |
13b2be9c | 14556 | esac |
252b5132 | 14557 | |
13b2be9c DJ |
14558 | case $ac_option in |
14559 | # Handling of the options. | |
13b2be9c DJ |
14560 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14561 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
14562 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14563 | $as_echo "$ac_cs_version"; exit ;; | |
14564 | --debug | --debu | --deb | --de | --d | -d ) | |
13b2be9c DJ |
14565 | debug=: ;; |
14566 | --file | --fil | --fi | --f ) | |
14567 | $ac_shift | |
81ecdfbb RW |
14568 | case $ac_optarg in |
14569 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14570 | esac | |
14571 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13b2be9c DJ |
14572 | ac_need_defaults=false;; |
14573 | --header | --heade | --head | --hea ) | |
14574 | $ac_shift | |
81ecdfbb RW |
14575 | case $ac_optarg in |
14576 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14577 | esac | |
14578 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
13b2be9c | 14579 | ac_need_defaults=false;; |
81ecdfbb RW |
14580 | --he | --h) |
14581 | # Conflict between --help and --header | |
14582 | as_fn_error "ambiguous option: \`$1' | |
14583 | Try \`$0 --help' for more information.";; | |
14584 | --help | --hel | -h ) | |
14585 | $as_echo "$ac_cs_usage"; exit ;; | |
13b2be9c DJ |
14586 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14587 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14588 | ac_cs_silent=: ;; | |
c8615825 | 14589 | |
13b2be9c | 14590 | # This is an error. |
81ecdfbb RW |
14591 | -*) as_fn_error "unrecognized option: \`$1' |
14592 | Try \`$0 --help' for more information." ;; | |
252b5132 | 14593 | |
81ecdfbb RW |
14594 | *) as_fn_append ac_config_targets " $1" |
14595 | ac_need_defaults=false ;; | |
252b5132 | 14596 | |
13b2be9c DJ |
14597 | esac |
14598 | shift | |
14599 | done | |
252b5132 | 14600 | |
13b2be9c | 14601 | ac_configure_extra_args= |
d6d788bd | 14602 | |
13b2be9c DJ |
14603 | if $ac_cs_silent; then |
14604 | exec 6>/dev/null | |
14605 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14606 | fi | |
9b2b7d69 | 14607 | |
13b2be9c | 14608 | _ACEOF |
81ecdfbb | 14609 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13b2be9c | 14610 | if \$ac_cs_recheck; then |
81ecdfbb RW |
14611 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14612 | shift | |
14613 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14614 | CONFIG_SHELL='$SHELL' | |
14615 | export CONFIG_SHELL | |
14616 | exec "\$@" | |
13b2be9c DJ |
14617 | fi |
14618 | ||
14619 | _ACEOF | |
81ecdfbb RW |
14620 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14621 | exec 5>>config.log | |
14622 | { | |
14623 | echo | |
14624 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14625 | ## Running $as_me. ## | |
14626 | _ASBOX | |
14627 | $as_echo "$ac_log" | |
14628 | } >&5 | |
13b2be9c | 14629 | |
81ecdfbb RW |
14630 | _ACEOF |
14631 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9b2b7d69 | 14632 | # |
81ecdfbb | 14633 | # INIT-COMMANDS |
9b2b7d69 | 14634 | # |
13b2be9c | 14635 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
14636 | |
14637 | ||
14638 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
14639 | # if CDPATH is set. | |
14640 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14641 | ||
14642 | sed_quote_subst='$sed_quote_subst' | |
14643 | double_quote_subst='$double_quote_subst' | |
14644 | delay_variable_subst='$delay_variable_subst' | |
14645 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
14646 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
14647 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
14648 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
14649 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
14650 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
14651 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
14652 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
14653 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
14654 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
14655 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
14656 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
14657 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
14658 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
14659 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
14660 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
14661 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
14662 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
14663 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
14664 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
14665 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
14666 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
14667 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
14668 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
14669 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
14670 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
14671 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
14672 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 | 14673 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
14674 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
14675 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
14676 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
14677 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
14678 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
14679 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
14680 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14681 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14682 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14683 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
14684 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
14685 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
14686 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
14687 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
14688 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
14689 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 | 14690 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
14691 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
14692 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
14693 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
14694 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
14695 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
14696 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
14697 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
14698 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
14699 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
14700 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 SE |
14701 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
14702 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
14703 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
14704 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
14705 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
d7040cdb SE |
14706 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
14707 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14708 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14709 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
14710 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
14711 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14712 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14713 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
14714 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14715 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14716 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14717 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14718 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14719 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14720 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
14721 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
14722 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
14723 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14724 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
14725 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
14726 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
14727 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
14728 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
14729 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
14730 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
14731 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
14732 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
14733 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
14734 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
14735 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14736 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
14737 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
14738 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14739 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14740 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
14741 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
14742 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
14743 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
14744 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
14745 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
14746 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
14747 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14748 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14749 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14750 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14751 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14752 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
14753 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
14754 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
14755 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14756 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
14757 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
14758 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
14759 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
14760 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
14761 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
14762 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
14763 | ||
14764 | LTCC='$LTCC' | |
14765 | LTCFLAGS='$LTCFLAGS' | |
14766 | compiler='$compiler_DEFAULT' | |
14767 | ||
14768 | # Quote evaled strings. | |
14769 | for var in SED \ | |
14770 | GREP \ | |
14771 | EGREP \ | |
14772 | FGREP \ | |
14773 | LD \ | |
14774 | NM \ | |
14775 | LN_S \ | |
14776 | lt_SP2NL \ | |
14777 | lt_NL2SP \ | |
14778 | reload_flag \ | |
718a6fd8 | 14779 | OBJDUMP \ |
d7040cdb SE |
14780 | deplibs_check_method \ |
14781 | file_magic_cmd \ | |
14782 | AR \ | |
14783 | AR_FLAGS \ | |
14784 | STRIP \ | |
14785 | RANLIB \ | |
14786 | CC \ | |
14787 | CFLAGS \ | |
14788 | compiler \ | |
14789 | lt_cv_sys_global_symbol_pipe \ | |
14790 | lt_cv_sys_global_symbol_to_cdecl \ | |
14791 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 14792 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
14793 | SHELL \ |
14794 | ECHO \ | |
14795 | lt_prog_compiler_no_builtin_flag \ | |
14796 | lt_prog_compiler_wl \ | |
14797 | lt_prog_compiler_pic \ | |
14798 | lt_prog_compiler_static \ | |
14799 | lt_cv_prog_compiler_c_o \ | |
14800 | need_locks \ | |
718a6fd8 SE |
14801 | DSYMUTIL \ |
14802 | NMEDIT \ | |
14803 | LIPO \ | |
14804 | OTOOL \ | |
14805 | OTOOL64 \ | |
d7040cdb SE |
14806 | shrext_cmds \ |
14807 | export_dynamic_flag_spec \ | |
14808 | whole_archive_flag_spec \ | |
14809 | compiler_needs_object \ | |
14810 | with_gnu_ld \ | |
14811 | allow_undefined_flag \ | |
14812 | no_undefined_flag \ | |
14813 | hardcode_libdir_flag_spec \ | |
14814 | hardcode_libdir_flag_spec_ld \ | |
14815 | hardcode_libdir_separator \ | |
14816 | fix_srcfile_path \ | |
14817 | exclude_expsyms \ | |
14818 | include_expsyms \ | |
14819 | file_list_spec \ | |
14820 | variables_saved_for_relink \ | |
14821 | libname_spec \ | |
14822 | library_names_spec \ | |
14823 | soname_spec \ | |
14824 | finish_eval \ | |
14825 | old_striplib \ | |
14826 | striplib; do | |
14827 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
14828 | *[\\\\\\\`\\"\\\$]*) | |
14829 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
14830 | ;; | |
14831 | *) | |
14832 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14833 | ;; | |
14834 | esac | |
14835 | done | |
14836 | ||
14837 | # Double-quote double-evaled strings. | |
14838 | for var in reload_cmds \ | |
14839 | old_postinstall_cmds \ | |
14840 | old_postuninstall_cmds \ | |
14841 | old_archive_cmds \ | |
14842 | extract_expsyms_cmds \ | |
14843 | old_archive_from_new_cmds \ | |
14844 | old_archive_from_expsyms_cmds \ | |
14845 | archive_cmds \ | |
14846 | archive_expsym_cmds \ | |
14847 | module_cmds \ | |
14848 | module_expsym_cmds \ | |
14849 | export_symbols_cmds \ | |
14850 | prelink_cmds \ | |
14851 | postinstall_cmds \ | |
14852 | postuninstall_cmds \ | |
14853 | finish_cmds \ | |
14854 | sys_lib_search_path_spec \ | |
14855 | sys_lib_dlsearch_path_spec; do | |
14856 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
14857 | *[\\\\\\\`\\"\\\$]*) | |
14858 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
14859 | ;; | |
14860 | *) | |
14861 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14862 | ;; | |
14863 | esac | |
14864 | done | |
14865 | ||
14866 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
14867 | case \$lt_ECHO in | |
14868 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
14869 | ;; | |
14870 | esac | |
14871 | ||
14872 | ac_aux_dir='$ac_aux_dir' | |
14873 | xsi_shell='$xsi_shell' | |
14874 | lt_shell_append='$lt_shell_append' | |
14875 | ||
14876 | # See if we are running on zsh, and set the options which allow our | |
14877 | # commands through without removal of \ escapes INIT. | |
14878 | if test -n "\${ZSH_VERSION+set}" ; then | |
14879 | setopt NO_GLOB_SUBST | |
14880 | fi | |
14881 | ||
14882 | ||
14883 | PACKAGE='$PACKAGE' | |
14884 | VERSION='$VERSION' | |
14885 | TIMESTAMP='$TIMESTAMP' | |
14886 | RM='$RM' | |
14887 | ofile='$ofile' | |
14888 | ||
14889 | ||
14890 | ||
20e95c23 DJ |
14891 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
14892 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
14893 | # from automake. | |
14894 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
14895 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
14896 | LINGUAS="${LINGUAS-%UNSET%}" | |
14897 | ||
13b2be9c DJ |
14898 | target_cpu_type=${target_cpu_type} |
14899 | cgen_cpu_prefix=${cgen_cpu_prefix} | |
14900 | obj_format=${obj_format} | |
14901 | te_file=${te_file} | |
14902 | ||
14903 | _ACEOF | |
14904 | ||
81ecdfbb | 14905 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 14906 | |
81ecdfbb | 14907 | # Handling of arguments. |
13b2be9c | 14908 | for ac_config_target in $ac_config_targets |
9b2b7d69 | 14909 | do |
81ecdfbb RW |
14910 | case $ac_config_target in |
14911 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
14912 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
14913 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
14914 | "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; | |
14915 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
14916 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
14917 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14918 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14919 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
14920 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
14921 | ||
14922 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
9b2b7d69 MM |
14923 | esac |
14924 | done | |
14925 | ||
81ecdfbb | 14926 | |
13b2be9c DJ |
14927 | # If the user did not use the arguments to specify the items to instantiate, |
14928 | # then the envvar interface is used. Set only those that are not. | |
14929 | # We use the long form for the default assignment because of an extremely | |
14930 | # bizarre bug on SunOS 4.1.3. | |
14931 | if $ac_need_defaults; then | |
14932 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14933 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14934 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14935 | fi | |
14936 | ||
14937 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 14938 | # simply because there is no reason against having it here, and in addition, |
13b2be9c | 14939 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
14940 | # Hook for its removal unless debugging. |
14941 | # Note that there is a small window in which the directory will not be cleaned: | |
14942 | # after its creation but before its name has been assigned to `$tmp'. | |
13b2be9c DJ |
14943 | $debug || |
14944 | { | |
81ecdfbb RW |
14945 | tmp= |
14946 | trap 'exit_status=$? | |
14947 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14948 | ' 0 | |
14949 | trap 'as_fn_exit 1' 1 2 13 15 | |
13b2be9c | 14950 | } |
13b2be9c | 14951 | # Create a (secure) tmp directory for tmp files. |
9b2b7d69 | 14952 | |
13b2be9c | 14953 | { |
81ecdfbb | 14954 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
13b2be9c DJ |
14955 | test -n "$tmp" && test -d "$tmp" |
14956 | } || | |
14957 | { | |
81ecdfbb RW |
14958 | tmp=./conf$$-$RANDOM |
14959 | (umask 077 && mkdir "$tmp") | |
14960 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14961 | ||
14962 | # Set up the scripts for CONFIG_FILES section. | |
14963 | # No need to generate them if there are no CONFIG_FILES. | |
14964 | # This happens for instance with `./config.status config.h'. | |
14965 | if test -n "$CONFIG_FILES"; then | |
14966 | ||
14967 | ||
14968 | ac_cr=`echo X | tr X '\015'` | |
14969 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14970 | # But we know of no other shell where ac_cr would be empty at this | |
14971 | # point, so we can use a bashism as a fallback. | |
14972 | if test "x$ac_cr" = x; then | |
14973 | eval ac_cr=\$\'\\r\' | |
14974 | fi | |
14975 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14976 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14977 | ac_cs_awk_cr='\r' | |
14978 | else | |
14979 | ac_cs_awk_cr=$ac_cr | |
14980 | fi | |
14981 | ||
14982 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14983 | _ACEOF | |
14984 | ||
14985 | ||
14986 | { | |
14987 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14988 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14989 | echo "_ACEOF" | |
14990 | } >conf$$subs.sh || | |
14991 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14992 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14993 | ac_delim='%!_!# ' | |
14994 | for ac_last_try in false false false false false :; do | |
14995 | . ./conf$$subs.sh || | |
14996 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14997 | ||
14998 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14999 | if test $ac_delim_n = $ac_delim_num; then | |
15000 | break | |
15001 | elif $ac_last_try; then | |
15002 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15003 | else | |
15004 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15005 | fi | |
15006 | done | |
15007 | rm -f conf$$subs.sh | |
15008 | ||
15009 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15010 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
15011 | _ACEOF | |
15012 | sed -n ' | |
15013 | h | |
15014 | s/^/S["/; s/!.*/"]=/ | |
15015 | p | |
15016 | g | |
15017 | s/^[^!]*!// | |
15018 | :repl | |
15019 | t repl | |
15020 | s/'"$ac_delim"'$// | |
15021 | t delim | |
15022 | :nl | |
15023 | h | |
15024 | s/\(.\{148\}\).*/\1/ | |
15025 | t more1 | |
15026 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15027 | p | |
15028 | n | |
15029 | b repl | |
15030 | :more1 | |
15031 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15032 | p | |
15033 | g | |
15034 | s/.\{148\}// | |
15035 | t nl | |
15036 | :delim | |
15037 | h | |
15038 | s/\(.\{148\}\).*/\1/ | |
15039 | t more2 | |
15040 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15041 | p | |
15042 | b | |
15043 | :more2 | |
15044 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15045 | p | |
15046 | g | |
15047 | s/.\{148\}// | |
15048 | t delim | |
15049 | ' <conf$$subs.awk | sed ' | |
15050 | /^[^""]/{ | |
15051 | N | |
15052 | s/\n// | |
15053 | } | |
15054 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15055 | rm -f conf$$subs.awk | |
15056 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15057 | _ACAWK | |
15058 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15059 | for (key in S) S_is_set[key] = 1 | |
15060 | FS = "\a" | |
15061 | ||
15062 | } | |
13b2be9c | 15063 | { |
81ecdfbb RW |
15064 | line = $ 0 |
15065 | nfields = split(line, field, "@") | |
15066 | substed = 0 | |
15067 | len = length(field[1]) | |
15068 | for (i = 2; i < nfields; i++) { | |
15069 | key = field[i] | |
15070 | keylen = length(key) | |
15071 | if (S_is_set[key]) { | |
15072 | value = S[key] | |
15073 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15074 | len += length(value) + length(field[++i]) | |
15075 | substed = 1 | |
15076 | } else | |
15077 | len += 1 + keylen | |
15078 | } | |
15079 | ||
15080 | print line | |
13b2be9c | 15081 | } |
9b2b7d69 | 15082 | |
81ecdfbb RW |
15083 | _ACAWK |
15084 | _ACEOF | |
15085 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15086 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15087 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15088 | else | |
15089 | cat | |
15090 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15091 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
13b2be9c DJ |
15092 | _ACEOF |
15093 | ||
81ecdfbb RW |
15094 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
15095 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15096 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15097 | # (actually we leave an empty line to preserve line numbers). | |
15098 | if test "x$srcdir" = x.; then | |
15099 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15100 | s/:*\$(srcdir):*/:/ | |
15101 | s/:*\${srcdir}:*/:/ | |
15102 | s/:*@srcdir@:*/:/ | |
15103 | s/^\([^=]*=[ ]*\):*/\1/ | |
15104 | s/:*$// | |
15105 | s/^[^=]*=[ ]*$// | |
15106 | }' | |
15107 | fi | |
15108 | ||
15109 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15110 | fi # test -n "$CONFIG_FILES" | |
13b2be9c | 15111 | |
81ecdfbb RW |
15112 | # Set up the scripts for CONFIG_HEADERS section. |
15113 | # No need to generate them if there are no CONFIG_HEADERS. | |
15114 | # This happens for instance with `./config.status Makefile'. | |
15115 | if test -n "$CONFIG_HEADERS"; then | |
15116 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
15117 | BEGIN { | |
15118 | _ACEOF | |
13b2be9c | 15119 | |
81ecdfbb RW |
15120 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15121 | # here-document in config.status, that substitutes the proper values into | |
15122 | # config.h.in to produce config.h. | |
9b2b7d69 | 15123 | |
81ecdfbb RW |
15124 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15125 | # handling of long lines. | |
15126 | ac_delim='%!_!# ' | |
15127 | for ac_last_try in false false :; do | |
15128 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
15129 | if test -z "$ac_t"; then | |
15130 | break | |
15131 | elif $ac_last_try; then | |
15132 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
15133 | else | |
15134 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15135 | fi | |
15136 | done | |
15137 | ||
15138 | # For the awk script, D is an array of macro values keyed by name, | |
15139 | # likewise P contains macro parameters if any. Preserve backslash | |
15140 | # newline sequences. | |
15141 | ||
15142 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15143 | sed -n ' | |
15144 | s/.\{148\}/&'"$ac_delim"'/g | |
15145 | t rset | |
15146 | :rset | |
15147 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15148 | t def | |
15149 | d | |
15150 | :def | |
15151 | s/\\$// | |
15152 | t bsnl | |
15153 | s/["\\]/\\&/g | |
15154 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15155 | D["\1"]=" \3"/p | |
15156 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15157 | d | |
15158 | :bsnl | |
15159 | s/["\\]/\\&/g | |
15160 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15161 | D["\1"]=" \3\\\\\\n"\\/p | |
15162 | t cont | |
15163 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15164 | t cont | |
15165 | d | |
15166 | :cont | |
15167 | n | |
15168 | s/.\{148\}/&'"$ac_delim"'/g | |
15169 | t clear | |
15170 | :clear | |
15171 | s/\\$// | |
15172 | t bsnlc | |
15173 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15174 | d | |
15175 | :bsnlc | |
15176 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15177 | b cont | |
15178 | ' <confdefs.h | sed ' | |
15179 | s/'"$ac_delim"'/"\\\ | |
15180 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15181 | ||
15182 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15183 | for (key in D) D_is_set[key] = 1 | |
15184 | FS = "\a" | |
15185 | } | |
15186 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15187 | line = \$ 0 | |
15188 | split(line, arg, " ") | |
15189 | if (arg[1] == "#") { | |
15190 | defundef = arg[2] | |
15191 | mac1 = arg[3] | |
15192 | } else { | |
15193 | defundef = substr(arg[1], 2) | |
15194 | mac1 = arg[2] | |
15195 | } | |
15196 | split(mac1, mac2, "(") #) | |
15197 | macro = mac2[1] | |
15198 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15199 | if (D_is_set[macro]) { | |
15200 | # Preserve the white space surrounding the "#". | |
15201 | print prefix "define", macro P[macro] D[macro] | |
15202 | next | |
15203 | } else { | |
15204 | # Replace #undef with comments. This is necessary, for example, | |
15205 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15206 | # on some systems where configure will not decide to define it. | |
15207 | if (defundef == "undef") { | |
15208 | print "/*", prefix defundef, macro, "*/" | |
15209 | next | |
15210 | } | |
15211 | } | |
15212 | } | |
15213 | { print } | |
15214 | _ACAWK | |
13b2be9c | 15215 | _ACEOF |
81ecdfbb RW |
15216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15217 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
15218 | fi # test -n "$CONFIG_HEADERS" | |
13b2be9c | 15219 | |
81ecdfbb RW |
15220 | |
15221 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
15222 | shift | |
15223 | for ac_tag | |
15224 | do | |
15225 | case $ac_tag in | |
15226 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15227 | esac | |
15228 | case $ac_mode$ac_tag in | |
15229 | :[FHL]*:*);; | |
15230 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15231 | :[FH]-) ac_tag=-:-;; | |
15232 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15233 | esac | |
15234 | ac_save_IFS=$IFS | |
15235 | IFS=: | |
15236 | set x $ac_tag | |
15237 | IFS=$ac_save_IFS | |
15238 | shift | |
15239 | ac_file=$1 | |
15240 | shift | |
15241 | ||
15242 | case $ac_mode in | |
15243 | :L) ac_source=$1;; | |
15244 | :[FH]) | |
15245 | ac_file_inputs= | |
15246 | for ac_f | |
15247 | do | |
15248 | case $ac_f in | |
15249 | -) ac_f="$tmp/stdin";; | |
15250 | *) # Look for the file first in the build tree, then in the source tree | |
15251 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15252 | # because $ac_f cannot contain `:'. | |
15253 | test -f "$ac_f" || | |
15254 | case $ac_f in | |
15255 | [\\/$]*) false;; | |
15256 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15257 | esac || | |
15258 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15259 | esac | |
15260 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15261 | as_fn_append ac_file_inputs " '$ac_f'" | |
15262 | done | |
15263 | ||
15264 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15265 | # use $as_me), people would be surprised to read: | |
15266 | # /* config.h. Generated by config.status. */ | |
15267 | configure_input='Generated from '` | |
15268 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15269 | `' by configure.' | |
15270 | if test x"$ac_file" != x-; then | |
15271 | configure_input="$ac_file. $configure_input" | |
15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15273 | $as_echo "$as_me: creating $ac_file" >&6;} | |
9b2b7d69 | 15274 | fi |
81ecdfbb RW |
15275 | # Neutralize special characters interpreted by sed in replacement strings. |
15276 | case $configure_input in #( | |
15277 | *\&* | *\|* | *\\* ) | |
15278 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15279 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15280 | *) ac_sed_conf_input=$configure_input;; | |
15281 | esac | |
252b5132 | 15282 | |
81ecdfbb RW |
15283 | case $ac_tag in |
15284 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15285 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15286 | esac | |
15287 | ;; | |
252b5132 | 15288 | esac |
9b2b7d69 | 15289 | |
81ecdfbb | 15290 | ac_dir=`$as_dirname -- "$ac_file" || |
13b2be9c | 15291 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15292 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
15293 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15294 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15295 | $as_echo X"$ac_file" | | |
15296 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15297 | s//\1/ | |
15298 | q | |
15299 | } | |
15300 | /^X\(\/\/\)[^/].*/{ | |
15301 | s//\1/ | |
15302 | q | |
15303 | } | |
15304 | /^X\(\/\/\)$/{ | |
15305 | s//\1/ | |
15306 | q | |
15307 | } | |
15308 | /^X\(\/\).*/{ | |
15309 | s//\1/ | |
15310 | q | |
15311 | } | |
15312 | s/.*/./; q'` | |
15313 | as_dir="$ac_dir"; as_fn_mkdir_p | |
13b2be9c DJ |
15314 | ac_builddir=. |
15315 | ||
81ecdfbb RW |
15316 | case "$ac_dir" in |
15317 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15318 | *) | |
15319 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15320 | # A ".." for each directory in $ac_dir_suffix. | |
15321 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15322 | case $ac_top_builddir_sub in | |
15323 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15324 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15325 | esac ;; | |
15326 | esac | |
15327 | ac_abs_top_builddir=$ac_pwd | |
15328 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15329 | # for backward compatibility: | |
15330 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 15331 | |
13b2be9c | 15332 | case $srcdir in |
81ecdfbb | 15333 | .) # We are building in place. |
13b2be9c | 15334 | ac_srcdir=. |
81ecdfbb RW |
15335 | ac_top_srcdir=$ac_top_builddir_sub |
15336 | ac_abs_top_srcdir=$ac_pwd ;; | |
15337 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 15338 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15339 | ac_top_srcdir=$srcdir |
15340 | ac_abs_top_srcdir=$srcdir ;; | |
15341 | *) # Relative name. | |
15342 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15343 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15344 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13b2be9c | 15345 | esac |
81ecdfbb | 15346 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
ab509236 | 15347 | |
252b5132 | 15348 | |
81ecdfbb RW |
15349 | case $ac_mode in |
15350 | :F) | |
15351 | # | |
15352 | # CONFIG_FILE | |
15353 | # | |
9b2b7d69 | 15354 | |
13b2be9c DJ |
15355 | case $INSTALL in |
15356 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
15357 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
15358 | esac | |
15359 | ac_MKDIR_P=$MKDIR_P | |
15360 | case $MKDIR_P in | |
15361 | [\\/$]* | ?:[\\/]* ) ;; | |
15362 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
c8615825 | 15363 | esac |
81ecdfbb | 15364 | _ACEOF |
9b2b7d69 | 15365 | |
81ecdfbb RW |
15366 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15367 | # If the template does not know about datarootdir, expand it. | |
15368 | # FIXME: This hack should be removed a few years after 2.60. | |
15369 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15370 | ac_sed_dataroot=' | |
15371 | /datarootdir/ { | |
15372 | p | |
15373 | q | |
15374 | } | |
15375 | /@datadir@/p | |
15376 | /@docdir@/p | |
15377 | /@infodir@/p | |
15378 | /@localedir@/p | |
15379 | /@mandir@/p' | |
15380 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15381 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15382 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15384 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15385 | _ACEOF | |
15386 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15387 | ac_datarootdir_hack=' | |
15388 | s&@datadir@&$datadir&g | |
15389 | s&@docdir@&$docdir&g | |
15390 | s&@infodir@&$infodir&g | |
15391 | s&@localedir@&$localedir&g | |
15392 | s&@mandir@&$mandir&g | |
15393 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15394 | esac | |
13b2be9c | 15395 | _ACEOF |
81ecdfbb RW |
15396 | |
15397 | # Neutralize VPATH when `$srcdir' = `.'. | |
15398 | # Shell code in configure.ac might set extrasub. | |
15399 | # FIXME: do we really want to maintain this feature? | |
15400 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15401 | ac_sed_extra="$ac_vpsub | |
13b2be9c DJ |
15402 | $extrasub |
15403 | _ACEOF | |
81ecdfbb | 15404 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c DJ |
15405 | :t |
15406 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15407 | s|@configure_input@|$ac_sed_conf_input|;t t |
15408 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15409 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15410 | s&@srcdir@&$ac_srcdir&;t t | |
15411 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15412 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15413 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15414 | s&@builddir@&$ac_builddir&;t t | |
15415 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15416 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15417 | s&@INSTALL@&$ac_INSTALL&;t t | |
15418 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
15419 | $ac_datarootdir_hack | |
15420 | " | |
15421 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
15422 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15423 | ||
15424 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15425 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15426 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15427 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15428 | which seems to be undefined. Please make sure it is defined." >&5 | |
15429 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15430 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15431 | ||
15432 | rm -f "$tmp/stdin" | |
13b2be9c | 15433 | case $ac_file in |
81ecdfbb RW |
15434 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
15435 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15436 | esac \ | |
15437 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15438 | ;; | |
15439 | :H) | |
15440 | # | |
15441 | # CONFIG_HEADER | |
15442 | # | |
13b2be9c | 15443 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
15444 | { |
15445 | $as_echo "/* $configure_input */" \ | |
15446 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
15447 | } >"$tmp/config.h" \ | |
15448 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15449 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
15450 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
15451 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13b2be9c | 15452 | else |
81ecdfbb RW |
15453 | rm -f "$ac_file" |
15454 | mv "$tmp/config.h" "$ac_file" \ | |
15455 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9b2b7d69 | 15456 | fi |
13b2be9c | 15457 | else |
81ecdfbb RW |
15458 | $as_echo "/* $configure_input */" \ |
15459 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
15460 | || as_fn_error "could not create -" "$LINENO" 5 | |
9b2b7d69 | 15461 | fi |
81ecdfbb RW |
15462 | # Compute "$ac_file"'s index in $config_headers. |
15463 | _am_arg="$ac_file" | |
13b2be9c DJ |
15464 | _am_stamp_count=1 |
15465 | for _am_header in $config_headers :; do | |
15466 | case $_am_header in | |
81ecdfbb | 15467 | $_am_arg | $_am_arg:* ) |
13b2be9c DJ |
15468 | break ;; |
15469 | * ) | |
15470 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15471 | esac | |
15472 | done | |
81ecdfbb RW |
15473 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
15474 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15475 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15476 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15477 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15478 | $as_echo X"$_am_arg" | | |
15479 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15480 | s//\1/ | |
15481 | q | |
15482 | } | |
15483 | /^X\(\/\/\)[^/].*/{ | |
15484 | s//\1/ | |
15485 | q | |
15486 | } | |
15487 | /^X\(\/\/\)$/{ | |
15488 | s//\1/ | |
15489 | q | |
15490 | } | |
15491 | /^X\(\/\).*/{ | |
15492 | s//\1/ | |
15493 | q | |
15494 | } | |
15495 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15496 | ;; | |
ab509236 | 15497 | |
81ecdfbb RW |
15498 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
15499 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15500 | ;; | |
15501 | esac | |
13b2be9c DJ |
15502 | |
15503 | ||
81ecdfbb RW |
15504 | case $ac_file$ac_mode in |
15505 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
15506 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
15507 | # are listed without --file. Let's play safe and only enable the eval | |
15508 | # if we detect the quoting. | |
15509 | case $CONFIG_FILES in | |
15510 | *\'*) eval set x "$CONFIG_FILES" ;; | |
15511 | *) set x $CONFIG_FILES ;; | |
15512 | esac | |
15513 | shift | |
15514 | for mf | |
15515 | do | |
15516 | # Strip MF so we end up with the name of the file. | |
15517 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15518 | # Check whether this is an Automake generated Makefile or not. | |
15519 | # We used to match only the files named `Makefile.in', but | |
15520 | # some people rename them; so instead we look at the file content. | |
15521 | # Grep'ing the first line is not enough: some people post-process | |
15522 | # each Makefile.in and add a new line on top of each file to say so. | |
15523 | # Grep'ing the whole file is not good either: AIX grep has a line | |
15524 | # limit of 2048, but all sed's we know have understand at least 4000. | |
15525 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
15526 | dirpart=`$as_dirname -- "$mf" || | |
13b2be9c | 15527 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15528 | X"$mf" : 'X\(//\)[^/]' \| \ |
15529 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15530 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
15531 | $as_echo X"$mf" | | |
15532 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15533 | s//\1/ | |
15534 | q | |
15535 | } | |
15536 | /^X\(\/\/\)[^/].*/{ | |
15537 | s//\1/ | |
15538 | q | |
15539 | } | |
15540 | /^X\(\/\/\)$/{ | |
15541 | s//\1/ | |
15542 | q | |
15543 | } | |
15544 | /^X\(\/\).*/{ | |
15545 | s//\1/ | |
15546 | q | |
15547 | } | |
15548 | s/.*/./; q'` | |
15549 | else | |
15550 | continue | |
15551 | fi | |
15552 | # Extract the definition of DEPDIR, am__include, and am__quote | |
15553 | # from the Makefile without running `make'. | |
15554 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
15555 | test -z "$DEPDIR" && continue | |
15556 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
15557 | test -z "am__include" && continue | |
15558 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
15559 | # When using ansi2knr, U may be empty or an underscore; expand it | |
15560 | U=`sed -n 's/^U = //p' < "$mf"` | |
15561 | # Find all dependency output files, they are included files with | |
15562 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
15563 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
15564 | # expansion. | |
15565 | for file in `sed -n " | |
15566 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
15567 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
15568 | # Make sure the directory exists. | |
15569 | test -f "$dirpart/$file" && continue | |
15570 | fdir=`$as_dirname -- "$file" || | |
13b2be9c | 15571 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15572 | X"$file" : 'X\(//\)[^/]' \| \ |
15573 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15574 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
15575 | $as_echo X"$file" | | |
15576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15577 | s//\1/ | |
15578 | q | |
15579 | } | |
15580 | /^X\(\/\/\)[^/].*/{ | |
15581 | s//\1/ | |
15582 | q | |
15583 | } | |
15584 | /^X\(\/\/\)$/{ | |
15585 | s//\1/ | |
15586 | q | |
15587 | } | |
15588 | /^X\(\/\).*/{ | |
15589 | s//\1/ | |
15590 | q | |
15591 | } | |
15592 | s/.*/./; q'` | |
15593 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
15594 | # echo "creating $dirpart/$file" | |
15595 | echo '# dummy' > "$dirpart/$file" | |
13b2be9c | 15596 | done |
13b2be9c | 15597 | done |
81ecdfbb | 15598 | } |
d7040cdb | 15599 | ;; |
81ecdfbb | 15600 | "libtool":C) |
d7040cdb SE |
15601 | |
15602 | # See if we are running on zsh, and set the options which allow our | |
15603 | # commands through without removal of \ escapes. | |
15604 | if test -n "${ZSH_VERSION+set}" ; then | |
15605 | setopt NO_GLOB_SUBST | |
15606 | fi | |
15607 | ||
15608 | cfgfile="${ofile}T" | |
15609 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15610 | $RM "$cfgfile" | |
15611 | ||
15612 | cat <<_LT_EOF >> "$cfgfile" | |
15613 | #! $SHELL | |
15614 | ||
15615 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 15616 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
15617 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15618 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15619 | # | |
718a6fd8 SE |
15620 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
15621 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
15622 | # Written by Gordon Matzigkeit, 1996 | |
d7040cdb | 15623 | # |
718a6fd8 | 15624 | # This file is part of GNU Libtool. |
d7040cdb | 15625 | # |
718a6fd8 SE |
15626 | # GNU Libtool is free software; you can redistribute it and/or |
15627 | # modify it under the terms of the GNU General Public License as | |
15628 | # published by the Free Software Foundation; either version 2 of | |
15629 | # the License, or (at your option) any later version. | |
d7040cdb | 15630 | # |
718a6fd8 SE |
15631 | # As a special exception to the GNU General Public License, |
15632 | # if you distribute this file as part of a program or library that | |
15633 | # is built using GNU Libtool, you may include this file under the | |
15634 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 15635 | # |
718a6fd8 SE |
15636 | # GNU Libtool is distributed in the hope that it will be useful, |
15637 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15638 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15639 | # GNU General Public License for more details. | |
d7040cdb | 15640 | # |
718a6fd8 SE |
15641 | # You should have received a copy of the GNU General Public License |
15642 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15643 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15644 | # obtained by writing to the Free Software Foundation, Inc., | |
15645 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
15646 | |
15647 | ||
15648 | # The names of the tagged configurations supported by this script. | |
15649 | available_tags="" | |
15650 | ||
15651 | # ### BEGIN LIBTOOL CONFIG | |
15652 | ||
15653 | # Which release of libtool.m4 was used? | |
15654 | macro_version=$macro_version | |
15655 | macro_revision=$macro_revision | |
15656 | ||
15657 | # Whether or not to build shared libraries. | |
15658 | build_libtool_libs=$enable_shared | |
15659 | ||
15660 | # Whether or not to build static libraries. | |
15661 | build_old_libs=$enable_static | |
15662 | ||
15663 | # What type of objects to build. | |
15664 | pic_mode=$pic_mode | |
15665 | ||
15666 | # Whether or not to optimize for fast installation. | |
15667 | fast_install=$enable_fast_install | |
15668 | ||
15669 | # The host system. | |
15670 | host_alias=$host_alias | |
15671 | host=$host | |
15672 | host_os=$host_os | |
15673 | ||
15674 | # The build system. | |
15675 | build_alias=$build_alias | |
15676 | build=$build | |
15677 | build_os=$build_os | |
15678 | ||
15679 | # A sed program that does not truncate output. | |
15680 | SED=$lt_SED | |
15681 | ||
15682 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15683 | Xsed="\$SED -e 1s/^X//" | |
15684 | ||
15685 | # A grep program that handles long lines. | |
15686 | GREP=$lt_GREP | |
15687 | ||
15688 | # An ERE matcher. | |
15689 | EGREP=$lt_EGREP | |
15690 | ||
15691 | # A literal string matcher. | |
15692 | FGREP=$lt_FGREP | |
15693 | ||
15694 | # A BSD- or MS-compatible name lister. | |
15695 | NM=$lt_NM | |
15696 | ||
15697 | # Whether we need soft or hard links. | |
15698 | LN_S=$lt_LN_S | |
15699 | ||
15700 | # What is the maximum length of a command? | |
15701 | max_cmd_len=$max_cmd_len | |
15702 | ||
15703 | # Object file suffix (normally "o"). | |
15704 | objext=$ac_objext | |
15705 | ||
15706 | # Executable file suffix (normally ""). | |
15707 | exeext=$exeext | |
15708 | ||
15709 | # whether the shell understands "unset". | |
15710 | lt_unset=$lt_unset | |
15711 | ||
15712 | # turn spaces into newlines. | |
15713 | SP2NL=$lt_lt_SP2NL | |
15714 | ||
15715 | # turn newlines into spaces. | |
15716 | NL2SP=$lt_lt_NL2SP | |
15717 | ||
15718 | # How to create reloadable object files. | |
15719 | reload_flag=$lt_reload_flag | |
15720 | reload_cmds=$lt_reload_cmds | |
15721 | ||
718a6fd8 SE |
15722 | # An object symbol dumper. |
15723 | OBJDUMP=$lt_OBJDUMP | |
15724 | ||
d7040cdb SE |
15725 | # Method to check whether dependent libraries are shared objects. |
15726 | deplibs_check_method=$lt_deplibs_check_method | |
15727 | ||
15728 | # Command to use when deplibs_check_method == "file_magic". | |
15729 | file_magic_cmd=$lt_file_magic_cmd | |
15730 | ||
15731 | # The archiver. | |
15732 | AR=$lt_AR | |
15733 | AR_FLAGS=$lt_AR_FLAGS | |
15734 | ||
15735 | # A symbol stripping program. | |
15736 | STRIP=$lt_STRIP | |
15737 | ||
15738 | # Commands used to install an old-style archive. | |
15739 | RANLIB=$lt_RANLIB | |
15740 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15741 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15742 | ||
15743 | # A C compiler. | |
15744 | LTCC=$lt_CC | |
15745 | ||
15746 | # LTCC compiler flags. | |
15747 | LTCFLAGS=$lt_CFLAGS | |
15748 | ||
15749 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15750 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15751 | ||
15752 | # Transform the output of nm in a proper C declaration. | |
15753 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15754 | ||
15755 | # Transform the output of nm in a C name address pair. | |
15756 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15757 | ||
718a6fd8 SE |
15758 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
15759 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
15760 | ||
d7040cdb SE |
15761 | # The name of the directory that contains temporary libtool files. |
15762 | objdir=$objdir | |
15763 | ||
15764 | # Shell to use when invoking shell scripts. | |
15765 | SHELL=$lt_SHELL | |
15766 | ||
15767 | # An echo program that does not interpret backslashes. | |
15768 | ECHO=$lt_ECHO | |
15769 | ||
15770 | # Used to examine libraries when file_magic_cmd begins with "file". | |
15771 | MAGIC_CMD=$MAGIC_CMD | |
15772 | ||
15773 | # Must we lock files when doing compilation? | |
15774 | need_locks=$lt_need_locks | |
15775 | ||
718a6fd8 SE |
15776 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15777 | DSYMUTIL=$lt_DSYMUTIL | |
15778 | ||
15779 | # Tool to change global to local symbols on Mac OS X. | |
15780 | NMEDIT=$lt_NMEDIT | |
15781 | ||
15782 | # Tool to manipulate fat objects and archives on Mac OS X. | |
15783 | LIPO=$lt_LIPO | |
15784 | ||
15785 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
15786 | OTOOL=$lt_OTOOL | |
15787 | ||
15788 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
15789 | OTOOL64=$lt_OTOOL64 | |
15790 | ||
d7040cdb SE |
15791 | # Old archive suffix (normally "a"). |
15792 | libext=$libext | |
15793 | ||
15794 | # Shared library suffix (normally ".so"). | |
15795 | shrext_cmds=$lt_shrext_cmds | |
15796 | ||
15797 | # The commands to extract the exported symbol list from a shared archive. | |
15798 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15799 | ||
15800 | # Variables whose values should be saved in libtool wrapper scripts and | |
15801 | # restored at link time. | |
15802 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
15803 | ||
15804 | # Do we need the "lib" prefix for modules? | |
15805 | need_lib_prefix=$need_lib_prefix | |
15806 | ||
15807 | # Do we need a version for libraries? | |
15808 | need_version=$need_version | |
15809 | ||
15810 | # Library versioning type. | |
15811 | version_type=$version_type | |
15812 | ||
15813 | # Shared library runtime path variable. | |
15814 | runpath_var=$runpath_var | |
15815 | ||
15816 | # Shared library path variable. | |
15817 | shlibpath_var=$shlibpath_var | |
15818 | ||
15819 | # Is shlibpath searched before the hard-coded library search path? | |
15820 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15821 | ||
15822 | # Format of library name prefix. | |
15823 | libname_spec=$lt_libname_spec | |
15824 | ||
15825 | # List of archive names. First name is the real one, the rest are links. | |
15826 | # The last name is the one that the linker finds with -lNAME | |
15827 | library_names_spec=$lt_library_names_spec | |
15828 | ||
15829 | # The coded name of the library, if different from the real name. | |
15830 | soname_spec=$lt_soname_spec | |
15831 | ||
15832 | # Command to use after installation of a shared archive. | |
15833 | postinstall_cmds=$lt_postinstall_cmds | |
15834 | ||
15835 | # Command to use after uninstallation of a shared archive. | |
15836 | postuninstall_cmds=$lt_postuninstall_cmds | |
15837 | ||
15838 | # Commands used to finish a libtool library installation in a directory. | |
15839 | finish_cmds=$lt_finish_cmds | |
15840 | ||
15841 | # As "finish_cmds", except a single script fragment to be evaled but | |
15842 | # not shown. | |
15843 | finish_eval=$lt_finish_eval | |
15844 | ||
15845 | # Whether we should hardcode library paths into libraries. | |
15846 | hardcode_into_libs=$hardcode_into_libs | |
15847 | ||
15848 | # Compile-time system search path for libraries. | |
15849 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15850 | ||
15851 | # Run-time system search path for libraries. | |
15852 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15853 | ||
15854 | # Whether dlopen is supported. | |
15855 | dlopen_support=$enable_dlopen | |
15856 | ||
15857 | # Whether dlopen of programs is supported. | |
15858 | dlopen_self=$enable_dlopen_self | |
15859 | ||
15860 | # Whether dlopen of statically linked programs is supported. | |
15861 | dlopen_self_static=$enable_dlopen_self_static | |
15862 | ||
15863 | # Commands to strip libraries. | |
15864 | old_striplib=$lt_old_striplib | |
15865 | striplib=$lt_striplib | |
15866 | ||
15867 | ||
15868 | # The linker used to build libraries. | |
15869 | LD=$lt_LD | |
15870 | ||
15871 | # Commands used to build an old-style archive. | |
15872 | old_archive_cmds=$lt_old_archive_cmds | |
15873 | ||
15874 | # A language specific compiler. | |
15875 | CC=$lt_compiler | |
15876 | ||
15877 | # Is the compiler the GNU compiler? | |
15878 | with_gcc=$GCC | |
15879 | ||
15880 | # Compiler flag to turn off builtin functions. | |
15881 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
15882 | ||
15883 | # How to pass a linker flag through the compiler. | |
15884 | wl=$lt_lt_prog_compiler_wl | |
15885 | ||
15886 | # Additional compiler flags for building library objects. | |
15887 | pic_flag=$lt_lt_prog_compiler_pic | |
15888 | ||
15889 | # Compiler flag to prevent dynamic linking. | |
15890 | link_static_flag=$lt_lt_prog_compiler_static | |
15891 | ||
15892 | # Does compiler simultaneously support -c and -o options? | |
15893 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15894 | ||
15895 | # Whether or not to add -lc for building shared libraries. | |
15896 | build_libtool_need_lc=$archive_cmds_need_lc | |
15897 | ||
15898 | # Whether or not to disallow shared libs when runtime libs are static. | |
15899 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15900 | ||
15901 | # Compiler flag to allow reflexive dlopens. | |
15902 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
15903 | ||
15904 | # Compiler flag to generate shared objects directly from archives. | |
15905 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
15906 | ||
15907 | # Whether the compiler copes with passing no objects directly. | |
15908 | compiler_needs_object=$lt_compiler_needs_object | |
15909 | ||
15910 | # Create an old-style archive from a shared archive. | |
15911 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
15912 | ||
15913 | # Create a temporary old-style archive to link instead of a shared archive. | |
15914 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
15915 | ||
15916 | # Commands used to build a shared archive. | |
15917 | archive_cmds=$lt_archive_cmds | |
15918 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
15919 | ||
15920 | # Commands used to build a loadable module if different from building | |
15921 | # a shared archive. | |
15922 | module_cmds=$lt_module_cmds | |
15923 | module_expsym_cmds=$lt_module_expsym_cmds | |
15924 | ||
15925 | # Whether we are building with GNU ld or not. | |
15926 | with_gnu_ld=$lt_with_gnu_ld | |
15927 | ||
15928 | # Flag that allows shared libraries with undefined symbols to be built. | |
15929 | allow_undefined_flag=$lt_allow_undefined_flag | |
15930 | ||
15931 | # Flag that enforces no undefined symbols. | |
15932 | no_undefined_flag=$lt_no_undefined_flag | |
15933 | ||
15934 | # Flag to hardcode \$libdir into a binary during linking. | |
15935 | # This must work even if \$libdir does not exist | |
15936 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
15937 | ||
15938 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
15939 | # during linking. This must work even if \$libdir does not exist. | |
15940 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
15941 | ||
15942 | # Whether we need a single "-rpath" flag with a separated argument. | |
15943 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
15944 | ||
15945 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15946 | # DIR into the resulting binary. | |
15947 | hardcode_direct=$hardcode_direct | |
15948 | ||
15949 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15950 | # DIR into the resulting binary and the resulting library dependency is | |
15951 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
15952 | # library is relocated. | |
15953 | hardcode_direct_absolute=$hardcode_direct_absolute | |
15954 | ||
15955 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
15956 | # into the resulting binary. | |
15957 | hardcode_minus_L=$hardcode_minus_L | |
15958 | ||
15959 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
15960 | # into the resulting binary. | |
15961 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
15962 | ||
15963 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
15964 | # into the library and all subsequent libraries and executables linked | |
15965 | # against it. | |
15966 | hardcode_automatic=$hardcode_automatic | |
15967 | ||
15968 | # Set to yes if linker adds runtime paths of dependent libraries | |
15969 | # to runtime path list. | |
15970 | inherit_rpath=$inherit_rpath | |
15971 | ||
15972 | # Whether libtool must link a program against all its dependency libraries. | |
15973 | link_all_deplibs=$link_all_deplibs | |
15974 | ||
15975 | # Fix the shell variable \$srcfile for the compiler. | |
15976 | fix_srcfile_path=$lt_fix_srcfile_path | |
15977 | ||
15978 | # Set to "yes" if exported symbols are required. | |
15979 | always_export_symbols=$always_export_symbols | |
15980 | ||
15981 | # The commands to list exported symbols. | |
15982 | export_symbols_cmds=$lt_export_symbols_cmds | |
15983 | ||
15984 | # Symbols that should not be listed in the preloaded symbols. | |
15985 | exclude_expsyms=$lt_exclude_expsyms | |
15986 | ||
15987 | # Symbols that must always be exported. | |
15988 | include_expsyms=$lt_include_expsyms | |
15989 | ||
15990 | # Commands necessary for linking programs (against libraries) with templates. | |
15991 | prelink_cmds=$lt_prelink_cmds | |
15992 | ||
15993 | # Specify filename containing input files. | |
15994 | file_list_spec=$lt_file_list_spec | |
15995 | ||
15996 | # How to hardcode a shared library path into an executable. | |
15997 | hardcode_action=$hardcode_action | |
15998 | ||
15999 | # ### END LIBTOOL CONFIG | |
16000 | ||
16001 | _LT_EOF | |
16002 | ||
16003 | case $host_os in | |
16004 | aix3*) | |
16005 | cat <<\_LT_EOF >> "$cfgfile" | |
16006 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16007 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16008 | # vanish in a puff of smoke. | |
16009 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16010 | COLLECT_NAMES= | |
16011 | export COLLECT_NAMES | |
16012 | fi | |
16013 | _LT_EOF | |
16014 | ;; | |
16015 | esac | |
16016 | ||
16017 | ||
16018 | ltmain="$ac_aux_dir/ltmain.sh" | |
16019 | ||
16020 | ||
16021 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16022 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16023 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16024 | # is reportedly fixed, but why not run on old versions too? | |
16025 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
16026 | || (rm -f "$cfgfile"; exit 1) | |
16027 | ||
16028 | case $xsi_shell in | |
16029 | yes) | |
16030 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 16031 | |
d7040cdb SE |
16032 | # func_dirname file append nondir_replacement |
16033 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16034 | # otherwise set result to NONDIR_REPLACEMENT. | |
16035 | func_dirname () | |
16036 | { | |
16037 | case ${1} in | |
16038 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16039 | * ) func_dirname_result="${3}" ;; | |
16040 | esac | |
16041 | } | |
16042 | ||
16043 | # func_basename file | |
16044 | func_basename () | |
16045 | { | |
16046 | func_basename_result="${1##*/}" | |
16047 | } | |
16048 | ||
718a6fd8 SE |
16049 | # func_dirname_and_basename file append nondir_replacement |
16050 | # perform func_basename and func_dirname in a single function | |
16051 | # call: | |
16052 | # dirname: Compute the dirname of FILE. If nonempty, | |
16053 | # add APPEND to the result, otherwise set result | |
16054 | # to NONDIR_REPLACEMENT. | |
16055 | # value returned in "$func_dirname_result" | |
16056 | # basename: Compute filename of FILE. | |
16057 | # value retuned in "$func_basename_result" | |
16058 | # Implementation must be kept synchronized with func_dirname | |
16059 | # and func_basename. For efficiency, we do not delegate to | |
16060 | # those functions but instead duplicate the functionality here. | |
16061 | func_dirname_and_basename () | |
16062 | { | |
16063 | case ${1} in | |
16064 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16065 | * ) func_dirname_result="${3}" ;; | |
16066 | esac | |
16067 | func_basename_result="${1##*/}" | |
16068 | } | |
16069 | ||
d7040cdb SE |
16070 | # func_stripname prefix suffix name |
16071 | # strip PREFIX and SUFFIX off of NAME. | |
16072 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16073 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16074 | # dot (in which case that matches only a dot). | |
16075 | func_stripname () | |
16076 | { | |
16077 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16078 | # positional parameters, so assign one to ordinary parameter first. | |
16079 | func_stripname_result=${3} | |
16080 | func_stripname_result=${func_stripname_result#"${1}"} | |
16081 | func_stripname_result=${func_stripname_result%"${2}"} | |
16082 | } | |
16083 | ||
16084 | # func_opt_split | |
16085 | func_opt_split () | |
16086 | { | |
16087 | func_opt_split_opt=${1%%=*} | |
16088 | func_opt_split_arg=${1#*=} | |
16089 | } | |
16090 | ||
16091 | # func_lo2o object | |
16092 | func_lo2o () | |
16093 | { | |
16094 | case ${1} in | |
16095 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16096 | *) func_lo2o_result=${1} ;; | |
16097 | esac | |
16098 | } | |
718a6fd8 SE |
16099 | |
16100 | # func_xform libobj-or-source | |
16101 | func_xform () | |
16102 | { | |
16103 | func_xform_result=${1%.*}.lo | |
16104 | } | |
16105 | ||
16106 | # func_arith arithmetic-term... | |
16107 | func_arith () | |
16108 | { | |
16109 | func_arith_result=$(( $* )) | |
16110 | } | |
16111 | ||
16112 | # func_len string | |
16113 | # STRING may not start with a hyphen. | |
16114 | func_len () | |
16115 | { | |
16116 | func_len_result=${#1} | |
16117 | } | |
16118 | ||
d7040cdb SE |
16119 | _LT_EOF |
16120 | ;; | |
16121 | *) # Bourne compatible functions. | |
16122 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 16123 | |
d7040cdb SE |
16124 | # func_dirname file append nondir_replacement |
16125 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16126 | # otherwise set result to NONDIR_REPLACEMENT. | |
16127 | func_dirname () | |
16128 | { | |
16129 | # Extract subdirectory from the argument. | |
16130 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
16131 | if test "X$func_dirname_result" = "X${1}"; then | |
16132 | func_dirname_result="${3}" | |
16133 | else | |
16134 | func_dirname_result="$func_dirname_result${2}" | |
16135 | fi | |
16136 | } | |
16137 | ||
16138 | # func_basename file | |
16139 | func_basename () | |
16140 | { | |
16141 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
16142 | } | |
16143 | ||
718a6fd8 | 16144 | |
d7040cdb SE |
16145 | # func_stripname prefix suffix name |
16146 | # strip PREFIX and SUFFIX off of NAME. | |
16147 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16148 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16149 | # dot (in which case that matches only a dot). | |
16150 | # func_strip_suffix prefix name | |
16151 | func_stripname () | |
16152 | { | |
16153 | case ${2} in | |
16154 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
16155 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
16156 | *) func_stripname_result=`$ECHO "X${3}" \ | |
16157 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
16158 | esac | |
16159 | } | |
16160 | ||
16161 | # sed scripts: | |
16162 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16163 | my_sed_long_arg='1s/^-[^=]*=//' | |
16164 | ||
16165 | # func_opt_split | |
16166 | func_opt_split () | |
16167 | { | |
16168 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
16169 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
16170 | } | |
16171 | ||
16172 | # func_lo2o object | |
16173 | func_lo2o () | |
16174 | { | |
16175 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
16176 | } | |
718a6fd8 SE |
16177 | |
16178 | # func_xform libobj-or-source | |
16179 | func_xform () | |
16180 | { | |
16181 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
16182 | } | |
16183 | ||
16184 | # func_arith arithmetic-term... | |
16185 | func_arith () | |
16186 | { | |
16187 | func_arith_result=`expr "$@"` | |
16188 | } | |
16189 | ||
16190 | # func_len string | |
16191 | # STRING may not start with a hyphen. | |
16192 | func_len () | |
16193 | { | |
16194 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16195 | } | |
16196 | ||
d7040cdb SE |
16197 | _LT_EOF |
16198 | esac | |
16199 | ||
16200 | case $lt_shell_append in | |
16201 | yes) | |
16202 | cat << \_LT_EOF >> "$cfgfile" | |
16203 | ||
16204 | # func_append var value | |
16205 | # Append VALUE to the end of shell variable VAR. | |
16206 | func_append () | |
16207 | { | |
16208 | eval "$1+=\$2" | |
16209 | } | |
16210 | _LT_EOF | |
16211 | ;; | |
16212 | *) | |
16213 | cat << \_LT_EOF >> "$cfgfile" | |
16214 | ||
16215 | # func_append var value | |
16216 | # Append VALUE to the end of shell variable VAR. | |
16217 | func_append () | |
16218 | { | |
16219 | eval "$1=\$$1\$2" | |
16220 | } | |
718a6fd8 | 16221 | |
d7040cdb SE |
16222 | _LT_EOF |
16223 | ;; | |
16224 | esac | |
16225 | ||
16226 | ||
16227 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16228 | || (rm -f "$cfgfile"; exit 1) | |
16229 | ||
16230 | mv -f "$cfgfile" "$ofile" || | |
16231 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16232 | chmod +x "$ofile" | |
16233 | ||
13b2be9c | 16234 | ;; |
81ecdfbb | 16235 | "default-1":C) |
20e95c23 DJ |
16236 | for ac_file in $CONFIG_FILES; do |
16237 | # Support "outfile[:infile[:infile...]]" | |
16238 | case "$ac_file" in | |
16239 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16240 | esac | |
16241 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16242 | case "$ac_file" in */Makefile.in) | |
16243 | # Adjust a relative srcdir. | |
16244 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
16245 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
16246 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
16247 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16248 | # In autoconf-2.50 it is called $srcdir. | |
16249 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
16250 | case "$ac_given_srcdir" in | |
16251 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16252 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16253 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16254 | esac | |
16255 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
16256 | rm -f "$ac_dir/POTFILES" | |
16257 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
16258 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
16259 | POMAKEFILEDEPS="POTFILES.in" | |
16260 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
16261 | # on $ac_dir but don't depend on user-specified configuration | |
16262 | # parameters. | |
16263 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
16264 | # The LINGUAS file contains the set of available languages. | |
16265 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
16266 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
16267 | fi | |
16268 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
16269 | # Hide the ALL_LINGUAS assigment from automake. | |
16270 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
16271 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
16272 | else | |
16273 | # The set of available languages was given in configure.in. | |
16274 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
16275 | fi | |
16276 | case "$ac_given_srcdir" in | |
16277 | .) srcdirpre= ;; | |
16278 | *) srcdirpre='$(srcdir)/' ;; | |
16279 | esac | |
16280 | POFILES= | |
16281 | GMOFILES= | |
16282 | UPDATEPOFILES= | |
16283 | DUMMYPOFILES= | |
16284 | for lang in $ALL_LINGUAS; do | |
16285 | POFILES="$POFILES $srcdirpre$lang.po" | |
16286 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
16287 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
16288 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
16289 | done | |
16290 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
16291 | # environment variable. | |
16292 | INST_LINGUAS= | |
16293 | if test -n "$ALL_LINGUAS"; then | |
16294 | for presentlang in $ALL_LINGUAS; do | |
16295 | useit=no | |
16296 | if test "%UNSET%" != "$LINGUAS"; then | |
16297 | desiredlanguages="$LINGUAS" | |
16298 | else | |
16299 | desiredlanguages="$ALL_LINGUAS" | |
16300 | fi | |
16301 | for desiredlang in $desiredlanguages; do | |
16302 | # Use the presentlang catalog if desiredlang is | |
16303 | # a. equal to presentlang, or | |
16304 | # b. a variant of presentlang (because in this case, | |
16305 | # presentlang can be used as a fallback for messages | |
16306 | # which are not translated in the desiredlang catalog). | |
16307 | case "$desiredlang" in | |
16308 | "$presentlang"*) useit=yes;; | |
16309 | esac | |
16310 | done | |
16311 | if test $useit = yes; then | |
16312 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
16313 | fi | |
16314 | done | |
16315 | fi | |
16316 | CATALOGS= | |
16317 | if test -n "$INST_LINGUAS"; then | |
16318 | for lang in $INST_LINGUAS; do | |
16319 | CATALOGS="$CATALOGS $lang.gmo" | |
16320 | done | |
16321 | fi | |
16322 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
16323 | 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" | |
16324 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
16325 | if test -f "$f"; then | |
16326 | case "$f" in | |
16327 | *.orig | *.bak | *~) ;; | |
16328 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
16329 | esac | |
16330 | fi | |
16331 | done | |
16332 | fi | |
16333 | ;; | |
16334 | esac | |
16335 | done ;; | |
81ecdfbb | 16336 | "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h |
252b5132 RH |
16337 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
16338 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | |
16339 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | |
16340 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | |
16341 | if test "x$cgen_cpu_prefix" != x ; then | |
16342 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | |
20e95c23 | 16343 | fi ;; |
81ecdfbb | 16344 | |
13b2be9c | 16345 | esac |
81ecdfbb | 16346 | done # for ac_tag |
13b2be9c | 16347 | |
13b2be9c | 16348 | |
81ecdfbb | 16349 | as_fn_exit 0 |
13b2be9c | 16350 | _ACEOF |
13b2be9c DJ |
16351 | ac_clean_files=$ac_clean_files_save |
16352 | ||
81ecdfbb RW |
16353 | test $ac_write_fail = 0 || |
16354 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16355 | ||
13b2be9c DJ |
16356 | |
16357 | # configure is writing to config.log, and then calls config.status. | |
16358 | # config.status does its own redirection, appending to config.log. | |
16359 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16360 | # by configure, so config.status won't be able to write to it; its | |
16361 | # output is simply discarded. So we exec the FD to /dev/null, | |
16362 | # effectively closing config.log, so it can be properly (re)opened and | |
16363 | # appended to by config.status. When coming back to configure, we | |
16364 | # need to make the FD available again. | |
16365 | if test "$no_create" != yes; then | |
16366 | ac_cs_success=: | |
16367 | ac_config_status_args= | |
16368 | test "$silent" = yes && | |
16369 | ac_config_status_args="$ac_config_status_args --quiet" | |
16370 | exec 5>/dev/null | |
16371 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16372 | exec 5>>config.log | |
16373 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16374 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
16375 | $ac_cs_success || as_fn_exit $? |
16376 | fi | |
16377 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16379 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13b2be9c | 16380 | fi |
252b5132 | 16381 |