]>
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 | |
3725885a RW |
172 | test \$(( 1 + 1 )) = 2 || exit 1 |
173 | ||
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
181 | if (eval "$as_required") 2>/dev/null; then : |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
13b2be9c | 192 | do |
81ecdfbb RW |
193 | IFS=$as_save_IFS |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
13b2be9c | 236 | else |
81ecdfbb RW |
237 | $as_echo "$0: Please tell [email protected] about your system, |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
13b2be9c | 241 | fi |
81ecdfbb RW |
242 | exit 1 |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
13b2be9c | 380 | |
81ecdfbb RW |
381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
383 | as_expr=expr |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
81ecdfbb | 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13b2be9c DJ |
389 | as_basename=basename |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
81ecdfbb RW |
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
13b2be9c | 399 | |
81ecdfbb | 400 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
13b2be9c | 418 | |
13b2be9c DJ |
419 | # Avoid depending upon Character Ranges. |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
425 | ||
13b2be9c | 426 | |
81ecdfbb RW |
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
13b2be9c | 436 | sed ' |
81ecdfbb RW |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
13b2be9c | 441 | N |
81ecdfbb RW |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
13b2be9c | 444 | t loop |
81ecdfbb | 445 | s/-\n.*// |
13b2be9c | 446 | ' >$as_me.lineno && |
81ecdfbb RW |
447 | chmod +x "$as_me.lineno" || |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
13b2be9c DJ |
449 | |
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" | |
13b2be9c DJ |
454 | # Exit status is that of the last command. |
455 | exit | |
456 | } | |
457 | ||
81ecdfbb RW |
458 | ECHO_C= ECHO_N= ECHO_T= |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
13b2be9c DJ |
469 | esac |
470 | ||
81ecdfbb RW |
471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
13b2be9c | 474 | else |
81ecdfbb RW |
475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
13b2be9c | 477 | fi |
81ecdfbb RW |
478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 480 | as_ln_s='ln -s' |
81ecdfbb RW |
481 | # ... but there are two gotchas: |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
13b2be9c | 491 | fi |
13b2be9c DJ |
492 | else |
493 | as_ln_s='cp -p' | |
494 | fi | |
81ecdfbb RW |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null | |
13b2be9c DJ |
497 | |
498 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
13b2be9c | 500 | else |
ab509236 | 501 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
502 | as_mkdir_p=false |
503 | fi | |
504 | ||
81ecdfbb RW |
505 | if test -x / >/dev/null 2>&1; then |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
13b2be9c DJ |
527 | |
528 | # Sed expression to map a string onto a valid CPP name. | |
ab509236 | 529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c DJ |
530 | |
531 | # Sed expression to map a string onto a valid variable name. | |
ab509236 | 532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13b2be9c | 533 | |
d7040cdb SE |
534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
d7040cdb | 536 | |
81ecdfbb RW |
537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
13b2be9c DJ |
539 | # Name of the host. |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 543 | |
13b2be9c DJ |
544 | # |
545 | # Initializations. | |
546 | # | |
252b5132 | 547 | ac_default_prefix=/usr/local |
81ecdfbb | 548 | ac_clean_files= |
13b2be9c | 549 | ac_config_libobj_dir=. |
81ecdfbb | 550 | LIBOBJS= |
13b2be9c DJ |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
13b2be9c DJ |
555 | |
556 | # Identity of this package. | |
557 | PACKAGE_NAME= | |
558 | PACKAGE_TARNAME= | |
559 | PACKAGE_VERSION= | |
560 | PACKAGE_STRING= | |
561 | PACKAGE_BUGREPORT= | |
81ecdfbb | 562 | PACKAGE_URL= |
13b2be9c DJ |
563 | |
564 | ac_unique_file="as.h" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
81ecdfbb | 568 | #ifdef HAVE_SYS_TYPES_H |
13b2be9c DJ |
569 | # include <sys/types.h> |
570 | #endif | |
81ecdfbb | 571 | #ifdef HAVE_SYS_STAT_H |
13b2be9c DJ |
572 | # include <sys/stat.h> |
573 | #endif | |
81ecdfbb | 574 | #ifdef STDC_HEADERS |
13b2be9c DJ |
575 | # include <stdlib.h> |
576 | # include <stddef.h> | |
577 | #else | |
81ecdfbb | 578 | # ifdef HAVE_STDLIB_H |
13b2be9c DJ |
579 | # include <stdlib.h> |
580 | # endif | |
581 | #endif | |
81ecdfbb RW |
582 | #ifdef HAVE_STRING_H |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
13b2be9c DJ |
584 | # include <memory.h> |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
81ecdfbb | 588 | #ifdef HAVE_STRINGS_H |
13b2be9c DJ |
589 | # include <strings.h> |
590 | #endif | |
81ecdfbb | 591 | #ifdef HAVE_INTTYPES_H |
13b2be9c | 592 | # include <inttypes.h> |
13b2be9c | 593 | #endif |
81ecdfbb RW |
594 | #ifdef HAVE_STDINT_H |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
13b2be9c DJ |
598 | # include <unistd.h> |
599 | #endif" | |
600 | ||
81ecdfbb RW |
601 | ac_subst_vars='am__EXEEXT_FALSE |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
605 | LIBM | |
606 | ALLOCA | |
607 | GENINSRC_NEVER_FALSE | |
608 | GENINSRC_NEVER_TRUE | |
609 | MAINT | |
610 | MAINTAINER_MODE_FALSE | |
611 | MAINTAINER_MODE_TRUE | |
612 | MSGMERGE | |
613 | MSGFMT | |
614 | MKINSTALLDIRS | |
615 | CATOBJEXT | |
616 | GENCAT | |
617 | INSTOBJEXT | |
618 | DATADIRNAME | |
619 | CATALOGS | |
620 | POSUB | |
621 | GMSGFMT | |
622 | XGETTEXT | |
623 | INCINTL | |
624 | LIBINTL_DEP | |
625 | LIBINTL | |
626 | USE_NLS | |
627 | LEXLIB | |
628 | LEX_OUTPUT_ROOT | |
629 | LEX | |
630 | YFLAGS | |
631 | YACC | |
632 | OPCODES_LIB | |
633 | atof | |
634 | install_tooldir | |
635 | te_file | |
636 | obj_format | |
637 | target_cpu_type | |
638 | extra_objects | |
639 | cgen_cpu_prefix | |
640 | GDBINIT | |
641 | NO_WERROR | |
642 | WARN_CFLAGS | |
643 | OTOOL64 | |
644 | OTOOL | |
645 | LIPO | |
646 | NMEDIT | |
647 | DSYMUTIL | |
81ecdfbb RW |
648 | RANLIB |
649 | AR | |
650 | OBJDUMP | |
651 | LN_S | |
652 | NM | |
653 | ac_ct_DUMPBIN | |
654 | DUMPBIN | |
655 | LD | |
656 | FGREP | |
657 | SED | |
658 | LIBTOOL | |
659 | EGREP | |
660 | GREP | |
661 | CPP | |
662 | am__fastdepCC_FALSE | |
663 | am__fastdepCC_TRUE | |
664 | CCDEPMODE | |
665 | AMDEPBACKSLASH | |
666 | AMDEP_FALSE | |
667 | AMDEP_TRUE | |
668 | am__quote | |
669 | am__include | |
670 | DEPDIR | |
671 | am__untar | |
672 | am__tar | |
673 | AMTAR | |
674 | am__leading_dot | |
675 | SET_MAKE | |
676 | AWK | |
677 | mkdir_p | |
678 | MKDIR_P | |
679 | INSTALL_STRIP_PROGRAM | |
680 | STRIP | |
681 | install_sh | |
682 | MAKEINFO | |
683 | AUTOHEADER | |
684 | AUTOMAKE | |
685 | AUTOCONF | |
686 | ACLOCAL | |
687 | VERSION | |
688 | PACKAGE | |
689 | CYGPATH_W | |
690 | am__isrc | |
691 | INSTALL_DATA | |
692 | INSTALL_SCRIPT | |
693 | INSTALL_PROGRAM | |
694 | OBJEXT | |
695 | EXEEXT | |
696 | ac_ct_CC | |
697 | CPPFLAGS | |
698 | LDFLAGS | |
699 | CFLAGS | |
700 | CC | |
701 | target_os | |
702 | target_vendor | |
703 | target_cpu | |
704 | target | |
705 | host_os | |
706 | host_vendor | |
707 | host_cpu | |
708 | host | |
709 | build_os | |
710 | build_vendor | |
711 | build_cpu | |
712 | build | |
713 | target_alias | |
714 | host_alias | |
715 | build_alias | |
716 | LIBS | |
717 | ECHO_T | |
718 | ECHO_N | |
719 | ECHO_C | |
720 | DEFS | |
721 | mandir | |
722 | localedir | |
723 | libdir | |
724 | psdir | |
725 | pdfdir | |
726 | dvidir | |
727 | htmldir | |
728 | infodir | |
729 | docdir | |
730 | oldincludedir | |
731 | includedir | |
732 | localstatedir | |
733 | sharedstatedir | |
734 | sysconfdir | |
735 | datadir | |
736 | datarootdir | |
737 | libexecdir | |
738 | sbindir | |
739 | bindir | |
740 | program_transform_name | |
741 | prefix | |
742 | exec_prefix | |
743 | PACKAGE_URL | |
744 | PACKAGE_BUGREPORT | |
745 | PACKAGE_STRING | |
746 | PACKAGE_VERSION | |
747 | PACKAGE_TARNAME | |
748 | PACKAGE_NAME | |
749 | PATH_SEPARATOR | |
750 | SHELL' | |
13b2be9c | 751 | ac_subst_files='' |
81ecdfbb RW |
752 | ac_user_opts=' |
753 | enable_option_checking | |
754 | enable_dependency_tracking | |
da2f07f1 | 755 | enable_plugins |
81ecdfbb RW |
756 | enable_largefile |
757 | enable_shared | |
758 | enable_static | |
759 | with_pic | |
760 | enable_fast_install | |
761 | with_gnu_ld | |
762 | enable_libtool_lock | |
763 | enable_targets | |
764 | enable_checking | |
765 | enable_werror | |
766 | enable_build_warnings | |
767 | enable_nls | |
768 | enable_maintainer_mode | |
769 | ' | |
770 | ac_precious_vars='build_alias | |
771 | host_alias | |
772 | target_alias | |
773 | CC | |
774 | CFLAGS | |
775 | LDFLAGS | |
776 | LIBS | |
777 | CPPFLAGS | |
778 | CPP | |
779 | YACC | |
780 | YFLAGS' | |
781 | ||
252b5132 RH |
782 | |
783 | # Initialize some variables set by options. | |
13b2be9c DJ |
784 | ac_init_help= |
785 | ac_init_version=false | |
81ecdfbb RW |
786 | ac_unrecognized_opts= |
787 | ac_unrecognized_sep= | |
252b5132 RH |
788 | # The variables have the same names as the options, with |
789 | # dashes changed to underlines. | |
13b2be9c | 790 | cache_file=/dev/null |
252b5132 | 791 | exec_prefix=NONE |
252b5132 | 792 | no_create= |
252b5132 RH |
793 | no_recursion= |
794 | prefix=NONE | |
795 | program_prefix=NONE | |
796 | program_suffix=NONE | |
797 | program_transform_name=s,x,x, | |
798 | silent= | |
799 | site= | |
800 | srcdir= | |
252b5132 RH |
801 | verbose= |
802 | x_includes=NONE | |
803 | x_libraries=NONE | |
13b2be9c DJ |
804 | |
805 | # Installation directory options. | |
806 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
807 | # and all the variables that are supposed to be based on exec_prefix | |
808 | # by default will actually change. | |
809 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 810 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
811 | bindir='${exec_prefix}/bin' |
812 | sbindir='${exec_prefix}/sbin' | |
813 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
814 | datarootdir='${prefix}/share' |
815 | datadir='${datarootdir}' | |
252b5132 RH |
816 | sysconfdir='${prefix}/etc' |
817 | sharedstatedir='${prefix}/com' | |
818 | localstatedir='${prefix}/var' | |
252b5132 RH |
819 | includedir='${prefix}/include' |
820 | oldincludedir='/usr/include' | |
81ecdfbb RW |
821 | docdir='${datarootdir}/doc/${PACKAGE}' |
822 | infodir='${datarootdir}/info' | |
823 | htmldir='${docdir}' | |
824 | dvidir='${docdir}' | |
825 | pdfdir='${docdir}' | |
826 | psdir='${docdir}' | |
827 | libdir='${exec_prefix}/lib' | |
828 | localedir='${datarootdir}/locale' | |
829 | mandir='${datarootdir}/man' | |
252b5132 | 830 | |
252b5132 | 831 | ac_prev= |
81ecdfbb | 832 | ac_dashdash= |
252b5132 RH |
833 | for ac_option |
834 | do | |
252b5132 RH |
835 | # If the previous option needs an argument, assign it. |
836 | if test -n "$ac_prev"; then | |
81ecdfbb | 837 | eval $ac_prev=\$ac_option |
252b5132 RH |
838 | ac_prev= |
839 | continue | |
840 | fi | |
841 | ||
81ecdfbb RW |
842 | case $ac_option in |
843 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
844 | *) ac_optarg=yes ;; | |
845 | esac | |
252b5132 RH |
846 | |
847 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
848 | ||
81ecdfbb RW |
849 | case $ac_dashdash$ac_option in |
850 | --) | |
851 | ac_dashdash=yes ;; | |
252b5132 RH |
852 | |
853 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
854 | ac_prev=bindir ;; | |
855 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
13b2be9c | 856 | bindir=$ac_optarg ;; |
252b5132 RH |
857 | |
858 | -build | --build | --buil | --bui | --bu) | |
13b2be9c | 859 | ac_prev=build_alias ;; |
252b5132 | 860 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
13b2be9c | 861 | build_alias=$ac_optarg ;; |
252b5132 RH |
862 | |
863 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
864 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
865 | ac_prev=cache_file ;; | |
866 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
867 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
13b2be9c DJ |
868 | cache_file=$ac_optarg ;; |
869 | ||
870 | --config-cache | -C) | |
871 | cache_file=config.cache ;; | |
252b5132 | 872 | |
81ecdfbb | 873 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 874 | ac_prev=datadir ;; |
81ecdfbb | 875 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
13b2be9c | 876 | datadir=$ac_optarg ;; |
252b5132 | 877 | |
81ecdfbb RW |
878 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
879 | | --dataroo | --dataro | --datar) | |
880 | ac_prev=datarootdir ;; | |
881 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
882 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
883 | datarootdir=$ac_optarg ;; | |
884 | ||
252b5132 | 885 | -disable-* | --disable-*) |
81ecdfbb | 886 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 887 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
888 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
889 | as_fn_error "invalid feature name: $ac_useropt" | |
890 | ac_useropt_orig=$ac_useropt | |
891 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
892 | case $ac_user_opts in | |
893 | *" | |
894 | "enable_$ac_useropt" | |
895 | "*) ;; | |
896 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
897 | ac_unrecognized_sep=', ';; | |
898 | esac | |
899 | eval enable_$ac_useropt=no ;; | |
900 | ||
901 | -docdir | --docdir | --docdi | --doc | --do) | |
902 | ac_prev=docdir ;; | |
903 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
904 | docdir=$ac_optarg ;; | |
905 | ||
906 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
907 | ac_prev=dvidir ;; | |
908 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
909 | dvidir=$ac_optarg ;; | |
252b5132 RH |
910 | |
911 | -enable-* | --enable-*) | |
81ecdfbb | 912 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 913 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
914 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
915 | as_fn_error "invalid feature name: $ac_useropt" | |
916 | ac_useropt_orig=$ac_useropt | |
917 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
918 | case $ac_user_opts in | |
919 | *" | |
920 | "enable_$ac_useropt" | |
921 | "*) ;; | |
922 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
923 | ac_unrecognized_sep=', ';; | |
252b5132 | 924 | esac |
81ecdfbb | 925 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
926 | |
927 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
928 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
929 | | --exec | --exe | --ex) | |
930 | ac_prev=exec_prefix ;; | |
931 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
932 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
933 | | --exec=* | --exe=* | --ex=*) | |
13b2be9c | 934 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
935 | |
936 | -gas | --gas | --ga | --g) | |
937 | # Obsolete; use --with-gas. | |
938 | with_gas=yes ;; | |
939 | ||
13b2be9c DJ |
940 | -help | --help | --hel | --he | -h) |
941 | ac_init_help=long ;; | |
942 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
943 | ac_init_help=recursive ;; | |
944 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
945 | ac_init_help=short ;; | |
252b5132 RH |
946 | |
947 | -host | --host | --hos | --ho) | |
13b2be9c | 948 | ac_prev=host_alias ;; |
252b5132 | 949 | -host=* | --host=* | --hos=* | --ho=*) |
13b2be9c | 950 | host_alias=$ac_optarg ;; |
252b5132 | 951 | |
81ecdfbb RW |
952 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
953 | ac_prev=htmldir ;; | |
954 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
955 | | --ht=*) | |
956 | htmldir=$ac_optarg ;; | |
957 | ||
252b5132 RH |
958 | -includedir | --includedir | --includedi | --included | --include \ |
959 | | --includ | --inclu | --incl | --inc) | |
960 | ac_prev=includedir ;; | |
961 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
962 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
13b2be9c | 963 | includedir=$ac_optarg ;; |
252b5132 RH |
964 | |
965 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
966 | ac_prev=infodir ;; | |
967 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
13b2be9c | 968 | infodir=$ac_optarg ;; |
252b5132 RH |
969 | |
970 | -libdir | --libdir | --libdi | --libd) | |
971 | ac_prev=libdir ;; | |
972 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
13b2be9c | 973 | libdir=$ac_optarg ;; |
252b5132 RH |
974 | |
975 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
976 | | --libexe | --libex | --libe) | |
977 | ac_prev=libexecdir ;; | |
978 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
979 | | --libexe=* | --libex=* | --libe=*) | |
13b2be9c | 980 | libexecdir=$ac_optarg ;; |
252b5132 | 981 | |
81ecdfbb RW |
982 | -localedir | --localedir | --localedi | --localed | --locale) |
983 | ac_prev=localedir ;; | |
984 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
985 | localedir=$ac_optarg ;; | |
986 | ||
252b5132 | 987 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 988 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
989 | ac_prev=localstatedir ;; |
990 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 991 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
13b2be9c | 992 | localstatedir=$ac_optarg ;; |
252b5132 RH |
993 | |
994 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
995 | ac_prev=mandir ;; | |
996 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
13b2be9c | 997 | mandir=$ac_optarg ;; |
252b5132 RH |
998 | |
999 | -nfp | --nfp | --nf) | |
1000 | # Obsolete; use --without-fp. | |
1001 | with_fp=no ;; | |
1002 | ||
1003 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
13b2be9c | 1004 | | --no-cr | --no-c | -n) |
252b5132 RH |
1005 | no_create=yes ;; |
1006 | ||
1007 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1008 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1009 | no_recursion=yes ;; | |
1010 | ||
1011 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1012 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1013 | | --oldin | --oldi | --old | --ol | --o) | |
1014 | ac_prev=oldincludedir ;; | |
1015 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1016 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1017 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
13b2be9c | 1018 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1019 | |
1020 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1021 | ac_prev=prefix ;; | |
1022 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13b2be9c | 1023 | prefix=$ac_optarg ;; |
252b5132 RH |
1024 | |
1025 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1026 | | --program-pre | --program-pr | --program-p) | |
1027 | ac_prev=program_prefix ;; | |
1028 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1029 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
13b2be9c | 1030 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1031 | |
1032 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1033 | | --program-suf | --program-su | --program-s) | |
1034 | ac_prev=program_suffix ;; | |
1035 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1036 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
13b2be9c | 1037 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1038 | |
1039 | -program-transform-name | --program-transform-name \ | |
1040 | | --program-transform-nam | --program-transform-na \ | |
1041 | | --program-transform-n | --program-transform- \ | |
1042 | | --program-transform | --program-transfor \ | |
1043 | | --program-transfo | --program-transf \ | |
1044 | | --program-trans | --program-tran \ | |
1045 | | --progr-tra | --program-tr | --program-t) | |
1046 | ac_prev=program_transform_name ;; | |
1047 | -program-transform-name=* | --program-transform-name=* \ | |
1048 | | --program-transform-nam=* | --program-transform-na=* \ | |
1049 | | --program-transform-n=* | --program-transform-=* \ | |
1050 | | --program-transform=* | --program-transfor=* \ | |
1051 | | --program-transfo=* | --program-transf=* \ | |
1052 | | --program-trans=* | --program-tran=* \ | |
1053 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
13b2be9c | 1054 | program_transform_name=$ac_optarg ;; |
252b5132 | 1055 | |
81ecdfbb RW |
1056 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1057 | ac_prev=pdfdir ;; | |
1058 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1059 | pdfdir=$ac_optarg ;; | |
1060 | ||
1061 | -psdir | --psdir | --psdi | --psd | --ps) | |
1062 | ac_prev=psdir ;; | |
1063 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1064 | psdir=$ac_optarg ;; | |
1065 | ||
252b5132 RH |
1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1067 | | -silent | --silent | --silen | --sile | --sil) | |
1068 | silent=yes ;; | |
1069 | ||
1070 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1071 | ac_prev=sbindir ;; | |
1072 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1073 | | --sbi=* | --sb=*) | |
13b2be9c | 1074 | sbindir=$ac_optarg ;; |
252b5132 RH |
1075 | |
1076 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1077 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1078 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1079 | | --sha | --sh) | |
1080 | ac_prev=sharedstatedir ;; | |
1081 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1082 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1083 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1084 | | --sha=* | --sh=*) | |
13b2be9c | 1085 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1086 | |
1087 | -site | --site | --sit) | |
1088 | ac_prev=site ;; | |
1089 | -site=* | --site=* | --sit=*) | |
13b2be9c | 1090 | site=$ac_optarg ;; |
76bff705 | 1091 | |
252b5132 RH |
1092 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1093 | ac_prev=srcdir ;; | |
1094 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13b2be9c | 1095 | srcdir=$ac_optarg ;; |
252b5132 RH |
1096 | |
1097 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1098 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1099 | ac_prev=sysconfdir ;; | |
1100 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1101 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
13b2be9c | 1102 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1103 | |
1104 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
13b2be9c | 1105 | ac_prev=target_alias ;; |
252b5132 | 1106 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
13b2be9c | 1107 | target_alias=$ac_optarg ;; |
252b5132 RH |
1108 | |
1109 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1110 | verbose=yes ;; | |
1111 | ||
13b2be9c DJ |
1112 | -version | --version | --versio | --versi | --vers | -V) |
1113 | ac_init_version=: ;; | |
252b5132 RH |
1114 | |
1115 | -with-* | --with-*) | |
81ecdfbb | 1116 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1117 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1118 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1119 | as_fn_error "invalid package name: $ac_useropt" | |
1120 | ac_useropt_orig=$ac_useropt | |
1121 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1122 | case $ac_user_opts in | |
1123 | *" | |
1124 | "with_$ac_useropt" | |
1125 | "*) ;; | |
1126 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1127 | ac_unrecognized_sep=', ';; | |
252b5132 | 1128 | esac |
81ecdfbb | 1129 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1130 | |
1131 | -without-* | --without-*) | |
81ecdfbb | 1132 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1133 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1134 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1135 | as_fn_error "invalid package name: $ac_useropt" | |
1136 | ac_useropt_orig=$ac_useropt | |
1137 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1138 | case $ac_user_opts in | |
1139 | *" | |
1140 | "with_$ac_useropt" | |
1141 | "*) ;; | |
1142 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1143 | ac_unrecognized_sep=', ';; | |
1144 | esac | |
1145 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1146 | |
1147 | --x) | |
1148 | # Obsolete; use --with-x. | |
1149 | with_x=yes ;; | |
1150 | ||
1151 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1152 | | --x-incl | --x-inc | --x-in | --x-i) | |
1153 | ac_prev=x_includes ;; | |
1154 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1155 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
13b2be9c | 1156 | x_includes=$ac_optarg ;; |
252b5132 RH |
1157 | |
1158 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1159 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1160 | ac_prev=x_libraries ;; | |
1161 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1162 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
13b2be9c | 1163 | x_libraries=$ac_optarg ;; |
252b5132 | 1164 | |
81ecdfbb RW |
1165 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1166 | Try \`$0 --help' for more information." | |
252b5132 RH |
1167 | ;; |
1168 | ||
13b2be9c DJ |
1169 | *=*) |
1170 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1171 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1172 | case $ac_envvar in #( |
1173 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1174 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1175 | esac | |
1176 | eval $ac_envvar=\$ac_optarg | |
13b2be9c DJ |
1177 | export $ac_envvar ;; |
1178 | ||
252b5132 | 1179 | *) |
13b2be9c | 1180 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1181 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
13b2be9c | 1182 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1183 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
13b2be9c | 1184 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1185 | ;; |
1186 | ||
1187 | esac | |
1188 | done | |
1189 | ||
1190 | if test -n "$ac_prev"; then | |
13b2be9c | 1191 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1192 | as_fn_error "missing argument to $ac_option" |
c8615825 | 1193 | fi |
c8615825 | 1194 | |
81ecdfbb RW |
1195 | if test -n "$ac_unrecognized_opts"; then |
1196 | case $enable_option_checking in | |
1197 | no) ;; | |
1198 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1199 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
13b2be9c | 1200 | esac |
81ecdfbb | 1201 | fi |
252b5132 | 1202 | |
81ecdfbb RW |
1203 | # Check all directory arguments for consistency. |
1204 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1205 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1206 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1207 | libdir localedir mandir | |
252b5132 | 1208 | do |
81ecdfbb RW |
1209 | eval ac_val=\$$ac_var |
1210 | # Remove trailing slashes. | |
1211 | case $ac_val in | |
1212 | */ ) | |
1213 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1214 | eval $ac_var=\$ac_val;; | |
1215 | esac | |
1216 | # Be sure to have absolute directory names. | |
13b2be9c | 1217 | case $ac_val in |
81ecdfbb RW |
1218 | [\\/$]* | ?:[\\/]* ) continue;; |
1219 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1220 | esac |
81ecdfbb | 1221 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1222 | done |
1223 | ||
13b2be9c DJ |
1224 | # There might be people who depend on the old broken behavior: `$host' |
1225 | # used to hold the argument of --host etc. | |
1226 | # FIXME: To remove some day. | |
1227 | build=$build_alias | |
1228 | host=$host_alias | |
1229 | target=$target_alias | |
1230 | ||
1231 | # FIXME: To remove some day. | |
1232 | if test "x$host_alias" != x; then | |
1233 | if test "x$build_alias" = x; then | |
1234 | cross_compiling=maybe | |
81ecdfbb | 1235 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
13b2be9c DJ |
1236 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1237 | elif test "x$build_alias" != "x$host_alias"; then | |
1238 | cross_compiling=yes | |
1239 | fi | |
1240 | fi | |
9b2b7d69 | 1241 | |
13b2be9c DJ |
1242 | ac_tool_prefix= |
1243 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1244 | ||
1245 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1246 | |
252b5132 | 1247 | |
81ecdfbb RW |
1248 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1249 | ac_ls_di=`ls -di .` && | |
1250 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1251 | as_fn_error "working directory cannot be determined" | |
1252 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1253 | as_fn_error "pwd does not report name of working directory" | |
1254 | ||
1255 | ||
252b5132 RH |
1256 | # Find the source files, if location was not specified. |
1257 | if test -z "$srcdir"; then | |
1258 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1259 | # Try the directory containing this script, then the parent directory. |
1260 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1261 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1262 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1263 | X"$as_myself" : 'X\(//\)$' \| \ | |
1264 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1265 | $as_echo X"$as_myself" | | |
1266 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1267 | s//\1/ | |
1268 | q | |
1269 | } | |
1270 | /^X\(\/\/\)[^/].*/{ | |
1271 | s//\1/ | |
1272 | q | |
1273 | } | |
1274 | /^X\(\/\/\)$/{ | |
1275 | s//\1/ | |
1276 | q | |
1277 | } | |
1278 | /^X\(\/\).*/{ | |
1279 | s//\1/ | |
1280 | q | |
1281 | } | |
1282 | s/.*/./; q'` | |
252b5132 | 1283 | srcdir=$ac_confdir |
81ecdfbb | 1284 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1285 | srcdir=.. |
1286 | fi | |
1287 | else | |
1288 | ac_srcdir_defaulted=no | |
1289 | fi | |
81ecdfbb RW |
1290 | if test ! -r "$srcdir/$ac_unique_file"; then |
1291 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1292 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1293 | fi | |
1294 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1295 | ac_abs_confdir=`( | |
1296 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1297 | pwd)` | |
1298 | # When building in place, set srcdir=. | |
1299 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1300 | srcdir=. | |
1301 | fi | |
1302 | # Remove unnecessary trailing slashes from srcdir. | |
1303 | # Double slashes in file names in object file debugging info | |
1304 | # mess up M-x gdb in Emacs. | |
1305 | case $srcdir in | |
1306 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1307 | esac | |
1308 | for ac_var in $ac_precious_vars; do | |
1309 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1310 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1311 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1312 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1313 | done | |
d6d788bd | 1314 | |
13b2be9c DJ |
1315 | # |
1316 | # Report the --help message. | |
1317 | # | |
1318 | if test "$ac_init_help" = "long"; then | |
1319 | # Omit some internal or obsolete options to make the list less imposing. | |
1320 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1321 | cat <<_ACEOF | |
1322 | \`configure' configures this package to adapt to many kinds of systems. | |
9b2b7d69 | 1323 | |
13b2be9c | 1324 | Usage: $0 [OPTION]... [VAR=VALUE]... |
9b2b7d69 | 1325 | |
13b2be9c DJ |
1326 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1327 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
9b2b7d69 | 1328 | |
13b2be9c | 1329 | Defaults for the options are specified in brackets. |
9b2b7d69 | 1330 | |
13b2be9c DJ |
1331 | Configuration: |
1332 | -h, --help display this help and exit | |
1333 | --help=short display options specific to this package | |
1334 | --help=recursive display the short help of all the included packages | |
1335 | -V, --version display version information and exit | |
1336 | -q, --quiet, --silent do not print \`checking...' messages | |
1337 | --cache-file=FILE cache test results in FILE [disabled] | |
1338 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1339 | -n, --no-create do not create output files | |
1340 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1341 | ||
13b2be9c DJ |
1342 | Installation directories: |
1343 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1344 | [$ac_default_prefix] |
13b2be9c | 1345 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1346 | [PREFIX] |
9b2b7d69 | 1347 | |
13b2be9c DJ |
1348 | By default, \`make install' will install all the files in |
1349 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1350 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1351 | for instance \`--prefix=\$HOME'. | |
9b2b7d69 | 1352 | |
13b2be9c | 1353 | For better control, use the options below. |
9b2b7d69 | 1354 | |
13b2be9c | 1355 | Fine tuning of the installation directories: |
81ecdfbb RW |
1356 | --bindir=DIR user executables [EPREFIX/bin] |
1357 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1358 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1359 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1360 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1361 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1362 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1363 | --includedir=DIR C header files [PREFIX/include] | |
1364 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1365 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1366 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1367 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1368 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1369 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1370 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1371 | --htmldir=DIR html documentation [DOCDIR] | |
1372 | --dvidir=DIR dvi documentation [DOCDIR] | |
1373 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1374 | --psdir=DIR ps documentation [DOCDIR] | |
13b2be9c | 1375 | _ACEOF |
9b2b7d69 | 1376 | |
13b2be9c | 1377 | cat <<\_ACEOF |
9b2b7d69 | 1378 | |
13b2be9c DJ |
1379 | Program names: |
1380 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1381 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1382 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
9b2b7d69 | 1383 | |
13b2be9c DJ |
1384 | System types: |
1385 | --build=BUILD configure for building on BUILD [guessed] | |
1386 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1387 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1388 | _ACEOF | |
9b2b7d69 | 1389 | fi |
9b2b7d69 | 1390 | |
13b2be9c | 1391 | if test -n "$ac_init_help"; then |
9b2b7d69 | 1392 | |
13b2be9c | 1393 | cat <<\_ACEOF |
9b2b7d69 | 1394 | |
13b2be9c | 1395 | Optional Features: |
81ecdfbb | 1396 | --disable-option-checking ignore unrecognized --enable/--with options |
13b2be9c DJ |
1397 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1398 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ab509236 L |
1399 | --disable-dependency-tracking speeds up one-time build |
1400 | --enable-dependency-tracking do not reject slow dependency extractors | |
da2f07f1 | 1401 | --enable-plugins Enable support for plugins (defaults no) |
d053aef8 | 1402 | --disable-largefile omit support for large files |
81ecdfbb RW |
1403 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1404 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1405 | --enable-fast-install[=PKGS] |
1406 | optimize for fast installation [default=yes] | |
13b2be9c | 1407 | --disable-libtool-lock avoid locking (might break parallel builds) |
241a6c40 | 1408 | --enable-targets alternative target configurations besides the primary |
c43a438d | 1409 | --enable-checking enable run-time checks |
241a6c40 AM |
1410 | --enable-werror treat compile warnings as errors |
1411 | --enable-build-warnings enable build-time compiler warnings | |
13b2be9c | 1412 | --disable-nls do not use Native Language Support |
ab509236 L |
1413 | --enable-maintainer-mode enable make rules and dependencies not useful |
1414 | (and sometimes confusing) to the casual installer | |
9b2b7d69 | 1415 | |
13b2be9c DJ |
1416 | Optional Packages: |
1417 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1418 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1419 | --with-pic try to use only PIC/non-PIC objects [default=use |
1420 | both] | |
1421 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
9b2b7d69 | 1422 | |
13b2be9c DJ |
1423 | Some influential environment variables: |
1424 | CC C compiler command | |
1425 | CFLAGS C compiler flags | |
1426 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1427 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1428 | LIBS libraries to pass to the linker, e.g. -l<library> |
1429 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1430 | you have headers in a nonstandard directory <include dir> | |
13b2be9c | 1431 | CPP C preprocessor |
81ecdfbb RW |
1432 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1433 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1434 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1435 | This script will default YFLAGS to the empty string to avoid a | |
1436 | default value of `-d' given by some make applications. | |
13b2be9c DJ |
1437 | |
1438 | Use these variables to override the choices made by `configure' or to help | |
1439 | it to find libraries and programs with nonstandard names/locations. | |
1440 | ||
81ecdfbb | 1441 | Report bugs to the package provider. |
13b2be9c | 1442 | _ACEOF |
81ecdfbb | 1443 | ac_status=$? |
9b2b7d69 | 1444 | fi |
9b2b7d69 | 1445 | |
13b2be9c DJ |
1446 | if test "$ac_init_help" = "recursive"; then |
1447 | # If there are subdirs, report their specific --help. | |
13b2be9c | 1448 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1449 | test -d "$ac_dir" || |
1450 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1451 | continue | |
13b2be9c DJ |
1452 | ac_builddir=. |
1453 | ||
81ecdfbb RW |
1454 | case "$ac_dir" in |
1455 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1456 | *) | |
1457 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1458 | # A ".." for each directory in $ac_dir_suffix. | |
1459 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1460 | case $ac_top_builddir_sub in | |
1461 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1462 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1463 | esac ;; | |
1464 | esac | |
1465 | ac_abs_top_builddir=$ac_pwd | |
1466 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1467 | # for backward compatibility: | |
1468 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 1469 | |
13b2be9c | 1470 | case $srcdir in |
81ecdfbb | 1471 | .) # We are building in place. |
13b2be9c | 1472 | ac_srcdir=. |
81ecdfbb RW |
1473 | ac_top_srcdir=$ac_top_builddir_sub |
1474 | ac_abs_top_srcdir=$ac_pwd ;; | |
1475 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 1476 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1477 | ac_top_srcdir=$srcdir |
1478 | ac_abs_top_srcdir=$srcdir ;; | |
1479 | *) # Relative name. | |
1480 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1481 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1482 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ab509236 | 1483 | esac |
81ecdfbb RW |
1484 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1485 | ||
1486 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1487 | # Check for guested configure. | |
1488 | if test -f "$ac_srcdir/configure.gnu"; then | |
1489 | echo && | |
1490 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1491 | elif test -f "$ac_srcdir/configure"; then | |
1492 | echo && | |
1493 | $SHELL "$ac_srcdir/configure" --help=recursive | |
13b2be9c | 1494 | else |
81ecdfbb RW |
1495 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1496 | fi || ac_status=$? | |
1497 | cd "$ac_pwd" || { ac_status=$?; break; } | |
13b2be9c DJ |
1498 | done |
1499 | fi | |
6840198f | 1500 | |
81ecdfbb | 1501 | test -n "$ac_init_help" && exit $ac_status |
13b2be9c DJ |
1502 | if $ac_init_version; then |
1503 | cat <<\_ACEOF | |
81ecdfbb RW |
1504 | configure |
1505 | generated by GNU Autoconf 2.64 | |
c8615825 | 1506 | |
81ecdfbb | 1507 | Copyright (C) 2009 Free Software Foundation, Inc. |
13b2be9c DJ |
1508 | This configure script is free software; the Free Software Foundation |
1509 | gives unlimited permission to copy, distribute and modify it. | |
1510 | _ACEOF | |
81ecdfbb | 1511 | exit |
13b2be9c | 1512 | fi |
c8615825 | 1513 | |
81ecdfbb RW |
1514 | ## ------------------------ ## |
1515 | ## Autoconf initialization. ## | |
1516 | ## ------------------------ ## | |
c8615825 | 1517 | |
81ecdfbb RW |
1518 | # ac_fn_c_try_compile LINENO |
1519 | # -------------------------- | |
1520 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1521 | ac_fn_c_try_compile () | |
13b2be9c | 1522 | { |
81ecdfbb RW |
1523 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1524 | rm -f conftest.$ac_objext | |
1525 | if { { ac_try="$ac_compile" | |
1526 | case "(($ac_try" in | |
1527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1528 | *) ac_try_echo=$ac_try;; | |
1529 | esac | |
1530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1531 | $as_echo "$ac_try_echo"; } >&5 | |
1532 | (eval "$ac_compile") 2>conftest.err | |
1533 | ac_status=$? | |
1534 | if test -s conftest.err; then | |
1535 | grep -v '^ *+' conftest.err >conftest.er1 | |
1536 | cat conftest.er1 >&5 | |
1537 | mv -f conftest.er1 conftest.err | |
1538 | fi | |
1539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1540 | test $ac_status = 0; } && { | |
1541 | test -z "$ac_c_werror_flag" || | |
1542 | test ! -s conftest.err | |
1543 | } && test -s conftest.$ac_objext; then : | |
1544 | ac_retval=0 | |
1545 | else | |
1546 | $as_echo "$as_me: failed program was:" >&5 | |
1547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13b2be9c | 1548 | |
81ecdfbb RW |
1549 | ac_retval=1 |
1550 | fi | |
1551 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1552 | return $ac_retval | |
13b2be9c | 1553 | |
81ecdfbb | 1554 | } # ac_fn_c_try_compile |
13b2be9c | 1555 | |
81ecdfbb RW |
1556 | # ac_fn_c_try_link LINENO |
1557 | # ----------------------- | |
1558 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1559 | ac_fn_c_try_link () | |
1560 | { | |
1561 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1563 | if { { ac_try="$ac_link" | |
1564 | case "(($ac_try" in | |
1565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1566 | *) ac_try_echo=$ac_try;; | |
1567 | esac | |
1568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1569 | $as_echo "$ac_try_echo"; } >&5 | |
1570 | (eval "$ac_link") 2>conftest.err | |
1571 | ac_status=$? | |
1572 | if test -s conftest.err; then | |
1573 | grep -v '^ *+' conftest.err >conftest.er1 | |
1574 | cat conftest.er1 >&5 | |
1575 | mv -f conftest.er1 conftest.err | |
1576 | fi | |
1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1578 | test $ac_status = 0; } && { | |
1579 | test -z "$ac_c_werror_flag" || | |
1580 | test ! -s conftest.err | |
1581 | } && test -s conftest$ac_exeext && { | |
1582 | test "$cross_compiling" = yes || | |
1583 | $as_test_x conftest$ac_exeext | |
1584 | }; then : | |
1585 | ac_retval=0 | |
1586 | else | |
1587 | $as_echo "$as_me: failed program was:" >&5 | |
1588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1589 | ||
1590 | ac_retval=1 | |
1591 | fi | |
1592 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1593 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1594 | # interfere with the next link command; also delete a directory that is | |
1595 | # left behind by Apple's compiler. We do this before executing the actions. | |
1596 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1597 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1598 | return $ac_retval | |
1599 | ||
1600 | } # ac_fn_c_try_link | |
1601 | ||
1602 | # ac_fn_c_try_cpp LINENO | |
1603 | # ---------------------- | |
1604 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1605 | ac_fn_c_try_cpp () | |
1606 | { | |
1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1608 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1609 | case "(($ac_try" in | |
1610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1611 | *) ac_try_echo=$ac_try;; | |
1612 | esac | |
1613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1614 | $as_echo "$ac_try_echo"; } >&5 | |
1615 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1616 | ac_status=$? | |
1617 | if test -s conftest.err; then | |
1618 | grep -v '^ *+' conftest.err >conftest.er1 | |
1619 | cat conftest.er1 >&5 | |
1620 | mv -f conftest.er1 conftest.err | |
1621 | fi | |
1622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1623 | test $ac_status = 0; } >/dev/null && { | |
1624 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1625 | test ! -s conftest.err | |
1626 | }; then : | |
1627 | ac_retval=0 | |
1628 | else | |
1629 | $as_echo "$as_me: failed program was:" >&5 | |
1630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1631 | ||
1632 | ac_retval=1 | |
1633 | fi | |
1634 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1635 | return $ac_retval | |
1636 | ||
1637 | } # ac_fn_c_try_cpp | |
1638 | ||
1639 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1640 | # ------------------------------------------------------- | |
1641 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1642 | # the include files in INCLUDES and setting the cache variable VAR | |
1643 | # accordingly. | |
1644 | ac_fn_c_check_header_mongrel () | |
1645 | { | |
1646 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1647 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1649 | $as_echo_n "checking for $2... " >&6; } | |
1650 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1651 | $as_echo_n "(cached) " >&6 | |
1652 | fi | |
1653 | eval ac_res=\$$3 | |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1655 | $as_echo "$ac_res" >&6; } | |
1656 | else | |
1657 | # Is the header compilable? | |
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1659 | $as_echo_n "checking $2 usability... " >&6; } | |
1660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1661 | /* end confdefs.h. */ | |
1662 | $4 | |
1663 | #include <$2> | |
1664 | _ACEOF | |
1665 | if ac_fn_c_try_compile "$LINENO"; then : | |
1666 | ac_header_compiler=yes | |
1667 | else | |
1668 | ac_header_compiler=no | |
1669 | fi | |
1670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1672 | $as_echo "$ac_header_compiler" >&6; } | |
1673 | ||
1674 | # Is the header present? | |
1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1676 | $as_echo_n "checking $2 presence... " >&6; } | |
1677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1678 | /* end confdefs.h. */ | |
1679 | #include <$2> | |
1680 | _ACEOF | |
1681 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1682 | ac_header_preproc=yes | |
1683 | else | |
1684 | ac_header_preproc=no | |
1685 | fi | |
1686 | rm -f conftest.err conftest.$ac_ext | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1688 | $as_echo "$ac_header_preproc" >&6; } | |
1689 | ||
1690 | # So? What about this header? | |
1691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1692 | yes:no: ) | |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1694 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1696 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1697 | ;; | |
1698 | no:yes:* ) | |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1700 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1702 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1704 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1706 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1708 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1709 | ;; | |
1710 | esac | |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1712 | $as_echo_n "checking for $2... " >&6; } | |
1713 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1714 | $as_echo_n "(cached) " >&6 | |
1715 | else | |
1716 | eval "$3=\$ac_header_compiler" | |
1717 | fi | |
1718 | eval ac_res=\$$3 | |
1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1720 | $as_echo "$ac_res" >&6; } | |
1721 | fi | |
1722 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1723 | ||
1724 | } # ac_fn_c_check_header_mongrel | |
1725 | ||
1726 | # ac_fn_c_try_run LINENO | |
1727 | # ---------------------- | |
1728 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1729 | # that executables *can* be run. | |
1730 | ac_fn_c_try_run () | |
1731 | { | |
1732 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1733 | if { { ac_try="$ac_link" | |
1734 | case "(($ac_try" in | |
1735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1736 | *) ac_try_echo=$ac_try;; | |
1737 | esac | |
1738 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1739 | $as_echo "$ac_try_echo"; } >&5 | |
1740 | (eval "$ac_link") 2>&5 | |
1741 | ac_status=$? | |
1742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1743 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1744 | { { case "(($ac_try" in | |
1745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1746 | *) ac_try_echo=$ac_try;; | |
1747 | esac | |
1748 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1749 | $as_echo "$ac_try_echo"; } >&5 | |
1750 | (eval "$ac_try") 2>&5 | |
1751 | ac_status=$? | |
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1753 | test $ac_status = 0; }; }; then : | |
1754 | ac_retval=0 | |
1755 | else | |
1756 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1757 | $as_echo "$as_me: failed program was:" >&5 | |
1758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1759 | ||
1760 | ac_retval=$ac_status | |
1761 | fi | |
1762 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1763 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1764 | return $ac_retval | |
1765 | ||
1766 | } # ac_fn_c_try_run | |
1767 | ||
1768 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1769 | # ------------------------------------------------------- | |
1770 | # Tests whether HEADER exists and can be compiled using the include files in | |
1771 | # INCLUDES, setting the cache variable VAR accordingly. | |
1772 | ac_fn_c_check_header_compile () | |
1773 | { | |
1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1776 | $as_echo_n "checking for $2... " >&6; } | |
1777 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1778 | $as_echo_n "(cached) " >&6 | |
1779 | else | |
1780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1781 | /* end confdefs.h. */ | |
1782 | $4 | |
1783 | #include <$2> | |
1784 | _ACEOF | |
1785 | if ac_fn_c_try_compile "$LINENO"; then : | |
1786 | eval "$3=yes" | |
1787 | else | |
1788 | eval "$3=no" | |
1789 | fi | |
1790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1791 | fi | |
1792 | eval ac_res=\$$3 | |
1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1794 | $as_echo "$ac_res" >&6; } | |
1795 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1796 | ||
1797 | } # ac_fn_c_check_header_compile | |
1798 | ||
1799 | # ac_fn_c_check_func LINENO FUNC VAR | |
1800 | # ---------------------------------- | |
1801 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1802 | ac_fn_c_check_func () | |
1803 | { | |
1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1806 | $as_echo_n "checking for $2... " >&6; } | |
1807 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1808 | $as_echo_n "(cached) " >&6 | |
1809 | else | |
1810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1811 | /* end confdefs.h. */ | |
1812 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1813 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1814 | #define $2 innocuous_$2 | |
1815 | ||
1816 | /* System header to define __stub macros and hopefully few prototypes, | |
1817 | which can conflict with char $2 (); below. | |
1818 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1819 | <limits.h> exists even on freestanding compilers. */ | |
1820 | ||
1821 | #ifdef __STDC__ | |
1822 | # include <limits.h> | |
1823 | #else | |
1824 | # include <assert.h> | |
1825 | #endif | |
1826 | ||
1827 | #undef $2 | |
1828 | ||
1829 | /* Override any GCC internal prototype to avoid an error. | |
1830 | Use char because int might match the return type of a GCC | |
1831 | builtin and then its argument prototype would still apply. */ | |
1832 | #ifdef __cplusplus | |
1833 | extern "C" | |
1834 | #endif | |
1835 | char $2 (); | |
1836 | /* The GNU C library defines this for functions which it implements | |
1837 | to always fail with ENOSYS. Some functions are actually named | |
1838 | something starting with __ and the normal name is an alias. */ | |
1839 | #if defined __stub_$2 || defined __stub___$2 | |
1840 | choke me | |
1841 | #endif | |
1842 | ||
1843 | int | |
1844 | main () | |
1845 | { | |
1846 | return $2 (); | |
1847 | ; | |
1848 | return 0; | |
1849 | } | |
1850 | _ACEOF | |
1851 | if ac_fn_c_try_link "$LINENO"; then : | |
1852 | eval "$3=yes" | |
1853 | else | |
1854 | eval "$3=no" | |
1855 | fi | |
1856 | rm -f core conftest.err conftest.$ac_objext \ | |
1857 | conftest$ac_exeext conftest.$ac_ext | |
1858 | fi | |
1859 | eval ac_res=\$$3 | |
1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1861 | $as_echo "$ac_res" >&6; } | |
1862 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1863 | ||
1864 | } # ac_fn_c_check_func | |
1865 | ||
1866 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
1867 | # ------------------------------------ | |
1868 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1869 | ac_fn_c_check_decl () | |
1870 | { | |
1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | |
1873 | $as_echo_n "checking whether $2 is declared... " >&6; } | |
1874 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1875 | $as_echo_n "(cached) " >&6 | |
1876 | else | |
1877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1878 | /* end confdefs.h. */ | |
1879 | $4 | |
1880 | int | |
1881 | main () | |
1882 | { | |
1883 | #ifndef $2 | |
1884 | (void) $2; | |
1885 | #endif | |
1886 | ||
1887 | ; | |
1888 | return 0; | |
1889 | } | |
1890 | _ACEOF | |
1891 | if ac_fn_c_try_compile "$LINENO"; then : | |
1892 | eval "$3=yes" | |
1893 | else | |
1894 | eval "$3=no" | |
1895 | fi | |
1896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1897 | fi | |
1898 | eval ac_res=\$$3 | |
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1900 | $as_echo "$ac_res" >&6; } | |
1901 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1902 | ||
1903 | } # ac_fn_c_check_decl | |
1904 | cat >config.log <<_ACEOF | |
1905 | This file contains any messages produced by compilers while | |
1906 | running configure, to aid debugging if configure makes a mistake. | |
1907 | ||
1908 | It was created by $as_me, which was | |
1909 | generated by GNU Autoconf 2.64. Invocation command line was | |
1910 | ||
1911 | $ $0 $@ | |
1912 | ||
1913 | _ACEOF | |
1914 | exec 5>>config.log | |
1915 | { | |
1916 | cat <<_ASUNAME | |
1917 | ## --------- ## | |
1918 | ## Platform. ## | |
1919 | ## --------- ## | |
1920 | ||
1921 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1922 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1923 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1924 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1925 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1926 | ||
1927 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1928 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1929 | ||
1930 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
13b2be9c DJ |
1931 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1932 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1933 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
13b2be9c DJ |
1934 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1935 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1936 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1937 | ||
1938 | _ASUNAME | |
1939 | ||
1940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1941 | for as_dir in $PATH | |
1942 | do | |
1943 | IFS=$as_save_IFS | |
1944 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1945 | $as_echo "PATH: $as_dir" |
1946 | done | |
1947 | IFS=$as_save_IFS | |
9b2b7d69 | 1948 | |
13b2be9c | 1949 | } >&5 |
6840198f | 1950 | |
13b2be9c | 1951 | cat >&5 <<_ACEOF |
c8615825 | 1952 | |
9b2b7d69 | 1953 | |
13b2be9c DJ |
1954 | ## ----------- ## |
1955 | ## Core tests. ## | |
1956 | ## ----------- ## | |
87ccc1b0 | 1957 | |
13b2be9c | 1958 | _ACEOF |
9b2b7d69 | 1959 | |
13b2be9c DJ |
1960 | |
1961 | # Keep a trace of the command line. | |
1962 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1963 | # Strip out --silent because we don't want to record it for future runs. | |
1964 | # Also quote any args containing shell meta-characters. | |
1965 | # Make two passes to allow for proper duplicate-argument suppression. | |
1966 | ac_configure_args= | |
1967 | ac_configure_args0= | |
1968 | ac_configure_args1= | |
13b2be9c DJ |
1969 | ac_must_keep_next=false |
1970 | for ac_pass in 1 2 | |
1971 | do | |
1972 | for ac_arg | |
1973 | do | |
1974 | case $ac_arg in | |
1975 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1976 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1977 | | -silent | --silent | --silen | --sile | --sil) | |
1978 | continue ;; | |
81ecdfbb RW |
1979 | *\'*) |
1980 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13b2be9c DJ |
1981 | esac |
1982 | case $ac_pass in | |
81ecdfbb | 1983 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
13b2be9c | 1984 | 2) |
81ecdfbb | 1985 | as_fn_append ac_configure_args1 " '$ac_arg'" |
13b2be9c | 1986 | if test $ac_must_keep_next = true; then |
ab509236 | 1987 | ac_must_keep_next=false # Got value, back to normal. |
13b2be9c | 1988 | else |
ab509236 L |
1989 | case $ac_arg in |
1990 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1991 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1992 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1993 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1994 | case "$ac_configure_args0 " in | |
1995 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1996 | esac | |
1997 | ;; | |
1998 | -* ) ac_must_keep_next=true ;; | |
1999 | esac | |
13b2be9c | 2000 | fi |
81ecdfbb | 2001 | as_fn_append ac_configure_args " '$ac_arg'" |
c8615825 AM |
2002 | ;; |
2003 | esac | |
2004 | done | |
13b2be9c | 2005 | done |
81ecdfbb RW |
2006 | { ac_configure_args0=; unset ac_configure_args0;} |
2007 | { ac_configure_args1=; unset ac_configure_args1;} | |
13b2be9c DJ |
2008 | |
2009 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2010 | # config.log. We remove comments because anyway the quotes in there | |
2011 | # would cause problems or look ugly. | |
81ecdfbb RW |
2012 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2013 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
13b2be9c DJ |
2014 | trap 'exit_status=$? |
2015 | # Save into config.log some information that might help in debugging. | |
2016 | { | |
2017 | echo | |
2018 | ||
2019 | cat <<\_ASBOX | |
2020 | ## ---------------- ## | |
2021 | ## Cache variables. ## | |
2022 | ## ---------------- ## | |
2023 | _ASBOX | |
2024 | echo | |
2025 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2026 | ( |
2027 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2028 | eval ac_val=\$$ac_var | |
2029 | case $ac_val in #( | |
2030 | *${as_nl}*) | |
2031 | case $ac_var in #( | |
2032 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2033 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2034 | esac | |
2035 | case $ac_var in #( | |
2036 | _ | IFS | as_nl) ;; #( | |
2037 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2038 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2039 | esac ;; | |
2040 | esac | |
2041 | done | |
13b2be9c | 2042 | (set) 2>&1 | |
81ecdfbb RW |
2043 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2044 | *${as_nl}ac_space=\ *) | |
13b2be9c | 2045 | sed -n \ |
81ecdfbb RW |
2046 | "s/'\''/'\''\\\\'\'''\''/g; |
2047 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2048 | ;; #( | |
13b2be9c | 2049 | *) |
81ecdfbb | 2050 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 2051 | ;; |
81ecdfbb RW |
2052 | esac | |
2053 | sort | |
2054 | ) | |
13b2be9c DJ |
2055 | echo |
2056 | ||
2057 | cat <<\_ASBOX | |
2058 | ## ----------------- ## | |
2059 | ## Output variables. ## | |
2060 | ## ----------------- ## | |
2061 | _ASBOX | |
2062 | echo | |
2063 | for ac_var in $ac_subst_vars | |
2064 | do | |
81ecdfbb RW |
2065 | eval ac_val=\$$ac_var |
2066 | case $ac_val in | |
2067 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2068 | esac | |
2069 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2070 | done | sort |
2071 | echo | |
2072 | ||
2073 | if test -n "$ac_subst_files"; then | |
2074 | cat <<\_ASBOX | |
81ecdfbb RW |
2075 | ## ------------------- ## |
2076 | ## File substitutions. ## | |
2077 | ## ------------------- ## | |
13b2be9c DJ |
2078 | _ASBOX |
2079 | echo | |
2080 | for ac_var in $ac_subst_files | |
2081 | do | |
81ecdfbb RW |
2082 | eval ac_val=\$$ac_var |
2083 | case $ac_val in | |
2084 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2085 | esac | |
2086 | $as_echo "$ac_var='\''$ac_val'\''" | |
13b2be9c DJ |
2087 | done | sort |
2088 | echo | |
2089 | fi | |
2090 | ||
2091 | if test -s confdefs.h; then | |
2092 | cat <<\_ASBOX | |
2093 | ## ----------- ## | |
2094 | ## confdefs.h. ## | |
2095 | ## ----------- ## | |
2096 | _ASBOX | |
2097 | echo | |
81ecdfbb | 2098 | cat confdefs.h |
13b2be9c DJ |
2099 | echo |
2100 | fi | |
2101 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2102 | $as_echo "$as_me: caught signal $ac_signal" |
2103 | $as_echo "$as_me: exit $exit_status" | |
13b2be9c | 2104 | } >&5 |
81ecdfbb RW |
2105 | rm -f core *.core core.conftest.* && |
2106 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
13b2be9c | 2107 | exit $exit_status |
81ecdfbb | 2108 | ' 0 |
13b2be9c | 2109 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2110 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
13b2be9c DJ |
2111 | done |
2112 | ac_signal=0 | |
2113 | ||
2114 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2115 | rm -f -r conftest* confdefs.h |
2116 | ||
2117 | $as_echo "/* confdefs.h */" > confdefs.h | |
13b2be9c DJ |
2118 | |
2119 | # Predefined preprocessor variables. | |
2120 | ||
2121 | cat >>confdefs.h <<_ACEOF | |
2122 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2123 | _ACEOF | |
2124 | ||
13b2be9c DJ |
2125 | cat >>confdefs.h <<_ACEOF |
2126 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2127 | _ACEOF | |
2128 | ||
13b2be9c DJ |
2129 | cat >>confdefs.h <<_ACEOF |
2130 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2131 | _ACEOF | |
2132 | ||
13b2be9c DJ |
2133 | cat >>confdefs.h <<_ACEOF |
2134 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2135 | _ACEOF | |
2136 | ||
13b2be9c DJ |
2137 | cat >>confdefs.h <<_ACEOF |
2138 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2139 | _ACEOF | |
2140 | ||
81ecdfbb RW |
2141 | cat >>confdefs.h <<_ACEOF |
2142 | #define PACKAGE_URL "$PACKAGE_URL" | |
2143 | _ACEOF | |
2144 | ||
13b2be9c DJ |
2145 | |
2146 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2147 | # Prefer an explicitly selected file to automatically selected ones. |
2148 | ac_site_file1=NONE | |
2149 | ac_site_file2=NONE | |
2150 | if test -n "$CONFIG_SITE"; then | |
2151 | ac_site_file1=$CONFIG_SITE | |
2152 | elif test "x$prefix" != xNONE; then | |
2153 | ac_site_file1=$prefix/share/config.site | |
2154 | ac_site_file2=$prefix/etc/config.site | |
2155 | else | |
2156 | ac_site_file1=$ac_default_prefix/share/config.site | |
2157 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2158 | fi | |
2159 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2160 | do | |
2161 | test "x$ac_site_file" = xNONE && continue | |
13b2be9c | 2162 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2164 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
13b2be9c DJ |
2165 | sed 's/^/| /' "$ac_site_file" >&5 |
2166 | . "$ac_site_file" | |
2167 | fi | |
2168 | done | |
2169 | ||
2170 | if test -r "$cache_file"; then | |
2171 | # Some versions of bash will fail to source /dev/null (special | |
2172 | # files actually), so we avoid doing that. | |
2173 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2175 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
13b2be9c | 2176 | case $cache_file in |
81ecdfbb RW |
2177 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2178 | *) . "./$cache_file";; | |
13b2be9c DJ |
2179 | esac |
2180 | fi | |
2181 | else | |
81ecdfbb RW |
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2183 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
13b2be9c DJ |
2184 | >$cache_file |
2185 | fi | |
2186 | ||
2187 | # Check that the precious variables saved in the cache have kept the same | |
2188 | # value. | |
2189 | ac_cache_corrupted=false | |
81ecdfbb | 2190 | for ac_var in $ac_precious_vars; do |
13b2be9c DJ |
2191 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2192 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2193 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2194 | eval ac_new_val=\$ac_env_${ac_var}_value | |
13b2be9c DJ |
2195 | case $ac_old_set,$ac_new_set in |
2196 | set,) | |
81ecdfbb RW |
2197 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2198 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
13b2be9c DJ |
2199 | ac_cache_corrupted=: ;; |
2200 | ,set) | |
81ecdfbb RW |
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2202 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
13b2be9c DJ |
2203 | ac_cache_corrupted=: ;; |
2204 | ,);; | |
2205 | *) | |
2206 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2207 | # differences in whitespace do not lead to failure. |
2208 | ac_old_val_w=`echo x $ac_old_val` | |
2209 | ac_new_val_w=`echo x $ac_new_val` | |
2210 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2212 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2213 | ac_cache_corrupted=: | |
2214 | else | |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2216 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2217 | eval $ac_var=\$ac_old_val | |
2218 | fi | |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2220 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2222 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
13b2be9c DJ |
2223 | fi;; |
2224 | esac | |
2225 | # Pass precious variables to config.status. | |
2226 | if test "$ac_new_set" = set; then | |
2227 | case $ac_new_val in | |
81ecdfbb | 2228 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
13b2be9c DJ |
2229 | *) ac_arg=$ac_var=$ac_new_val ;; |
2230 | esac | |
2231 | case " $ac_configure_args " in | |
2232 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2233 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
13b2be9c DJ |
2234 | esac |
2235 | fi | |
2236 | done | |
2237 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2239 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2241 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2242 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
13b2be9c | 2243 | fi |
81ecdfbb RW |
2244 | ## -------------------- ## |
2245 | ## Main body of script. ## | |
2246 | ## -------------------- ## | |
13b2be9c DJ |
2247 | |
2248 | ac_ext=c | |
2249 | ac_cpp='$CPP $CPPFLAGS' | |
2250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2253 | ||
2254 | ||
2255 | ||
13b2be9c | 2256 | |
da594c4a | 2257 | |
13b2be9c DJ |
2258 | |
2259 | ||
2260 | ac_aux_dir= | |
81ecdfbb RW |
2261 | for ac_dir in .. "$srcdir"/..; do |
2262 | for ac_t in install-sh install.sh shtool; do | |
2263 | if test -f "$ac_dir/$ac_t"; then | |
2264 | ac_aux_dir=$ac_dir | |
2265 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2266 | break 2 | |
2267 | fi | |
2268 | done | |
13b2be9c DJ |
2269 | done |
2270 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2271 | as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 |
13b2be9c | 2272 | fi |
81ecdfbb RW |
2273 | |
2274 | # These three variables are undocumented and unsupported, | |
2275 | # and are intended to be withdrawn in a future Autoconf release. | |
2276 | # They can cause serious problems if a builder's source tree is in a directory | |
2277 | # whose full name contains unusual characters. | |
2278 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2279 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2280 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2281 | ||
13b2be9c DJ |
2282 | |
2283 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2284 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2285 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2286 | ||
2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2288 | $as_echo_n "checking build system type... " >&6; } | |
2289 | if test "${ac_cv_build+set}" = set; then : | |
2290 | $as_echo_n "(cached) " >&6 | |
2291 | else | |
2292 | ac_build_alias=$build_alias | |
2293 | test "x$ac_build_alias" = x && | |
2294 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2295 | test "x$ac_build_alias" = x && | |
2296 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2297 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2298 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2299 | ||
2300 | fi | |
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2302 | $as_echo "$ac_cv_build" >&6; } | |
2303 | case $ac_cv_build in | |
2304 | *-*-*) ;; | |
2305 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2306 | esac | |
13b2be9c | 2307 | build=$ac_cv_build |
81ecdfbb RW |
2308 | ac_save_IFS=$IFS; IFS='-' |
2309 | set x $ac_cv_build | |
2310 | shift | |
2311 | build_cpu=$1 | |
2312 | build_vendor=$2 | |
2313 | shift; shift | |
2314 | # Remember, the first character of IFS is used to create $*, | |
2315 | # except with old shells: | |
2316 | build_os=$* | |
2317 | IFS=$ac_save_IFS | |
2318 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2319 | |
2320 | ||
81ecdfbb RW |
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2322 | $as_echo_n "checking host system type... " >&6; } | |
2323 | if test "${ac_cv_host+set}" = set; then : | |
2324 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 2325 | else |
81ecdfbb RW |
2326 | if test "x$host_alias" = x; then |
2327 | ac_cv_host=$ac_cv_build | |
2328 | else | |
2329 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2330 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2331 | fi | |
13b2be9c DJ |
2332 | |
2333 | fi | |
81ecdfbb RW |
2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2335 | $as_echo "$ac_cv_host" >&6; } | |
2336 | case $ac_cv_host in | |
2337 | *-*-*) ;; | |
2338 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2339 | esac | |
13b2be9c | 2340 | host=$ac_cv_host |
81ecdfbb RW |
2341 | ac_save_IFS=$IFS; IFS='-' |
2342 | set x $ac_cv_host | |
2343 | shift | |
2344 | host_cpu=$1 | |
2345 | host_vendor=$2 | |
2346 | shift; shift | |
2347 | # Remember, the first character of IFS is used to create $*, | |
2348 | # except with old shells: | |
2349 | host_os=$* | |
2350 | IFS=$ac_save_IFS | |
2351 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2352 | |
2353 | ||
81ecdfbb RW |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2355 | $as_echo_n "checking target system type... " >&6; } | |
2356 | if test "${ac_cv_target+set}" = set; then : | |
2357 | $as_echo_n "(cached) " >&6 | |
2358 | else | |
2359 | if test "x$target_alias" = x; then | |
2360 | ac_cv_target=$ac_cv_host | |
13b2be9c | 2361 | else |
81ecdfbb RW |
2362 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2363 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2364 | fi | |
13b2be9c DJ |
2365 | |
2366 | fi | |
81ecdfbb RW |
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2368 | $as_echo "$ac_cv_target" >&6; } | |
2369 | case $ac_cv_target in | |
2370 | *-*-*) ;; | |
2371 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2372 | esac | |
13b2be9c | 2373 | target=$ac_cv_target |
81ecdfbb RW |
2374 | ac_save_IFS=$IFS; IFS='-' |
2375 | set x $ac_cv_target | |
2376 | shift | |
2377 | target_cpu=$1 | |
2378 | target_vendor=$2 | |
2379 | shift; shift | |
2380 | # Remember, the first character of IFS is used to create $*, | |
2381 | # except with old shells: | |
2382 | target_os=$* | |
2383 | IFS=$ac_save_IFS | |
2384 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
13b2be9c DJ |
2385 | |
2386 | ||
2387 | # The aliases save the names the user supplied, while $host etc. | |
2388 | # will get canonicalized. | |
2389 | test -n "$target_alias" && | |
2390 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2391 | NONENONEs,x,x, && | |
2392 | program_prefix=${target_alias}- | |
2393 | ac_ext=c | |
2394 | ac_cpp='$CPP $CPPFLAGS' | |
2395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2398 | if test -n "$ac_tool_prefix"; then | |
2399 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2400 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2402 | $as_echo_n "checking for $ac_word... " >&6; } | |
2403 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2404 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2405 | else |
2406 | if test -n "$CC"; then | |
2407 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2408 | else | |
2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2410 | for as_dir in $PATH | |
2411 | do | |
2412 | IFS=$as_save_IFS | |
2413 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2414 | for ac_exec_ext in '' $ac_executable_extensions; do |
2415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2416 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2418 | break 2 |
2419 | fi | |
2420 | done | |
81ecdfbb RW |
2421 | done |
2422 | IFS=$as_save_IFS | |
13b2be9c DJ |
2423 | |
2424 | fi | |
2425 | fi | |
2426 | CC=$ac_cv_prog_CC | |
2427 | if test -n "$CC"; then | |
81ecdfbb RW |
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2429 | $as_echo "$CC" >&6; } | |
13b2be9c | 2430 | else |
81ecdfbb RW |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2432 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2433 | fi |
2434 | ||
81ecdfbb | 2435 | |
13b2be9c DJ |
2436 | fi |
2437 | if test -z "$ac_cv_prog_CC"; then | |
2438 | ac_ct_CC=$CC | |
2439 | # Extract the first word of "gcc", so it can be a program name with args. | |
2440 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2442 | $as_echo_n "checking for $ac_word... " >&6; } | |
2443 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2444 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2445 | else |
2446 | if test -n "$ac_ct_CC"; then | |
2447 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2448 | else | |
2449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2450 | for as_dir in $PATH | |
2451 | do | |
2452 | IFS=$as_save_IFS | |
2453 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2454 | for ac_exec_ext in '' $ac_executable_extensions; do |
2455 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2456 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2458 | break 2 |
2459 | fi | |
2460 | done | |
81ecdfbb RW |
2461 | done |
2462 | IFS=$as_save_IFS | |
13b2be9c DJ |
2463 | |
2464 | fi | |
2465 | fi | |
2466 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2467 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2469 | $as_echo "$ac_ct_CC" >&6; } | |
13b2be9c | 2470 | else |
81ecdfbb RW |
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2472 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2473 | fi |
2474 | ||
81ecdfbb RW |
2475 | if test "x$ac_ct_CC" = x; then |
2476 | CC="" | |
2477 | else | |
2478 | case $cross_compiling:$ac_tool_warned in | |
2479 | yes:) | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2481 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2482 | ac_tool_warned=yes ;; | |
2483 | esac | |
2484 | CC=$ac_ct_CC | |
2485 | fi | |
13b2be9c DJ |
2486 | else |
2487 | CC="$ac_cv_prog_CC" | |
2488 | fi | |
2489 | ||
2490 | if test -z "$CC"; then | |
81ecdfbb RW |
2491 | if test -n "$ac_tool_prefix"; then |
2492 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
13b2be9c | 2493 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2495 | $as_echo_n "checking for $ac_word... " >&6; } | |
2496 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2497 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2498 | else |
2499 | if test -n "$CC"; then | |
2500 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2501 | else | |
2502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2503 | for as_dir in $PATH | |
2504 | do | |
2505 | IFS=$as_save_IFS | |
2506 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2507 | for ac_exec_ext in '' $ac_executable_extensions; do |
2508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2509 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2511 | break 2 |
2512 | fi | |
2513 | done | |
81ecdfbb RW |
2514 | done |
2515 | IFS=$as_save_IFS | |
13b2be9c DJ |
2516 | |
2517 | fi | |
2518 | fi | |
2519 | CC=$ac_cv_prog_CC | |
2520 | if test -n "$CC"; then | |
81ecdfbb RW |
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2522 | $as_echo "$CC" >&6; } | |
13b2be9c | 2523 | else |
81ecdfbb RW |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2525 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2526 | fi |
2527 | ||
13b2be9c | 2528 | |
81ecdfbb | 2529 | fi |
13b2be9c DJ |
2530 | fi |
2531 | if test -z "$CC"; then | |
2532 | # Extract the first word of "cc", so it can be a program name with args. | |
2533 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2535 | $as_echo_n "checking for $ac_word... " >&6; } | |
2536 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2537 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2538 | else |
2539 | if test -n "$CC"; then | |
2540 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2541 | else | |
2542 | ac_prog_rejected=no | |
2543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2544 | for as_dir in $PATH | |
2545 | do | |
2546 | IFS=$as_save_IFS | |
2547 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2548 | for ac_exec_ext in '' $ac_executable_extensions; do |
2549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c DJ |
2550 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2551 | ac_prog_rejected=yes | |
2552 | continue | |
2553 | fi | |
2554 | ac_cv_prog_CC="cc" | |
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 | |
2561 | ||
13b2be9c DJ |
2562 | if test $ac_prog_rejected = yes; then |
2563 | # We found a bogon in the path, so make sure we never use it. | |
2564 | set dummy $ac_cv_prog_CC | |
2565 | shift | |
2566 | if test $# != 0; then | |
2567 | # We chose a different compiler from the bogus one. | |
2568 | # However, it has the same basename, so the bogon will be chosen | |
2569 | # first if we set CC to just the basename; use the full file name. | |
2570 | shift | |
2571 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2572 | fi | |
2573 | fi | |
2574 | fi | |
2575 | fi | |
2576 | CC=$ac_cv_prog_CC | |
2577 | if test -n "$CC"; then | |
81ecdfbb RW |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2579 | $as_echo "$CC" >&6; } | |
13b2be9c | 2580 | else |
81ecdfbb RW |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2582 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2583 | fi |
2584 | ||
81ecdfbb | 2585 | |
13b2be9c DJ |
2586 | fi |
2587 | if test -z "$CC"; then | |
2588 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2589 | for ac_prog in cl.exe |
13b2be9c DJ |
2590 | do |
2591 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2592 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2594 | $as_echo_n "checking for $ac_word... " >&6; } | |
2595 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2596 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2597 | else |
2598 | if test -n "$CC"; then | |
2599 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2600 | else | |
2601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2602 | for as_dir in $PATH | |
2603 | do | |
2604 | IFS=$as_save_IFS | |
2605 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2606 | for ac_exec_ext in '' $ac_executable_extensions; do |
2607 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2608 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2609 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2610 | break 2 |
2611 | fi | |
2612 | done | |
81ecdfbb RW |
2613 | done |
2614 | IFS=$as_save_IFS | |
13b2be9c DJ |
2615 | |
2616 | fi | |
2617 | fi | |
2618 | CC=$ac_cv_prog_CC | |
2619 | if test -n "$CC"; then | |
81ecdfbb RW |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2621 | $as_echo "$CC" >&6; } | |
13b2be9c | 2622 | else |
81ecdfbb RW |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2624 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2625 | fi |
2626 | ||
81ecdfbb | 2627 | |
13b2be9c DJ |
2628 | test -n "$CC" && break |
2629 | done | |
2630 | fi | |
2631 | if test -z "$CC"; then | |
2632 | ac_ct_CC=$CC | |
81ecdfbb | 2633 | for ac_prog in cl.exe |
13b2be9c DJ |
2634 | do |
2635 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2636 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2638 | $as_echo_n "checking for $ac_word... " >&6; } | |
2639 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2640 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
2641 | else |
2642 | if test -n "$ac_ct_CC"; then | |
2643 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2644 | else | |
2645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2646 | for as_dir in $PATH | |
2647 | do | |
2648 | IFS=$as_save_IFS | |
2649 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2650 | for ac_exec_ext in '' $ac_executable_extensions; do |
2651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13b2be9c | 2652 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13b2be9c DJ |
2654 | break 2 |
2655 | fi | |
2656 | done | |
81ecdfbb RW |
2657 | done |
2658 | IFS=$as_save_IFS | |
13b2be9c DJ |
2659 | |
2660 | fi | |
2661 | fi | |
2662 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2663 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2665 | $as_echo "$ac_ct_CC" >&6; } | |
13b2be9c | 2666 | else |
81ecdfbb RW |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2668 | $as_echo "no" >&6; } | |
13b2be9c DJ |
2669 | fi |
2670 | ||
81ecdfbb | 2671 | |
13b2be9c DJ |
2672 | test -n "$ac_ct_CC" && break |
2673 | done | |
2674 | ||
81ecdfbb RW |
2675 | if test "x$ac_ct_CC" = x; then |
2676 | CC="" | |
2677 | else | |
2678 | case $cross_compiling:$ac_tool_warned in | |
2679 | yes:) | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2681 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2682 | ac_tool_warned=yes ;; | |
2683 | esac | |
2684 | CC=$ac_ct_CC | |
2685 | fi | |
13b2be9c DJ |
2686 | fi |
2687 | ||
2688 | fi | |
2689 | ||
2690 | ||
81ecdfbb RW |
2691 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2692 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2693 | as_fn_error "no acceptable C compiler found in \$PATH | |
2694 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c DJ |
2695 | |
2696 | # Provide some information about the compiler. | |
81ecdfbb RW |
2697 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2698 | set X $ac_compile | |
2699 | ac_compiler=$2 | |
2700 | for ac_option in --version -v -V -qversion; do | |
2701 | { { ac_try="$ac_compiler $ac_option >&5" | |
2702 | case "(($ac_try" in | |
2703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2704 | *) ac_try_echo=$ac_try;; | |
2705 | esac | |
2706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2707 | $as_echo "$ac_try_echo"; } >&5 | |
2708 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
13b2be9c | 2709 | ac_status=$? |
81ecdfbb RW |
2710 | if test -s conftest.err; then |
2711 | sed '10a\ | |
2712 | ... rest of stderr output deleted ... | |
2713 | 10q' conftest.err >conftest.er1 | |
2714 | cat conftest.er1 >&5 | |
2715 | rm -f conftest.er1 conftest.err | |
2716 | fi | |
2717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2718 | test $ac_status = 0; } | |
2719 | done | |
13b2be9c | 2720 | |
81ecdfbb | 2721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
2722 | /* end confdefs.h. */ |
2723 | ||
2724 | int | |
2725 | main () | |
2726 | { | |
2727 | ||
2728 | ; | |
2729 | return 0; | |
2730 | } | |
2731 | _ACEOF | |
2732 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2733 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
13b2be9c DJ |
2734 | # Try to create an executable without -o first, disregard a.out. |
2735 | # It will help us diagnose broken compilers, and finding out an intuition | |
2736 | # of exeext. | |
81ecdfbb RW |
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2738 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2739 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2740 | ||
2741 | # The possible output files: | |
2742 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2743 | ||
2744 | ac_rmfiles= | |
2745 | for ac_file in $ac_files | |
2746 | do | |
2747 | case $ac_file in | |
2748 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2749 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2750 | esac | |
2751 | done | |
2752 | rm -f $ac_rmfiles | |
2753 | ||
2754 | if { { ac_try="$ac_link_default" | |
2755 | case "(($ac_try" in | |
2756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2757 | *) ac_try_echo=$ac_try;; | |
2758 | esac | |
2759 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2760 | $as_echo "$ac_try_echo"; } >&5 | |
2761 | (eval "$ac_link_default") 2>&5 | |
2762 | ac_status=$? | |
2763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2764 | test $ac_status = 0; }; then : | |
2765 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2766 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2767 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2768 | # so that the user can short-circuit this test for compilers unknown to | |
2769 | # Autoconf. | |
2770 | for ac_file in $ac_files '' | |
13b2be9c DJ |
2771 | do |
2772 | test -f "$ac_file" || continue | |
2773 | case $ac_file in | |
81ecdfbb | 2774 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
ab509236 | 2775 | ;; |
13b2be9c | 2776 | [ab].out ) |
ab509236 L |
2777 | # We found the default executable, but exeext='' is most |
2778 | # certainly right. | |
2779 | break;; | |
13b2be9c | 2780 | *.* ) |
81ecdfbb RW |
2781 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2782 | then :; else | |
2783 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2784 | fi | |
2785 | # We set ac_cv_exeext here because the later test for it is not | |
2786 | # safe: cross compilers may not add the suffix if given an `-o' | |
2787 | # argument, so we may need to know it at that point already. | |
2788 | # Even if this section looks crufty: it has the advantage of | |
2789 | # actually working. | |
ab509236 | 2790 | break;; |
13b2be9c | 2791 | * ) |
ab509236 | 2792 | break;; |
13b2be9c DJ |
2793 | esac |
2794 | done | |
81ecdfbb RW |
2795 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2796 | ||
13b2be9c | 2797 | else |
81ecdfbb RW |
2798 | ac_file='' |
2799 | fi | |
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2801 | $as_echo "$ac_file" >&6; } | |
2802 | if test -z "$ac_file"; then : | |
2803 | $as_echo "$as_me: failed program was:" >&5 | |
13b2be9c DJ |
2804 | sed 's/^/| /' conftest.$ac_ext >&5 |
2805 | ||
81ecdfbb RW |
2806 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2807 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2808 | { as_fn_set_status 77 | |
2809 | as_fn_error "C compiler cannot create executables | |
2810 | See \`config.log' for more details." "$LINENO" 5; }; } | |
13b2be9c | 2811 | fi |
13b2be9c | 2812 | ac_exeext=$ac_cv_exeext |
13b2be9c | 2813 | |
81ecdfbb | 2814 | # Check that the compiler produces executables we can run. If not, either |
13b2be9c | 2815 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2817 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
13b2be9c DJ |
2818 | # If not cross compiling, check that we can run a simple program. |
2819 | if test "$cross_compiling" != yes; then | |
2820 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2821 | { { case "(($ac_try" in |
2822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2823 | *) ac_try_echo=$ac_try;; | |
2824 | esac | |
2825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2826 | $as_echo "$ac_try_echo"; } >&5 | |
2827 | (eval "$ac_try") 2>&5 | |
13b2be9c | 2828 | ac_status=$? |
81ecdfbb RW |
2829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2830 | test $ac_status = 0; }; }; then | |
13b2be9c DJ |
2831 | cross_compiling=no |
2832 | else | |
2833 | if test "$cross_compiling" = maybe; then | |
2834 | cross_compiling=yes | |
2835 | else | |
81ecdfbb RW |
2836 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2838 | as_fn_error "cannot run C compiled programs. | |
13b2be9c | 2839 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2840 | See \`config.log' for more details." "$LINENO" 5; } |
13b2be9c DJ |
2841 | fi |
2842 | fi | |
2843 | fi | |
81ecdfbb RW |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2845 | $as_echo "yes" >&6; } | |
13b2be9c | 2846 | |
81ecdfbb | 2847 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
13b2be9c | 2848 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2849 | # Check that the compiler produces executables we can run. If not, either |
13b2be9c | 2850 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2852 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2854 | $as_echo "$cross_compiling" >&6; } | |
2855 | ||
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2857 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2858 | if { { ac_try="$ac_link" | |
2859 | case "(($ac_try" in | |
2860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2861 | *) ac_try_echo=$ac_try;; | |
2862 | esac | |
2863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2864 | $as_echo "$ac_try_echo"; } >&5 | |
2865 | (eval "$ac_link") 2>&5 | |
13b2be9c | 2866 | ac_status=$? |
81ecdfbb RW |
2867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2868 | test $ac_status = 0; }; then : | |
13b2be9c DJ |
2869 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2870 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2871 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2872 | # `rm'. | |
2873 | for ac_file in conftest.exe conftest conftest.*; do | |
2874 | test -f "$ac_file" || continue | |
2875 | case $ac_file in | |
81ecdfbb | 2876 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
13b2be9c | 2877 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
ab509236 | 2878 | break;; |
13b2be9c DJ |
2879 | * ) break;; |
2880 | esac | |
2881 | done | |
2882 | else | |
81ecdfbb RW |
2883 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2884 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2885 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2886 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c | 2887 | fi |
13b2be9c | 2888 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2890 | $as_echo "$ac_cv_exeext" >&6; } | |
13b2be9c DJ |
2891 | |
2892 | rm -f conftest.$ac_ext | |
2893 | EXEEXT=$ac_cv_exeext | |
2894 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2896 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2897 | if test "${ac_cv_objext+set}" = set; then : | |
2898 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 2899 | else |
81ecdfbb | 2900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
2901 | /* end confdefs.h. */ |
2902 | ||
2903 | int | |
2904 | main () | |
2905 | { | |
2906 | ||
2907 | ; | |
2908 | return 0; | |
2909 | } | |
2910 | _ACEOF | |
2911 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2912 | if { { ac_try="$ac_compile" |
2913 | case "(($ac_try" in | |
2914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2915 | *) ac_try_echo=$ac_try;; | |
2916 | esac | |
2917 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2918 | $as_echo "$ac_try_echo"; } >&5 | |
2919 | (eval "$ac_compile") 2>&5 | |
2920 | ac_status=$? | |
2921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2922 | test $ac_status = 0; }; then : | |
2923 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2924 | test -f "$ac_file" || continue; | |
13b2be9c | 2925 | case $ac_file in |
81ecdfbb | 2926 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
13b2be9c DJ |
2927 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2928 | break;; | |
2929 | esac | |
2930 | done | |
2931 | else | |
81ecdfbb | 2932 | $as_echo "$as_me: failed program was:" >&5 |
13b2be9c DJ |
2933 | sed 's/^/| /' conftest.$ac_ext >&5 |
2934 | ||
81ecdfbb RW |
2935 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2936 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2937 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2938 | See \`config.log' for more details." "$LINENO" 5; } | |
13b2be9c | 2939 | fi |
13b2be9c DJ |
2940 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2941 | fi | |
81ecdfbb RW |
2942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2943 | $as_echo "$ac_cv_objext" >&6; } | |
13b2be9c DJ |
2944 | OBJEXT=$ac_cv_objext |
2945 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2947 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2948 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2949 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 2950 | else |
81ecdfbb | 2951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
2952 | /* end confdefs.h. */ |
2953 | ||
2954 | int | |
2955 | main () | |
2956 | { | |
2957 | #ifndef __GNUC__ | |
2958 | choke me | |
2959 | #endif | |
2960 | ||
2961 | ; | |
2962 | return 0; | |
2963 | } | |
2964 | _ACEOF | |
81ecdfbb | 2965 | if ac_fn_c_try_compile "$LINENO"; then : |
13b2be9c DJ |
2966 | ac_compiler_gnu=yes |
2967 | else | |
81ecdfbb | 2968 | ac_compiler_gnu=no |
13b2be9c | 2969 | fi |
81ecdfbb | 2970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c DJ |
2971 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2972 | ||
2973 | fi | |
81ecdfbb RW |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2975 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2976 | if test $ac_compiler_gnu = yes; then | |
2977 | GCC=yes | |
2978 | else | |
2979 | GCC= | |
2980 | fi | |
13b2be9c DJ |
2981 | ac_test_CFLAGS=${CFLAGS+set} |
2982 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2984 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2985 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2986 | $as_echo_n "(cached) " >&6 | |
2987 | else | |
2988 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2989 | ac_c_werror_flag=yes | |
2990 | ac_cv_prog_cc_g=no | |
2991 | CFLAGS="-g" | |
2992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13b2be9c DJ |
2993 | /* end confdefs.h. */ |
2994 | ||
2995 | int | |
2996 | main () | |
2997 | { | |
2998 | ||
2999 | ; | |
3000 | return 0; | |
3001 | } | |
3002 | _ACEOF | |
81ecdfbb | 3003 | if ac_fn_c_try_compile "$LINENO"; then : |
13b2be9c DJ |
3004 | ac_cv_prog_cc_g=yes |
3005 | else | |
81ecdfbb RW |
3006 | CFLAGS="" |
3007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3008 | /* end confdefs.h. */ | |
13b2be9c | 3009 | |
81ecdfbb RW |
3010 | int |
3011 | main () | |
3012 | { | |
3013 | ||
3014 | ; | |
3015 | return 0; | |
3016 | } | |
3017 | _ACEOF | |
3018 | if ac_fn_c_try_compile "$LINENO"; then : | |
3019 | ||
3020 | else | |
3021 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3022 | CFLAGS="-g" | |
3023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3024 | /* end confdefs.h. */ | |
3025 | ||
3026 | int | |
3027 | main () | |
3028 | { | |
3029 | ||
3030 | ; | |
3031 | return 0; | |
3032 | } | |
3033 | _ACEOF | |
3034 | if ac_fn_c_try_compile "$LINENO"; then : | |
3035 | ac_cv_prog_cc_g=yes | |
3036 | fi | |
3037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13b2be9c | 3038 | fi |
81ecdfbb | 3039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13b2be9c | 3040 | fi |
81ecdfbb RW |
3041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3042 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3043 | fi | |
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3045 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
13b2be9c DJ |
3046 | if test "$ac_test_CFLAGS" = set; then |
3047 | CFLAGS=$ac_save_CFLAGS | |
3048 | elif test $ac_cv_prog_cc_g = yes; then | |
3049 | if test "$GCC" = yes; then | |
3050 | CFLAGS="-g -O2" | |
3051 | else | |
3052 | CFLAGS="-g" | |
3053 | fi | |
3054 | else | |
3055 | if test "$GCC" = yes; then | |
3056 | CFLAGS="-O2" | |
3057 | else | |
3058 | CFLAGS= | |
3059 | fi | |
3060 | fi | |
81ecdfbb RW |
3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3062 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3063 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3064 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3065 | else |
81ecdfbb | 3066 | ac_cv_prog_cc_c89=no |
13b2be9c | 3067 | ac_save_CC=$CC |
81ecdfbb | 3068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
3069 | /* end confdefs.h. */ |
3070 | #include <stdarg.h> | |
3071 | #include <stdio.h> | |
3072 | #include <sys/types.h> | |
3073 | #include <sys/stat.h> | |
3074 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3075 | struct buf { int x; }; | |
3076 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3077 | static char *e (p, i) | |
3078 | char **p; | |
3079 | int i; | |
3080 | { | |
3081 | return p[i]; | |
3082 | } | |
3083 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3084 | { | |
3085 | char *s; | |
3086 | va_list v; | |
3087 | va_start (v,p); | |
3088 | s = g (p, va_arg (v,int)); | |
3089 | va_end (v); | |
3090 | return s; | |
3091 | } | |
ab509236 L |
3092 | |
3093 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3094 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3095 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3096 | as 'x'. The following induces an error, until -std is added to get |
ab509236 L |
3097 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3098 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3099 | that's true only with -std. */ |
ab509236 L |
3100 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3101 | ||
81ecdfbb RW |
3102 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3103 | inside strings and character constants. */ | |
3104 | #define FOO(x) 'x' | |
3105 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3106 | ||
13b2be9c DJ |
3107 | int test (int i, double x); |
3108 | struct s1 {int (*f) (int a);}; | |
3109 | struct s2 {int (*f) (double a);}; | |
3110 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3111 | int argc; | |
3112 | char **argv; | |
3113 | int | |
3114 | main () | |
3115 | { | |
3116 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3117 | ; | |
3118 | return 0; | |
3119 | } | |
3120 | _ACEOF | |
81ecdfbb RW |
3121 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3122 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
13b2be9c DJ |
3123 | do |
3124 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3125 | if ac_fn_c_try_compile "$LINENO"; then : |
3126 | ac_cv_prog_cc_c89=$ac_arg | |
13b2be9c | 3127 | fi |
81ecdfbb RW |
3128 | rm -f core conftest.err conftest.$ac_objext |
3129 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
13b2be9c | 3130 | done |
81ecdfbb | 3131 | rm -f conftest.$ac_ext |
13b2be9c DJ |
3132 | CC=$ac_save_CC |
3133 | ||
3134 | fi | |
81ecdfbb RW |
3135 | # AC_CACHE_VAL |
3136 | case "x$ac_cv_prog_cc_c89" in | |
3137 | x) | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3139 | $as_echo "none needed" >&6; } ;; | |
3140 | xno) | |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3142 | $as_echo "unsupported" >&6; } ;; | |
13b2be9c | 3143 | *) |
81ecdfbb RW |
3144 | CC="$CC $ac_cv_prog_cc_c89" |
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3146 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
13b2be9c | 3147 | esac |
81ecdfbb | 3148 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
13b2be9c | 3149 | |
13b2be9c DJ |
3150 | fi |
3151 | ||
13b2be9c DJ |
3152 | ac_ext=c |
3153 | ac_cpp='$CPP $CPPFLAGS' | |
3154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3157 | ||
3158 | ||
81ecdfbb RW |
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3160 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3161 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3162 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3163 | else |
ab509236 | 3164 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
3166 | /* end confdefs.h. */ |
3167 | ||
81ecdfbb RW |
3168 | /* Override any GCC internal prototype to avoid an error. |
3169 | Use char because int might match the return type of a GCC | |
3170 | builtin and then its argument prototype would still apply. */ | |
13b2be9c DJ |
3171 | #ifdef __cplusplus |
3172 | extern "C" | |
3173 | #endif | |
13b2be9c DJ |
3174 | char strerror (); |
3175 | int | |
3176 | main () | |
3177 | { | |
81ecdfbb | 3178 | return strerror (); |
13b2be9c DJ |
3179 | ; |
3180 | return 0; | |
3181 | } | |
3182 | _ACEOF | |
81ecdfbb RW |
3183 | for ac_lib in '' cposix; do |
3184 | if test -z "$ac_lib"; then | |
3185 | ac_res="none required" | |
3186 | else | |
3187 | ac_res=-l$ac_lib | |
ab509236 | 3188 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3189 | fi |
3190 | if ac_fn_c_try_link "$LINENO"; then : | |
3191 | ac_cv_search_strerror=$ac_res | |
3192 | fi | |
3193 | rm -f core conftest.err conftest.$ac_objext \ | |
3194 | conftest$ac_exeext | |
3195 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3196 | break | |
3197 | fi | |
3198 | done | |
3199 | if test "${ac_cv_search_strerror+set}" = set; then : | |
ab509236 | 3200 | |
ab509236 | 3201 | else |
81ecdfbb | 3202 | ac_cv_search_strerror=no |
13b2be9c | 3203 | fi |
81ecdfbb | 3204 | rm conftest.$ac_ext |
ab509236 L |
3205 | LIBS=$ac_func_search_save_LIBS |
3206 | fi | |
81ecdfbb RW |
3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3208 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3209 | ac_res=$ac_cv_search_strerror | |
3210 | if test "$ac_res" != no; then : | |
3211 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13b2be9c | 3212 | |
ab509236 | 3213 | fi |
13b2be9c DJ |
3214 | |
3215 | ||
3216 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
81ecdfbb RW |
3217 | am__api_version='1.11' |
3218 | ||
13b2be9c DJ |
3219 | # Find a good install program. We prefer a C program (faster), |
3220 | # so one script is as good as another. But avoid the broken or | |
3221 | # incompatible versions: | |
3222 | # SysV /etc/install, /usr/sbin/install | |
3223 | # SunOS /usr/etc/install | |
3224 | # IRIX /sbin/install | |
3225 | # AIX /bin/install | |
3226 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3227 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3228 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3229 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ab509236 | 3230 | # OS/2's system install, which has a completely different semantic |
13b2be9c | 3231 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3232 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3234 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
13b2be9c | 3235 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3236 | if test "${ac_cv_path_install+set}" = set; then : |
3237 | $as_echo_n "(cached) " >&6 | |
13b2be9c DJ |
3238 | else |
3239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3240 | for as_dir in $PATH | |
3241 | do | |
3242 | IFS=$as_save_IFS | |
3243 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3244 | # Account for people who put trailing slashes in PATH elements. |
3245 | case $as_dir/ in #(( | |
3246 | ./ | .// | /[cC]/* | \ | |
13b2be9c | 3247 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3248 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
13b2be9c DJ |
3249 | /usr/ucb/* ) ;; |
3250 | *) | |
3251 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3252 | # Don't use installbsd from OSF since it installs stuff as root | |
3253 | # by default. | |
3254 | for ac_prog in ginstall scoinst install; do | |
3255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3256 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
ab509236 L |
3257 | if test $ac_prog = install && |
3258 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3259 | # AIX install. It has an incompatible calling convention. | |
3260 | : | |
3261 | elif test $ac_prog = install && | |
3262 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3263 | # program-specific install script used by HP pwplus--don't use. | |
3264 | : | |
3265 | else | |
58c85be7 RW |
3266 | rm -rf conftest.one conftest.two conftest.dir |
3267 | echo one > conftest.one | |
3268 | echo two > conftest.two | |
3269 | mkdir conftest.dir | |
3270 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3271 | test -s conftest.one && test -s conftest.two && | |
3272 | test -s conftest.dir/conftest.one && | |
3273 | test -s conftest.dir/conftest.two | |
3274 | then | |
3275 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3276 | break 3 | |
3277 | fi | |
ab509236 L |
3278 | fi |
3279 | fi | |
13b2be9c DJ |
3280 | done |
3281 | done | |
3282 | ;; | |
3283 | esac | |
81ecdfbb RW |
3284 | |
3285 | done | |
3286 | IFS=$as_save_IFS | |
13b2be9c | 3287 | |
58c85be7 | 3288 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3289 | |
3290 | fi | |
3291 | if test "${ac_cv_path_install+set}" = set; then | |
13b2be9c | 3292 | INSTALL=$ac_cv_path_install |
252b5132 | 3293 | else |
58c85be7 RW |
3294 | # As a last resort, use the slow shell script. Don't cache a |
3295 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3296 | # break other packages using the cache if that directory is |
58c85be7 | 3297 | # removed, or if the value is a relative name. |
13b2be9c | 3298 | INSTALL=$ac_install_sh |
252b5132 RH |
3299 | fi |
3300 | fi | |
81ecdfbb RW |
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3302 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3303 | |
3304 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3305 | # It thinks the first close brace ends the variable substitution. | |
3306 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3307 | ||
13b2be9c | 3308 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3309 | |
3310 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3311 | ||
81ecdfbb RW |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3313 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3314 | # Just in case |
3315 | sleep 1 | |
13b2be9c | 3316 | echo timestamp > conftest.file |
81ecdfbb RW |
3317 | # Reject unsafe characters in $srcdir or the absolute working directory |
3318 | # name. Accept space and tab only in the latter. | |
3319 | am_lf=' | |
3320 | ' | |
3321 | case `pwd` in | |
3322 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3323 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3324 | esac | |
3325 | case $srcdir in | |
3326 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3327 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3328 | esac | |
3329 | ||
252b5132 RH |
3330 | # Do `set' in a subshell so we don't clobber the current shell's |
3331 | # arguments. Must try -L first in case configure is actually a | |
3332 | # symlink; some systems play weird games with the mod time of symlinks | |
3333 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3334 | # directory). | |
3335 | if ( | |
81ecdfbb | 3336 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3337 | if test "$*" = "X"; then |
3338 | # -L didn't work. | |
81ecdfbb | 3339 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3340 | fi |
13b2be9c DJ |
3341 | rm -f conftest.file |
3342 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3343 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3344 | |
3345 | # If neither matched, then we have a broken ls. This can happen | |
3346 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3347 | # broken ls alias from the environment. This has actually | |
3348 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3349 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3350 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3351 | fi |
3352 | ||
13b2be9c DJ |
3353 | test "$2" = conftest.file |
3354 | ) | |
3355 | then | |
3356 | # Ok. | |
3357 | : | |
3358 | else | |
81ecdfbb RW |
3359 | as_fn_error "newly created file is older than distributed files! |
3360 | Check your system clock" "$LINENO" 5 | |
13b2be9c | 3361 | fi |
81ecdfbb RW |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3363 | $as_echo "yes" >&6; } | |
13b2be9c | 3364 | test "$program_prefix" != NONE && |
81ecdfbb | 3365 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
13b2be9c DJ |
3366 | # Use a double $ so make ignores it. |
3367 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3368 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3369 | # Double any \ or $. | |
13b2be9c | 3370 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3371 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3372 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
13b2be9c | 3373 | |
13b2be9c DJ |
3374 | # expand $ac_aux_dir to an absolute path |
3375 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3376 | ||
81ecdfbb RW |
3377 | if test x"${MISSING+set}" != xset; then |
3378 | case $am_aux_dir in | |
3379 | *\ * | *\ *) | |
3380 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3381 | *) | |
3382 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3383 | esac | |
3384 | fi | |
13b2be9c DJ |
3385 | # Use eval to expand $SHELL |
3386 | if eval "$MISSING --run true"; then | |
3387 | am_missing_run="$MISSING --run " | |
3388 | else | |
3389 | am_missing_run= | |
81ecdfbb RW |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3391 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
ab509236 L |
3392 | fi |
3393 | ||
81ecdfbb RW |
3394 | if test x"${install_sh}" != xset; then |
3395 | case $am_aux_dir in | |
3396 | *\ * | *\ *) | |
3397 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3398 | *) | |
3399 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3400 | esac | |
3401 | fi | |
3402 | ||
3403 | # Installed binaries are usually stripped using `strip' when the user | |
3404 | # run `make install-strip'. However `strip' might not be the right | |
3405 | # tool to use in cross-compilation environments, therefore Automake | |
3406 | # will honor the `STRIP' environment variable to overrule this program. | |
3407 | if test "$cross_compiling" != no; then | |
3408 | if test -n "$ac_tool_prefix"; then | |
3409 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3410 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3412 | $as_echo_n "checking for $ac_word... " >&6; } | |
3413 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3414 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3415 | else |
81ecdfbb RW |
3416 | if test -n "$STRIP"; then |
3417 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13b2be9c DJ |
3418 | else |
3419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3420 | for as_dir in $PATH | |
3421 | do | |
3422 | IFS=$as_save_IFS | |
3423 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3424 | for ac_exec_ext in '' $ac_executable_extensions; do |
3425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3426 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13b2be9c DJ |
3428 | break 2 |
3429 | fi | |
3430 | done | |
81ecdfbb RW |
3431 | done |
3432 | IFS=$as_save_IFS | |
13b2be9c DJ |
3433 | |
3434 | fi | |
3435 | fi | |
81ecdfbb RW |
3436 | STRIP=$ac_cv_prog_STRIP |
3437 | if test -n "$STRIP"; then | |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3439 | $as_echo "$STRIP" >&6; } | |
13b2be9c | 3440 | else |
81ecdfbb RW |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3442 | $as_echo "no" >&6; } | |
13b2be9c DJ |
3443 | fi |
3444 | ||
13b2be9c | 3445 | |
81ecdfbb RW |
3446 | fi |
3447 | if test -z "$ac_cv_prog_STRIP"; then | |
3448 | ac_ct_STRIP=$STRIP | |
3449 | # Extract the first word of "strip", so it can be a program name with args. | |
3450 | set dummy strip; ac_word=$2 | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3452 | $as_echo_n "checking for $ac_word... " >&6; } | |
3453 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3454 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 3455 | else |
81ecdfbb RW |
3456 | if test -n "$ac_ct_STRIP"; then |
3457 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
13b2be9c | 3458 | else |
81ecdfbb RW |
3459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3460 | for as_dir in $PATH | |
3461 | do | |
3462 | IFS=$as_save_IFS | |
3463 | test -z "$as_dir" && as_dir=. | |
3464 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3466 | ac_cv_prog_ac_ct_STRIP="strip" | |
3467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3468 | break 2 | |
3469 | fi | |
3470 | done | |
3471 | done | |
3472 | IFS=$as_save_IFS | |
3473 | ||
3474 | fi | |
3475 | fi | |
3476 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3477 | if test -n "$ac_ct_STRIP"; then | |
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3479 | $as_echo "$ac_ct_STRIP" >&6; } | |
3480 | else | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3482 | $as_echo "no" >&6; } | |
3483 | fi | |
3484 | ||
3485 | if test "x$ac_ct_STRIP" = x; then | |
3486 | STRIP=":" | |
3487 | else | |
3488 | case $cross_compiling:$ac_tool_warned in | |
3489 | yes:) | |
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3491 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3492 | ac_tool_warned=yes ;; | |
3493 | esac | |
3494 | STRIP=$ac_ct_STRIP | |
3495 | fi | |
3496 | else | |
3497 | STRIP="$ac_cv_prog_STRIP" | |
3498 | fi | |
3499 | ||
3500 | fi | |
3501 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3502 | ||
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3504 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3505 | if test -z "$MKDIR_P"; then | |
3506 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3507 | $as_echo_n "(cached) " >&6 | |
3508 | else | |
3509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3510 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3511 | do | |
3512 | IFS=$as_save_IFS | |
3513 | test -z "$as_dir" && as_dir=. | |
3514 | for ac_prog in mkdir gmkdir; do | |
3515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3516 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3517 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3518 | 'mkdir (GNU coreutils) '* | \ | |
3519 | 'mkdir (coreutils) '* | \ | |
3520 | 'mkdir (fileutils) '4.1*) | |
3521 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3522 | break 3;; | |
3523 | esac | |
3524 | done | |
3525 | done | |
3526 | done | |
3527 | IFS=$as_save_IFS | |
3528 | ||
3529 | fi | |
3530 | ||
3531 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3532 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3533 | else | |
3534 | # As a last resort, use the slow shell script. Don't cache a | |
3535 | # value for MKDIR_P within a source directory, because that will | |
3536 | # break other packages using the cache if that directory is | |
3537 | # removed, or if the value is a relative name. | |
3538 | test -d ./--version && rmdir ./--version | |
3539 | MKDIR_P="$ac_install_sh -d" | |
3540 | fi | |
3541 | fi | |
3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3543 | $as_echo "$MKDIR_P" >&6; } | |
3544 | ||
3545 | mkdir_p="$MKDIR_P" | |
3546 | case $mkdir_p in | |
3547 | [\\/$]* | ?:[\\/]*) ;; | |
3548 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3549 | esac | |
3550 | ||
3551 | for ac_prog in gawk mawk nawk awk | |
3552 | do | |
3553 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3554 | set dummy $ac_prog; ac_word=$2 | |
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3556 | $as_echo_n "checking for $ac_word... " >&6; } | |
3557 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3558 | $as_echo_n "(cached) " >&6 | |
3559 | else | |
3560 | if test -n "$AWK"; then | |
3561 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3562 | else | |
3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3564 | for as_dir in $PATH | |
3565 | do | |
3566 | IFS=$as_save_IFS | |
3567 | test -z "$as_dir" && as_dir=. | |
3568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3570 | ac_cv_prog_AWK="$ac_prog" | |
3571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3572 | break 2 | |
3573 | fi | |
3574 | done | |
3575 | done | |
3576 | IFS=$as_save_IFS | |
3577 | ||
3578 | fi | |
3579 | fi | |
3580 | AWK=$ac_cv_prog_AWK | |
3581 | if test -n "$AWK"; then | |
3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3583 | $as_echo "$AWK" >&6; } | |
3584 | else | |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3586 | $as_echo "no" >&6; } | |
13b2be9c | 3587 | fi |
81ecdfbb RW |
3588 | |
3589 | ||
3590 | test -n "$AWK" && break | |
3591 | done | |
3592 | ||
3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3594 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3595 | set x ${MAKE-make} | |
3596 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3597 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3598 | $as_echo_n "(cached) " >&6 | |
3599 | else | |
3600 | cat >conftest.make <<\_ACEOF | |
3601 | SHELL = /bin/sh | |
3602 | all: | |
3603 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3604 | _ACEOF | |
3605 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3606 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3607 | *@@@%%%=?*=@@@%%%*) | |
3608 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3609 | *) | |
3610 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3611 | esac | |
13b2be9c DJ |
3612 | rm -f conftest.make |
3613 | fi | |
81ecdfbb RW |
3614 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3616 | $as_echo "yes" >&6; } | |
13b2be9c DJ |
3617 | SET_MAKE= |
3618 | else | |
81ecdfbb RW |
3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3620 | $as_echo "no" >&6; } | |
13b2be9c DJ |
3621 | SET_MAKE="MAKE=${MAKE-make}" |
3622 | fi | |
3623 | ||
3624 | rm -rf .tst 2>/dev/null | |
3625 | mkdir .tst 2>/dev/null | |
3626 | if test -d .tst; then | |
3627 | am__leading_dot=. | |
3628 | else | |
3629 | am__leading_dot=_ | |
3630 | fi | |
3631 | rmdir .tst 2>/dev/null | |
3632 | ||
3633 | DEPDIR="${am__leading_dot}deps" | |
3634 | ||
81ecdfbb | 3635 | ac_config_commands="$ac_config_commands depfiles" |
13b2be9c DJ |
3636 | |
3637 | ||
3638 | am_make=${MAKE-make} | |
3639 | cat > confinc << 'END' | |
3640 | am__doit: | |
81ecdfbb | 3641 | @echo this is the am__doit target |
13b2be9c DJ |
3642 | .PHONY: am__doit |
3643 | END | |
3644 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3646 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
13b2be9c DJ |
3647 | am__include="#" |
3648 | am__quote= | |
3649 | _am_result=none | |
3650 | # First try GNU make style include. | |
3651 | echo "include confinc" > confmf | |
81ecdfbb RW |
3652 | # Ignore all kinds of additional output from `make'. |
3653 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3654 | *the\ am__doit\ target*) | |
3655 | am__include=include | |
3656 | am__quote= | |
3657 | _am_result=GNU | |
3658 | ;; | |
3659 | esac | |
13b2be9c DJ |
3660 | # Now try BSD make style include. |
3661 | if test "$am__include" = "#"; then | |
3662 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
3663 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3664 | *the\ am__doit\ target*) | |
3665 | am__include=.include | |
3666 | am__quote="\"" | |
3667 | _am_result=BSD | |
3668 | ;; | |
3669 | esac | |
13b2be9c DJ |
3670 | fi |
3671 | ||
3672 | ||
81ecdfbb RW |
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3674 | $as_echo "$_am_result" >&6; } | |
13b2be9c DJ |
3675 | rm -f confinc confmf |
3676 | ||
81ecdfbb RW |
3677 | # Check whether --enable-dependency-tracking was given. |
3678 | if test "${enable_dependency_tracking+set}" = set; then : | |
3679 | enableval=$enable_dependency_tracking; | |
3680 | fi | |
13b2be9c | 3681 | |
13b2be9c DJ |
3682 | if test "x$enable_dependency_tracking" != xno; then |
3683 | am_depcomp="$ac_aux_dir/depcomp" | |
3684 | AMDEPBACKSLASH='\' | |
3685 | fi | |
81ecdfbb | 3686 | if test "x$enable_dependency_tracking" != xno; then |
13b2be9c DJ |
3687 | AMDEP_TRUE= |
3688 | AMDEP_FALSE='#' | |
3689 | else | |
3690 | AMDEP_TRUE='#' | |
3691 | AMDEP_FALSE= | |
3692 | fi | |
3693 | ||
3694 | ||
81ecdfbb RW |
3695 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3696 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3697 | # is not polluted with repeated "-I." | |
3698 | am__isrc=' -I$(srcdir)' | |
3699 | # test to see if srcdir already configured | |
3700 | if test -f $srcdir/config.status; then | |
3701 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3702 | fi | |
13b2be9c DJ |
3703 | fi |
3704 | ||
3705 | # test whether we have cygpath | |
3706 | if test -z "$CYGPATH_W"; then | |
3707 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3708 | CYGPATH_W='cygpath -w' | |
3709 | else | |
3710 | CYGPATH_W=echo | |
3711 | fi | |
3712 | fi | |
3713 | ||
3714 | ||
3715 | # Define the identity of the package. | |
3716 | PACKAGE=gas | |
3717 | VERSION=${BFD_VERSION} | |
3718 | ||
3719 | ||
3720 | cat >>confdefs.h <<_ACEOF | |
3721 | #define PACKAGE "$PACKAGE" | |
3722 | _ACEOF | |
3723 | ||
3724 | ||
3725 | cat >>confdefs.h <<_ACEOF | |
3726 | #define VERSION "$VERSION" | |
3727 | _ACEOF | |
3728 | ||
3729 | # Some tools Automake needs. | |
3730 | ||
3731 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3732 | ||
3733 | ||
3734 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3735 | ||
3736 | ||
3737 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3738 | ||
3739 | ||
3740 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3741 | ||
3742 | ||
3743 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3744 | ||
13b2be9c DJ |
3745 | # We need awk for the "check" target. The system "awk" is bad on |
3746 | # some platforms. | |
8ea2b00f AM |
3747 | # Always define AMTAR for backward compatibility. |
3748 | ||
3749 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3750 | ||
3751 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3752 | ||
3753 | ||
252b5132 | 3754 | |
d6d788bd | 3755 | |
13b2be9c | 3756 | depcc="$CC" am_compiler_list= |
d6d788bd | 3757 | |
81ecdfbb RW |
3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3759 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3760 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3761 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3762 | else |
13b2be9c DJ |
3763 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3764 | # We make a subdir and do the tests there. Otherwise we can end up | |
3765 | # making bogus files that we don't know about and never remove. For | |
3766 | # instance it was reported that on HP-UX the gcc test will end up | |
3767 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3768 | # in D'. | |
3769 | mkdir conftest.dir | |
3770 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3771 | # using a relative directory. | |
3772 | cp "$am_depcomp" conftest.dir | |
3773 | cd conftest.dir | |
3774 | # We will build objects and dependencies in a subdirectory because | |
3775 | # it helps to detect inapplicable dependency modes. For instance | |
3776 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3777 | # side effect of compilation, but ICC will put the dependencies in | |
3778 | # the current directory while Tru64 will put them in the object | |
3779 | # directory. | |
3780 | mkdir sub | |
252b5132 | 3781 | |
13b2be9c DJ |
3782 | am_cv_CC_dependencies_compiler_type=none |
3783 | if test "$am_compiler_list" = ""; then | |
3784 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3785 | fi | |
81ecdfbb RW |
3786 | am__universal=false |
3787 | case " $depcc " in #( | |
3788 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3789 | esac | |
3790 | ||
13b2be9c DJ |
3791 | for depmode in $am_compiler_list; do |
3792 | # Setup a source with many dependencies, because some compilers | |
3793 | # like to wrap large dependency lists on column 80 (with \), and | |
3794 | # we should not choose a depcomp mode which is confused by this. | |
3795 | # | |
3796 | # We need to recreate these files for each test, as the compiler may | |
3797 | # overwrite some of them when testing with obscure command lines. | |
3798 | # This happens at least with the AIX C compiler. | |
3799 | : > sub/conftest.c | |
3800 | for i in 1 2 3 4 5 6; do | |
3801 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4b363073 NC |
3802 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3803 | # Solaris 8's {/usr,}/bin/sh. | |
3804 | touch sub/conftst$i.h | |
13b2be9c DJ |
3805 | done |
3806 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3807 | ||
81ecdfbb RW |
3808 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3809 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3810 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3811 | # versions had trouble with output in subdirs | |
3812 | am__obj=sub/conftest.${OBJEXT-o} | |
3813 | am__minus_obj="-o $am__obj" | |
13b2be9c | 3814 | case $depmode in |
81ecdfbb RW |
3815 | gcc) |
3816 | # This depmode causes a compiler race in universal mode. | |
3817 | test "$am__universal" = false || continue | |
3818 | ;; | |
13b2be9c DJ |
3819 | nosideeffect) |
3820 | # after this tag, mechanisms are not by side-effect, so they'll | |
3821 | # only be used when explicitly requested | |
3822 | if test "x$enable_dependency_tracking" = xyes; then | |
3823 | continue | |
3824 | else | |
3825 | break | |
3826 | fi | |
3827 | ;; | |
81ecdfbb RW |
3828 | msvisualcpp | msvcmsys) |
3829 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3830 | # not run yet. These depmodes are late enough in the game, and | |
3831 | # so weak that their functioning should not be impacted. | |
3832 | am__obj=conftest.${OBJEXT-o} | |
3833 | am__minus_obj= | |
3834 | ;; | |
13b2be9c DJ |
3835 | none) break ;; |
3836 | esac | |
13b2be9c | 3837 | if depmode=$depmode \ |
81ecdfbb | 3838 | source=sub/conftest.c object=$am__obj \ |
13b2be9c | 3839 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 3840 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
13b2be9c | 3841 | >/dev/null 2>conftest.err && |
81ecdfbb | 3842 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
13b2be9c | 3843 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 3844 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
13b2be9c DJ |
3845 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3846 | # icc doesn't choke on unknown options, it will just issue warnings | |
4b363073 NC |
3847 | # or remarks (even with -Werror). So we grep stderr for any message |
3848 | # that says an option was ignored or not supported. | |
3849 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3850 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3851 | # The diagnosis changed in icc 8.0: | |
3852 | # icc: Command line remark: option '-MP' not supported | |
3853 | if (grep 'ignoring option' conftest.err || | |
3854 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
13b2be9c DJ |
3855 | am_cv_CC_dependencies_compiler_type=$depmode |
3856 | break | |
3857 | fi | |
3858 | fi | |
3859 | done | |
252b5132 | 3860 | |
13b2be9c DJ |
3861 | cd .. |
3862 | rm -rf conftest.dir | |
252b5132 | 3863 | else |
13b2be9c | 3864 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3865 | fi |
3866 | ||
252b5132 | 3867 | fi |
81ecdfbb RW |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3869 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
13b2be9c | 3870 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
252b5132 | 3871 | |
81ecdfbb | 3872 | if |
13b2be9c DJ |
3873 | test "x$enable_dependency_tracking" != xno \ |
3874 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3875 | am__fastdepCC_TRUE= | |
3876 | am__fastdepCC_FALSE='#' | |
252b5132 | 3877 | else |
13b2be9c DJ |
3878 | am__fastdepCC_TRUE='#' |
3879 | am__fastdepCC_FALSE= | |
252b5132 RH |
3880 | fi |
3881 | ||
d6d788bd L |
3882 | |
3883 | ||
13b2be9c | 3884 | |
ce2cded5 L |
3885 | ac_ext=c |
3886 | ac_cpp='$CPP $CPPFLAGS' | |
3887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3890 | if test -n "$ac_tool_prefix"; then | |
3891 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3892 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3894 | $as_echo_n "checking for $ac_word... " >&6; } | |
3895 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3896 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3897 | else |
ce2cded5 L |
3898 | if test -n "$CC"; then |
3899 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3900 | else |
ce2cded5 L |
3901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3902 | for as_dir in $PATH | |
3903 | do | |
3904 | IFS=$as_save_IFS | |
3905 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3906 | for ac_exec_ext in '' $ac_executable_extensions; do |
3907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 3908 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
3910 | break 2 |
3911 | fi | |
3912 | done | |
81ecdfbb RW |
3913 | done |
3914 | IFS=$as_save_IFS | |
d7040cdb | 3915 | |
ce2cded5 L |
3916 | fi |
3917 | fi | |
3918 | CC=$ac_cv_prog_CC | |
3919 | if test -n "$CC"; then | |
81ecdfbb RW |
3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3921 | $as_echo "$CC" >&6; } | |
bedf545c | 3922 | else |
81ecdfbb RW |
3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3924 | $as_echo "no" >&6; } | |
ce2cded5 | 3925 | fi |
d7040cdb | 3926 | |
81ecdfbb | 3927 | |
ce2cded5 L |
3928 | fi |
3929 | if test -z "$ac_cv_prog_CC"; then | |
3930 | ac_ct_CC=$CC | |
3931 | # Extract the first word of "gcc", so it can be a program name with args. | |
3932 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3934 | $as_echo_n "checking for $ac_word... " >&6; } | |
3935 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3936 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 3937 | else |
ce2cded5 L |
3938 | if test -n "$ac_ct_CC"; then |
3939 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3940 | else | |
d7040cdb SE |
3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3942 | for as_dir in $PATH | |
3943 | do | |
3944 | IFS=$as_save_IFS | |
3945 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3946 | for ac_exec_ext in '' $ac_executable_extensions; do |
3947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 3948 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 3950 | break 2 |
d7040cdb | 3951 | fi |
ce2cded5 | 3952 | done |
81ecdfbb RW |
3953 | done |
3954 | IFS=$as_save_IFS | |
d7040cdb | 3955 | |
ce2cded5 L |
3956 | fi |
3957 | fi | |
3958 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3959 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3961 | $as_echo "$ac_ct_CC" >&6; } | |
ce2cded5 | 3962 | else |
81ecdfbb RW |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3964 | $as_echo "no" >&6; } | |
d7040cdb SE |
3965 | fi |
3966 | ||
81ecdfbb RW |
3967 | if test "x$ac_ct_CC" = x; then |
3968 | CC="" | |
3969 | else | |
3970 | case $cross_compiling:$ac_tool_warned in | |
3971 | yes:) | |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3973 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3974 | ac_tool_warned=yes ;; | |
3975 | esac | |
3976 | CC=$ac_ct_CC | |
3977 | fi | |
ce2cded5 L |
3978 | else |
3979 | CC="$ac_cv_prog_CC" | |
3980 | fi | |
d7040cdb | 3981 | |
ce2cded5 | 3982 | if test -z "$CC"; then |
81ecdfbb RW |
3983 | if test -n "$ac_tool_prefix"; then |
3984 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 3985 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3987 | $as_echo_n "checking for $ac_word... " >&6; } | |
3988 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3989 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 3990 | else |
ce2cded5 L |
3991 | if test -n "$CC"; then |
3992 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb | 3993 | else |
ce2cded5 L |
3994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3995 | for as_dir in $PATH | |
3996 | do | |
3997 | IFS=$as_save_IFS | |
3998 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3999 | for ac_exec_ext in '' $ac_executable_extensions; do |
4000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4001 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4003 | break 2 |
4004 | fi | |
4005 | done | |
81ecdfbb RW |
4006 | done |
4007 | IFS=$as_save_IFS | |
d7040cdb | 4008 | |
252b5132 RH |
4009 | fi |
4010 | fi | |
ce2cded5 L |
4011 | CC=$ac_cv_prog_CC |
4012 | if test -n "$CC"; then | |
81ecdfbb RW |
4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4014 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4015 | else |
81ecdfbb RW |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4017 | $as_echo "no" >&6; } | |
d7040cdb | 4018 | fi |
f9c19112 | 4019 | |
ce2cded5 | 4020 | |
81ecdfbb | 4021 | fi |
ce2cded5 L |
4022 | fi |
4023 | if test -z "$CC"; then | |
4024 | # Extract the first word of "cc", so it can be a program name with args. | |
4025 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4027 | $as_echo_n "checking for $ac_word... " >&6; } | |
4028 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4029 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4030 | else |
4031 | if test -n "$CC"; then | |
4032 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4033 | else | |
4034 | ac_prog_rejected=no | |
4035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4036 | for as_dir in $PATH | |
4037 | do | |
4038 | IFS=$as_save_IFS | |
4039 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4040 | for ac_exec_ext in '' $ac_executable_extensions; do |
4041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 L |
4042 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4043 | ac_prog_rejected=yes | |
4044 | continue | |
4045 | fi | |
4046 | ac_cv_prog_CC="cc" | |
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 | |
ce2cded5 L |
4053 | |
4054 | if test $ac_prog_rejected = yes; then | |
4055 | # We found a bogon in the path, so make sure we never use it. | |
4056 | set dummy $ac_cv_prog_CC | |
4057 | shift | |
4058 | if test $# != 0; then | |
4059 | # We chose a different compiler from the bogus one. | |
4060 | # However, it has the same basename, so the bogon will be chosen | |
4061 | # first if we set CC to just the basename; use the full file name. | |
4062 | shift | |
4063 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4064 | fi | |
4065 | fi | |
4066 | fi | |
4067 | fi | |
4068 | CC=$ac_cv_prog_CC | |
4069 | if test -n "$CC"; then | |
81ecdfbb RW |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4071 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4072 | else |
81ecdfbb RW |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4074 | $as_echo "no" >&6; } | |
ce2cded5 L |
4075 | fi |
4076 | ||
81ecdfbb | 4077 | |
ce2cded5 L |
4078 | fi |
4079 | if test -z "$CC"; then | |
4080 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4081 | for ac_prog in cl.exe |
ce2cded5 L |
4082 | do |
4083 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4084 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4086 | $as_echo_n "checking for $ac_word... " >&6; } | |
4087 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4088 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4089 | else |
4090 | if test -n "$CC"; then | |
4091 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4092 | else | |
4093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4094 | for as_dir in $PATH | |
4095 | do | |
4096 | IFS=$as_save_IFS | |
4097 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4098 | for ac_exec_ext in '' $ac_executable_extensions; do |
4099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4100 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4102 | break 2 |
4103 | fi | |
4104 | done | |
81ecdfbb RW |
4105 | done |
4106 | IFS=$as_save_IFS | |
ce2cded5 L |
4107 | |
4108 | fi | |
4109 | fi | |
4110 | CC=$ac_cv_prog_CC | |
4111 | if test -n "$CC"; then | |
81ecdfbb RW |
4112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4113 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4114 | else |
81ecdfbb RW |
4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4116 | $as_echo "no" >&6; } | |
ce2cded5 L |
4117 | fi |
4118 | ||
81ecdfbb | 4119 | |
ce2cded5 | 4120 | test -n "$CC" && break |
d7040cdb SE |
4121 | done |
4122 | fi | |
ce2cded5 L |
4123 | if test -z "$CC"; then |
4124 | ac_ct_CC=$CC | |
81ecdfbb | 4125 | for ac_prog in cl.exe |
d7040cdb SE |
4126 | do |
4127 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4128 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4130 | $as_echo_n "checking for $ac_word... " >&6; } | |
4131 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4132 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4133 | else |
ce2cded5 L |
4134 | if test -n "$ac_ct_CC"; then |
4135 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
4136 | else |
4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4138 | for as_dir in $PATH | |
4139 | do | |
4140 | IFS=$as_save_IFS | |
4141 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4142 | for ac_exec_ext in '' $ac_executable_extensions; do |
4143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4144 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 4146 | break 2 |
ac48eca1 | 4147 | fi |
d7040cdb | 4148 | done |
81ecdfbb RW |
4149 | done |
4150 | IFS=$as_save_IFS | |
ac48eca1 | 4151 | |
d7040cdb SE |
4152 | fi |
4153 | fi | |
ce2cded5 L |
4154 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4155 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4157 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 4158 | else |
81ecdfbb RW |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4160 | $as_echo "no" >&6; } | |
d7040cdb | 4161 | fi |
ac48eca1 | 4162 | |
81ecdfbb | 4163 | |
ce2cded5 | 4164 | test -n "$ac_ct_CC" && break |
d7040cdb | 4165 | done |
ac48eca1 | 4166 | |
81ecdfbb RW |
4167 | if test "x$ac_ct_CC" = x; then |
4168 | CC="" | |
4169 | else | |
4170 | case $cross_compiling:$ac_tool_warned in | |
4171 | yes:) | |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4173 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4174 | ac_tool_warned=yes ;; | |
4175 | esac | |
4176 | CC=$ac_ct_CC | |
4177 | fi | |
d7040cdb | 4178 | fi |
ac48eca1 | 4179 | |
d7040cdb | 4180 | fi |
ac48eca1 | 4181 | |
ac48eca1 | 4182 | |
81ecdfbb RW |
4183 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4184 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4185 | as_fn_error "no acceptable C compiler found in \$PATH | |
4186 | See \`config.log' for more details." "$LINENO" 5; } | |
6be7c12c | 4187 | |
ce2cded5 | 4188 | # Provide some information about the compiler. |
81ecdfbb RW |
4189 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4190 | set X $ac_compile | |
4191 | ac_compiler=$2 | |
4192 | for ac_option in --version -v -V -qversion; do | |
4193 | { { ac_try="$ac_compiler $ac_option >&5" | |
4194 | case "(($ac_try" in | |
4195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4196 | *) ac_try_echo=$ac_try;; | |
4197 | esac | |
4198 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4199 | $as_echo "$ac_try_echo"; } >&5 | |
4200 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4201 | ac_status=$? |
81ecdfbb RW |
4202 | if test -s conftest.err; then |
4203 | sed '10a\ | |
4204 | ... rest of stderr output deleted ... | |
4205 | 10q' conftest.err >conftest.er1 | |
4206 | cat conftest.er1 >&5 | |
4207 | rm -f conftest.er1 conftest.err | |
4208 | fi | |
4209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4210 | test $ac_status = 0; } | |
4211 | done | |
ac48eca1 | 4212 | |
81ecdfbb RW |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4214 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4215 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4216 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4217 | else |
81ecdfbb | 4218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4219 | /* end confdefs.h. */ |
c8615825 | 4220 | |
ce2cded5 L |
4221 | int |
4222 | main () | |
4223 | { | |
4224 | #ifndef __GNUC__ | |
4225 | choke me | |
4226 | #endif | |
4227 | ||
4228 | ; | |
4229 | return 0; | |
4230 | } | |
4231 | _ACEOF | |
81ecdfbb | 4232 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 4233 | ac_compiler_gnu=yes |
d7040cdb | 4234 | else |
81ecdfbb | 4235 | ac_compiler_gnu=no |
d7040cdb | 4236 | fi |
81ecdfbb | 4237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 4238 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
ac48eca1 | 4239 | |
ce2cded5 | 4240 | fi |
81ecdfbb RW |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4242 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4243 | if test $ac_compiler_gnu = yes; then | |
4244 | GCC=yes | |
4245 | else | |
4246 | GCC= | |
4247 | fi | |
ce2cded5 L |
4248 | ac_test_CFLAGS=${CFLAGS+set} |
4249 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4251 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4252 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4253 | $as_echo_n "(cached) " >&6 | |
4254 | else | |
4255 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4256 | ac_c_werror_flag=yes | |
4257 | ac_cv_prog_cc_g=no | |
4258 | CFLAGS="-g" | |
4259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 4260 | /* end confdefs.h. */ |
d7040cdb | 4261 | |
ce2cded5 L |
4262 | int |
4263 | main () | |
4264 | { | |
d7040cdb | 4265 | |
ce2cded5 L |
4266 | ; |
4267 | return 0; | |
4268 | } | |
4269 | _ACEOF | |
81ecdfbb | 4270 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
4271 | ac_cv_prog_cc_g=yes |
4272 | else | |
81ecdfbb RW |
4273 | CFLAGS="" |
4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4275 | /* end confdefs.h. */ | |
4276 | ||
4277 | int | |
4278 | main () | |
4279 | { | |
4280 | ||
4281 | ; | |
4282 | return 0; | |
4283 | } | |
4284 | _ACEOF | |
4285 | if ac_fn_c_try_compile "$LINENO"; then : | |
4286 | ||
4287 | else | |
4288 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4289 | CFLAGS="-g" | |
4290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4291 | /* end confdefs.h. */ | |
d70c5fc7 | 4292 | |
81ecdfbb RW |
4293 | int |
4294 | main () | |
4295 | { | |
4296 | ||
4297 | ; | |
4298 | return 0; | |
4299 | } | |
4300 | _ACEOF | |
4301 | if ac_fn_c_try_compile "$LINENO"; then : | |
4302 | ac_cv_prog_cc_g=yes | |
4303 | fi | |
4304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d70c5fc7 | 4305 | fi |
81ecdfbb | 4306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d70c5fc7 | 4307 | fi |
81ecdfbb RW |
4308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4309 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4310 | fi | |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4312 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
4313 | if test "$ac_test_CFLAGS" = set; then |
4314 | CFLAGS=$ac_save_CFLAGS | |
4315 | elif test $ac_cv_prog_cc_g = yes; then | |
4316 | if test "$GCC" = yes; then | |
4317 | CFLAGS="-g -O2" | |
4318 | else | |
4319 | CFLAGS="-g" | |
4320 | fi | |
ac48eca1 | 4321 | else |
ce2cded5 L |
4322 | if test "$GCC" = yes; then |
4323 | CFLAGS="-O2" | |
4324 | else | |
4325 | CFLAGS= | |
4326 | fi | |
ac48eca1 | 4327 | fi |
81ecdfbb RW |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4329 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4330 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4331 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4332 | else |
81ecdfbb | 4333 | ac_cv_prog_cc_c89=no |
ce2cded5 | 4334 | ac_save_CC=$CC |
81ecdfbb | 4335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
4336 | /* end confdefs.h. */ |
4337 | #include <stdarg.h> | |
4338 | #include <stdio.h> | |
4339 | #include <sys/types.h> | |
4340 | #include <sys/stat.h> | |
4341 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4342 | struct buf { int x; }; | |
4343 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4344 | static char *e (p, i) | |
4345 | char **p; | |
4346 | int i; | |
4347 | { | |
4348 | return p[i]; | |
4349 | } | |
4350 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4351 | { | |
4352 | char *s; | |
4353 | va_list v; | |
4354 | va_start (v,p); | |
4355 | s = g (p, va_arg (v,int)); | |
4356 | va_end (v); | |
4357 | return s; | |
4358 | } | |
4359 | ||
4360 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4361 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4362 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4363 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
4364 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4365 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4366 | that's true only with -std. */ |
ce2cded5 L |
4367 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4368 | ||
81ecdfbb RW |
4369 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4370 | inside strings and character constants. */ | |
4371 | #define FOO(x) 'x' | |
4372 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4373 | ||
ce2cded5 L |
4374 | int test (int i, double x); |
4375 | struct s1 {int (*f) (int a);}; | |
4376 | struct s2 {int (*f) (double a);}; | |
4377 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4378 | int argc; | |
4379 | char **argv; | |
4380 | int | |
4381 | main () | |
4382 | { | |
4383 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4384 | ; | |
4385 | return 0; | |
4386 | } | |
4387 | _ACEOF | |
81ecdfbb RW |
4388 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4389 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
4390 | do |
4391 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4392 | if ac_fn_c_try_compile "$LINENO"; then : |
4393 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 4394 | fi |
81ecdfbb RW |
4395 | rm -f core conftest.err conftest.$ac_objext |
4396 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 4397 | done |
81ecdfbb | 4398 | rm -f conftest.$ac_ext |
ce2cded5 L |
4399 | CC=$ac_save_CC |
4400 | ||
4401 | fi | |
81ecdfbb RW |
4402 | # AC_CACHE_VAL |
4403 | case "x$ac_cv_prog_cc_c89" in | |
4404 | x) | |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4406 | $as_echo "none needed" >&6; } ;; | |
4407 | xno) | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4409 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 4410 | *) |
81ecdfbb RW |
4411 | CC="$CC $ac_cv_prog_cc_c89" |
4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4413 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 4414 | esac |
81ecdfbb | 4415 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 4416 | |
ce2cded5 | 4417 | fi |
d7040cdb | 4418 | |
ce2cded5 L |
4419 | ac_ext=c |
4420 | ac_cpp='$CPP $CPPFLAGS' | |
4421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4424 | |
7357c5b6 AM |
4425 | ac_ext=c |
4426 | ac_cpp='$CPP $CPPFLAGS' | |
4427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4431 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4432 | # On Suns, sometimes $CPP names a directory. |
4433 | if test -n "$CPP" && test -d "$CPP"; then | |
4434 | CPP= | |
4435 | fi | |
4436 | if test -z "$CPP"; then | |
81ecdfbb RW |
4437 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4438 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
4439 | else |
4440 | # Double quotes because CPP needs to be expanded | |
4441 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4442 | do | |
4443 | ac_preproc_ok=false | |
4444 | for ac_c_preproc_warn_flag in '' yes | |
4445 | do | |
4446 | # Use a header file that comes with gcc, so configuring glibc | |
4447 | # with a fresh cross-compiler works. | |
4448 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4449 | # <limits.h> exists even on freestanding compilers. | |
4450 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4451 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4453 | /* end confdefs.h. */ |
4454 | #ifdef __STDC__ | |
4455 | # include <limits.h> | |
4456 | #else | |
4457 | # include <assert.h> | |
4458 | #endif | |
4459 | Syntax error | |
4460 | _ACEOF | |
81ecdfbb | 4461 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4462 | |
81ecdfbb | 4463 | else |
7357c5b6 AM |
4464 | # Broken: fails on valid input. |
4465 | continue | |
4466 | fi | |
4467 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4468 | |
81ecdfbb | 4469 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4470 | # can be detected and how. |
81ecdfbb | 4471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4472 | /* end confdefs.h. */ |
4473 | #include <ac_nonexistent.h> | |
4474 | _ACEOF | |
81ecdfbb | 4475 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4476 | # Broken: success on invalid input. |
4477 | continue | |
4478 | else | |
7357c5b6 AM |
4479 | # Passes both tests. |
4480 | ac_preproc_ok=: | |
4481 | break | |
4482 | fi | |
4483 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4484 | |
7357c5b6 AM |
4485 | done |
4486 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4487 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 4488 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4489 | break |
4490 | fi | |
d7040cdb | 4491 | |
7357c5b6 AM |
4492 | done |
4493 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4494 | |
7357c5b6 AM |
4495 | fi |
4496 | CPP=$ac_cv_prog_CPP | |
4497 | else | |
4498 | ac_cv_prog_CPP=$CPP | |
4499 | fi | |
81ecdfbb RW |
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4501 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4502 | ac_preproc_ok=false |
4503 | for ac_c_preproc_warn_flag in '' yes | |
4504 | do | |
4505 | # Use a header file that comes with gcc, so configuring glibc | |
4506 | # with a fresh cross-compiler works. | |
4507 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4508 | # <limits.h> exists even on freestanding compilers. | |
4509 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4510 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4512 | /* end confdefs.h. */ |
4513 | #ifdef __STDC__ | |
4514 | # include <limits.h> | |
4515 | #else | |
4516 | # include <assert.h> | |
4517 | #endif | |
4518 | Syntax error | |
4519 | _ACEOF | |
81ecdfbb | 4520 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4521 | |
81ecdfbb | 4522 | else |
7357c5b6 AM |
4523 | # Broken: fails on valid input. |
4524 | continue | |
4525 | fi | |
4526 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4527 | |
81ecdfbb | 4528 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4529 | # can be detected and how. |
81ecdfbb | 4530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4531 | /* end confdefs.h. */ |
4532 | #include <ac_nonexistent.h> | |
4533 | _ACEOF | |
81ecdfbb | 4534 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4535 | # Broken: success on invalid input. |
4536 | continue | |
4537 | else | |
7357c5b6 AM |
4538 | # Passes both tests. |
4539 | ac_preproc_ok=: | |
4540 | break | |
4541 | fi | |
4542 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4543 | |
7357c5b6 AM |
4544 | done |
4545 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4546 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
4547 | if $ac_preproc_ok; then : |
4548 | ||
7357c5b6 | 4549 | else |
81ecdfbb RW |
4550 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4552 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4553 | See \`config.log' for more details." "$LINENO" 5; } | |
7357c5b6 | 4554 | fi |
ac48eca1 | 4555 | |
7357c5b6 AM |
4556 | ac_ext=c |
4557 | ac_cpp='$CPP $CPPFLAGS' | |
4558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4561 | |
ac48eca1 | 4562 | |
81ecdfbb RW |
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4564 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4565 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4566 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4567 | else |
81ecdfbb RW |
4568 | if test -z "$GREP"; then |
4569 | ac_path_GREP_found=false | |
4570 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4572 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4573 | do | |
4574 | IFS=$as_save_IFS | |
4575 | test -z "$as_dir" && as_dir=. | |
4576 | for ac_prog in grep ggrep; do | |
4577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4578 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4579 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4580 | # Check for GNU ac_path_GREP and select it if it is found. | |
4581 | # Check for GNU $ac_path_GREP | |
4582 | case `"$ac_path_GREP" --version 2>&1` in | |
4583 | *GNU*) | |
4584 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4585 | *) | |
4586 | ac_count=0 | |
4587 | $as_echo_n 0123456789 >"conftest.in" | |
4588 | while : | |
4589 | do | |
4590 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4591 | mv "conftest.tmp" "conftest.in" | |
4592 | cp "conftest.in" "conftest.nl" | |
4593 | $as_echo 'GREP' >> "conftest.nl" | |
4594 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4595 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4596 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4597 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4598 | # Best one so far, save it but keep looking for a better one | |
4599 | ac_cv_path_GREP="$ac_path_GREP" | |
4600 | ac_path_GREP_max=$ac_count | |
7357c5b6 | 4601 | fi |
81ecdfbb RW |
4602 | # 10*(2^10) chars as input seems more than enough |
4603 | test $ac_count -gt 10 && break | |
4604 | done | |
4605 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4606 | esac | |
4607 | ||
4608 | $ac_path_GREP_found && break 3 | |
4609 | done | |
4610 | done | |
4611 | done | |
4612 | IFS=$as_save_IFS | |
4613 | if test -z "$ac_cv_path_GREP"; then | |
4614 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4615 | fi | |
4616 | else | |
4617 | ac_cv_path_GREP=$GREP | |
7357c5b6 | 4618 | fi |
81ecdfbb RW |
4619 | |
4620 | fi | |
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4622 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4623 | GREP="$ac_cv_path_GREP" | |
ac48eca1 | 4624 | |
d7040cdb | 4625 | |
81ecdfbb RW |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4627 | $as_echo_n "checking for egrep... " >&6; } | |
4628 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4629 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4630 | else |
81ecdfbb RW |
4631 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4632 | then ac_cv_path_EGREP="$GREP -E" | |
4633 | else | |
4634 | if test -z "$EGREP"; then | |
4635 | ac_path_EGREP_found=false | |
4636 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4638 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4639 | do | |
4640 | IFS=$as_save_IFS | |
4641 | test -z "$as_dir" && as_dir=. | |
4642 | for ac_prog in egrep; do | |
4643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4644 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4645 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4646 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4647 | # Check for GNU $ac_path_EGREP | |
4648 | case `"$ac_path_EGREP" --version 2>&1` in | |
4649 | *GNU*) | |
4650 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4651 | *) | |
4652 | ac_count=0 | |
4653 | $as_echo_n 0123456789 >"conftest.in" | |
4654 | while : | |
4655 | do | |
4656 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4657 | mv "conftest.tmp" "conftest.in" | |
4658 | cp "conftest.in" "conftest.nl" | |
4659 | $as_echo 'EGREP' >> "conftest.nl" | |
4660 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4661 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4662 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4663 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4664 | # Best one so far, save it but keep looking for a better one | |
4665 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4666 | ac_path_EGREP_max=$ac_count | |
4667 | fi | |
4668 | # 10*(2^10) chars as input seems more than enough | |
4669 | test $ac_count -gt 10 && break | |
4670 | done | |
4671 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4672 | esac | |
4673 | ||
4674 | $ac_path_EGREP_found && break 3 | |
4675 | done | |
4676 | done | |
4677 | done | |
4678 | IFS=$as_save_IFS | |
4679 | if test -z "$ac_cv_path_EGREP"; then | |
4680 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4681 | fi | |
4682 | else | |
4683 | ac_cv_path_EGREP=$EGREP | |
4684 | fi | |
4685 | ||
4686 | fi | |
4687 | fi | |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4689 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4690 | EGREP="$ac_cv_path_EGREP" | |
4691 | ||
4692 | ||
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4694 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4695 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4696 | $as_echo_n "(cached) " >&6 | |
4697 | else | |
4698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7357c5b6 AM |
4699 | /* end confdefs.h. */ |
4700 | #include <stdlib.h> | |
4701 | #include <stdarg.h> | |
4702 | #include <string.h> | |
4703 | #include <float.h> | |
d7040cdb | 4704 | |
7357c5b6 AM |
4705 | int |
4706 | main () | |
4707 | { | |
d7040cdb | 4708 | |
7357c5b6 AM |
4709 | ; |
4710 | return 0; | |
4711 | } | |
4712 | _ACEOF | |
81ecdfbb | 4713 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4714 | ac_cv_header_stdc=yes |
4715 | else | |
81ecdfbb | 4716 | ac_cv_header_stdc=no |
7357c5b6 | 4717 | fi |
81ecdfbb | 4718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4719 | |
7357c5b6 AM |
4720 | if test $ac_cv_header_stdc = yes; then |
4721 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4723 | /* end confdefs.h. */ |
4724 | #include <string.h> | |
d7040cdb | 4725 | |
7357c5b6 AM |
4726 | _ACEOF |
4727 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4728 | $EGREP "memchr" >/dev/null 2>&1; then : |
4729 | ||
ce2cded5 | 4730 | else |
7357c5b6 AM |
4731 | ac_cv_header_stdc=no |
4732 | fi | |
4733 | rm -f conftest* | |
d7040cdb | 4734 | |
7357c5b6 | 4735 | fi |
d7040cdb | 4736 | |
7357c5b6 AM |
4737 | if test $ac_cv_header_stdc = yes; then |
4738 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4740 | /* end confdefs.h. */ |
4741 | #include <stdlib.h> | |
ac48eca1 | 4742 | |
7357c5b6 AM |
4743 | _ACEOF |
4744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4745 | $EGREP "free" >/dev/null 2>&1; then : |
4746 | ||
7357c5b6 AM |
4747 | else |
4748 | ac_cv_header_stdc=no | |
4749 | fi | |
4750 | rm -f conftest* | |
d7040cdb | 4751 | |
7357c5b6 | 4752 | fi |
d7040cdb | 4753 | |
7357c5b6 AM |
4754 | if test $ac_cv_header_stdc = yes; then |
4755 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4756 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4757 | : |
4758 | else | |
81ecdfbb | 4759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4760 | /* end confdefs.h. */ |
4761 | #include <ctype.h> | |
81ecdfbb | 4762 | #include <stdlib.h> |
7357c5b6 AM |
4763 | #if ((' ' & 0x0FF) == 0x020) |
4764 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4765 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4766 | #else | |
4767 | # define ISLOWER(c) \ | |
4768 | (('a' <= (c) && (c) <= 'i') \ | |
4769 | || ('j' <= (c) && (c) <= 'r') \ | |
4770 | || ('s' <= (c) && (c) <= 'z')) | |
4771 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4772 | #endif | |
d7040cdb | 4773 | |
7357c5b6 AM |
4774 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4775 | int | |
4776 | main () | |
4777 | { | |
4778 | int i; | |
4779 | for (i = 0; i < 256; i++) | |
4780 | if (XOR (islower (i), ISLOWER (i)) | |
4781 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4782 | return 2; |
4783 | return 0; | |
7357c5b6 AM |
4784 | } |
4785 | _ACEOF | |
81ecdfbb | 4786 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4787 | |
81ecdfbb RW |
4788 | else |
4789 | ac_cv_header_stdc=no | |
7357c5b6 | 4790 | fi |
81ecdfbb RW |
4791 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4792 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4793 | fi |
81ecdfbb | 4794 | |
7357c5b6 AM |
4795 | fi |
4796 | fi | |
81ecdfbb RW |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4798 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4799 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4800 | |
81ecdfbb | 4801 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4802 | |
7357c5b6 | 4803 | fi |
d7040cdb | 4804 | |
7357c5b6 | 4805 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4806 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4807 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4808 | do : |
4809 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4810 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4811 | " | |
4812 | eval as_val=\$$as_ac_Header | |
4813 | if test "x$as_val" = x""yes; then : | |
7357c5b6 | 4814 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4815 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4816 | _ACEOF |
ce2cded5 | 4817 | |
7357c5b6 | 4818 | fi |
ce2cded5 | 4819 | |
7357c5b6 | 4820 | done |
ce2cded5 L |
4821 | |
4822 | ||
4823 | ||
81ecdfbb RW |
4824 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4825 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
7357c5b6 AM |
4826 | MINIX=yes |
4827 | else | |
4828 | MINIX= | |
4829 | fi | |
d7040cdb SE |
4830 | |
4831 | ||
7357c5b6 | 4832 | if test "$MINIX" = yes; then |
d7040cdb | 4833 | |
81ecdfbb | 4834 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb SE |
4835 | |
4836 | ||
81ecdfbb | 4837 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4838 | |
4839 | ||
81ecdfbb | 4840 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4841 | |
7357c5b6 | 4842 | fi |
d7040cdb SE |
4843 | |
4844 | ||
81ecdfbb RW |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4846 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4847 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4848 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4849 | else |
81ecdfbb | 4850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4851 | /* end confdefs.h. */ |
ac48eca1 | 4852 | |
7357c5b6 AM |
4853 | # define __EXTENSIONS__ 1 |
4854 | $ac_includes_default | |
4855 | int | |
4856 | main () | |
4857 | { | |
13b2be9c | 4858 | |
7357c5b6 AM |
4859 | ; |
4860 | return 0; | |
4861 | } | |
4862 | _ACEOF | |
81ecdfbb | 4863 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 4864 | ac_cv_safe_to_define___extensions__=yes |
d6d788bd | 4865 | else |
81ecdfbb | 4866 | ac_cv_safe_to_define___extensions__=no |
d6d788bd | 4867 | fi |
81ecdfbb | 4868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 4869 | fi |
81ecdfbb RW |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4871 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 4872 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4873 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d6d788bd | 4874 | |
81ecdfbb | 4875 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d6d788bd | 4876 | |
81ecdfbb | 4877 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
252b5132 | 4878 | |
81ecdfbb | 4879 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
252b5132 | 4880 | |
81ecdfbb | 4881 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
d6d788bd | 4882 | |
a74801ba | 4883 | |
d053aef8 | 4884 | |
81ecdfbb | 4885 | |
da2f07f1 | 4886 | |
3388710e JM |
4887 | # The tests for host and target for $enable_largefile require |
4888 | # canonical names. | |
4889 | ||
4890 | ||
4891 | ||
da2f07f1 JK |
4892 | # As the $enable_largefile decision depends on --enable-plugins we must set it |
4893 | # even in directories otherwise not depending on the $plugins option. | |
4894 | ||
4895 | ||
4896 | # Check whether --enable-plugins was given. | |
4897 | if test "${enable_plugins+set}" = set; then : | |
4898 | enableval=$enable_plugins; case "${enableval}" in | |
4899 | yes | "") plugins=yes ;; | |
4900 | no) plugins=no ;; | |
4901 | *) plugins=yes ;; | |
4902 | esac | |
4903 | else | |
4904 | plugins=no | |
4905 | fi | |
4906 | ||
4907 | ||
4908 | ||
4909 | case "${host}" in | |
4910 | sparc-*-solaris*|i[3-7]86-*-solaris*) | |
4911 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
4912 | # are mutually exclusive; and without procfs support, the bfd/ elf module | |
4913 | # cannot provide certain routines such as elfcore_write_prpsinfo | |
4914 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
4915 | # large-file support through the --enable-largefile switch, disable | |
4916 | # large-file support in favor of procfs support. | |
4917 | test "${target}" = "${host}" -a "x$plugins" = xno \ | |
4918 | && : ${enable_largefile="no"} | |
4919 | ;; | |
4920 | esac | |
4921 | ||
81ecdfbb RW |
4922 | # Check whether --enable-largefile was given. |
4923 | if test "${enable_largefile+set}" = set; then : | |
4924 | enableval=$enable_largefile; | |
4925 | fi | |
4926 | ||
d053aef8 JK |
4927 | if test "$enable_largefile" != no; then |
4928 | ||
81ecdfbb RW |
4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
4930 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
4931 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
4932 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
4933 | else |
4934 | ac_cv_sys_largefile_CC=no | |
4935 | if test "$GCC" != yes; then | |
4936 | ac_save_CC=$CC | |
4937 | while :; do | |
81ecdfbb RW |
4938 | # IRIX 6.2 and later do not support large files by default, |
4939 | # so use the C compiler's -n32 option if that helps. | |
4940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
4941 | /* end confdefs.h. */ |
4942 | #include <sys/types.h> | |
4943 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4944 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4945 | since some C++ compilers masquerading as C compilers | |
4946 | incorrectly reject 9223372036854775807. */ | |
4947 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4948 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4949 | && LARGE_OFF_T % 2147483647 == 1) | |
4950 | ? 1 : -1]; | |
4951 | int | |
4952 | main () | |
4953 | { | |
4954 | ||
4955 | ; | |
4956 | return 0; | |
4957 | } | |
4958 | _ACEOF | |
81ecdfbb | 4959 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 4960 | break |
d053aef8 | 4961 | fi |
81ecdfbb RW |
4962 | rm -f core conftest.err conftest.$ac_objext |
4963 | CC="$CC -n32" | |
4964 | if ac_fn_c_try_compile "$LINENO"; then : | |
d053aef8 | 4965 | ac_cv_sys_largefile_CC=' -n32'; break |
d053aef8 | 4966 | fi |
81ecdfbb | 4967 | rm -f core conftest.err conftest.$ac_objext |
d053aef8 JK |
4968 | break |
4969 | done | |
4970 | CC=$ac_save_CC | |
4971 | rm -f conftest.$ac_ext | |
4972 | fi | |
4973 | fi | |
81ecdfbb RW |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
4975 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
d053aef8 JK |
4976 | if test "$ac_cv_sys_largefile_CC" != no; then |
4977 | CC=$CC$ac_cv_sys_largefile_CC | |
4978 | fi | |
4979 | ||
81ecdfbb RW |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
4981 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
4982 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
4983 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
4984 | else |
4985 | while :; do | |
81ecdfbb | 4986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
4987 | /* end confdefs.h. */ |
4988 | #include <sys/types.h> | |
4989 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4990 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4991 | since some C++ compilers masquerading as C compilers | |
4992 | incorrectly reject 9223372036854775807. */ | |
4993 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4994 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4995 | && LARGE_OFF_T % 2147483647 == 1) | |
4996 | ? 1 : -1]; | |
4997 | int | |
4998 | main () | |
4999 | { | |
5000 | ||
5001 | ; | |
5002 | return 0; | |
5003 | } | |
5004 | _ACEOF | |
81ecdfbb RW |
5005 | if ac_fn_c_try_compile "$LINENO"; then : |
5006 | ac_cv_sys_file_offset_bits=no; break | |
d053aef8 | 5007 | fi |
81ecdfbb RW |
5008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5010 | /* end confdefs.h. */ |
5011 | #define _FILE_OFFSET_BITS 64 | |
5012 | #include <sys/types.h> | |
5013 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5014 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5015 | since some C++ compilers masquerading as C compilers | |
5016 | incorrectly reject 9223372036854775807. */ | |
5017 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5018 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5019 | && LARGE_OFF_T % 2147483647 == 1) | |
5020 | ? 1 : -1]; | |
5021 | int | |
5022 | main () | |
5023 | { | |
5024 | ||
5025 | ; | |
5026 | return 0; | |
5027 | } | |
5028 | _ACEOF | |
81ecdfbb | 5029 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5030 | ac_cv_sys_file_offset_bits=64; break |
d053aef8 | 5031 | fi |
81ecdfbb RW |
5032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5033 | ac_cv_sys_file_offset_bits=unknown | |
d053aef8 JK |
5034 | break |
5035 | done | |
5036 | fi | |
81ecdfbb RW |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
5038 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
5039 | case $ac_cv_sys_file_offset_bits in #( | |
5040 | no | unknown) ;; | |
5041 | *) | |
d053aef8 JK |
5042 | cat >>confdefs.h <<_ACEOF |
5043 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5044 | _ACEOF | |
81ecdfbb RW |
5045 | ;; |
5046 | esac | |
5047 | rm -rf conftest* | |
5048 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
5050 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
5051 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
5052 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5053 | else |
5054 | while :; do | |
81ecdfbb | 5055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5056 | /* end confdefs.h. */ |
5057 | #include <sys/types.h> | |
5058 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5059 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5060 | since some C++ compilers masquerading as C compilers | |
5061 | incorrectly reject 9223372036854775807. */ | |
5062 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5063 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5064 | && LARGE_OFF_T % 2147483647 == 1) | |
5065 | ? 1 : -1]; | |
5066 | int | |
5067 | main () | |
5068 | { | |
5069 | ||
5070 | ; | |
5071 | return 0; | |
5072 | } | |
5073 | _ACEOF | |
81ecdfbb RW |
5074 | if ac_fn_c_try_compile "$LINENO"; then : |
5075 | ac_cv_sys_large_files=no; break | |
d053aef8 | 5076 | fi |
81ecdfbb RW |
5077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5079 | /* end confdefs.h. */ |
5080 | #define _LARGE_FILES 1 | |
5081 | #include <sys/types.h> | |
5082 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5083 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5084 | since some C++ compilers masquerading as C compilers | |
5085 | incorrectly reject 9223372036854775807. */ | |
5086 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5087 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5088 | && LARGE_OFF_T % 2147483647 == 1) | |
5089 | ? 1 : -1]; | |
5090 | int | |
5091 | main () | |
5092 | { | |
5093 | ||
5094 | ; | |
5095 | return 0; | |
5096 | } | |
5097 | _ACEOF | |
81ecdfbb | 5098 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5099 | ac_cv_sys_large_files=1; break |
d053aef8 | 5100 | fi |
81ecdfbb RW |
5101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5102 | ac_cv_sys_large_files=unknown | |
d053aef8 JK |
5103 | break |
5104 | done | |
5105 | fi | |
81ecdfbb RW |
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
5107 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5108 | case $ac_cv_sys_large_files in #( | |
5109 | no | unknown) ;; | |
5110 | *) | |
d053aef8 JK |
5111 | cat >>confdefs.h <<_ACEOF |
5112 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5113 | _ACEOF | |
81ecdfbb RW |
5114 | ;; |
5115 | esac | |
5116 | rm -rf conftest* | |
5117 | fi | |
d053aef8 JK |
5118 | fi |
5119 | ||
a74801ba | 5120 | |
da2f07f1 | 5121 | |
718a6fd8 SE |
5122 | case `pwd` in |
5123 | *\ * | *\ *) | |
81ecdfbb RW |
5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
5125 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
718a6fd8 | 5126 | esac |
13b2be9c | 5127 | |
252b5132 | 5128 | |
7357c5b6 | 5129 | |
3725885a RW |
5130 | macro_version='2.2.7a' |
5131 | macro_revision='1.3134' | |
7357c5b6 AM |
5132 | |
5133 | ||
5134 | ||
5135 | ||
5136 | ||
5137 | ||
7357c5b6 AM |
5138 | |
5139 | ||
5140 | ||
5141 | ||
5142 | ||
5143 | ||
5144 | ||
718a6fd8 | 5145 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 5146 | |
3725885a RW |
5147 | # Backslashify metacharacters that are still active within |
5148 | # double-quoted strings. | |
5149 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5150 | ||
5151 | # Same as above, but do not quote variable references. | |
5152 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5153 | ||
5154 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5155 | # double_quote_subst'ed string. | |
5156 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5157 | ||
5158 | # Sed substitution to delay expansion of an escaped single quote. | |
5159 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5160 | ||
5161 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5162 | no_glob_subst='s/\*/\\\*/g' | |
5163 | ||
5164 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5165 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5166 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5167 | ||
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5169 | $as_echo_n "checking how to print strings... " >&6; } | |
5170 | # Test print first, because it will be a builtin if present. | |
5171 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5172 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5173 | ECHO='print -r --' | |
5174 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5175 | ECHO='printf %s\n' | |
5176 | else | |
5177 | # Use this function as a fallback that always works. | |
5178 | func_fallback_echo () | |
5179 | { | |
5180 | eval 'cat <<_LTECHO_EOF | |
5181 | $1 | |
5182 | _LTECHO_EOF' | |
5183 | } | |
5184 | ECHO='func_fallback_echo' | |
5185 | fi | |
5186 | ||
5187 | # func_echo_all arg... | |
5188 | # Invoke $ECHO with all args, space-separated. | |
5189 | func_echo_all () | |
5190 | { | |
5191 | $ECHO "" | |
5192 | } | |
5193 | ||
5194 | case "$ECHO" in | |
5195 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5196 | $as_echo "printf" >&6; } ;; | |
5197 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5198 | $as_echo "print -r" >&6; } ;; | |
5199 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5200 | $as_echo "cat" >&6; } ;; | |
5201 | esac | |
5202 | ||
5203 | ||
5204 | ||
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | ||
5215 | ||
81ecdfbb RW |
5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5217 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5218 | if test "${ac_cv_path_SED+set}" = set; then : | |
5219 | $as_echo_n "(cached) " >&6 | |
5220 | else | |
5221 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5222 | for ac_i in 1 2 3 4 5 6 7; do | |
5223 | ac_script="$ac_script$as_nl$ac_script" | |
5224 | done | |
5225 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5226 | { ac_script=; unset ac_script;} | |
5227 | if test -z "$SED"; then | |
5228 | ac_path_SED_found=false | |
5229 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5231 | for as_dir in $PATH |
5232 | do | |
5233 | IFS=$as_save_IFS | |
5234 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5235 | for ac_prog in sed gsed; do |
7357c5b6 | 5236 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5237 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5238 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5239 | # Check for GNU ac_path_SED and select it if it is found. | |
5240 | # Check for GNU $ac_path_SED | |
5241 | case `"$ac_path_SED" --version 2>&1` in | |
5242 | *GNU*) | |
5243 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5244 | *) | |
5245 | ac_count=0 | |
5246 | $as_echo_n 0123456789 >"conftest.in" | |
5247 | while : | |
5248 | do | |
5249 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5250 | mv "conftest.tmp" "conftest.in" | |
5251 | cp "conftest.in" "conftest.nl" | |
5252 | $as_echo '' >> "conftest.nl" | |
5253 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5254 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5255 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5256 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5257 | # Best one so far, save it but keep looking for a better one | |
5258 | ac_cv_path_SED="$ac_path_SED" | |
5259 | ac_path_SED_max=$ac_count | |
5260 | fi | |
5261 | # 10*(2^10) chars as input seems more than enough | |
5262 | test $ac_count -gt 10 && break | |
5263 | done | |
5264 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5265 | esac | |
5266 | ||
5267 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5268 | done |
5269 | done | |
81ecdfbb | 5270 | done |
7357c5b6 | 5271 | IFS=$as_save_IFS |
81ecdfbb RW |
5272 | if test -z "$ac_cv_path_SED"; then |
5273 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
7357c5b6 | 5274 | fi |
81ecdfbb RW |
5275 | else |
5276 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
5277 | fi |
5278 | ||
81ecdfbb RW |
5279 | fi |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5281 | $as_echo "$ac_cv_path_SED" >&6; } | |
5282 | SED="$ac_cv_path_SED" | |
5283 | rm -f conftest.sed | |
7357c5b6 AM |
5284 | |
5285 | test -z "$SED" && SED=sed | |
5286 | Xsed="$SED -e 1s/^X//" | |
5287 | ||
5288 | ||
5289 | ||
5290 | ||
5291 | ||
5292 | ||
5293 | ||
5294 | ||
5295 | ||
5296 | ||
5297 | ||
81ecdfbb RW |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5299 | $as_echo_n "checking for fgrep... " >&6; } | |
5300 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5301 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5302 | else |
81ecdfbb RW |
5303 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5304 | then ac_cv_path_FGREP="$GREP -F" | |
5305 | else | |
5306 | if test -z "$FGREP"; then | |
5307 | ac_path_FGREP_found=false | |
5308 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5310 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5311 | do | |
5312 | IFS=$as_save_IFS | |
5313 | test -z "$as_dir" && as_dir=. | |
5314 | for ac_prog in fgrep; do | |
5315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5316 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5317 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5318 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5319 | # Check for GNU $ac_path_FGREP | |
5320 | case `"$ac_path_FGREP" --version 2>&1` in | |
5321 | *GNU*) | |
5322 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5323 | *) | |
5324 | ac_count=0 | |
5325 | $as_echo_n 0123456789 >"conftest.in" | |
5326 | while : | |
5327 | do | |
5328 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5329 | mv "conftest.tmp" "conftest.in" | |
5330 | cp "conftest.in" "conftest.nl" | |
5331 | $as_echo 'FGREP' >> "conftest.nl" | |
5332 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5333 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5334 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5335 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5336 | # Best one so far, save it but keep looking for a better one | |
5337 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5338 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5339 | fi |
81ecdfbb RW |
5340 | # 10*(2^10) chars as input seems more than enough |
5341 | test $ac_count -gt 10 && break | |
5342 | done | |
5343 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5344 | esac | |
5345 | ||
5346 | $ac_path_FGREP_found && break 3 | |
5347 | done | |
5348 | done | |
5349 | done | |
5350 | IFS=$as_save_IFS | |
5351 | if test -z "$ac_cv_path_FGREP"; then | |
5352 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5353 | fi | |
5354 | else | |
5355 | ac_cv_path_FGREP=$FGREP | |
7357c5b6 | 5356 | fi |
81ecdfbb RW |
5357 | |
5358 | fi | |
5359 | fi | |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5361 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5362 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5363 | |
5364 | ||
5365 | test -z "$GREP" && GREP=grep | |
5366 | ||
5367 | ||
5368 | ||
5369 | ||
5370 | ||
5371 | ||
5372 | ||
5373 | ||
5374 | ||
5375 | ||
5376 | ||
5377 | ||
5378 | ||
5379 | ||
5380 | ||
5381 | ||
5382 | ||
5383 | ||
5384 | ||
81ecdfbb RW |
5385 | # Check whether --with-gnu-ld was given. |
5386 | if test "${with_gnu_ld+set}" = set; then : | |
5387 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5388 | else |
5389 | with_gnu_ld=no | |
81ecdfbb RW |
5390 | fi |
5391 | ||
ce2cded5 L |
5392 | ac_prog=ld |
5393 | if test "$GCC" = yes; then | |
5394 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5396 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
ce2cded5 L |
5397 | case $host in |
5398 | *-*-mingw*) | |
5399 | # gcc leaves a trailing carriage return which upsets mingw | |
5400 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5401 | *) | |
5402 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5403 | esac | |
5404 | case $ac_prog in | |
5405 | # Accept absolute paths. | |
5406 | [\\/]* | ?:[\\/]*) | |
5407 | re_direlt='/[^/][^/]*/\.\./' | |
5408 | # Canonicalize the pathname of ld | |
5409 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5410 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5411 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5412 | done | |
5413 | test -z "$LD" && LD="$ac_prog" | |
5414 | ;; | |
5415 | "") | |
5416 | # If it fails, then pretend we aren't using GCC. | |
5417 | ac_prog=ld | |
5418 | ;; | |
5419 | *) | |
5420 | # If it is relative, then search for the first ld in PATH. | |
5421 | with_gnu_ld=unknown | |
5422 | ;; | |
5423 | esac | |
5424 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5426 | $as_echo_n "checking for GNU ld... " >&6; } | |
ce2cded5 | 5427 | else |
81ecdfbb RW |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5429 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5430 | fi |
81ecdfbb RW |
5431 | if test "${lt_cv_path_LD+set}" = set; then : |
5432 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5433 | else |
5434 | if test -z "$LD"; then | |
5435 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5436 | for ac_dir in $PATH; do | |
5437 | IFS="$lt_save_ifs" | |
5438 | test -z "$ac_dir" && ac_dir=. | |
5439 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5440 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5441 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5442 | # but apparently some variants of GNU ld only accept -v. | |
5443 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5444 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5445 | *GNU* | *'with BFD'*) | |
5446 | test "$with_gnu_ld" != no && break | |
5447 | ;; | |
5448 | *) | |
5449 | test "$with_gnu_ld" != yes && break | |
5450 | ;; | |
5451 | esac | |
5452 | fi | |
5453 | done | |
5454 | IFS="$lt_save_ifs" | |
5455 | else | |
5456 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5457 | fi | |
5458 | fi | |
5459 | ||
5460 | LD="$lt_cv_path_LD" | |
5461 | if test -n "$LD"; then | |
81ecdfbb RW |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5463 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5464 | else |
81ecdfbb RW |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5466 | $as_echo "no" >&6; } | |
ce2cded5 | 5467 | fi |
81ecdfbb RW |
5468 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5470 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5471 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5472 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5473 | else |
5474 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5475 | case `$LD -v 2>&1 </dev/null` in | |
5476 | *GNU* | *'with BFD'*) | |
5477 | lt_cv_prog_gnu_ld=yes | |
5478 | ;; | |
5479 | *) | |
5480 | lt_cv_prog_gnu_ld=no | |
5481 | ;; | |
5482 | esac | |
5483 | fi | |
81ecdfbb RW |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5485 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
ce2cded5 L |
5486 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5487 | ||
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
81ecdfbb RW |
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5497 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5498 | if test "${lt_cv_path_NM+set}" = set; then : | |
5499 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5500 | else |
5501 | if test -n "$NM"; then | |
5502 | # Let the user override the test. | |
5503 | lt_cv_path_NM="$NM" | |
5504 | else | |
5505 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5506 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5507 | lt_nm_to_check="$lt_nm_to_check nm" | |
5508 | fi | |
5509 | for lt_tmp_nm in $lt_nm_to_check; do | |
5510 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5511 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5512 | IFS="$lt_save_ifs" | |
5513 | test -z "$ac_dir" && ac_dir=. | |
5514 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5515 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5516 | # Check to see if the nm accepts a BSD-compat flag. | |
5517 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5518 | # nm: unknown option "B" ignored | |
5519 | # Tru64's nm complains that /dev/null is an invalid object file | |
5520 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5521 | */dev/null* | *'Invalid file or object type'*) | |
5522 | lt_cv_path_NM="$tmp_nm -B" | |
5523 | break | |
5524 | ;; | |
5525 | *) | |
5526 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5527 | */dev/null*) | |
5528 | lt_cv_path_NM="$tmp_nm -p" | |
5529 | break | |
5530 | ;; | |
5531 | *) | |
5532 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5533 | continue # so that we can try to find one that supports BSD flags | |
5534 | ;; | |
5535 | esac | |
5536 | ;; | |
5537 | esac | |
5538 | fi | |
5539 | done | |
5540 | IFS="$lt_save_ifs" | |
5541 | done | |
5542 | : ${lt_cv_path_NM=no} | |
5543 | fi | |
5544 | fi | |
81ecdfbb RW |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5546 | $as_echo "$lt_cv_path_NM" >&6; } | |
ce2cded5 L |
5547 | if test "$lt_cv_path_NM" != "no"; then |
5548 | NM="$lt_cv_path_NM" | |
5549 | else | |
5550 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3725885a RW |
5551 | if test -n "$DUMPBIN"; then : |
5552 | # Let the user override the test. | |
5553 | else | |
5554 | if test -n "$ac_tool_prefix"; then | |
5555 | for ac_prog in dumpbin "link -dump" | |
ce2cded5 L |
5556 | do |
5557 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5558 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5560 | $as_echo_n "checking for $ac_word... " >&6; } | |
5561 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5562 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5563 | else |
ce2cded5 L |
5564 | if test -n "$DUMPBIN"; then |
5565 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5566 | else |
5567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5568 | for as_dir in $PATH | |
5569 | do | |
5570 | IFS=$as_save_IFS | |
5571 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5572 | for ac_exec_ext in '' $ac_executable_extensions; do |
5573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 5574 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5576 | break 2 |
d70c5fc7 | 5577 | fi |
d7040cdb | 5578 | done |
81ecdfbb RW |
5579 | done |
5580 | IFS=$as_save_IFS | |
d70c5fc7 | 5581 | |
d7040cdb SE |
5582 | fi |
5583 | fi | |
ce2cded5 L |
5584 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5585 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5587 | $as_echo "$DUMPBIN" >&6; } | |
bedf545c | 5588 | else |
81ecdfbb RW |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5590 | $as_echo "no" >&6; } | |
d7040cdb | 5591 | fi |
13b2be9c | 5592 | |
81ecdfbb | 5593 | |
ce2cded5 L |
5594 | test -n "$DUMPBIN" && break |
5595 | done | |
5596 | fi | |
5597 | if test -z "$DUMPBIN"; then | |
5598 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5599 | for ac_prog in dumpbin "link -dump" |
ce2cded5 L |
5600 | do |
5601 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5602 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5604 | $as_echo_n "checking for $ac_word... " >&6; } | |
5605 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5606 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 5607 | else |
ce2cded5 L |
5608 | if test -n "$ac_ct_DUMPBIN"; then |
5609 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5610 | else | |
5611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5612 | for as_dir in $PATH | |
5613 | do | |
5614 | IFS=$as_save_IFS | |
5615 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5616 | for ac_exec_ext in '' $ac_executable_extensions; do |
5617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 5618 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5620 | break 2 |
5621 | fi | |
5622 | done | |
81ecdfbb RW |
5623 | done |
5624 | IFS=$as_save_IFS | |
ce2cded5 L |
5625 | |
5626 | fi | |
5627 | fi | |
5628 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5629 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5631 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 5632 | else |
81ecdfbb RW |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5634 | $as_echo "no" >&6; } | |
d7040cdb SE |
5635 | fi |
5636 | ||
81ecdfbb | 5637 | |
ce2cded5 L |
5638 | test -n "$ac_ct_DUMPBIN" && break |
5639 | done | |
13b2be9c | 5640 | |
81ecdfbb RW |
5641 | if test "x$ac_ct_DUMPBIN" = x; then |
5642 | DUMPBIN=":" | |
5643 | else | |
5644 | case $cross_compiling:$ac_tool_warned in | |
5645 | yes:) | |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5647 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5648 | ac_tool_warned=yes ;; | |
5649 | esac | |
5650 | DUMPBIN=$ac_ct_DUMPBIN | |
5651 | fi | |
ce2cded5 | 5652 | fi |
13b2be9c | 5653 | |
3725885a RW |
5654 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5655 | *COFF*) | |
5656 | DUMPBIN="$DUMPBIN -symbols" | |
5657 | ;; | |
5658 | *) | |
5659 | DUMPBIN=: | |
5660 | ;; | |
5661 | esac | |
5662 | fi | |
bedf545c | 5663 | |
ce2cded5 L |
5664 | if test "$DUMPBIN" != ":"; then |
5665 | NM="$DUMPBIN" | |
5666 | fi | |
5667 | fi | |
5668 | test -z "$NM" && NM=nm | |
6840198f | 5669 | |
13b2be9c | 5670 | |
ac48eca1 | 5671 | |
d7040cdb | 5672 | |
ce2cded5 L |
5673 | |
5674 | ||
81ecdfbb RW |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5676 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5677 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5678 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5679 | else |
5680 | lt_cv_nm_interface="BSD nm" | |
5681 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5682 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
ce2cded5 L |
5683 | (eval "$ac_compile" 2>conftest.err) |
5684 | cat conftest.err >&5 | |
3725885a | 5685 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
5686 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5687 | cat conftest.err >&5 | |
3725885a | 5688 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
ce2cded5 L |
5689 | cat conftest.out >&5 |
5690 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5691 | lt_cv_nm_interface="MS dumpbin" | |
5692 | fi | |
5693 | rm -f conftest* | |
5694 | fi | |
81ecdfbb RW |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5696 | $as_echo "$lt_cv_nm_interface" >&6; } | |
ce2cded5 | 5697 | |
81ecdfbb RW |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5699 | $as_echo_n "checking whether ln -s works... " >&6; } | |
ce2cded5 L |
5700 | LN_S=$as_ln_s |
5701 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5703 | $as_echo "yes" >&6; } | |
ce2cded5 | 5704 | else |
81ecdfbb RW |
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5706 | $as_echo "no, using $LN_S" >&6; } | |
ce2cded5 L |
5707 | fi |
5708 | ||
5709 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5711 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5712 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5713 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5714 | else |
5715 | i=0 | |
5716 | teststring="ABCD" | |
5717 | ||
5718 | case $build_os in | |
5719 | msdosdjgpp*) | |
5720 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5721 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5722 | # during glob expansion). Even if it were fixed, the result of this | |
5723 | # check would be larger than it should be. | |
5724 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5725 | ;; | |
5726 | ||
5727 | gnu*) | |
5728 | # Under GNU Hurd, this test is not required because there is | |
5729 | # no limit to the length of command line arguments. | |
5730 | # Libtool will interpret -1 as no limit whatsoever | |
5731 | lt_cv_sys_max_cmd_len=-1; | |
5732 | ;; | |
5733 | ||
718a6fd8 | 5734 | cygwin* | mingw* | cegcc*) |
ce2cded5 L |
5735 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5736 | # about 5 minutes as the teststring grows exponentially. | |
5737 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5738 | # you end up with a "frozen" computer, even though with patience | |
5739 | # the test eventually succeeds (with a max line length of 256k). | |
5740 | # Instead, let's just punt: use the minimum linelength reported by | |
5741 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5742 | lt_cv_sys_max_cmd_len=8192; | |
5743 | ;; | |
5744 | ||
3725885a RW |
5745 | mint*) |
5746 | # On MiNT this can take a long time and run out of memory. | |
5747 | lt_cv_sys_max_cmd_len=8192; | |
5748 | ;; | |
5749 | ||
ce2cded5 L |
5750 | amigaos*) |
5751 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5752 | # So we just punt and use a minimum line length of 8192. | |
5753 | lt_cv_sys_max_cmd_len=8192; | |
5754 | ;; | |
5755 | ||
5756 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5757 | # This has been around since 386BSD, at least. Likely further. | |
5758 | if test -x /sbin/sysctl; then | |
5759 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5760 | elif test -x /usr/sbin/sysctl; then | |
5761 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5762 | else | |
5763 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5764 | fi | |
5765 | # And add a safety zone | |
5766 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5767 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5768 | ;; | |
5769 | ||
5770 | interix*) | |
5771 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5772 | lt_cv_sys_max_cmd_len=196608 | |
5773 | ;; | |
5774 | ||
5775 | osf*) | |
5776 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5777 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5778 | # nice to cause kernel panics so lets avoid the loop below. | |
5779 | # First set a reasonable default. | |
5780 | lt_cv_sys_max_cmd_len=16384 | |
5781 | # | |
5782 | if test -x /sbin/sysconfig; then | |
5783 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5784 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5785 | esac | |
5786 | fi | |
5787 | ;; | |
5788 | sco3.2v5*) | |
5789 | lt_cv_sys_max_cmd_len=102400 | |
5790 | ;; | |
5791 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5792 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5793 | if test -n "$kargmax"; then | |
5794 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5795 | else | |
5796 | lt_cv_sys_max_cmd_len=32768 | |
5797 | fi | |
d7040cdb SE |
5798 | ;; |
5799 | *) | |
718a6fd8 SE |
5800 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5801 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
ce2cded5 L |
5802 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5803 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5804 | else | |
5805 | # Make teststring a little bigger before we do anything with it. | |
5806 | # a 1K string should be a reasonable start. | |
5807 | for i in 1 2 3 4 5 6 7 8 ; do | |
5808 | teststring=$teststring$teststring | |
5809 | done | |
5810 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5811 | # If test is not a shell built-in, we'll probably end up computing a | |
5812 | # maximum length that is only half of the actual maximum length, but | |
5813 | # we can't tell. | |
3725885a RW |
5814 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5815 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
ce2cded5 L |
5816 | test $i != 17 # 1/2 MB should be enough |
5817 | do | |
5818 | i=`expr $i + 1` | |
5819 | teststring=$teststring$teststring | |
5820 | done | |
5821 | # Only check the string length outside the loop. | |
5822 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5823 | teststring= | |
5824 | # Add a significant safety factor because C++ compilers can tack on | |
5825 | # massive amounts of additional arguments before passing them to the | |
5826 | # linker. It appears as though 1/2 is a usable value. | |
5827 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5828 | fi | |
d7040cdb SE |
5829 | ;; |
5830 | esac | |
252b5132 | 5831 | |
ce2cded5 | 5832 | fi |
d6d788bd | 5833 | |
ce2cded5 | 5834 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5836 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
ce2cded5 | 5837 | else |
81ecdfbb RW |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5839 | $as_echo "none" >&6; } | |
ce2cded5 L |
5840 | fi |
5841 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5842 | |
d6d788bd | 5843 | |
13b2be9c | 5844 | |
13b2be9c | 5845 | |
bedf545c | 5846 | |
252b5132 | 5847 | |
ce2cded5 L |
5848 | : ${CP="cp -f"} |
5849 | : ${MV="mv -f"} | |
5850 | : ${RM="rm -f"} | |
d6d788bd | 5851 | |
81ecdfbb RW |
5852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5853 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
ce2cded5 L |
5854 | # Try some XSI features |
5855 | xsi_shell=no | |
5856 | ( _lt_dummy="a/b/c" | |
5857 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
718a6fd8 SE |
5858 | = c,a/b,, \ |
5859 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5860 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
ce2cded5 | 5861 | && xsi_shell=yes |
81ecdfbb RW |
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5863 | $as_echo "$xsi_shell" >&6; } | |
bedf545c | 5864 | |
bedf545c | 5865 | |
81ecdfbb RW |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5867 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
ce2cded5 L |
5868 | lt_shell_append=no |
5869 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5870 | >/dev/null 2>&1 \ | |
5871 | && lt_shell_append=yes | |
81ecdfbb RW |
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5873 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5874 | |
d6d788bd | 5875 | |
ce2cded5 L |
5876 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5877 | lt_unset=unset | |
5878 | else | |
5879 | lt_unset=false | |
5880 | fi | |
13b2be9c DJ |
5881 | |
5882 | ||
5883 | ||
5884 | ||
d6d788bd | 5885 | |
ce2cded5 L |
5886 | # test EBCDIC or ASCII |
5887 | case `echo X|tr X '\101'` in | |
5888 | A) # ASCII based system | |
5889 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5890 | lt_SP2NL='tr \040 \012' | |
5891 | lt_NL2SP='tr \015\012 \040\040' | |
5892 | ;; | |
5893 | *) # EBCDIC based system | |
5894 | lt_SP2NL='tr \100 \n' | |
5895 | lt_NL2SP='tr \r\n \100\100' | |
5896 | ;; | |
5897 | esac | |
c43a438d | 5898 | |
c43a438d | 5899 | |
c43a438d | 5900 | |
252b5132 | 5901 | |
ad22bfe8 | 5902 | |
1ad12f97 | 5903 | |
1ad12f97 | 5904 | |
9e9b66a9 | 5905 | |
1ad12f97 | 5906 | |
81ecdfbb RW |
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5908 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5909 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5910 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
5911 | else |
5912 | lt_cv_ld_reload_flag='-r' | |
5913 | fi | |
81ecdfbb RW |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5915 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
ce2cded5 L |
5916 | reload_flag=$lt_cv_ld_reload_flag |
5917 | case $reload_flag in | |
5918 | "" | " "*) ;; | |
5919 | *) reload_flag=" $reload_flag" ;; | |
5920 | esac | |
5921 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5922 | case $host_os in | |
5923 | darwin*) | |
5924 | if test "$GCC" = yes; then | |
5925 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5926 | else | |
5927 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5928 | fi | |
5929 | ;; | |
5930 | esac | |
a541e3ce | 5931 | |
9e9b66a9 | 5932 | |
a2d91340 | 5933 | |
d6d788bd | 5934 | |
9e9b66a9 AM |
5935 | |
5936 | ||
5937 | ||
d6d788bd | 5938 | |
252b5132 | 5939 | |
718a6fd8 SE |
5940 | if test -n "$ac_tool_prefix"; then |
5941 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5942 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5944 | $as_echo_n "checking for $ac_word... " >&6; } | |
5945 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5946 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
5947 | else |
5948 | if test -n "$OBJDUMP"; then | |
5949 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5950 | else | |
5951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5952 | for as_dir in $PATH | |
5953 | do | |
5954 | IFS=$as_save_IFS | |
5955 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5956 | for ac_exec_ext in '' $ac_executable_extensions; do |
5957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 5958 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5960 | break 2 |
5961 | fi | |
5962 | done | |
81ecdfbb RW |
5963 | done |
5964 | IFS=$as_save_IFS | |
718a6fd8 SE |
5965 | |
5966 | fi | |
5967 | fi | |
5968 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5969 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5971 | $as_echo "$OBJDUMP" >&6; } | |
718a6fd8 | 5972 | else |
81ecdfbb RW |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5974 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5975 | fi |
5976 | ||
81ecdfbb | 5977 | |
718a6fd8 SE |
5978 | fi |
5979 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5980 | ac_ct_OBJDUMP=$OBJDUMP | |
5981 | # Extract the first word of "objdump", so it can be a program name with args. | |
5982 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5984 | $as_echo_n "checking for $ac_word... " >&6; } | |
5985 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5986 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
5987 | else |
5988 | if test -n "$ac_ct_OBJDUMP"; then | |
5989 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5990 | else | |
5991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5992 | for as_dir in $PATH | |
5993 | do | |
5994 | IFS=$as_save_IFS | |
5995 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5996 | for ac_exec_ext in '' $ac_executable_extensions; do |
5997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 5998 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
6000 | break 2 |
6001 | fi | |
6002 | done | |
81ecdfbb RW |
6003 | done |
6004 | IFS=$as_save_IFS | |
718a6fd8 | 6005 | |
718a6fd8 SE |
6006 | fi |
6007 | fi | |
6008 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6009 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6011 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
718a6fd8 | 6012 | else |
81ecdfbb RW |
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6014 | $as_echo "no" >&6; } | |
718a6fd8 SE |
6015 | fi |
6016 | ||
81ecdfbb RW |
6017 | if test "x$ac_ct_OBJDUMP" = x; then |
6018 | OBJDUMP="false" | |
6019 | else | |
6020 | case $cross_compiling:$ac_tool_warned in | |
6021 | yes:) | |
6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6023 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6024 | ac_tool_warned=yes ;; | |
6025 | esac | |
6026 | OBJDUMP=$ac_ct_OBJDUMP | |
6027 | fi | |
718a6fd8 SE |
6028 | else |
6029 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6030 | fi | |
6031 | ||
6032 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
13b2be9c | 6041 | |
81ecdfbb RW |
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6043 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6044 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6045 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 6046 | else |
ce2cded5 L |
6047 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6048 | lt_cv_file_magic_test_file= | |
6049 | lt_cv_deplibs_check_method='unknown' | |
6050 | # Need to set the preceding variable on all platforms that support | |
6051 | # interlibrary dependencies. | |
6052 | # 'none' -- dependencies not supported. | |
6053 | # `unknown' -- same as none, but documents that we really don't know. | |
6054 | # 'pass_all' -- all dependencies passed with no checks. | |
6055 | # 'test_compile' -- check by making test program. | |
6056 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6057 | # which responds to the $file_magic_cmd with a given extended regex. | |
6058 | # If you have `file' or equivalent on your system and you're not sure | |
6059 | # whether `pass_all' will *always* work, you probably want this one. | |
13b2be9c | 6060 | |
ce2cded5 | 6061 | case $host_os in |
50e7d84b | 6062 | aix[4-9]*) |
ce2cded5 L |
6063 | lt_cv_deplibs_check_method=pass_all |
6064 | ;; | |
d7040cdb | 6065 | |
ce2cded5 L |
6066 | beos*) |
6067 | lt_cv_deplibs_check_method=pass_all | |
6068 | ;; | |
d7040cdb | 6069 | |
ce2cded5 L |
6070 | bsdi[45]*) |
6071 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6072 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6073 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6074 | ;; | |
d7040cdb | 6075 | |
ce2cded5 L |
6076 | cygwin*) |
6077 | # func_win32_libid is a shell function defined in ltmain.sh | |
6078 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6079 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 6080 | ;; |
ce2cded5 L |
6081 | |
6082 | mingw* | pw32*) | |
6083 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6084 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6085 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
6086 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
6087 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
ce2cded5 L |
6088 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6089 | lt_cv_file_magic_cmd='func_win32_libid' | |
6090 | else | |
6091 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6092 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6093 | fi | |
d7040cdb | 6094 | ;; |
ce2cded5 | 6095 | |
3725885a | 6096 | cegcc*) |
718a6fd8 SE |
6097 | # use the weaker test based on 'objdump'. See mingw*. |
6098 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6099 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6100 | ;; | |
6101 | ||
ce2cded5 L |
6102 | darwin* | rhapsody*) |
6103 | lt_cv_deplibs_check_method=pass_all | |
6104 | ;; | |
6105 | ||
6106 | freebsd* | dragonfly*) | |
6107 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6108 | case $host_cpu in | |
6109 | i*86 ) | |
6110 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6111 | # Let's accept both of them until this is cleared up. | |
6112 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6113 | lt_cv_file_magic_cmd=/usr/bin/file | |
6114 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6115 | ;; | |
6116 | esac | |
6117 | else | |
6118 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
6119 | fi |
6120 | ;; | |
ce2cded5 L |
6121 | |
6122 | gnu*) | |
6123 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6124 | ;; |
ce2cded5 | 6125 | |
3725885a RW |
6126 | haiku*) |
6127 | lt_cv_deplibs_check_method=pass_all | |
6128 | ;; | |
6129 | ||
ce2cded5 L |
6130 | hpux10.20* | hpux11*) |
6131 | lt_cv_file_magic_cmd=/usr/bin/file | |
6132 | case $host_cpu in | |
6133 | ia64*) | |
6134 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6135 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6136 | ;; | |
6137 | hppa*64*) | |
3725885a | 6138 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
ce2cded5 L |
6139 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6140 | ;; | |
6141 | *) | |
3725885a | 6142 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
ce2cded5 L |
6143 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6144 | ;; | |
6145 | esac | |
d7040cdb | 6146 | ;; |
ce2cded5 L |
6147 | |
6148 | interix[3-9]*) | |
6149 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6150 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
d7040cdb | 6151 | ;; |
ce2cded5 L |
6152 | |
6153 | irix5* | irix6* | nonstopux*) | |
6154 | case $LD in | |
6155 | *-32|*"-32 ") libmagic=32-bit;; | |
6156 | *-n32|*"-n32 ") libmagic=N32;; | |
6157 | *-64|*"-64 ") libmagic=64-bit;; | |
6158 | *) libmagic=never-match;; | |
6159 | esac | |
6160 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6161 | ;; |
ce2cded5 L |
6162 | |
6163 | # This must be Linux ELF. | |
58e24671 | 6164 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 6165 | lt_cv_deplibs_check_method=pass_all |
d7040cdb | 6166 | ;; |
ce2cded5 L |
6167 | |
6168 | netbsd*) | |
6169 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6170 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6171 | else | |
6172 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6173 | fi | |
d7040cdb | 6174 | ;; |
ce2cded5 L |
6175 | |
6176 | newos6*) | |
6177 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6178 | lt_cv_file_magic_cmd=/usr/bin/file | |
6179 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
d7040cdb | 6180 | ;; |
76a27922 | 6181 | |
ce2cded5 L |
6182 | *nto* | *qnx*) |
6183 | lt_cv_deplibs_check_method=pass_all | |
6184 | ;; | |
d6d788bd | 6185 | |
ce2cded5 L |
6186 | openbsd*) |
6187 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6188 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6189 | else | |
6190 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6191 | fi | |
6192 | ;; | |
44f2f9d2 | 6193 | |
ce2cded5 L |
6194 | osf3* | osf4* | osf5*) |
6195 | lt_cv_deplibs_check_method=pass_all | |
6196 | ;; | |
44f2f9d2 | 6197 | |
ce2cded5 L |
6198 | rdos*) |
6199 | lt_cv_deplibs_check_method=pass_all | |
6200 | ;; | |
6201 | ||
6202 | solaris*) | |
6203 | lt_cv_deplibs_check_method=pass_all | |
6204 | ;; | |
6205 | ||
6206 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6207 | lt_cv_deplibs_check_method=pass_all | |
6208 | ;; | |
6209 | ||
6210 | sysv4 | sysv4.3*) | |
6211 | case $host_vendor in | |
6212 | motorola) | |
6213 | 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]' | |
6214 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6215 | ;; | |
6216 | ncr) | |
6217 | lt_cv_deplibs_check_method=pass_all | |
6218 | ;; | |
6219 | sequent) | |
6220 | lt_cv_file_magic_cmd='/bin/file' | |
6221 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6222 | ;; | |
6223 | sni) | |
6224 | lt_cv_file_magic_cmd='/bin/file' | |
6225 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6226 | lt_cv_file_magic_test_file=/lib/libc.so | |
6227 | ;; | |
6228 | siemens) | |
6229 | lt_cv_deplibs_check_method=pass_all | |
6230 | ;; | |
6231 | pc) | |
6232 | lt_cv_deplibs_check_method=pass_all | |
6233 | ;; | |
6234 | esac | |
6235 | ;; | |
6236 | ||
6237 | tpf*) | |
6238 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb SE |
6239 | ;; |
6240 | esac | |
6241 | ||
ce2cded5 | 6242 | fi |
81ecdfbb RW |
6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6244 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
ce2cded5 L |
6245 | file_magic_cmd=$lt_cv_file_magic_cmd |
6246 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6247 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6248 | |
d7040cdb | 6249 | |
d7040cdb | 6250 | |
d7040cdb | 6251 | |
d7040cdb | 6252 | |
44f2f9d2 | 6253 | |
d7040cdb | 6254 | |
d7040cdb | 6255 | |
d7040cdb | 6256 | |
d7040cdb | 6257 | |
44f2f9d2 | 6258 | |
d7040cdb | 6259 | |
ce2cded5 L |
6260 | if test -n "$ac_tool_prefix"; then |
6261 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6262 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6264 | $as_echo_n "checking for $ac_word... " >&6; } | |
6265 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6266 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6267 | else |
6268 | if test -n "$AR"; then | |
6269 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6270 | else | |
6271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6272 | for as_dir in $PATH | |
6273 | do | |
6274 | IFS=$as_save_IFS | |
6275 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6276 | for ac_exec_ext in '' $ac_executable_extensions; do |
6277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6278 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 6280 | break 2 |
d7040cdb SE |
6281 | fi |
6282 | done | |
81ecdfbb RW |
6283 | done |
6284 | IFS=$as_save_IFS | |
44f2f9d2 | 6285 | |
ce2cded5 L |
6286 | fi |
6287 | fi | |
6288 | AR=$ac_cv_prog_AR | |
6289 | if test -n "$AR"; then | |
81ecdfbb RW |
6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6291 | $as_echo "$AR" >&6; } | |
ce2cded5 | 6292 | else |
81ecdfbb RW |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6294 | $as_echo "no" >&6; } | |
44f2f9d2 | 6295 | fi |
d7040cdb | 6296 | |
81ecdfbb | 6297 | |
d7040cdb | 6298 | fi |
ce2cded5 L |
6299 | if test -z "$ac_cv_prog_AR"; then |
6300 | ac_ct_AR=$AR | |
6301 | # Extract the first word of "ar", so it can be a program name with args. | |
6302 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6304 | $as_echo_n "checking for $ac_word... " >&6; } | |
6305 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6306 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6307 | else |
ce2cded5 L |
6308 | if test -n "$ac_ct_AR"; then |
6309 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6310 | else | |
6311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6312 | for as_dir in $PATH | |
6313 | do | |
6314 | IFS=$as_save_IFS | |
6315 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6316 | for ac_exec_ext in '' $ac_executable_extensions; do |
6317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6318 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6320 | break 2 |
6321 | fi | |
6322 | done | |
81ecdfbb RW |
6323 | done |
6324 | IFS=$as_save_IFS | |
ce2cded5 | 6325 | |
ce2cded5 L |
6326 | fi |
6327 | fi | |
6328 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6329 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6331 | $as_echo "$ac_ct_AR" >&6; } | |
ce2cded5 | 6332 | else |
81ecdfbb RW |
6333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6334 | $as_echo "no" >&6; } | |
d7040cdb | 6335 | fi |
44f2f9d2 | 6336 | |
81ecdfbb RW |
6337 | if test "x$ac_ct_AR" = x; then |
6338 | AR="false" | |
6339 | else | |
6340 | case $cross_compiling:$ac_tool_warned in | |
6341 | yes:) | |
6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6343 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6344 | ac_tool_warned=yes ;; | |
6345 | esac | |
6346 | AR=$ac_ct_AR | |
6347 | fi | |
ce2cded5 L |
6348 | else |
6349 | AR="$ac_cv_prog_AR" | |
6350 | fi | |
d7040cdb | 6351 | |
ce2cded5 L |
6352 | test -z "$AR" && AR=ar |
6353 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
6354 | |
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
ce2cded5 L |
6365 | if test -n "$ac_tool_prefix"; then |
6366 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6367 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6369 | $as_echo_n "checking for $ac_word... " >&6; } | |
6370 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6371 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6372 | else |
6373 | if test -n "$STRIP"; then | |
6374 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6375 | else | |
6376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6377 | for as_dir in $PATH | |
6378 | do | |
6379 | IFS=$as_save_IFS | |
6380 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6381 | for ac_exec_ext in '' $ac_executable_extensions; do |
6382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6383 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6385 | break 2 |
6386 | fi | |
6387 | done | |
81ecdfbb RW |
6388 | done |
6389 | IFS=$as_save_IFS | |
d7040cdb | 6390 | |
ce2cded5 L |
6391 | fi |
6392 | fi | |
6393 | STRIP=$ac_cv_prog_STRIP | |
6394 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6396 | $as_echo "$STRIP" >&6; } | |
ce2cded5 | 6397 | else |
81ecdfbb RW |
6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6399 | $as_echo "no" >&6; } | |
ce2cded5 | 6400 | fi |
d7040cdb | 6401 | |
81ecdfbb | 6402 | |
ce2cded5 L |
6403 | fi |
6404 | if test -z "$ac_cv_prog_STRIP"; then | |
6405 | ac_ct_STRIP=$STRIP | |
6406 | # Extract the first word of "strip", so it can be a program name with args. | |
6407 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6409 | $as_echo_n "checking for $ac_word... " >&6; } | |
6410 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6411 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
6412 | else |
6413 | if test -n "$ac_ct_STRIP"; then | |
6414 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6415 | else | |
6416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6417 | for as_dir in $PATH | |
6418 | do | |
6419 | IFS=$as_save_IFS | |
6420 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6421 | for ac_exec_ext in '' $ac_executable_extensions; do |
6422 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6423 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6425 | break 2 |
6426 | fi | |
6427 | done | |
81ecdfbb RW |
6428 | done |
6429 | IFS=$as_save_IFS | |
d7040cdb | 6430 | |
ce2cded5 L |
6431 | fi |
6432 | fi | |
6433 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6434 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6436 | $as_echo "$ac_ct_STRIP" >&6; } | |
ce2cded5 | 6437 | else |
81ecdfbb RW |
6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6439 | $as_echo "no" >&6; } | |
ce2cded5 | 6440 | fi |
d7040cdb | 6441 | |
81ecdfbb RW |
6442 | if test "x$ac_ct_STRIP" = x; then |
6443 | STRIP=":" | |
6444 | else | |
6445 | case $cross_compiling:$ac_tool_warned in | |
6446 | yes:) | |
6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6448 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6449 | ac_tool_warned=yes ;; | |
6450 | esac | |
6451 | STRIP=$ac_ct_STRIP | |
6452 | fi | |
ce2cded5 L |
6453 | else |
6454 | STRIP="$ac_cv_prog_STRIP" | |
6455 | fi | |
d7040cdb | 6456 | |
ce2cded5 | 6457 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6458 | |
d7040cdb | 6459 | |
d7040cdb | 6460 | |
d7040cdb | 6461 | |
d7040cdb | 6462 | |
d7040cdb | 6463 | |
ce2cded5 L |
6464 | if test -n "$ac_tool_prefix"; then |
6465 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6466 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6468 | $as_echo_n "checking for $ac_word... " >&6; } | |
6469 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6470 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6471 | else |
ce2cded5 L |
6472 | if test -n "$RANLIB"; then |
6473 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6474 | else | |
6475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6476 | for as_dir in $PATH | |
6477 | do | |
6478 | IFS=$as_save_IFS | |
6479 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6480 | for ac_exec_ext in '' $ac_executable_extensions; do |
6481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6482 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6484 | break 2 |
6485 | fi | |
6486 | done | |
81ecdfbb RW |
6487 | done |
6488 | IFS=$as_save_IFS | |
44f2f9d2 | 6489 | |
d7040cdb | 6490 | fi |
44f2f9d2 | 6491 | fi |
ce2cded5 L |
6492 | RANLIB=$ac_cv_prog_RANLIB |
6493 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6495 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 6496 | else |
81ecdfbb RW |
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6498 | $as_echo "no" >&6; } | |
ce2cded5 | 6499 | fi |
d7040cdb | 6500 | |
81ecdfbb | 6501 | |
d7040cdb | 6502 | fi |
ce2cded5 L |
6503 | if test -z "$ac_cv_prog_RANLIB"; then |
6504 | ac_ct_RANLIB=$RANLIB | |
6505 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6506 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6508 | $as_echo_n "checking for $ac_word... " >&6; } | |
6509 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6510 | $as_echo_n "(cached) " >&6 | |
44f2f9d2 | 6511 | else |
ce2cded5 L |
6512 | if test -n "$ac_ct_RANLIB"; then |
6513 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6514 | else | |
6515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6516 | for as_dir in $PATH | |
d7040cdb | 6517 | do |
ce2cded5 L |
6518 | IFS=$as_save_IFS |
6519 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6520 | for ac_exec_ext in '' $ac_executable_extensions; do |
6521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 6522 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 6524 | break 2 |
d7040cdb | 6525 | fi |
ce2cded5 | 6526 | done |
81ecdfbb RW |
6527 | done |
6528 | IFS=$as_save_IFS | |
ce2cded5 | 6529 | |
d7040cdb | 6530 | fi |
ce2cded5 L |
6531 | fi |
6532 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6533 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6535 | $as_echo "$ac_ct_RANLIB" >&6; } | |
d7040cdb | 6536 | else |
81ecdfbb RW |
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6538 | $as_echo "no" >&6; } | |
44f2f9d2 | 6539 | fi |
44f2f9d2 | 6540 | |
81ecdfbb RW |
6541 | if test "x$ac_ct_RANLIB" = x; then |
6542 | RANLIB=":" | |
6543 | else | |
6544 | case $cross_compiling:$ac_tool_warned in | |
6545 | yes:) | |
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6547 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6548 | ac_tool_warned=yes ;; | |
6549 | esac | |
6550 | RANLIB=$ac_ct_RANLIB | |
6551 | fi | |
d7040cdb | 6552 | else |
ce2cded5 | 6553 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6554 | fi |
252b5132 | 6555 | |
ce2cded5 | 6556 | test -z "$RANLIB" && RANLIB=: |
252b5132 | 6557 | |
252b5132 | 6558 | |
ae57792d | 6559 | |
252b5132 | 6560 | |
13b2be9c | 6561 | |
14ee9f48 | 6562 | |
ce2cded5 | 6563 | # Determine commands to create old-style static archives. |
718a6fd8 | 6564 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
ce2cded5 L |
6565 | old_postinstall_cmds='chmod 644 $oldlib' |
6566 | old_postuninstall_cmds= | |
14ee9f48 | 6567 | |
ce2cded5 L |
6568 | if test -n "$RANLIB"; then |
6569 | case $host_os in | |
6570 | openbsd*) | |
6571 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6572 | ;; | |
6573 | *) | |
6574 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6575 | ;; | |
6576 | esac | |
6577 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb | 6578 | fi |
14ee9f48 | 6579 | |
3725885a RW |
6580 | case $host_os in |
6581 | darwin*) | |
6582 | lock_old_archive_extraction=yes ;; | |
6583 | *) | |
6584 | lock_old_archive_extraction=no ;; | |
6585 | esac | |
6586 | ||
6587 | ||
6588 | ||
6589 | ||
6590 | ||
6591 | ||
f8fc3443 | 6592 | |
f8fc3443 | 6593 | |
252b5132 | 6594 | |
85fbca6a | 6595 | |
85fbca6a | 6596 | |
13b2be9c | 6597 | |
13b2be9c | 6598 | |
d7040cdb | 6599 | |
d7040cdb SE |
6600 | |
6601 | ||
6602 | ||
252b5132 | 6603 | |
93fbbb04 | 6604 | |
93fbbb04 | 6605 | |
d70c5fc7 | 6606 | |
e0001a05 | 6607 | |
252b5132 | 6608 | |
252b5132 | 6609 | |
252b5132 | 6610 | |
252b5132 | 6611 | |
252b5132 | 6612 | |
3bcbcc3d | 6613 | |
252b5132 | 6614 | |
252b5132 | 6615 | |
252b5132 | 6616 | |
15886821 | 6617 | |
252b5132 | 6618 | |
252b5132 | 6619 | |
13b2be9c DJ |
6620 | |
6621 | ||
252b5132 | 6622 | |
252b5132 | 6623 | |
d6d788bd | 6624 | |
ce2cded5 L |
6625 | # If no C compiler was specified, use CC. |
6626 | LTCC=${LTCC-"$CC"} | |
252b5132 | 6627 | |
ce2cded5 L |
6628 | # If no C compiler flags were specified, use CFLAGS. |
6629 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
252b5132 | 6630 | |
ce2cded5 L |
6631 | # Allow CC to be a program name with arguments. |
6632 | compiler=$CC | |
252b5132 | 6633 | |
252b5132 | 6634 | |
ce2cded5 | 6635 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6637 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6638 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6639 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6640 | else |
252b5132 | 6641 | |
ce2cded5 L |
6642 | # These are sane defaults that work on at least a few old systems. |
6643 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
252b5132 | 6644 | |
ce2cded5 L |
6645 | # Character class describing NM global symbol codes. |
6646 | symcode='[BCDEGRST]' | |
252b5132 | 6647 | |
ce2cded5 L |
6648 | # Regexp to match symbols that can be accessed directly from C. |
6649 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
13b2be9c | 6650 | |
ce2cded5 L |
6651 | # Define system-specific variables. |
6652 | case $host_os in | |
6653 | aix*) | |
6654 | symcode='[BCDT]' | |
6655 | ;; | |
718a6fd8 | 6656 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
6657 | symcode='[ABCDGISTW]' |
6658 | ;; | |
6659 | hpux*) | |
6660 | if test "$host_cpu" = ia64; then | |
6661 | symcode='[ABCDEGRST]' | |
6662 | fi | |
6663 | ;; | |
6664 | irix* | nonstopux*) | |
6665 | symcode='[BCDEGRST]' | |
6666 | ;; | |
6667 | osf*) | |
6668 | symcode='[BCDEGQRST]' | |
6669 | ;; | |
6670 | solaris*) | |
6671 | symcode='[BDRT]' | |
6672 | ;; | |
6673 | sco3.2v5*) | |
6674 | symcode='[DT]' | |
6675 | ;; | |
6676 | sysv4.2uw2*) | |
6677 | symcode='[DT]' | |
6678 | ;; | |
6679 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6680 | symcode='[ABDT]' | |
6681 | ;; | |
6682 | sysv4) | |
6683 | symcode='[DFNSTU]' | |
6684 | ;; | |
6685 | esac | |
6686 | ||
6687 | # If we're using GNU nm, then use its standard symbol codes. | |
6688 | case `$NM -V 2>&1` in | |
6689 | *GNU* | *'with BFD'*) | |
6690 | symcode='[ABCDGIRSTW]' ;; | |
6691 | esac | |
252b5132 | 6692 | |
ce2cded5 L |
6693 | # Transform an extracted symbol line into a proper C declaration. |
6694 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6695 | # so use this general approach. | |
6696 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
13b2be9c | 6697 | |
ce2cded5 | 6698 | # Transform an extracted symbol line into symbol name and symbol address |
7357c5b6 | 6699 | 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 | 6700 | 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 | 6701 | |
7357c5b6 AM |
6702 | # Handle CRLF in mingw tool chain |
6703 | opt_cr= | |
6704 | case $build_os in | |
6705 | mingw*) | |
6706 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6707 | ;; | |
6708 | esac | |
d7040cdb | 6709 | |
7357c5b6 AM |
6710 | # Try without a prefix underscore, then with it. |
6711 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6712 | |
7357c5b6 AM |
6713 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6714 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6715 | |
7357c5b6 AM |
6716 | # Write the raw and C identifiers. |
6717 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6718 | # Fake it for dumpbin and say T for any non-static function | |
6719 | # and D for any global variable. | |
6720 | # Also find C++ and __fastcall symbols from MSVC++, | |
6721 | # which start with @ or ?. | |
6722 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6723 | " {last_section=section; section=\$ 3};"\ | |
6724 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6725 | " \$ 0!~/External *\|/{next};"\ | |
6726 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6727 | " {if(hide[section]) next};"\ | |
6728 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6729 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6730 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6731 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6732 | " ' prfx=^$ac_symprfx" | |
6733 | else | |
6734 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6735 | fi | |
d7040cdb | 6736 | |
7357c5b6 AM |
6737 | # Check to see that the pipe works correctly. |
6738 | pipe_works=no | |
d7040cdb | 6739 | |
7357c5b6 AM |
6740 | rm -f conftest* |
6741 | cat > conftest.$ac_ext <<_LT_EOF | |
6742 | #ifdef __cplusplus | |
6743 | extern "C" { | |
6744 | #endif | |
6745 | char nm_test_var; | |
6746 | void nm_test_func(void); | |
6747 | void nm_test_func(void){} | |
6748 | #ifdef __cplusplus | |
ce2cded5 | 6749 | } |
7357c5b6 AM |
6750 | #endif |
6751 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6752 | _LT_EOF | |
6753 | ||
81ecdfbb | 6754 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6755 | (eval $ac_compile) 2>&5 |
ce2cded5 | 6756 | ac_status=$? |
81ecdfbb RW |
6757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6758 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6759 | # Now try to grab the symbols. |
6760 | nlist=conftest.nm | |
3725885a RW |
6761 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6762 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
ce2cded5 | 6763 | ac_status=$? |
81ecdfbb RW |
6764 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6765 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6766 | # Try sorting and uniquifying the output. |
6767 | if sort "$nlist" | uniq > "$nlist"T; then | |
6768 | mv -f "$nlist"T "$nlist" | |
6769 | else | |
6770 | rm -f "$nlist"T | |
6771 | fi | |
13b2be9c | 6772 | |
7357c5b6 AM |
6773 | # Make sure that we snagged all the symbols we need. |
6774 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6775 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6776 | cat <<_LT_EOF > conftest.$ac_ext | |
6777 | #ifdef __cplusplus | |
6778 | extern "C" { | |
6779 | #endif | |
13b2be9c | 6780 | |
7357c5b6 AM |
6781 | _LT_EOF |
6782 | # Now generate the symbol file. | |
6783 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
13b2be9c | 6784 | |
7357c5b6 | 6785 | cat <<_LT_EOF >> conftest.$ac_ext |
c8615825 | 6786 | |
7357c5b6 AM |
6787 | /* The mapping between symbol names and symbols. */ |
6788 | const struct { | |
6789 | const char *name; | |
6790 | void *address; | |
6791 | } | |
6792 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6793 | { | |
6794 | { "@PROGRAM@", (void *) 0 }, | |
6795 | _LT_EOF | |
6796 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6797 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6798 | {0, (void *) 0} | |
6799 | }; | |
d7040cdb | 6800 | |
7357c5b6 AM |
6801 | /* This works around a problem in FreeBSD linker */ |
6802 | #ifdef FREEBSD_WORKAROUND | |
6803 | static const void *lt_preloaded_setup() { | |
6804 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6805 | } | |
ce2cded5 | 6806 | #endif |
d7040cdb | 6807 | |
7357c5b6 | 6808 | #ifdef __cplusplus |
ce2cded5 | 6809 | } |
7357c5b6 AM |
6810 | #endif |
6811 | _LT_EOF | |
6812 | # Now try linking the two files. | |
6813 | mv conftest.$ac_objext conftstm.$ac_objext | |
6814 | lt_save_LIBS="$LIBS" | |
6815 | lt_save_CFLAGS="$CFLAGS" | |
6816 | LIBS="conftstm.$ac_objext" | |
6817 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6818 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
6819 | (eval $ac_link) 2>&5 |
6820 | ac_status=$? | |
81ecdfbb RW |
6821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6822 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6823 | pipe_works=yes |
6824 | fi | |
6825 | LIBS="$lt_save_LIBS" | |
6826 | CFLAGS="$lt_save_CFLAGS" | |
6827 | else | |
6828 | echo "cannot find nm_test_func in $nlist" >&5 | |
6829 | fi | |
6830 | else | |
6831 | echo "cannot find nm_test_var in $nlist" >&5 | |
6832 | fi | |
6833 | else | |
6834 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6835 | fi | |
6836 | else | |
6837 | echo "$progname: failed program was:" >&5 | |
6838 | cat conftest.$ac_ext >&5 | |
6839 | fi | |
718a6fd8 | 6840 | rm -rf conftest* conftst* |
7357c5b6 AM |
6841 | |
6842 | # Do not use the global_symbol_pipe unless it works. | |
6843 | if test "$pipe_works" = yes; then | |
6844 | break | |
6845 | else | |
6846 | lt_cv_sys_global_symbol_pipe= | |
6847 | fi | |
6848 | done | |
d7040cdb | 6849 | |
ce2cded5 | 6850 | fi |
7357c5b6 AM |
6851 | |
6852 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6853 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 6854 | fi |
7357c5b6 | 6855 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6857 | $as_echo "failed" >&6; } | |
7357c5b6 | 6858 | else |
81ecdfbb RW |
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6860 | $as_echo "ok" >&6; } | |
ce2cded5 | 6861 | fi |
d7040cdb | 6862 | |
d7040cdb | 6863 | |
d7040cdb | 6864 | |
d7040cdb | 6865 | |
d7040cdb | 6866 | |
d7040cdb | 6867 | |
d7040cdb | 6868 | |
d7040cdb | 6869 | |
d7040cdb | 6870 | |
d7040cdb | 6871 | |
d7040cdb | 6872 | |
d7040cdb | 6873 | |
7357c5b6 AM |
6874 | |
6875 | ||
6876 | ||
718a6fd8 SE |
6877 | |
6878 | ||
6879 | ||
6880 | ||
6881 | ||
7357c5b6 AM |
6882 | |
6883 | ||
81ecdfbb RW |
6884 | # Check whether --enable-libtool-lock was given. |
6885 | if test "${enable_libtool_lock+set}" = set; then : | |
6886 | enableval=$enable_libtool_lock; | |
6887 | fi | |
7357c5b6 | 6888 | |
7357c5b6 AM |
6889 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6890 | ||
6891 | # Some flags need to be propagated to the compiler or linker for good | |
6892 | # libtool support. | |
6893 | case $host in | |
6894 | ia64-*-hpux*) | |
6895 | # Find out which ABI we are using. | |
6896 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6897 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6898 | (eval $ac_compile) 2>&5 |
6899 | ac_status=$? | |
81ecdfbb RW |
6900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6901 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6902 | case `/usr/bin/file conftest.$ac_objext` in |
6903 | *ELF-32*) | |
6904 | HPUX_IA64_MODE="32" | |
6905 | ;; | |
6906 | *ELF-64*) | |
6907 | HPUX_IA64_MODE="64" | |
6908 | ;; | |
6909 | esac | |
6910 | fi | |
6911 | rm -rf conftest* | |
6912 | ;; | |
6913 | *-*-irix6*) | |
6914 | # Find out which ABI we are using. | |
3725885a | 6915 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6916 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6917 | (eval $ac_compile) 2>&5 |
6918 | ac_status=$? | |
81ecdfbb RW |
6919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6920 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6921 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6922 | case `/usr/bin/file conftest.$ac_objext` in | |
6923 | *32-bit*) | |
6924 | LD="${LD-ld} -melf32bsmip" | |
6925 | ;; | |
6926 | *N32*) | |
6927 | LD="${LD-ld} -melf32bmipn32" | |
6928 | ;; | |
6929 | *64-bit*) | |
6930 | LD="${LD-ld} -melf64bmip" | |
6931 | ;; | |
6932 | esac | |
6933 | else | |
6934 | case `/usr/bin/file conftest.$ac_objext` in | |
6935 | *32-bit*) | |
6936 | LD="${LD-ld} -32" | |
6937 | ;; | |
6938 | *N32*) | |
6939 | LD="${LD-ld} -n32" | |
6940 | ;; | |
6941 | *64-bit*) | |
6942 | LD="${LD-ld} -64" | |
6943 | ;; | |
6944 | esac | |
6945 | fi | |
6946 | fi | |
6947 | rm -rf conftest* | |
6948 | ;; | |
6949 | ||
6950 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6951 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6952 | # Find out which ABI we are using. | |
6953 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6954 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6955 | (eval $ac_compile) 2>&5 |
6956 | ac_status=$? | |
81ecdfbb RW |
6957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6958 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6959 | case `/usr/bin/file conftest.o` in |
6960 | *32-bit*) | |
6961 | case $host in | |
6962 | x86_64-*kfreebsd*-gnu) | |
6963 | LD="${LD-ld} -m elf_i386_fbsd" | |
6964 | ;; | |
6965 | x86_64-*linux*) | |
6966 | LD="${LD-ld} -m elf_i386" | |
6967 | ;; | |
6968 | ppc64-*linux*|powerpc64-*linux*) | |
6969 | LD="${LD-ld} -m elf32ppclinux" | |
6970 | ;; | |
6971 | s390x-*linux*) | |
6972 | LD="${LD-ld} -m elf_s390" | |
6973 | ;; | |
6974 | sparc64-*linux*) | |
6975 | LD="${LD-ld} -m elf32_sparc" | |
6976 | ;; | |
6977 | esac | |
6978 | ;; | |
6979 | *64-bit*) | |
6980 | case $host in | |
6981 | x86_64-*kfreebsd*-gnu) | |
6982 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6983 | ;; | |
6984 | x86_64-*linux*) | |
6985 | LD="${LD-ld} -m elf_x86_64" | |
6986 | ;; | |
6987 | ppc*-*linux*|powerpc*-*linux*) | |
6988 | LD="${LD-ld} -m elf64ppc" | |
6989 | ;; | |
6990 | s390*-*linux*|s390*-*tpf*) | |
6991 | LD="${LD-ld} -m elf64_s390" | |
6992 | ;; | |
6993 | sparc*-*linux*) | |
6994 | LD="${LD-ld} -m elf64_sparc" | |
6995 | ;; | |
6996 | esac | |
6997 | ;; | |
6998 | esac | |
6999 | fi | |
7000 | rm -rf conftest* | |
7001 | ;; | |
7002 | ||
7003 | *-*-sco3.2v5*) | |
7004 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7005 | SAVE_CFLAGS="$CFLAGS" | |
7006 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7008 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7009 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7010 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7011 | else |
7357c5b6 AM |
7012 | ac_ext=c |
7013 | ac_cpp='$CPP $CPPFLAGS' | |
7014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7017 | ||
81ecdfbb | 7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 7019 | /* end confdefs.h. */ |
d7040cdb | 7020 | |
7357c5b6 AM |
7021 | int |
7022 | main () | |
7023 | { | |
7024 | ||
7025 | ; | |
7026 | return 0; | |
7027 | } | |
ce2cded5 | 7028 | _ACEOF |
81ecdfbb | 7029 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7030 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 7031 | else |
81ecdfbb | 7032 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7033 | fi |
81ecdfbb RW |
7034 | rm -f core conftest.err conftest.$ac_objext \ |
7035 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7036 | ac_ext=c |
7037 | ac_cpp='$CPP $CPPFLAGS' | |
7038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7041 | |
ce2cded5 | 7042 | fi |
81ecdfbb RW |
7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7044 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
7045 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7046 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7047 | CFLAGS="$SAVE_CFLAGS" | |
7048 | fi | |
7049 | ;; | |
7050 | sparc*-*solaris*) | |
7051 | # Find out which ABI we are using. | |
7052 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7053 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7054 | (eval $ac_compile) 2>&5 |
7055 | ac_status=$? | |
81ecdfbb RW |
7056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7057 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7058 | case `/usr/bin/file conftest.o` in |
7059 | *64-bit*) | |
7060 | case $lt_cv_prog_gnu_ld in | |
7061 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
718a6fd8 SE |
7062 | *) |
7063 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7064 | LD="${LD-ld} -64" | |
7065 | fi | |
7066 | ;; | |
7357c5b6 AM |
7067 | esac |
7068 | ;; | |
7069 | esac | |
7070 | fi | |
7071 | rm -rf conftest* | |
7072 | ;; | |
7073 | esac | |
d7040cdb | 7074 | |
718a6fd8 SE |
7075 | need_locks="$enable_libtool_lock" |
7076 | ||
7077 | ||
7078 | case $host_os in | |
7079 | rhapsody* | darwin*) | |
7080 | if test -n "$ac_tool_prefix"; then | |
7081 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7082 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7084 | $as_echo_n "checking for $ac_word... " >&6; } | |
7085 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7086 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7087 | else |
7088 | if test -n "$DSYMUTIL"; then | |
7089 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7090 | else | |
7091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7092 | for as_dir in $PATH | |
7093 | do | |
7094 | IFS=$as_save_IFS | |
7095 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7096 | for ac_exec_ext in '' $ac_executable_extensions; do |
7097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7098 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7100 | break 2 |
7101 | fi | |
7102 | done | |
81ecdfbb RW |
7103 | done |
7104 | IFS=$as_save_IFS | |
718a6fd8 SE |
7105 | |
7106 | fi | |
7107 | fi | |
7108 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7109 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7111 | $as_echo "$DSYMUTIL" >&6; } | |
718a6fd8 | 7112 | else |
81ecdfbb RW |
7113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7114 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7115 | fi |
7116 | ||
81ecdfbb | 7117 | |
718a6fd8 SE |
7118 | fi |
7119 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7120 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7121 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7122 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7124 | $as_echo_n "checking for $ac_word... " >&6; } | |
7125 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7126 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7127 | else |
7128 | if test -n "$ac_ct_DSYMUTIL"; then | |
7129 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7130 | else | |
7131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7132 | for as_dir in $PATH | |
7133 | do | |
7134 | IFS=$as_save_IFS | |
7135 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7136 | for ac_exec_ext in '' $ac_executable_extensions; do |
7137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7138 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7140 | break 2 |
7141 | fi | |
7142 | done | |
81ecdfbb RW |
7143 | done |
7144 | IFS=$as_save_IFS | |
718a6fd8 | 7145 | |
718a6fd8 SE |
7146 | fi |
7147 | fi | |
7148 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7149 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7151 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
718a6fd8 | 7152 | else |
81ecdfbb RW |
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7154 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7155 | fi |
7156 | ||
81ecdfbb RW |
7157 | if test "x$ac_ct_DSYMUTIL" = x; then |
7158 | DSYMUTIL=":" | |
7159 | else | |
7160 | case $cross_compiling:$ac_tool_warned in | |
7161 | yes:) | |
7162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7164 | ac_tool_warned=yes ;; | |
7165 | esac | |
7166 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7167 | fi | |
718a6fd8 SE |
7168 | else |
7169 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7170 | fi | |
7171 | ||
7172 | if test -n "$ac_tool_prefix"; then | |
7173 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7174 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7176 | $as_echo_n "checking for $ac_word... " >&6; } | |
7177 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7178 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7179 | else |
7180 | if test -n "$NMEDIT"; then | |
7181 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7182 | else | |
7183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7184 | for as_dir in $PATH | |
7185 | do | |
7186 | IFS=$as_save_IFS | |
7187 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7188 | for ac_exec_ext in '' $ac_executable_extensions; do |
7189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7190 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7192 | break 2 |
7193 | fi | |
7194 | done | |
81ecdfbb RW |
7195 | done |
7196 | IFS=$as_save_IFS | |
718a6fd8 SE |
7197 | |
7198 | fi | |
7199 | fi | |
7200 | NMEDIT=$ac_cv_prog_NMEDIT | |
7201 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7203 | $as_echo "$NMEDIT" >&6; } | |
718a6fd8 | 7204 | else |
81ecdfbb RW |
7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7206 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7207 | fi |
7208 | ||
81ecdfbb | 7209 | |
718a6fd8 SE |
7210 | fi |
7211 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7212 | ac_ct_NMEDIT=$NMEDIT | |
7213 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7214 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7216 | $as_echo_n "checking for $ac_word... " >&6; } | |
7217 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7218 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7219 | else |
7220 | if test -n "$ac_ct_NMEDIT"; then | |
7221 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7222 | else | |
7223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7224 | for as_dir in $PATH | |
7225 | do | |
7226 | IFS=$as_save_IFS | |
7227 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7228 | for ac_exec_ext in '' $ac_executable_extensions; do |
7229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7230 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7232 | break 2 |
7233 | fi | |
7234 | done | |
81ecdfbb RW |
7235 | done |
7236 | IFS=$as_save_IFS | |
718a6fd8 | 7237 | |
718a6fd8 SE |
7238 | fi |
7239 | fi | |
7240 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7241 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7243 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
718a6fd8 | 7244 | else |
81ecdfbb RW |
7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7246 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7247 | fi |
7248 | ||
81ecdfbb RW |
7249 | if test "x$ac_ct_NMEDIT" = x; then |
7250 | NMEDIT=":" | |
7251 | else | |
7252 | case $cross_compiling:$ac_tool_warned in | |
7253 | yes:) | |
7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7255 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7256 | ac_tool_warned=yes ;; | |
7257 | esac | |
7258 | NMEDIT=$ac_ct_NMEDIT | |
7259 | fi | |
718a6fd8 SE |
7260 | else |
7261 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7262 | fi | |
7263 | ||
7264 | if test -n "$ac_tool_prefix"; then | |
7265 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7266 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7268 | $as_echo_n "checking for $ac_word... " >&6; } | |
7269 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7270 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7271 | else |
7272 | if test -n "$LIPO"; then | |
7273 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7274 | else | |
7275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7276 | for as_dir in $PATH | |
7277 | do | |
7278 | IFS=$as_save_IFS | |
7279 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7280 | for ac_exec_ext in '' $ac_executable_extensions; do |
7281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7282 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7284 | break 2 |
7285 | fi | |
7286 | done | |
81ecdfbb RW |
7287 | done |
7288 | IFS=$as_save_IFS | |
718a6fd8 SE |
7289 | |
7290 | fi | |
7291 | fi | |
7292 | LIPO=$ac_cv_prog_LIPO | |
7293 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7295 | $as_echo "$LIPO" >&6; } | |
718a6fd8 | 7296 | else |
81ecdfbb RW |
7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7298 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7299 | fi |
7300 | ||
81ecdfbb | 7301 | |
718a6fd8 SE |
7302 | fi |
7303 | if test -z "$ac_cv_prog_LIPO"; then | |
7304 | ac_ct_LIPO=$LIPO | |
7305 | # Extract the first word of "lipo", so it can be a program name with args. | |
7306 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7308 | $as_echo_n "checking for $ac_word... " >&6; } | |
7309 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7310 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7311 | else |
7312 | if test -n "$ac_ct_LIPO"; then | |
7313 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7314 | else | |
7315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7316 | for as_dir in $PATH | |
7317 | do | |
7318 | IFS=$as_save_IFS | |
7319 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7320 | for ac_exec_ext in '' $ac_executable_extensions; do |
7321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7322 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7324 | break 2 |
7325 | fi | |
7326 | done | |
81ecdfbb RW |
7327 | done |
7328 | IFS=$as_save_IFS | |
718a6fd8 | 7329 | |
718a6fd8 SE |
7330 | fi |
7331 | fi | |
7332 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7333 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7335 | $as_echo "$ac_ct_LIPO" >&6; } | |
718a6fd8 | 7336 | else |
81ecdfbb RW |
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7338 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7339 | fi |
7340 | ||
81ecdfbb RW |
7341 | if test "x$ac_ct_LIPO" = x; then |
7342 | LIPO=":" | |
7343 | else | |
7344 | case $cross_compiling:$ac_tool_warned in | |
7345 | yes:) | |
7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7347 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7348 | ac_tool_warned=yes ;; | |
7349 | esac | |
7350 | LIPO=$ac_ct_LIPO | |
7351 | fi | |
718a6fd8 SE |
7352 | else |
7353 | LIPO="$ac_cv_prog_LIPO" | |
7354 | fi | |
7355 | ||
7356 | if test -n "$ac_tool_prefix"; then | |
7357 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7358 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7360 | $as_echo_n "checking for $ac_word... " >&6; } | |
7361 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7362 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7363 | else |
7364 | if test -n "$OTOOL"; then | |
7365 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7366 | else | |
7367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7368 | for as_dir in $PATH | |
7369 | do | |
7370 | IFS=$as_save_IFS | |
7371 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7372 | for ac_exec_ext in '' $ac_executable_extensions; do |
7373 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7374 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7375 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7376 | break 2 |
7377 | fi | |
7378 | done | |
81ecdfbb RW |
7379 | done |
7380 | IFS=$as_save_IFS | |
718a6fd8 SE |
7381 | |
7382 | fi | |
7383 | fi | |
7384 | OTOOL=$ac_cv_prog_OTOOL | |
7385 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7387 | $as_echo "$OTOOL" >&6; } | |
718a6fd8 | 7388 | else |
81ecdfbb RW |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7390 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7391 | fi |
7392 | ||
81ecdfbb | 7393 | |
718a6fd8 SE |
7394 | fi |
7395 | if test -z "$ac_cv_prog_OTOOL"; then | |
7396 | ac_ct_OTOOL=$OTOOL | |
7397 | # Extract the first word of "otool", so it can be a program name with args. | |
7398 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7400 | $as_echo_n "checking for $ac_word... " >&6; } | |
7401 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7402 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7403 | else |
7404 | if test -n "$ac_ct_OTOOL"; then | |
7405 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7406 | else | |
7407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7408 | for as_dir in $PATH | |
7409 | do | |
7410 | IFS=$as_save_IFS | |
7411 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7412 | for ac_exec_ext in '' $ac_executable_extensions; do |
7413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7414 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7416 | break 2 |
7417 | fi | |
7418 | done | |
81ecdfbb RW |
7419 | done |
7420 | IFS=$as_save_IFS | |
718a6fd8 | 7421 | |
718a6fd8 SE |
7422 | fi |
7423 | fi | |
7424 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7425 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7427 | $as_echo "$ac_ct_OTOOL" >&6; } | |
718a6fd8 | 7428 | else |
81ecdfbb RW |
7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7430 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7431 | fi |
7432 | ||
81ecdfbb RW |
7433 | if test "x$ac_ct_OTOOL" = x; then |
7434 | OTOOL=":" | |
7435 | else | |
7436 | case $cross_compiling:$ac_tool_warned in | |
7437 | yes:) | |
7438 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7439 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7440 | ac_tool_warned=yes ;; | |
7441 | esac | |
7442 | OTOOL=$ac_ct_OTOOL | |
7443 | fi | |
718a6fd8 SE |
7444 | else |
7445 | OTOOL="$ac_cv_prog_OTOOL" | |
7446 | fi | |
7447 | ||
7448 | if test -n "$ac_tool_prefix"; then | |
7449 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7450 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7452 | $as_echo_n "checking for $ac_word... " >&6; } | |
7453 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7454 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7455 | else |
7456 | if test -n "$OTOOL64"; then | |
7457 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7458 | else | |
7459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7460 | for as_dir in $PATH | |
7461 | do | |
7462 | IFS=$as_save_IFS | |
7463 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7464 | for ac_exec_ext in '' $ac_executable_extensions; do |
7465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7466 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7468 | break 2 |
7469 | fi | |
7470 | done | |
81ecdfbb RW |
7471 | done |
7472 | IFS=$as_save_IFS | |
718a6fd8 SE |
7473 | |
7474 | fi | |
7475 | fi | |
7476 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7477 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7479 | $as_echo "$OTOOL64" >&6; } | |
718a6fd8 | 7480 | else |
81ecdfbb RW |
7481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7482 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7483 | fi |
7484 | ||
81ecdfbb | 7485 | |
718a6fd8 SE |
7486 | fi |
7487 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7488 | ac_ct_OTOOL64=$OTOOL64 | |
7489 | # Extract the first word of "otool64", so it can be a program name with args. | |
7490 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7492 | $as_echo_n "checking for $ac_word... " >&6; } | |
7493 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7494 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7495 | else |
7496 | if test -n "$ac_ct_OTOOL64"; then | |
7497 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7498 | else | |
7499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7500 | for as_dir in $PATH | |
7501 | do | |
7502 | IFS=$as_save_IFS | |
7503 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7504 | for ac_exec_ext in '' $ac_executable_extensions; do |
7505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
718a6fd8 | 7506 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7508 | break 2 |
7509 | fi | |
7510 | done | |
81ecdfbb RW |
7511 | done |
7512 | IFS=$as_save_IFS | |
718a6fd8 | 7513 | |
718a6fd8 SE |
7514 | fi |
7515 | fi | |
7516 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7517 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7519 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
718a6fd8 | 7520 | else |
81ecdfbb RW |
7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7522 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7523 | fi |
7524 | ||
81ecdfbb RW |
7525 | if test "x$ac_ct_OTOOL64" = x; then |
7526 | OTOOL64=":" | |
7527 | else | |
7528 | case $cross_compiling:$ac_tool_warned in | |
7529 | yes:) | |
7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7531 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7532 | ac_tool_warned=yes ;; | |
7533 | esac | |
7534 | OTOOL64=$ac_ct_OTOOL64 | |
7535 | fi | |
718a6fd8 SE |
7536 | else |
7537 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7538 | fi | |
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 | ||
7564 | ||
7565 | ||
81ecdfbb RW |
7566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7567 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7568 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7569 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7570 | else |
7571 | lt_cv_apple_cc_single_mod=no | |
7572 | if test -z "${LT_MULTI_MODULE}"; then | |
7573 | # By default we will add the -single_module flag. You can override | |
7574 | # by either setting the environment variable LT_MULTI_MODULE | |
7575 | # non-empty at configure time, or by adding -multi_module to the | |
7576 | # link flags. | |
7577 | rm -rf libconftest.dylib* | |
7578 | echo "int foo(void){return 1;}" > conftest.c | |
7579 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7580 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7581 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7582 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7583 | _lt_result=$? | |
7584 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7585 | lt_cv_apple_cc_single_mod=yes | |
7586 | else | |
7587 | cat conftest.err >&5 | |
7588 | fi | |
7589 | rm -rf libconftest.dylib* | |
7590 | rm -f conftest.* | |
7591 | fi | |
7592 | fi | |
81ecdfbb RW |
7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7594 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7596 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7597 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7598 | $as_echo_n "(cached) " >&6 | |
718a6fd8 SE |
7599 | else |
7600 | lt_cv_ld_exported_symbols_list=no | |
7601 | save_LDFLAGS=$LDFLAGS | |
7602 | echo "_main" > conftest.sym | |
7603 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
718a6fd8 SE |
7605 | /* end confdefs.h. */ |
7606 | ||
7607 | int | |
7608 | main () | |
7609 | { | |
7610 | ||
7611 | ; | |
7612 | return 0; | |
7613 | } | |
7614 | _ACEOF | |
81ecdfbb | 7615 | if ac_fn_c_try_link "$LINENO"; then : |
718a6fd8 SE |
7616 | lt_cv_ld_exported_symbols_list=yes |
7617 | else | |
81ecdfbb | 7618 | lt_cv_ld_exported_symbols_list=no |
718a6fd8 | 7619 | fi |
81ecdfbb RW |
7620 | rm -f core conftest.err conftest.$ac_objext \ |
7621 | conftest$ac_exeext conftest.$ac_ext | |
718a6fd8 SE |
7622 | LDFLAGS="$save_LDFLAGS" |
7623 | ||
7624 | fi | |
81ecdfbb RW |
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7626 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7628 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7629 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
7630 | $as_echo_n "(cached) " >&6 | |
7631 | else | |
7632 | lt_cv_ld_force_load=no | |
7633 | cat > conftest.c << _LT_EOF | |
7634 | int forced_loaded() { return 2;} | |
7635 | _LT_EOF | |
7636 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7637 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7638 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7639 | $AR cru libconftest.a conftest.o 2>&5 | |
7640 | cat > conftest.c << _LT_EOF | |
7641 | int main() { return 0;} | |
7642 | _LT_EOF | |
7643 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7644 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7645 | _lt_result=$? | |
7646 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7647 | lt_cv_ld_force_load=yes | |
7648 | else | |
7649 | cat conftest.err >&5 | |
7650 | fi | |
7651 | rm -f conftest.err libconftest.a conftest conftest.c | |
7652 | rm -rf conftest.dSYM | |
7653 | ||
7654 | fi | |
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7656 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
718a6fd8 SE |
7657 | case $host_os in |
7658 | rhapsody* | darwin1.[012]) | |
7659 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7660 | darwin1.*) | |
7661 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7662 | darwin*) # darwin 5.x on | |
7663 | # if running on 10.5 or later, the deployment target defaults | |
7664 | # to the OS version, if on x86, and 10.4, the deployment | |
7665 | # target defaults to 10.4. Don't you love it? | |
7666 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7667 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7668 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7669 | 10.[012]*) | |
7670 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7671 | 10.*) | |
7672 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7673 | esac | |
7674 | ;; | |
7675 | esac | |
7676 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7677 | _lt_dar_single_mod='$single_module' | |
7678 | fi | |
7679 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7680 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7681 | else | |
7682 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7683 | fi | |
3725885a | 7684 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
718a6fd8 SE |
7685 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7686 | else | |
7687 | _lt_dsymutil= | |
7688 | fi | |
7689 | ;; | |
7690 | esac | |
7691 | ||
718a6fd8 | 7692 | for ac_header in dlfcn.h |
81ecdfbb RW |
7693 | do : |
7694 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7695 | " | |
7696 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
718a6fd8 | 7697 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7698 | #define HAVE_DLFCN_H 1 |
718a6fd8 SE |
7699 | _ACEOF |
7700 | ||
7701 | fi | |
7702 | ||
7703 | done | |
7704 | ||
7705 | ||
7706 | ||
3725885a RW |
7707 | |
7708 | ||
718a6fd8 SE |
7709 | # Set options |
7710 | ||
7711 | ||
7712 | ||
7713 | enable_dlopen=no | |
7714 | ||
7715 | ||
7716 | enable_win32_dll=no | |
7717 | ||
7718 | ||
81ecdfbb RW |
7719 | # Check whether --enable-shared was given. |
7720 | if test "${enable_shared+set}" = set; then : | |
7721 | enableval=$enable_shared; p=${PACKAGE-default} | |
718a6fd8 SE |
7722 | case $enableval in |
7723 | yes) enable_shared=yes ;; | |
7724 | no) enable_shared=no ;; | |
7725 | *) | |
7726 | enable_shared=no | |
7727 | # Look at the argument we got. We use all the common list separators. | |
7728 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7729 | for pkg in $enableval; do | |
7730 | IFS="$lt_save_ifs" | |
7731 | if test "X$pkg" = "X$p"; then | |
7732 | enable_shared=yes | |
7733 | fi | |
7734 | done | |
7735 | IFS="$lt_save_ifs" | |
7736 | ;; | |
7737 | esac | |
7738 | else | |
7739 | enable_shared=yes | |
81ecdfbb RW |
7740 | fi |
7741 | ||
718a6fd8 SE |
7742 | |
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
81ecdfbb RW |
7750 | # Check whether --enable-static was given. |
7751 | if test "${enable_static+set}" = set; then : | |
7752 | enableval=$enable_static; p=${PACKAGE-default} | |
718a6fd8 SE |
7753 | case $enableval in |
7754 | yes) enable_static=yes ;; | |
7755 | no) enable_static=no ;; | |
7756 | *) | |
7757 | enable_static=no | |
7758 | # Look at the argument we got. We use all the common list separators. | |
7759 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7760 | for pkg in $enableval; do | |
7761 | IFS="$lt_save_ifs" | |
7762 | if test "X$pkg" = "X$p"; then | |
7763 | enable_static=yes | |
7764 | fi | |
7765 | done | |
7766 | IFS="$lt_save_ifs" | |
7767 | ;; | |
7768 | esac | |
7769 | else | |
7770 | enable_static=yes | |
81ecdfbb RW |
7771 | fi |
7772 | ||
718a6fd8 SE |
7773 | |
7774 | ||
d7040cdb | 7775 | |
d7040cdb | 7776 | |
718a6fd8 SE |
7777 | |
7778 | ||
7779 | ||
7780 | ||
7781 | ||
81ecdfbb RW |
7782 | # Check whether --with-pic was given. |
7783 | if test "${with_pic+set}" = set; then : | |
7784 | withval=$with_pic; pic_mode="$withval" | |
ce2cded5 | 7785 | else |
718a6fd8 | 7786 | pic_mode=default |
81ecdfbb RW |
7787 | fi |
7788 | ||
d7040cdb | 7789 | |
718a6fd8 SE |
7790 | test -z "$pic_mode" && pic_mode=default |
7791 | ||
7792 | ||
7793 | ||
7794 | ||
7795 | ||
7796 | ||
7797 | ||
81ecdfbb RW |
7798 | # Check whether --enable-fast-install was given. |
7799 | if test "${enable_fast_install+set}" = set; then : | |
7800 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
718a6fd8 SE |
7801 | case $enableval in |
7802 | yes) enable_fast_install=yes ;; | |
7803 | no) enable_fast_install=no ;; | |
7804 | *) | |
7805 | enable_fast_install=no | |
7806 | # Look at the argument we got. We use all the common list separators. | |
7807 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7808 | for pkg in $enableval; do | |
7809 | IFS="$lt_save_ifs" | |
7810 | if test "X$pkg" = "X$p"; then | |
7811 | enable_fast_install=yes | |
7812 | fi | |
7813 | done | |
7814 | IFS="$lt_save_ifs" | |
7815 | ;; | |
7816 | esac | |
ce2cded5 | 7817 | else |
718a6fd8 | 7818 | enable_fast_install=yes |
81ecdfbb RW |
7819 | fi |
7820 | ||
718a6fd8 SE |
7821 | |
7822 | ||
7823 | ||
7824 | ||
d7040cdb | 7825 | |
d7040cdb | 7826 | |
d7040cdb | 7827 | |
d7040cdb | 7828 | |
d7040cdb | 7829 | |
d7040cdb | 7830 | |
ce2cded5 L |
7831 | # This can be used to rebuild libtool when needed |
7832 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7833 | |
ce2cded5 L |
7834 | # Always use our own libtool. |
7835 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7836 | |
d7040cdb | 7837 | |
d7040cdb | 7838 | |
d7040cdb SE |
7839 | |
7840 | ||
7841 | ||
7842 | ||
7843 | ||
7844 | ||
d7040cdb | 7845 | |
d7040cdb | 7846 | |
ab509236 | 7847 | |
ab509236 | 7848 | |
d7040cdb SE |
7849 | |
7850 | ||
7851 | ||
7852 | ||
7853 | ||
13b2be9c | 7854 | |
13b2be9c | 7855 | |
13b2be9c | 7856 | |
13b2be9c | 7857 | |
d7040cdb | 7858 | |
3725885a | 7859 | |
d7040cdb SE |
7860 | |
7861 | ||
ce2cded5 | 7862 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7863 | |
7864 | ||
d7040cdb | 7865 | |
d7040cdb | 7866 | |
d7040cdb SE |
7867 | |
7868 | ||
7869 | ||
7870 | ||
7871 | ||
7872 | ||
ce2cded5 L |
7873 | |
7874 | ||
7875 | ||
7876 | ||
7877 | if test -n "${ZSH_VERSION+set}" ; then | |
7878 | setopt NO_GLOB_SUBST | |
7879 | fi | |
7880 | ||
81ecdfbb RW |
7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7882 | $as_echo_n "checking for objdir... " >&6; } | |
7883 | if test "${lt_cv_objdir+set}" = set; then : | |
7884 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 7885 | else |
ce2cded5 L |
7886 | rm -f .libs 2>/dev/null |
7887 | mkdir .libs 2>/dev/null | |
7888 | if test -d .libs; then | |
7889 | lt_cv_objdir=.libs | |
7890 | else | |
7891 | # MS-DOS does not allow filenames that begin with a dot. | |
7892 | lt_cv_objdir=_libs | |
d7040cdb | 7893 | fi |
ce2cded5 L |
7894 | rmdir .libs 2>/dev/null |
7895 | fi | |
81ecdfbb RW |
7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7897 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 7898 | objdir=$lt_cv_objdir |
d7040cdb SE |
7899 | |
7900 | ||
7901 | ||
7902 | ||
d7040cdb | 7903 | |
ce2cded5 L |
7904 | cat >>confdefs.h <<_ACEOF |
7905 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7906 | _ACEOF | |
d7040cdb SE |
7907 | |
7908 | ||
7909 | ||
7910 | ||
ce2cded5 L |
7911 | case $host_os in |
7912 | aix3*) | |
7913 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7914 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7915 | # vanish in a puff of smoke. | |
7916 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7917 | COLLECT_NAMES= | |
7918 | export COLLECT_NAMES | |
7919 | fi | |
7920 | ;; | |
7921 | esac | |
d7040cdb | 7922 | |
ce2cded5 L |
7923 | # Global variables: |
7924 | ofile=libtool | |
7925 | can_build_shared=yes | |
d7040cdb | 7926 | |
ce2cded5 L |
7927 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7928 | # which needs '.lib'). | |
7929 | libext=a | |
d7040cdb | 7930 | |
ce2cded5 | 7931 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7932 | |
ce2cded5 L |
7933 | old_CC="$CC" |
7934 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7935 | |
ce2cded5 L |
7936 | # Set sane defaults for various variables |
7937 | test -z "$CC" && CC=cc | |
7938 | test -z "$LTCC" && LTCC=$CC | |
7939 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7940 | test -z "$LD" && LD=ld | |
7941 | test -z "$ac_objext" && ac_objext=o | |
7942 | ||
7943 | for cc_temp in $compiler""; do | |
7944 | case $cc_temp in | |
7945 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7946 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7947 | \-*) ;; | |
7948 | *) break;; | |
7949 | esac | |
7950 | done | |
3725885a | 7951 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
ce2cded5 L |
7952 | |
7953 | ||
7954 | # Only perform the check for file, if the check method requires it | |
7955 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7956 | case $deplibs_check_method in | |
7957 | file_magic*) | |
7958 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7960 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7961 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7962 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
7963 | else |
7964 | case $MAGIC_CMD in | |
7965 | [\\/*] | ?:[\\/]*) | |
7966 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7967 | ;; | |
7968 | *) | |
7969 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7970 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7971 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7972 | for ac_dir in $ac_dummy; do | |
7973 | IFS="$lt_save_ifs" | |
7974 | test -z "$ac_dir" && ac_dir=. | |
7975 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7976 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7977 | if test -n "$file_magic_test_file"; then | |
7978 | case $deplibs_check_method in | |
7979 | "file_magic "*) | |
7980 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7981 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7982 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7983 | $EGREP "$file_magic_regex" > /dev/null; then | |
7984 | : | |
d7040cdb | 7985 | else |
ce2cded5 | 7986 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7987 | |
ce2cded5 L |
7988 | *** Warning: the command libtool uses to detect shared libraries, |
7989 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7990 | *** The result is that libtool may fail to recognize shared libraries | |
7991 | *** as such. This will affect the creation of libtool libraries that | |
7992 | *** depend on shared libraries, but programs linked with such libtool | |
7993 | *** libraries will work regardless of this problem. Nevertheless, you | |
7994 | *** may want to report the problem to your system manager and/or to | |
7995 | *** [email protected] | |
d7040cdb | 7996 | |
ce2cded5 L |
7997 | _LT_EOF |
7998 | fi ;; | |
7999 | esac | |
d7040cdb | 8000 | fi |
ce2cded5 | 8001 | break |
d7040cdb | 8002 | fi |
ce2cded5 L |
8003 | done |
8004 | IFS="$lt_save_ifs" | |
8005 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8006 | ;; | |
8007 | esac | |
8008 | fi | |
d7040cdb | 8009 | |
ce2cded5 L |
8010 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8011 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8013 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8014 | else |
81ecdfbb RW |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8016 | $as_echo "no" >&6; } | |
ce2cded5 | 8017 | fi |
d7040cdb | 8018 | |
d7040cdb | 8019 | |
d7040cdb | 8020 | |
d7040cdb | 8021 | |
d7040cdb | 8022 | |
ce2cded5 L |
8023 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8024 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8026 | $as_echo_n "checking for file... " >&6; } | |
8027 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8028 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8029 | else |
8030 | case $MAGIC_CMD in | |
8031 | [\\/*] | ?:[\\/]*) | |
8032 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8033 | ;; | |
8034 | *) | |
8035 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8036 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8037 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8038 | for ac_dir in $ac_dummy; do | |
8039 | IFS="$lt_save_ifs" | |
8040 | test -z "$ac_dir" && ac_dir=. | |
8041 | if test -f $ac_dir/file; then | |
8042 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8043 | if test -n "$file_magic_test_file"; then | |
8044 | case $deplibs_check_method in | |
8045 | "file_magic "*) | |
8046 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8047 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8048 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8049 | $EGREP "$file_magic_regex" > /dev/null; then | |
8050 | : | |
d7040cdb | 8051 | else |
ce2cded5 L |
8052 | cat <<_LT_EOF 1>&2 |
8053 | ||
8054 | *** Warning: the command libtool uses to detect shared libraries, | |
8055 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8056 | *** The result is that libtool may fail to recognize shared libraries | |
8057 | *** as such. This will affect the creation of libtool libraries that | |
8058 | *** depend on shared libraries, but programs linked with such libtool | |
8059 | *** libraries will work regardless of this problem. Nevertheless, you | |
8060 | *** may want to report the problem to your system manager and/or to | |
8061 | *** [email protected] | |
8062 | ||
8063 | _LT_EOF | |
8064 | fi ;; | |
d7040cdb | 8065 | esac |
d7040cdb | 8066 | fi |
ce2cded5 L |
8067 | break |
8068 | fi | |
8069 | done | |
8070 | IFS="$lt_save_ifs" | |
8071 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8072 | ;; | |
8073 | esac | |
8074 | fi | |
d7040cdb | 8075 | |
ce2cded5 L |
8076 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8077 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8079 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8080 | else |
81ecdfbb RW |
8081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8082 | $as_echo "no" >&6; } | |
ce2cded5 | 8083 | fi |
d7040cdb | 8084 | |
d7040cdb | 8085 | |
ce2cded5 L |
8086 | else |
8087 | MAGIC_CMD=: | |
8088 | fi | |
d7040cdb | 8089 | fi |
d7040cdb | 8090 | |
ce2cded5 L |
8091 | fi |
8092 | ;; | |
8093 | esac | |
d7040cdb | 8094 | |
ce2cded5 | 8095 | # Use C for the default configuration in the libtool script |
d7040cdb | 8096 | |
ce2cded5 L |
8097 | lt_save_CC="$CC" |
8098 | ac_ext=c | |
8099 | ac_cpp='$CPP $CPPFLAGS' | |
8100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 8103 | |
d7040cdb | 8104 | |
ce2cded5 L |
8105 | # Source file extension for C test sources. |
8106 | ac_ext=c | |
d7040cdb | 8107 | |
ce2cded5 L |
8108 | # Object file extension for compiled C test sources. |
8109 | objext=o | |
8110 | objext=$objext | |
d7040cdb | 8111 | |
ce2cded5 L |
8112 | # Code to be used in simple compile tests |
8113 | lt_simple_compile_test_code="int some_variable = 0;" | |
8114 | ||
8115 | # Code to be used in simple link tests | |
8116 | lt_simple_link_test_code='int main(){return(0);}' | |
8117 | ||
8118 | ||
8119 | ||
8120 | ||
8121 | ||
8122 | ||
8123 | ||
8124 | # If no C compiler was specified, use CC. | |
8125 | LTCC=${LTCC-"$CC"} | |
8126 | ||
8127 | # If no C compiler flags were specified, use CFLAGS. | |
8128 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8129 | ||
8130 | # Allow CC to be a program name with arguments. | |
8131 | compiler=$CC | |
8132 | ||
8133 | # Save the default compiler, since it gets overwritten when the other | |
8134 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8135 | compiler_DEFAULT=$CC | |
8136 | ||
8137 | # save warnings/boilerplate of simple test code | |
8138 | ac_outfile=conftest.$ac_objext | |
8139 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8140 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8141 | _lt_compiler_boilerplate=`cat conftest.err` | |
8142 | $RM conftest* | |
8143 | ||
8144 | ac_outfile=conftest.$ac_objext | |
8145 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8146 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8147 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 8148 | $RM -r conftest* |
ce2cded5 L |
8149 | |
8150 | ||
8151 | ## CAVEAT EMPTOR: | |
8152 | ## There is no encapsulation within the following macros, do not change | |
8153 | ## the running order or otherwise move them around unless you know exactly | |
8154 | ## what you are doing... | |
8155 | if test -n "$compiler"; then | |
8156 | ||
8157 | lt_prog_compiler_no_builtin_flag= | |
8158 | ||
8159 | if test "$GCC" = yes; then | |
3725885a RW |
8160 | case $cc_basename in |
8161 | nvcc*) | |
8162 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8163 | *) | |
8164 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8165 | esac | |
ce2cded5 | 8166 | |
81ecdfbb RW |
8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8168 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8169 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8170 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8171 | else |
8172 | lt_cv_prog_compiler_rtti_exceptions=no | |
8173 | ac_outfile=conftest.$ac_objext | |
8174 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8175 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8176 | # Insert the option either (1) after the last *FLAGS variable, or | |
8177 | # (2) before a word containing "conftest.", or (3) at the end. | |
8178 | # Note that $ac_compile itself does not contain backslashes and begins | |
8179 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8180 | # The option is referenced via a variable to avoid confusing sed. | |
8181 | lt_compile=`echo "$ac_compile" | $SED \ | |
8182 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8183 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8184 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8185 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8186 | (eval "$lt_compile" 2>conftest.err) |
8187 | ac_status=$? | |
8188 | cat conftest.err >&5 | |
3725885a | 8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8190 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8191 | # The compiler can only warn and ignore the option if not recognized | |
8192 | # So say no if there are warnings other than the usual output. | |
3725885a | 8193 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8194 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8195 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8196 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8197 | fi | |
8198 | fi | |
8199 | $RM conftest* | |
8200 | ||
8201 | fi | |
81ecdfbb RW |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8203 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
ce2cded5 L |
8204 | |
8205 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8206 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8207 | else | |
8208 | : | |
8209 | fi | |
8210 | ||
8211 | fi | |
8212 | ||
8213 | ||
8214 | ||
8215 | ||
8216 | ||
8217 | ||
8218 | lt_prog_compiler_wl= | |
8219 | lt_prog_compiler_pic= | |
8220 | lt_prog_compiler_static= | |
8221 | ||
81ecdfbb RW |
8222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8223 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
ce2cded5 L |
8224 | |
8225 | if test "$GCC" = yes; then | |
8226 | lt_prog_compiler_wl='-Wl,' | |
8227 | lt_prog_compiler_static='-static' | |
8228 | ||
8229 | case $host_os in | |
8230 | aix*) | |
8231 | # All AIX code is PIC. | |
8232 | if test "$host_cpu" = ia64; then | |
8233 | # AIX 5 now supports IA64 processor | |
8234 | lt_prog_compiler_static='-Bstatic' | |
8235 | fi | |
8236 | ;; | |
d7040cdb SE |
8237 | |
8238 | amigaos*) | |
718a6fd8 SE |
8239 | case $host_cpu in |
8240 | powerpc) | |
8241 | # see comment about AmigaOS4 .so support | |
8242 | lt_prog_compiler_pic='-fPIC' | |
8243 | ;; | |
8244 | m68k) | |
8245 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8246 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8247 | # like `-m68040'. | |
8248 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8249 | ;; | |
8250 | esac | |
d7040cdb SE |
8251 | ;; |
8252 | ||
ce2cded5 L |
8253 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8254 | # PIC is the default for these OSes. | |
d7040cdb SE |
8255 | ;; |
8256 | ||
718a6fd8 | 8257 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8258 | # This hack is so that the source file can tell whether it is being |
8259 | # built for inclusion in a dll (and should export symbols for example). | |
8260 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8261 | # (--disable-auto-import) libraries | |
8262 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8263 | ;; |
8264 | ||
8265 | darwin* | rhapsody*) | |
ce2cded5 L |
8266 | # PIC is the default on this platform |
8267 | # Common symbols not allowed in MH_DYLIB files | |
8268 | lt_prog_compiler_pic='-fno-common' | |
8269 | ;; | |
8270 | ||
3725885a RW |
8271 | haiku*) |
8272 | # PIC is the default for Haiku. | |
8273 | # The "-static" flag exists, but is broken. | |
8274 | lt_prog_compiler_static= | |
8275 | ;; | |
8276 | ||
ce2cded5 | 8277 | hpux*) |
718a6fd8 SE |
8278 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8279 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8280 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8281 | case $host_cpu in |
718a6fd8 | 8282 | hppa*64*) |
ce2cded5 | 8283 | # +Z the default |
d7040cdb | 8284 | ;; |
ce2cded5 L |
8285 | *) |
8286 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
8287 | ;; |
8288 | esac | |
ce2cded5 | 8289 | ;; |
d7040cdb | 8290 | |
ce2cded5 L |
8291 | interix[3-9]*) |
8292 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8293 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
8294 | ;; |
8295 | ||
ce2cded5 L |
8296 | msdosdjgpp*) |
8297 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8298 | # on systems that don't support them. | |
8299 | lt_prog_compiler_can_build_shared=no | |
8300 | enable_shared=no | |
d7040cdb SE |
8301 | ;; |
8302 | ||
ce2cded5 L |
8303 | *nto* | *qnx*) |
8304 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8305 | # it will coredump. | |
8306 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8307 | ;; |
8308 | ||
ce2cded5 L |
8309 | sysv4*MP*) |
8310 | if test -d /usr/nec; then | |
8311 | lt_prog_compiler_pic=-Kconform_pic | |
8312 | fi | |
d7040cdb SE |
8313 | ;; |
8314 | ||
ce2cded5 L |
8315 | *) |
8316 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 8317 | ;; |
ce2cded5 | 8318 | esac |
3725885a RW |
8319 | |
8320 | case $cc_basename in | |
8321 | nvcc*) # Cuda Compiler Driver 2.2 | |
8322 | lt_prog_compiler_wl='-Xlinker ' | |
8323 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8324 | ;; | |
8325 | esac | |
ce2cded5 L |
8326 | else |
8327 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8328 | case $host_os in | |
8329 | aix*) | |
8330 | lt_prog_compiler_wl='-Wl,' | |
8331 | if test "$host_cpu" = ia64; then | |
8332 | # AIX 5 now supports IA64 processor | |
8333 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 8334 | else |
ce2cded5 | 8335 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 8336 | fi |
ce2cded5 | 8337 | ;; |
d7040cdb | 8338 | |
718a6fd8 | 8339 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8340 | # This hack is so that the source file can tell whether it is being |
8341 | # built for inclusion in a dll (and should export symbols for example). | |
8342 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8343 | ;; |
8344 | ||
ce2cded5 L |
8345 | hpux9* | hpux10* | hpux11*) |
8346 | lt_prog_compiler_wl='-Wl,' | |
8347 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8348 | # not for PA HP-UX. | |
8349 | case $host_cpu in | |
8350 | hppa*64*|ia64*) | |
8351 | # +Z the default | |
8352 | ;; | |
8353 | *) | |
8354 | lt_prog_compiler_pic='+Z' | |
8355 | ;; | |
8356 | esac | |
8357 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8358 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
8359 | ;; |
8360 | ||
ce2cded5 L |
8361 | irix5* | irix6* | nonstopux*) |
8362 | lt_prog_compiler_wl='-Wl,' | |
8363 | # PIC (with -KPIC) is the default. | |
8364 | lt_prog_compiler_static='-non_shared' | |
8365 | ;; | |
d7040cdb | 8366 | |
58e24671 | 8367 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8368 | case $cc_basename in |
718a6fd8 SE |
8369 | # old Intel for x86_64 which still supported -KPIC. |
8370 | ecc*) | |
ce2cded5 L |
8371 | lt_prog_compiler_wl='-Wl,' |
8372 | lt_prog_compiler_pic='-KPIC' | |
8373 | lt_prog_compiler_static='-static' | |
8374 | ;; | |
718a6fd8 SE |
8375 | # icc used to be incompatible with GCC. |
8376 | # ICC 10 doesn't accept -KPIC any more. | |
8377 | icc* | ifort*) | |
8378 | lt_prog_compiler_wl='-Wl,' | |
8379 | lt_prog_compiler_pic='-fPIC' | |
8380 | lt_prog_compiler_static='-static' | |
8381 | ;; | |
8382 | # Lahey Fortran 8.1. | |
8383 | lf95*) | |
8384 | lt_prog_compiler_wl='-Wl,' | |
8385 | lt_prog_compiler_pic='--shared' | |
8386 | lt_prog_compiler_static='--static' | |
8387 | ;; | |
3725885a | 8388 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
ce2cded5 L |
8389 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8390 | # which looks to be a dead project) | |
8391 | lt_prog_compiler_wl='-Wl,' | |
8392 | lt_prog_compiler_pic='-fpic' | |
8393 | lt_prog_compiler_static='-Bstatic' | |
8394 | ;; | |
8395 | ccc*) | |
8396 | lt_prog_compiler_wl='-Wl,' | |
8397 | # All Alpha code is PIC. | |
8398 | lt_prog_compiler_static='-non_shared' | |
8399 | ;; | |
3725885a RW |
8400 | xl* | bgxl* | bgf* | mpixl*) |
8401 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
718a6fd8 SE |
8402 | lt_prog_compiler_wl='-Wl,' |
8403 | lt_prog_compiler_pic='-qpic' | |
8404 | lt_prog_compiler_static='-qstaticlink' | |
8405 | ;; | |
ce2cded5 L |
8406 | *) |
8407 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8408 | *Sun\ F* | *Sun*Fortran*) |
8409 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
ce2cded5 L |
8410 | lt_prog_compiler_pic='-KPIC' |
8411 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8412 | lt_prog_compiler_wl='' |
d7040cdb | 8413 | ;; |
3725885a RW |
8414 | *Sun\ C*) |
8415 | # Sun C 5.9 | |
ce2cded5 L |
8416 | lt_prog_compiler_pic='-KPIC' |
8417 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8418 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
8419 | ;; |
8420 | esac | |
ce2cded5 L |
8421 | ;; |
8422 | esac | |
d7040cdb SE |
8423 | ;; |
8424 | ||
ce2cded5 L |
8425 | newsos6) |
8426 | lt_prog_compiler_pic='-KPIC' | |
8427 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8428 | ;; |
8429 | ||
ce2cded5 L |
8430 | *nto* | *qnx*) |
8431 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8432 | # it will coredump. | |
8433 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8434 | ;; |
8435 | ||
ce2cded5 L |
8436 | osf3* | osf4* | osf5*) |
8437 | lt_prog_compiler_wl='-Wl,' | |
8438 | # All OSF/1 code is PIC. | |
8439 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8440 | ;; |
8441 | ||
ce2cded5 L |
8442 | rdos*) |
8443 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8444 | ;; |
8445 | ||
8446 | solaris*) | |
ce2cded5 L |
8447 | lt_prog_compiler_pic='-KPIC' |
8448 | lt_prog_compiler_static='-Bstatic' | |
8449 | case $cc_basename in | |
8450 | f77* | f90* | f95*) | |
8451 | lt_prog_compiler_wl='-Qoption ld ';; | |
d7040cdb | 8452 | *) |
ce2cded5 | 8453 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 8454 | esac |
d7040cdb SE |
8455 | ;; |
8456 | ||
8457 | sunos4*) | |
ce2cded5 L |
8458 | lt_prog_compiler_wl='-Qoption ld ' |
8459 | lt_prog_compiler_pic='-PIC' | |
8460 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8461 | ;; |
8462 | ||
ce2cded5 L |
8463 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8464 | lt_prog_compiler_wl='-Wl,' | |
8465 | lt_prog_compiler_pic='-KPIC' | |
8466 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8467 | ;; |
8468 | ||
8469 | sysv4*MP*) | |
ce2cded5 L |
8470 | if test -d /usr/nec ;then |
8471 | lt_prog_compiler_pic='-Kconform_pic' | |
8472 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8473 | fi |
8474 | ;; | |
8475 | ||
ce2cded5 L |
8476 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8477 | lt_prog_compiler_wl='-Wl,' | |
8478 | lt_prog_compiler_pic='-KPIC' | |
8479 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8480 | ;; |
8481 | ||
ce2cded5 L |
8482 | unicos*) |
8483 | lt_prog_compiler_wl='-Wl,' | |
8484 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
8485 | ;; |
8486 | ||
8487 | uts4*) | |
ce2cded5 L |
8488 | lt_prog_compiler_pic='-pic' |
8489 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8490 | ;; |
8491 | ||
8492 | *) | |
ce2cded5 | 8493 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
8494 | ;; |
8495 | esac | |
d7040cdb SE |
8496 | fi |
8497 | ||
ce2cded5 L |
8498 | case $host_os in |
8499 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8500 | *djgpp*) | |
8501 | lt_prog_compiler_pic= | |
8502 | ;; | |
8503 | *) | |
8504 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8505 | ;; | |
8506 | esac | |
81ecdfbb RW |
8507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8508 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8509 | |
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | # | |
ce2cded5 | 8516 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8517 | # |
ce2cded5 | 8518 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8520 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8521 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8522 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8523 | else |
718a6fd8 | 8524 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8525 | ac_outfile=conftest.$ac_objext |
8526 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8527 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8528 | # Insert the option either (1) after the last *FLAGS variable, or | |
8529 | # (2) before a word containing "conftest.", or (3) at the end. | |
8530 | # Note that $ac_compile itself does not contain backslashes and begins | |
8531 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8532 | # The option is referenced via a variable to avoid confusing sed. | |
8533 | lt_compile=`echo "$ac_compile" | $SED \ | |
8534 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8535 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8536 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8537 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8538 | (eval "$lt_compile" 2>conftest.err) |
8539 | ac_status=$? | |
8540 | cat conftest.err >&5 | |
3725885a | 8541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8542 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8543 | # The compiler can only warn and ignore the option if not recognized | |
8544 | # So say no if there are warnings other than the usual output. | |
3725885a | 8545 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
ce2cded5 L |
8546 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8547 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8548 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8549 | fi |
8550 | fi | |
8551 | $RM conftest* | |
d7040cdb | 8552 | |
ce2cded5 | 8553 | fi |
81ecdfbb RW |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8555 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8556 | |
718a6fd8 | 8557 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8558 | case $lt_prog_compiler_pic in |
8559 | "" | " "*) ;; | |
8560 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8561 | esac | |
8562 | else | |
8563 | lt_prog_compiler_pic= | |
8564 | lt_prog_compiler_can_build_shared=no | |
8565 | fi | |
d7040cdb | 8566 | |
ce2cded5 | 8567 | fi |
d7040cdb SE |
8568 | |
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
ce2cded5 L |
8574 | # |
8575 | # Check to make sure the static flag actually works. | |
8576 | # | |
8577 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8579 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8580 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8581 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8582 | else |
718a6fd8 | 8583 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8584 | save_LDFLAGS="$LDFLAGS" |
8585 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8586 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8587 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8588 | # The linker can only warn and ignore the option if not recognized | |
8589 | # So say no if there are warnings | |
8590 | if test -s conftest.err; then | |
8591 | # Append any errors to the config.log. | |
8592 | cat conftest.err 1>&5 | |
3725885a | 8593 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
ce2cded5 L |
8594 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8595 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8596 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8597 | fi |
8598 | else | |
718a6fd8 | 8599 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8600 | fi |
8601 | fi | |
718a6fd8 | 8602 | $RM -r conftest* |
ce2cded5 | 8603 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8604 | |
ce2cded5 | 8605 | fi |
81ecdfbb RW |
8606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8607 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8608 | |
718a6fd8 | 8609 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
8610 | : |
8611 | else | |
8612 | lt_prog_compiler_static= | |
8613 | fi | |
d7040cdb SE |
8614 | |
8615 | ||
8616 | ||
8617 | ||
8618 | ||
8619 | ||
8620 | ||
81ecdfbb RW |
8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8622 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8623 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8624 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8625 | else |
8626 | lt_cv_prog_compiler_c_o=no | |
8627 | $RM -r conftest 2>/dev/null | |
8628 | mkdir conftest | |
8629 | cd conftest | |
8630 | mkdir out | |
8631 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8632 | |
ce2cded5 L |
8633 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8634 | # Insert the option either (1) after the last *FLAGS variable, or | |
8635 | # (2) before a word containing "conftest.", or (3) at the end. | |
8636 | # Note that $ac_compile itself does not contain backslashes and begins | |
8637 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8638 | lt_compile=`echo "$ac_compile" | $SED \ | |
8639 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8640 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8641 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8642 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8643 | (eval "$lt_compile" 2>out/conftest.err) |
8644 | ac_status=$? | |
8645 | cat out/conftest.err >&5 | |
3725885a | 8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8647 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8648 | then | |
8649 | # The compiler can only warn and ignore the option if not recognized | |
8650 | # So say no if there are warnings | |
3725885a | 8651 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
8652 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8653 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8654 | lt_cv_prog_compiler_c_o=yes | |
8655 | fi | |
8656 | fi | |
8657 | chmod u+w . 2>&5 | |
8658 | $RM conftest* | |
8659 | # SGI C++ compiler will create directory out/ii_files/ for | |
8660 | # template instantiation | |
8661 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8662 | $RM out/* && rmdir out | |
8663 | cd .. | |
8664 | $RM -r conftest | |
8665 | $RM conftest* | |
d7040cdb | 8666 | |
ce2cded5 | 8667 | fi |
81ecdfbb RW |
8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8669 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8670 | |
8671 | ||
8672 | ||
8673 | ||
8674 | ||
8675 | ||
81ecdfbb RW |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8677 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8678 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8679 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8680 | else |
8681 | lt_cv_prog_compiler_c_o=no | |
8682 | $RM -r conftest 2>/dev/null | |
8683 | mkdir conftest | |
8684 | cd conftest | |
8685 | mkdir out | |
8686 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8687 | |
ce2cded5 L |
8688 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8689 | # Insert the option either (1) after the last *FLAGS variable, or | |
8690 | # (2) before a word containing "conftest.", or (3) at the end. | |
8691 | # Note that $ac_compile itself does not contain backslashes and begins | |
8692 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8693 | lt_compile=`echo "$ac_compile" | $SED \ | |
8694 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8695 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8696 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8697 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
ce2cded5 L |
8698 | (eval "$lt_compile" 2>out/conftest.err) |
8699 | ac_status=$? | |
8700 | cat out/conftest.err >&5 | |
3725885a | 8701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
8702 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8703 | then | |
8704 | # The compiler can only warn and ignore the option if not recognized | |
8705 | # So say no if there are warnings | |
3725885a | 8706 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
ce2cded5 L |
8707 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8708 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8709 | lt_cv_prog_compiler_c_o=yes | |
8710 | fi | |
8711 | fi | |
8712 | chmod u+w . 2>&5 | |
8713 | $RM conftest* | |
8714 | # SGI C++ compiler will create directory out/ii_files/ for | |
8715 | # template instantiation | |
8716 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8717 | $RM out/* && rmdir out | |
8718 | cd .. | |
8719 | $RM -r conftest | |
8720 | $RM conftest* | |
d7040cdb | 8721 | |
ce2cded5 | 8722 | fi |
81ecdfbb RW |
8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8724 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8725 | |
8726 | ||
8727 | ||
8728 | ||
ce2cded5 L |
8729 | hard_links="nottested" |
8730 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8731 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8733 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
8734 | hard_links=yes |
8735 | $RM conftest* | |
8736 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8737 | touch conftest.a | |
8738 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8739 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8741 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 8742 | if test "$hard_links" = no; then |
81ecdfbb RW |
8743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8744 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 L |
8745 | need_locks=warn |
8746 | fi | |
8747 | else | |
8748 | need_locks=no | |
8749 | fi | |
d7040cdb SE |
8750 | |
8751 | ||
8752 | ||
8753 | ||
8754 | ||
8755 | ||
81ecdfbb RW |
8756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8757 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8758 | |
ce2cded5 L |
8759 | runpath_var= |
8760 | allow_undefined_flag= | |
8761 | always_export_symbols=no | |
8762 | archive_cmds= | |
8763 | archive_expsym_cmds= | |
8764 | compiler_needs_object=no | |
8765 | enable_shared_with_static_runtimes=no | |
8766 | export_dynamic_flag_spec= | |
8767 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8768 | hardcode_automatic=no | |
8769 | hardcode_direct=no | |
8770 | hardcode_direct_absolute=no | |
8771 | hardcode_libdir_flag_spec= | |
8772 | hardcode_libdir_flag_spec_ld= | |
8773 | hardcode_libdir_separator= | |
8774 | hardcode_minus_L=no | |
8775 | hardcode_shlibpath_var=unsupported | |
8776 | inherit_rpath=no | |
8777 | link_all_deplibs=unknown | |
8778 | module_cmds= | |
8779 | module_expsym_cmds= | |
8780 | old_archive_from_new_cmds= | |
8781 | old_archive_from_expsyms_cmds= | |
8782 | thread_safe_flag_spec= | |
8783 | whole_archive_flag_spec= | |
8784 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8785 | # included in the symbol list | |
8786 | include_expsyms= | |
8787 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8788 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8789 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8790 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8791 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
8792 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8793 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8794 | # the symbol is explicitly referenced. Since portable code cannot | |
8795 | # rely on this symbol name, it's probably fine to never include it in | |
8796 | # preloaded symbol tables. | |
718a6fd8 | 8797 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 8798 | extract_expsyms_cmds= |
d7040cdb | 8799 | |
ce2cded5 | 8800 | case $host_os in |
718a6fd8 | 8801 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8802 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8803 | # When not using gcc, we currently assume that we are using | |
8804 | # Microsoft Visual C++. | |
8805 | if test "$GCC" != yes; then | |
8806 | with_gnu_ld=no | |
8807 | fi | |
8808 | ;; | |
8809 | interix*) | |
8810 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8811 | with_gnu_ld=yes | |
8812 | ;; | |
8813 | openbsd*) | |
8814 | with_gnu_ld=no | |
8815 | ;; | |
8816 | esac | |
d7040cdb | 8817 | |
ce2cded5 | 8818 | ld_shlibs=yes |
3725885a RW |
8819 | |
8820 | # On some targets, GNU ld is compatible enough with the native linker | |
8821 | # that we're better off using the native interface for both. | |
8822 | lt_use_gnu_ld_interface=no | |
ce2cded5 | 8823 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8824 | case $host_os in |
8825 | aix*) | |
8826 | # The AIX port of GNU ld has always aspired to compatibility | |
8827 | # with the native linker. However, as the warning in the GNU ld | |
8828 | # block says, versions before 2.19.5* couldn't really create working | |
8829 | # shared libraries, regardless of the interface used. | |
8830 | case `$LD -v 2>&1` in | |
8831 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8832 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8833 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8834 | *) | |
8835 | lt_use_gnu_ld_interface=yes | |
8836 | ;; | |
8837 | esac | |
8838 | ;; | |
8839 | *) | |
8840 | lt_use_gnu_ld_interface=yes | |
8841 | ;; | |
8842 | esac | |
8843 | fi | |
8844 | ||
8845 | if test "$lt_use_gnu_ld_interface" = yes; then | |
ce2cded5 L |
8846 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8847 | wlarc='${wl}' | |
d7040cdb | 8848 | |
ce2cded5 L |
8849 | # Set some defaults for GNU ld with shared library support. These |
8850 | # are reset later if shared libraries are not supported. Putting them | |
8851 | # here allows them to be overridden if necessary. | |
8852 | runpath_var=LD_RUN_PATH | |
8853 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8854 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8855 | # ancient GNU ld didn't support --whole-archive et. al. | |
8856 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8857 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8858 | else | |
8859 | whole_archive_flag_spec= | |
8860 | fi | |
8861 | supports_anon_versioning=no | |
8862 | case `$LD -v 2>&1` in | |
3725885a | 8863 | *GNU\ gold*) supports_anon_versioning=yes ;; |
ce2cded5 L |
8864 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8865 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8866 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8867 | *\ 2.11.*) ;; # other 2.11 versions | |
8868 | *) supports_anon_versioning=yes ;; | |
8869 | esac | |
d7040cdb | 8870 | |
ce2cded5 L |
8871 | # See if GNU ld supports shared libraries. |
8872 | case $host_os in | |
50e7d84b | 8873 | aix[3-9]*) |
ce2cded5 L |
8874 | # On AIX/PPC, the GNU linker is very broken |
8875 | if test "$host_cpu" != ia64; then | |
8876 | ld_shlibs=no | |
8877 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8878 | |
3725885a | 8879 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
ce2cded5 L |
8880 | *** to be unable to reliably create shared libraries on AIX. |
8881 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8882 | *** really care for shared libraries, you may want to install binutils |
8883 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8884 | *** You will then need to restart the configuration process. | |
d7040cdb | 8885 | |
ce2cded5 L |
8886 | _LT_EOF |
8887 | fi | |
8888 | ;; | |
d7040cdb | 8889 | |
ce2cded5 | 8890 | amigaos*) |
718a6fd8 SE |
8891 | case $host_cpu in |
8892 | powerpc) | |
8893 | # see comment about AmigaOS4 .so support | |
8894 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8895 | archive_expsym_cmds='' | |
8896 | ;; | |
8897 | m68k) | |
8898 | 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)' | |
8899 | hardcode_libdir_flag_spec='-L$libdir' | |
8900 | hardcode_minus_L=yes | |
8901 | ;; | |
8902 | esac | |
ce2cded5 | 8903 | ;; |
d7040cdb | 8904 | |
ce2cded5 L |
8905 | beos*) |
8906 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8907 | allow_undefined_flag=unsupported | |
8908 | # Joseph Beckenbach <[email protected]> says some releases of gcc | |
8909 | # support --undefined. This deserves some investigation. FIXME | |
8910 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8911 | else | |
8912 | ld_shlibs=no | |
8913 | fi | |
8914 | ;; | |
d7040cdb | 8915 | |
718a6fd8 | 8916 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
8917 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8918 | # as there is no search path for DLLs. | |
8919 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8920 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
ce2cded5 L |
8921 | allow_undefined_flag=unsupported |
8922 | always_export_symbols=no | |
8923 | enable_shared_with_static_runtimes=yes | |
8924 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8925 | |
ce2cded5 L |
8926 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8927 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8928 | # If the export-symbols file already is a .def file (1st line | |
8929 | # is EXPORTS), use it as is; otherwise, prepend... | |
8930 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8931 | cp $export_symbols $output_objdir/$soname.def; | |
8932 | else | |
8933 | echo EXPORTS > $output_objdir/$soname.def; | |
8934 | cat $export_symbols >> $output_objdir/$soname.def; | |
8935 | fi~ | |
8936 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8937 | else | |
8938 | ld_shlibs=no | |
8939 | fi | |
8940 | ;; | |
d7040cdb | 8941 | |
3725885a RW |
8942 | haiku*) |
8943 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8944 | link_all_deplibs=yes | |
8945 | ;; | |
8946 | ||
ce2cded5 L |
8947 | interix[3-9]*) |
8948 | hardcode_direct=no | |
8949 | hardcode_shlibpath_var=no | |
8950 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8951 | export_dynamic_flag_spec='${wl}-E' | |
8952 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8953 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8954 | # default) and relocated if they conflict, which is a slow very memory | |
8955 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8956 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8957 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8958 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8959 | 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' | |
8960 | ;; | |
d7040cdb | 8961 | |
58e24671 | 8962 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
8963 | tmp_diet=no |
8964 | if test "$host_os" = linux-dietlibc; then | |
8965 | case $cc_basename in | |
8966 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8967 | esac | |
8968 | fi | |
8969 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8970 | && test "$tmp_diet" = no | |
8971 | then | |
8972 | tmp_addflag= | |
718a6fd8 | 8973 | tmp_sharedflag='-shared' |
ce2cded5 L |
8974 | case $cc_basename,$host_cpu in |
8975 | pgcc*) # Portland Group C compiler | |
3725885a | 8976 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
ce2cded5 L |
8977 | tmp_addflag=' $pic_flag' |
8978 | ;; | |
3725885a RW |
8979 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8980 | # Portland Group f77 and f90 compilers | |
8981 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
ce2cded5 L |
8982 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8983 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8984 | tmp_addflag=' -i_dynamic' ;; | |
8985 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8986 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8987 | ifc* | ifort*) # Intel Fortran compiler | |
8988 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8989 | lf95*) # Lahey Fortran 8.1 |
8990 | whole_archive_flag_spec= | |
8991 | tmp_sharedflag='--shared' ;; | |
3725885a | 8992 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
718a6fd8 SE |
8993 | tmp_sharedflag='-qmkshrobj' |
8994 | tmp_addflag= ;; | |
3725885a RW |
8995 | nvcc*) # Cuda Compiler Driver 2.2 |
8996 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8997 | compiler_needs_object=yes | |
8998 | ;; | |
ce2cded5 L |
8999 | esac |
9000 | case `$CC -V 2>&1 | sed 5q` in | |
9001 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 9002 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
ce2cded5 L |
9003 | compiler_needs_object=yes |
9004 | tmp_sharedflag='-G' ;; | |
9005 | *Sun\ F*) # Sun Fortran 8.3 | |
9006 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
9007 | esac |
9008 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 9009 | |
ce2cded5 L |
9010 | if test "x$supports_anon_versioning" = xyes; then |
9011 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9012 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9013 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9014 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9015 | fi | |
718a6fd8 SE |
9016 | |
9017 | case $cc_basename in | |
3725885a | 9018 | xlf* | bgf* | bgxlf* | mpixlf*) |
718a6fd8 SE |
9019 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9020 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9021 | hardcode_libdir_flag_spec= | |
9022 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9023 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9024 | if test "x$supports_anon_versioning" = xyes; then | |
9025 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9026 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9027 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9028 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9029 | fi | |
9030 | ;; | |
9031 | esac | |
ce2cded5 L |
9032 | else |
9033 | ld_shlibs=no | |
9034 | fi | |
9035 | ;; | |
d7040cdb | 9036 | |
ce2cded5 L |
9037 | netbsd*) |
9038 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9039 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9040 | wlarc= | |
9041 | else | |
9042 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9043 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9044 | fi | |
9045 | ;; | |
d7040cdb | 9046 | |
ce2cded5 L |
9047 | solaris*) |
9048 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9049 | ld_shlibs=no | |
9050 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9051 | |
ce2cded5 L |
9052 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9053 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9054 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9055 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9056 | *** your PATH or compiler configuration so that the native linker is | |
9057 | *** used, and then restart. | |
d7040cdb | 9058 | |
ce2cded5 L |
9059 | _LT_EOF |
9060 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9061 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9062 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9063 | else | |
9064 | ld_shlibs=no | |
9065 | fi | |
9066 | ;; | |
d7040cdb | 9067 | |
ce2cded5 L |
9068 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9069 | case `$LD -v 2>&1` in | |
9070 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9071 | ld_shlibs=no | |
9072 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9073 | |
ce2cded5 L |
9074 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9075 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9076 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9077 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9078 | *** your PATH or compiler configuration so that the native linker is | |
9079 | *** used, and then restart. | |
d7040cdb | 9080 | |
ce2cded5 L |
9081 | _LT_EOF |
9082 | ;; | |
9083 | *) | |
9084 | # For security reasons, it is highly recommended that you always | |
9085 | # use absolute paths for naming shared libraries, and exclude the | |
9086 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9087 | # requires that you compile everything twice, which is a pain. | |
9088 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9089 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9090 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9091 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9092 | else | |
9093 | ld_shlibs=no | |
9094 | fi | |
9095 | ;; | |
9096 | esac | |
9097 | ;; | |
d7040cdb | 9098 | |
ce2cded5 L |
9099 | sunos4*) |
9100 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9101 | wlarc= | |
9102 | hardcode_direct=yes | |
9103 | hardcode_shlibpath_var=no | |
9104 | ;; | |
d7040cdb | 9105 | |
ce2cded5 L |
9106 | *) |
9107 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9108 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9109 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9110 | else | |
9111 | ld_shlibs=no | |
9112 | fi | |
9113 | ;; | |
9114 | esac | |
d7040cdb | 9115 | |
ce2cded5 L |
9116 | if test "$ld_shlibs" = no; then |
9117 | runpath_var= | |
9118 | hardcode_libdir_flag_spec= | |
9119 | export_dynamic_flag_spec= | |
9120 | whole_archive_flag_spec= | |
9121 | fi | |
9122 | else | |
9123 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9124 | case $host_os in | |
9125 | aix3*) | |
9126 | allow_undefined_flag=unsupported | |
9127 | always_export_symbols=yes | |
9128 | 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' | |
9129 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9130 | # are no directories specified by -L. | |
9131 | hardcode_minus_L=yes | |
9132 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9133 | # Neither direct hardcoding nor static linking is supported with a | |
9134 | # broken collect2. | |
9135 | hardcode_direct=unsupported | |
9136 | fi | |
9137 | ;; | |
d7040cdb | 9138 | |
50e7d84b | 9139 | aix[4-9]*) |
ce2cded5 L |
9140 | if test "$host_cpu" = ia64; then |
9141 | # On IA64, the linker does run time linking by default, so we don't | |
9142 | # have to do anything special. | |
9143 | aix_use_runtimelinking=no | |
9144 | exp_sym_flag='-Bexport' | |
9145 | no_entry_flag="" | |
9146 | else | |
9147 | # If we're using GNU nm, then we don't want the "-C" option. | |
9148 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
9149 | # Also, AIX nm treats weak defined symbols like other global |
9150 | # defined symbols, whereas GNU nm marks them as "W". | |
ce2cded5 | 9151 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 9152 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
ce2cded5 L |
9153 | else |
9154 | 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' | |
9155 | fi | |
9156 | aix_use_runtimelinking=no | |
d7040cdb | 9157 | |
ce2cded5 L |
9158 | # Test if we are trying to use run time linking or normal |
9159 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9160 | # need to do runtime linking. | |
50e7d84b | 9161 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
9162 | for ld_flag in $LDFLAGS; do |
9163 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9164 | aix_use_runtimelinking=yes | |
9165 | break | |
9166 | fi | |
9167 | done | |
9168 | ;; | |
9169 | esac | |
d7040cdb | 9170 | |
ce2cded5 L |
9171 | exp_sym_flag='-bexport' |
9172 | no_entry_flag='-bnoentry' | |
9173 | fi | |
d7040cdb | 9174 | |
ce2cded5 L |
9175 | # When large executables or shared objects are built, AIX ld can |
9176 | # have problems creating the table of contents. If linking a library | |
9177 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9178 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9179 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 9180 | |
ce2cded5 L |
9181 | archive_cmds='' |
9182 | hardcode_direct=yes | |
9183 | hardcode_direct_absolute=yes | |
9184 | hardcode_libdir_separator=':' | |
9185 | link_all_deplibs=yes | |
9186 | file_list_spec='${wl}-f,' | |
d7040cdb | 9187 | |
ce2cded5 L |
9188 | if test "$GCC" = yes; then |
9189 | case $host_os in aix4.[012]|aix4.[012].*) | |
9190 | # We only want to do this on AIX 4.2 and lower, the check | |
9191 | # below for broken collect2 doesn't work under 4.3+ | |
9192 | collect2name=`${CC} -print-prog-name=collect2` | |
9193 | if test -f "$collect2name" && | |
9194 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9195 | then | |
9196 | # We have reworked collect2 | |
9197 | : | |
9198 | else | |
9199 | # We have old collect2 | |
9200 | hardcode_direct=unsupported | |
9201 | # It fails to find uninstalled libraries when the uninstalled | |
9202 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9203 | # to unsupported forces relinking | |
9204 | hardcode_minus_L=yes | |
9205 | hardcode_libdir_flag_spec='-L$libdir' | |
9206 | hardcode_libdir_separator= | |
9207 | fi | |
9208 | ;; | |
9209 | esac | |
9210 | shared_flag='-shared' | |
9211 | if test "$aix_use_runtimelinking" = yes; then | |
9212 | shared_flag="$shared_flag "'${wl}-G' | |
9213 | fi | |
9214 | else | |
9215 | # not using gcc | |
9216 | if test "$host_cpu" = ia64; then | |
9217 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9218 | # chokes on -Wl,-G. The following line is correct: | |
9219 | shared_flag='-G' | |
9220 | else | |
9221 | if test "$aix_use_runtimelinking" = yes; then | |
9222 | shared_flag='${wl}-G' | |
9223 | else | |
9224 | shared_flag='${wl}-bM:SRE' | |
9225 | fi | |
9226 | fi | |
9227 | fi | |
d7040cdb | 9228 | |
718a6fd8 | 9229 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9230 | # It seems that -bexpall does not export symbols beginning with |
9231 | # underscore (_), so it is better to generate a list of symbols to export. | |
9232 | always_export_symbols=yes | |
9233 | if test "$aix_use_runtimelinking" = yes; then | |
9234 | # Warning - without using the other runtime loading flags (-brtl), | |
9235 | # -berok will link without error, but may produce a broken library. | |
9236 | allow_undefined_flag='-berok' | |
9237 | # Determine the default libpath from the value encoded in an | |
9238 | # empty executable. | |
81ecdfbb | 9239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9240 | /* end confdefs.h. */ |
d7040cdb | 9241 | |
ce2cded5 L |
9242 | int |
9243 | main () | |
9244 | { | |
d7040cdb | 9245 | |
ce2cded5 L |
9246 | ; |
9247 | return 0; | |
9248 | } | |
9249 | _ACEOF | |
81ecdfbb | 9250 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9251 | |
ce2cded5 L |
9252 | lt_aix_libpath_sed=' |
9253 | /Import File Strings/,/^$/ { | |
9254 | /^0/ { | |
9255 | s/^0 *\(.*\)$/\1/ | |
9256 | p | |
9257 | } | |
9258 | }' | |
9259 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9260 | # Check for a 64-bit object if we didn't find anything. | |
9261 | if test -z "$aix_libpath"; then | |
9262 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9263 | fi | |
ce2cded5 | 9264 | fi |
81ecdfbb RW |
9265 | rm -f core conftest.err conftest.$ac_objext \ |
9266 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9267 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9268 | |
ce2cded5 | 9269 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
3725885a | 9270 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
ce2cded5 L |
9271 | else |
9272 | if test "$host_cpu" = ia64; then | |
9273 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9274 | allow_undefined_flag="-z nodefs" | |
9275 | 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" | |
9276 | else | |
9277 | # Determine the default libpath from the value encoded in an | |
9278 | # empty executable. | |
81ecdfbb | 9279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9280 | /* end confdefs.h. */ |
d7040cdb | 9281 | |
ce2cded5 L |
9282 | int |
9283 | main () | |
9284 | { | |
d7040cdb | 9285 | |
ce2cded5 L |
9286 | ; |
9287 | return 0; | |
9288 | } | |
9289 | _ACEOF | |
81ecdfbb | 9290 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9291 | |
ce2cded5 L |
9292 | lt_aix_libpath_sed=' |
9293 | /Import File Strings/,/^$/ { | |
9294 | /^0/ { | |
9295 | s/^0 *\(.*\)$/\1/ | |
9296 | p | |
9297 | } | |
9298 | }' | |
9299 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9300 | # Check for a 64-bit object if we didn't find anything. | |
9301 | if test -z "$aix_libpath"; then | |
9302 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9303 | fi | |
ce2cded5 | 9304 | fi |
81ecdfbb RW |
9305 | rm -f core conftest.err conftest.$ac_objext \ |
9306 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9307 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9308 | |
ce2cded5 L |
9309 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9310 | # Warning - without using the other run time loading flags, | |
9311 | # -berok will link without error, but may produce a broken library. | |
9312 | no_undefined_flag=' ${wl}-bernotok' | |
9313 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
9314 | if test "$with_gnu_ld" = yes; then |
9315 | # We only use this code for GNU lds that support --whole-archive. | |
9316 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9317 | else | |
9318 | # Exported symbols can be pulled into shared objects from archives | |
9319 | whole_archive_flag_spec='$convenience' | |
9320 | fi | |
ce2cded5 L |
9321 | archive_cmds_need_lc=yes |
9322 | # This is similar to how AIX traditionally builds its shared libraries. | |
9323 | 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' | |
9324 | fi | |
9325 | fi | |
9326 | ;; | |
d7040cdb | 9327 | |
ce2cded5 | 9328 | amigaos*) |
718a6fd8 SE |
9329 | case $host_cpu in |
9330 | powerpc) | |
9331 | # see comment about AmigaOS4 .so support | |
9332 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9333 | archive_expsym_cmds='' | |
9334 | ;; | |
9335 | m68k) | |
9336 | 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)' | |
9337 | hardcode_libdir_flag_spec='-L$libdir' | |
9338 | hardcode_minus_L=yes | |
9339 | ;; | |
9340 | esac | |
ce2cded5 | 9341 | ;; |
d7040cdb | 9342 | |
ce2cded5 L |
9343 | bsdi[45]*) |
9344 | export_dynamic_flag_spec=-rdynamic | |
9345 | ;; | |
d7040cdb | 9346 | |
718a6fd8 | 9347 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9348 | # When not using gcc, we currently assume that we are using |
9349 | # Microsoft Visual C++. | |
9350 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9351 | # no search path for DLLs. | |
9352 | hardcode_libdir_flag_spec=' ' | |
9353 | allow_undefined_flag=unsupported | |
9354 | # Tell ltmain to make .lib files, not .a files. | |
9355 | libext=lib | |
9356 | # Tell ltmain to make .dll files, not .so files. | |
9357 | shrext_cmds=".dll" | |
9358 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 9359 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
ce2cded5 L |
9360 | # The linker will automatically build a .lib file if we build a DLL. |
9361 | old_archive_from_new_cmds='true' | |
9362 | # FIXME: Should let the user specify the lib program. | |
9363 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9364 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9365 | enable_shared_with_static_runtimes=yes | |
9366 | ;; | |
d7040cdb | 9367 | |
ce2cded5 | 9368 | darwin* | rhapsody*) |
d7040cdb | 9369 | |
718a6fd8 SE |
9370 | |
9371 | archive_cmds_need_lc=no | |
9372 | hardcode_direct=no | |
9373 | hardcode_automatic=yes | |
9374 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9375 | if test "$lt_cv_ld_force_load" = "yes"; then |
9376 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
9377 | else | |
9378 | whole_archive_flag_spec='' | |
9379 | fi | |
718a6fd8 SE |
9380 | link_all_deplibs=yes |
9381 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9382 | case $cc_basename in | |
9383 | ifort*) _lt_dar_can_shared=yes ;; | |
9384 | *) _lt_dar_can_shared=$GCC ;; | |
9385 | esac | |
9386 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9387 | output_verbose_link_cmd=func_echo_all |
718a6fd8 SE |
9388 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9389 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9390 | 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}" | |
9391 | 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}" | |
9392 | ||
9393 | else | |
9394 | ld_shlibs=no | |
9395 | fi | |
9396 | ||
ce2cded5 | 9397 | ;; |
d7040cdb | 9398 | |
ce2cded5 L |
9399 | dgux*) |
9400 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9401 | hardcode_libdir_flag_spec='-L$libdir' | |
9402 | hardcode_shlibpath_var=no | |
9403 | ;; | |
d7040cdb | 9404 | |
ce2cded5 L |
9405 | freebsd1*) |
9406 | ld_shlibs=no | |
9407 | ;; | |
d7040cdb | 9408 | |
ce2cded5 L |
9409 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9410 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9411 | # does not break anything, and helps significantly (at the cost of a little | |
9412 | # extra space). | |
9413 | freebsd2.2*) | |
9414 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9415 | hardcode_libdir_flag_spec='-R$libdir' | |
9416 | hardcode_direct=yes | |
9417 | hardcode_shlibpath_var=no | |
9418 | ;; | |
d7040cdb | 9419 | |
ce2cded5 L |
9420 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9421 | freebsd2*) | |
9422 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9423 | hardcode_direct=yes | |
9424 | hardcode_minus_L=yes | |
9425 | hardcode_shlibpath_var=no | |
9426 | ;; | |
d7040cdb | 9427 | |
ce2cded5 L |
9428 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9429 | freebsd* | dragonfly*) | |
9430 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9431 | hardcode_libdir_flag_spec='-R$libdir' | |
9432 | hardcode_direct=yes | |
9433 | hardcode_shlibpath_var=no | |
9434 | ;; | |
d7040cdb | 9435 | |
ce2cded5 L |
9436 | hpux9*) |
9437 | if test "$GCC" = yes; then | |
9438 | 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' | |
9439 | else | |
9440 | 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' | |
9441 | fi | |
9442 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9443 | hardcode_libdir_separator=: | |
9444 | hardcode_direct=yes | |
d7040cdb | 9445 | |
ce2cded5 L |
9446 | # hardcode_minus_L: Not really in the search PATH, |
9447 | # but as the default location of the library. | |
9448 | hardcode_minus_L=yes | |
9449 | export_dynamic_flag_spec='${wl}-E' | |
9450 | ;; | |
d7040cdb | 9451 | |
ce2cded5 | 9452 | hpux10*) |
3725885a | 9453 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
9454 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9455 | else | |
9456 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9457 | fi | |
9458 | if test "$with_gnu_ld" = no; then | |
9459 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9460 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9461 | hardcode_libdir_separator=: | |
9462 | hardcode_direct=yes | |
9463 | hardcode_direct_absolute=yes | |
9464 | export_dynamic_flag_spec='${wl}-E' | |
9465 | # hardcode_minus_L: Not really in the search PATH, | |
9466 | # but as the default location of the library. | |
9467 | hardcode_minus_L=yes | |
9468 | fi | |
9469 | ;; | |
d7040cdb | 9470 | |
ce2cded5 | 9471 | hpux11*) |
3725885a | 9472 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
ce2cded5 L |
9473 | case $host_cpu in |
9474 | hppa*64*) | |
9475 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9476 | ;; | |
9477 | ia64*) | |
718a6fd8 | 9478 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9479 | ;; |
9480 | *) | |
9481 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9482 | ;; | |
9483 | esac | |
9484 | else | |
9485 | case $host_cpu in | |
9486 | hppa*64*) | |
9487 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9488 | ;; | |
9489 | ia64*) | |
9490 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9491 | ;; | |
9492 | *) | |
3725885a RW |
9493 | |
9494 | # Older versions of the 11.00 compiler do not understand -b yet | |
9495 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9497 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9498 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
9499 | $as_echo_n "(cached) " >&6 | |
9500 | else | |
9501 | lt_cv_prog_compiler__b=no | |
9502 | save_LDFLAGS="$LDFLAGS" | |
9503 | LDFLAGS="$LDFLAGS -b" | |
9504 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9505 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9506 | # The linker can only warn and ignore the option if not recognized | |
9507 | # So say no if there are warnings | |
9508 | if test -s conftest.err; then | |
9509 | # Append any errors to the config.log. | |
9510 | cat conftest.err 1>&5 | |
9511 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9512 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9513 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9514 | lt_cv_prog_compiler__b=yes | |
9515 | fi | |
9516 | else | |
9517 | lt_cv_prog_compiler__b=yes | |
9518 | fi | |
9519 | fi | |
9520 | $RM -r conftest* | |
9521 | LDFLAGS="$save_LDFLAGS" | |
9522 | ||
9523 | fi | |
9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9525 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9526 | ||
9527 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9528 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9529 | else | |
9530 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9531 | fi | |
9532 | ||
ce2cded5 L |
9533 | ;; |
9534 | esac | |
9535 | fi | |
9536 | if test "$with_gnu_ld" = no; then | |
9537 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9538 | hardcode_libdir_separator=: | |
d7040cdb | 9539 | |
ce2cded5 L |
9540 | case $host_cpu in |
9541 | hppa*64*|ia64*) | |
9542 | hardcode_direct=no | |
9543 | hardcode_shlibpath_var=no | |
9544 | ;; | |
9545 | *) | |
9546 | hardcode_direct=yes | |
9547 | hardcode_direct_absolute=yes | |
9548 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9549 | |
ce2cded5 L |
9550 | # hardcode_minus_L: Not really in the search PATH, |
9551 | # but as the default location of the library. | |
9552 | hardcode_minus_L=yes | |
9553 | ;; | |
9554 | esac | |
9555 | fi | |
9556 | ;; | |
9557 | ||
9558 | irix5* | irix6* | nonstopux*) | |
9559 | if test "$GCC" = yes; then | |
3725885a | 9560 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
9561 | # Try to use the -exported_symbol ld option, if it does not |
9562 | # work, assume that -exports_file does not work either and | |
9563 | # implicitly export all symbols. | |
9564 | save_LDFLAGS="$LDFLAGS" | |
9565 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9567 | /* end confdefs.h. */ | |
ce2cded5 L |
9568 | int foo(void) {} |
9569 | _ACEOF | |
81ecdfbb | 9570 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 9571 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
d7040cdb | 9572 | |
d7040cdb | 9573 | fi |
81ecdfbb RW |
9574 | rm -f core conftest.err conftest.$ac_objext \ |
9575 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
9576 | LDFLAGS="$save_LDFLAGS" |
9577 | else | |
3725885a RW |
9578 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
9579 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
ce2cded5 L |
9580 | fi |
9581 | archive_cmds_need_lc='no' | |
9582 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9583 | hardcode_libdir_separator=: | |
9584 | inherit_rpath=yes | |
9585 | link_all_deplibs=yes | |
9586 | ;; | |
d7040cdb | 9587 | |
ce2cded5 L |
9588 | netbsd*) |
9589 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9590 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9591 | else | |
9592 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9593 | fi | |
9594 | hardcode_libdir_flag_spec='-R$libdir' | |
9595 | hardcode_direct=yes | |
9596 | hardcode_shlibpath_var=no | |
9597 | ;; | |
d7040cdb | 9598 | |
ce2cded5 L |
9599 | newsos6) |
9600 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9601 | hardcode_direct=yes | |
9602 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9603 | hardcode_libdir_separator=: | |
9604 | hardcode_shlibpath_var=no | |
9605 | ;; | |
d7040cdb | 9606 | |
ce2cded5 L |
9607 | *nto* | *qnx*) |
9608 | ;; | |
d7040cdb | 9609 | |
ce2cded5 | 9610 | openbsd*) |
718a6fd8 SE |
9611 | if test -f /usr/libexec/ld.so; then |
9612 | hardcode_direct=yes | |
9613 | hardcode_shlibpath_var=no | |
9614 | hardcode_direct_absolute=yes | |
9615 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9616 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9617 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9618 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9619 | export_dynamic_flag_spec='${wl}-E' |
9620 | else | |
9621 | case $host_os in | |
9622 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9623 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9624 | hardcode_libdir_flag_spec='-R$libdir' | |
9625 | ;; | |
9626 | *) | |
9627 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9628 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9629 | ;; | |
9630 | esac | |
9631 | fi | |
9632 | else | |
9633 | ld_shlibs=no | |
d7040cdb SE |
9634 | fi |
9635 | ;; | |
d7040cdb | 9636 | |
ce2cded5 L |
9637 | os2*) |
9638 | hardcode_libdir_flag_spec='-L$libdir' | |
9639 | hardcode_minus_L=yes | |
9640 | allow_undefined_flag=unsupported | |
3725885a | 9641 | 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' |
ce2cded5 L |
9642 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9643 | ;; | |
d7040cdb | 9644 | |
ce2cded5 L |
9645 | osf3*) |
9646 | if test "$GCC" = yes; then | |
9647 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9648 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
9649 | else |
9650 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9651 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
9652 | fi |
9653 | archive_cmds_need_lc='no' | |
9654 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9655 | hardcode_libdir_separator=: | |
9656 | ;; | |
d7040cdb | 9657 | |
ce2cded5 L |
9658 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9659 | if test "$GCC" = yes; then | |
9660 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9661 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
ce2cded5 L |
9662 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9663 | else | |
9664 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9665 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
ce2cded5 | 9666 | 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~ |
3725885a | 9667 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
d7040cdb | 9668 | |
ce2cded5 L |
9669 | # Both c and cxx compiler support -rpath directly |
9670 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9671 | fi | |
9672 | archive_cmds_need_lc='no' | |
9673 | hardcode_libdir_separator=: | |
9674 | ;; | |
d7040cdb | 9675 | |
ce2cded5 L |
9676 | solaris*) |
9677 | no_undefined_flag=' -z defs' | |
9678 | if test "$GCC" = yes; then | |
9679 | wlarc='${wl}' | |
9680 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9681 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9682 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9683 | else | |
9684 | case `$CC -V 2>&1` in | |
9685 | *"Compilers 5.0"*) | |
9686 | wlarc='' | |
9687 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9688 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9689 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9690 | ;; | |
9691 | *) | |
9692 | wlarc='${wl}' | |
9693 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9694 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9695 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9696 | ;; | |
9697 | esac | |
9698 | fi | |
9699 | hardcode_libdir_flag_spec='-R$libdir' | |
9700 | hardcode_shlibpath_var=no | |
9701 | case $host_os in | |
9702 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9703 | *) | |
9704 | # The compiler driver will combine and reorder linker options, | |
9705 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9706 | # but is careful enough not to reorder. | |
9707 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9708 | if test "$GCC" = yes; then | |
9709 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9710 | else | |
9711 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9712 | fi | |
9713 | ;; | |
9714 | esac | |
9715 | link_all_deplibs=yes | |
d7040cdb | 9716 | ;; |
ce2cded5 L |
9717 | |
9718 | sunos4*) | |
9719 | if test "x$host_vendor" = xsequent; then | |
9720 | # Use $CC to link under sequent, because it throws in some extra .o | |
9721 | # files that make .init and .fini sections work. | |
9722 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9723 | else |
ce2cded5 | 9724 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9725 | fi |
ce2cded5 L |
9726 | hardcode_libdir_flag_spec='-L$libdir' |
9727 | hardcode_direct=yes | |
9728 | hardcode_minus_L=yes | |
9729 | hardcode_shlibpath_var=no | |
d7040cdb | 9730 | ;; |
ce2cded5 L |
9731 | |
9732 | sysv4) | |
9733 | case $host_vendor in | |
9734 | sni) | |
9735 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9736 | hardcode_direct=yes # is this really true??? | |
9737 | ;; | |
9738 | siemens) | |
9739 | ## LD is ld it makes a PLAMLIB | |
9740 | ## CC just makes a GrossModule. | |
9741 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9742 | reload_cmds='$CC -r -o $output$reload_objs' | |
9743 | hardcode_direct=no | |
9744 | ;; | |
9745 | motorola) | |
9746 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9747 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9748 | ;; | |
9749 | esac | |
9750 | runpath_var='LD_RUN_PATH' | |
9751 | hardcode_shlibpath_var=no | |
d7040cdb | 9752 | ;; |
d7040cdb | 9753 | |
ce2cded5 L |
9754 | sysv4.3*) |
9755 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9756 | hardcode_shlibpath_var=no | |
9757 | export_dynamic_flag_spec='-Bexport' | |
9758 | ;; | |
d7040cdb | 9759 | |
ce2cded5 L |
9760 | sysv4*MP*) |
9761 | if test -d /usr/nec; then | |
9762 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9763 | hardcode_shlibpath_var=no | |
9764 | runpath_var=LD_RUN_PATH | |
9765 | hardcode_runpath_var=yes | |
9766 | ld_shlibs=yes | |
9767 | fi | |
9768 | ;; | |
d7040cdb | 9769 | |
ce2cded5 L |
9770 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9771 | no_undefined_flag='${wl}-z,text' | |
9772 | archive_cmds_need_lc=no | |
9773 | hardcode_shlibpath_var=no | |
9774 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9775 | |
ce2cded5 L |
9776 | if test "$GCC" = yes; then |
9777 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9778 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9779 | else | |
9780 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9781 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9782 | fi | |
9783 | ;; | |
d7040cdb | 9784 | |
ce2cded5 L |
9785 | sysv5* | sco3.2v5* | sco5v6*) |
9786 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9787 | # link with -lc, and that would cause any symbols used from libc to | |
9788 | # always be unresolved, which means just about no library would | |
9789 | # ever link correctly. If we're not using GNU ld we use -z text | |
9790 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9791 | # as -z defs. | |
9792 | no_undefined_flag='${wl}-z,text' | |
9793 | allow_undefined_flag='${wl}-z,nodefs' | |
9794 | archive_cmds_need_lc=no | |
9795 | hardcode_shlibpath_var=no | |
9796 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9797 | hardcode_libdir_separator=':' | |
9798 | link_all_deplibs=yes | |
9799 | export_dynamic_flag_spec='${wl}-Bexport' | |
9800 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9801 | |
ce2cded5 L |
9802 | if test "$GCC" = yes; then |
9803 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9804 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9805 | else | |
9806 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9807 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9808 | fi | |
d7040cdb | 9809 | ;; |
d7040cdb | 9810 | |
ce2cded5 L |
9811 | uts4*) |
9812 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9813 | hardcode_libdir_flag_spec='-L$libdir' | |
9814 | hardcode_shlibpath_var=no | |
9815 | ;; | |
d7040cdb | 9816 | |
ce2cded5 L |
9817 | *) |
9818 | ld_shlibs=no | |
9819 | ;; | |
9820 | esac | |
9821 | ||
9822 | if test x$host_vendor = xsni; then | |
9823 | case $host in | |
9824 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9825 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9826 | ;; | |
9827 | esac | |
d7040cdb | 9828 | fi |
ce2cded5 | 9829 | fi |
d7040cdb | 9830 | |
81ecdfbb RW |
9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9832 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 9833 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9834 | |
ce2cded5 | 9835 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9836 | |
d7040cdb | 9837 | |
d7040cdb | 9838 | |
d7040cdb | 9839 | |
d7040cdb | 9840 | |
d7040cdb | 9841 | |
d7040cdb | 9842 | |
d7040cdb | 9843 | |
d7040cdb | 9844 | |
d7040cdb | 9845 | |
d7040cdb | 9846 | |
d7040cdb | 9847 | |
d7040cdb | 9848 | |
d7040cdb | 9849 | |
d7040cdb | 9850 | |
ce2cded5 L |
9851 | # |
9852 | # Do we need to explicitly link libc? | |
9853 | # | |
9854 | case "x$archive_cmds_need_lc" in | |
9855 | x|xyes) | |
9856 | # Assume -lc should be added | |
9857 | archive_cmds_need_lc=yes | |
d7040cdb | 9858 | |
ce2cded5 L |
9859 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9860 | case $archive_cmds in | |
9861 | *'~'*) | |
9862 | # FIXME: we may have to deal with multi-command sequences. | |
9863 | ;; | |
9864 | '$CC '*) | |
9865 | # Test whether the compiler implicitly links with -lc since on some | |
9866 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9867 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9869 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9870 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9871 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
9872 | else |
9873 | $RM conftest* | |
9874 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9875 | |
81ecdfbb | 9876 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
9877 | (eval $ac_compile) 2>&5 |
9878 | ac_status=$? | |
81ecdfbb RW |
9879 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9880 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9881 | soname=conftest |
9882 | lib=conftest | |
9883 | libobjs=conftest.$ac_objext | |
9884 | deplibs= | |
9885 | wl=$lt_prog_compiler_wl | |
9886 | pic_flag=$lt_prog_compiler_pic | |
9887 | compiler_flags=-v | |
9888 | linker_flags=-v | |
9889 | verstring= | |
9890 | output_objdir=. | |
9891 | libname=conftest | |
9892 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9893 | allow_undefined_flag= | |
81ecdfbb | 9894 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
9895 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9896 | ac_status=$? | |
81ecdfbb RW |
9897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9898 | test $ac_status = 0; } | |
39144654 RW |
9899 | then |
9900 | lt_cv_archive_cmds_need_lc=no | |
9901 | else | |
9902 | lt_cv_archive_cmds_need_lc=yes | |
9903 | fi | |
9904 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9905 | else | |
9906 | cat conftest.err 1>&5 | |
9907 | fi | |
9908 | $RM conftest* | |
9909 | ||
9910 | fi | |
81ecdfbb RW |
9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9912 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9913 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
9914 | ;; |
9915 | esac | |
d7040cdb | 9916 | fi |
d7040cdb | 9917 | ;; |
ce2cded5 | 9918 | esac |
d7040cdb | 9919 | |
d7040cdb | 9920 | |
d7040cdb | 9921 | |
d7040cdb | 9922 | |
d7040cdb | 9923 | |
d7040cdb | 9924 | |
d7040cdb | 9925 | |
d7040cdb SE |
9926 | |
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
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 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ||
9987 | ||
9988 | ||
9989 | ||
9990 | ||
9991 | ||
9992 | ||
9993 | ||
9994 | ||
9995 | ||
9996 | ||
9997 | ||
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | ||
10008 | ||
10009 | ||
10010 | ||
10011 | ||
10012 | ||
d7040cdb | 10013 | |
d7040cdb | 10014 | |
d7040cdb SE |
10015 | |
10016 | ||
10017 | ||
10018 | ||
10019 | ||
10020 | ||
d7040cdb | 10021 | |
d7040cdb | 10022 | |
d7040cdb | 10023 | |
d7040cdb | 10024 | |
d7040cdb | 10025 | |
d7040cdb | 10026 | |
d7040cdb | 10027 | |
d7040cdb | 10028 | |
d7040cdb | 10029 | |
d7040cdb | 10030 | |
d7040cdb | 10031 | |
d7040cdb | 10032 | |
d7040cdb | 10033 | |
d7040cdb | 10034 | |
d7040cdb | 10035 | |
d7040cdb | 10036 | |
d7040cdb | 10037 | |
d7040cdb | 10038 | |
d7040cdb | 10039 | |
d7040cdb | 10040 | |
d7040cdb | 10041 | |
d7040cdb | 10042 | |
d7040cdb | 10043 | |
ce2cded5 L |
10044 | |
10045 | ||
10046 | ||
10047 | ||
10048 | ||
10049 | ||
10050 | ||
10051 | ||
10052 | ||
10053 | ||
10054 | ||
10055 | ||
10056 | ||
10057 | ||
10058 | ||
10059 | ||
10060 | ||
10061 | ||
10062 | ||
10063 | ||
10064 | ||
10065 | ||
10066 | ||
10067 | ||
10068 | ||
10069 | ||
10070 | ||
10071 | ||
10072 | ||
10073 | ||
10074 | ||
10075 | ||
81ecdfbb RW |
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10077 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
718a6fd8 SE |
10078 | |
10079 | if test "$GCC" = yes; then | |
ce2cded5 L |
10080 | case $host_os in |
10081 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10082 | *) lt_awk_arg="/^libraries:/" ;; | |
10083 | esac | |
3725885a RW |
10084 | case $host_os in |
10085 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10086 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10087 | esac | |
10088 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10089 | case $lt_search_path_spec in | |
10090 | *\;*) | |
ce2cded5 L |
10091 | # if the path contains ";" then we assume it to be the separator |
10092 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10093 | # assumed that no part of a normal pathname contains ";" but that should | |
10094 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
10095 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10096 | ;; | |
10097 | *) | |
10098 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10099 | ;; | |
10100 | esac | |
ce2cded5 L |
10101 | # Ok, now we have the path, separated by spaces, we can step through it |
10102 | # and add multilib dir if necessary. | |
10103 | lt_tmp_lt_search_path_spec= | |
10104 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10105 | for lt_sys_path in $lt_search_path_spec; do | |
10106 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10107 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10108 | else | |
10109 | test -d "$lt_sys_path" && \ | |
10110 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10111 | fi | |
10112 | done | |
3725885a | 10113 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
ce2cded5 L |
10114 | BEGIN {RS=" "; FS="/|\n";} { |
10115 | lt_foo=""; | |
10116 | lt_count=0; | |
10117 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10118 | if ($lt_i != "" && $lt_i != ".") { | |
10119 | if ($lt_i == "..") { | |
10120 | lt_count++; | |
10121 | } else { | |
10122 | if (lt_count == 0) { | |
10123 | lt_foo="/" $lt_i lt_foo; | |
10124 | } else { | |
10125 | lt_count--; | |
10126 | } | |
10127 | } | |
10128 | } | |
10129 | } | |
10130 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10131 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10132 | }'` | |
3725885a RW |
10133 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10134 | # for these hosts. | |
10135 | case $host_os in | |
10136 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10137 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10138 | esac | |
10139 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb | 10140 | else |
ce2cded5 L |
10141 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10142 | fi | |
10143 | library_names_spec= | |
10144 | libname_spec='lib$name' | |
10145 | soname_spec= | |
10146 | shrext_cmds=".so" | |
10147 | postinstall_cmds= | |
10148 | postuninstall_cmds= | |
10149 | finish_cmds= | |
10150 | finish_eval= | |
10151 | shlibpath_var= | |
10152 | shlibpath_overrides_runpath=unknown | |
10153 | version_type=none | |
10154 | dynamic_linker="$host_os ld.so" | |
10155 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10156 | need_lib_prefix=unknown | |
10157 | hardcode_into_libs=no | |
10158 | ||
10159 | # when you set need_version to no, make sure it does not cause -set_version | |
10160 | # flags to be left without arguments | |
10161 | need_version=unknown | |
10162 | ||
10163 | case $host_os in | |
10164 | aix3*) | |
10165 | version_type=linux | |
10166 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10167 | shlibpath_var=LIBPATH | |
10168 | ||
10169 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10170 | soname_spec='${libname}${release}${shared_ext}$major' | |
10171 | ;; | |
10172 | ||
50e7d84b | 10173 | aix[4-9]*) |
ce2cded5 L |
10174 | version_type=linux |
10175 | need_lib_prefix=no | |
10176 | need_version=no | |
10177 | hardcode_into_libs=yes | |
10178 | if test "$host_cpu" = ia64; then | |
10179 | # AIX 5 supports IA64 | |
10180 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10181 | shlibpath_var=LD_LIBRARY_PATH | |
10182 | else | |
10183 | # With GCC up to 2.95.x, collect2 would create an import file | |
10184 | # for dependence libraries. The import file would start with | |
10185 | # the line `#! .'. This would cause the generated library to | |
10186 | # depend on `.', always an invalid library. This was fixed in | |
10187 | # development snapshots of GCC prior to 3.0. | |
10188 | case $host_os in | |
10189 | aix4 | aix4.[01] | aix4.[01].*) | |
10190 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10191 | echo ' yes ' | |
10192 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10193 | : | |
10194 | else | |
10195 | can_build_shared=no | |
10196 | fi | |
10197 | ;; | |
10198 | esac | |
10199 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10200 | # soname into executable. Probably we can add versioning support to | |
10201 | # collect2, so additional links can be useful in future. | |
10202 | if test "$aix_use_runtimelinking" = yes; then | |
10203 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10204 | # instead of lib<name>.a to let people know that these are not | |
10205 | # typical AIX shared libraries. | |
10206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10207 | else | |
10208 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10209 | # and later when we are not doing run time linking. | |
10210 | library_names_spec='${libname}${release}.a $libname.a' | |
10211 | soname_spec='${libname}${release}${shared_ext}$major' | |
10212 | fi | |
10213 | shlibpath_var=LIBPATH | |
10214 | fi | |
10215 | ;; | |
10216 | ||
10217 | amigaos*) | |
718a6fd8 SE |
10218 | case $host_cpu in |
10219 | powerpc) | |
10220 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10221 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10223 | ;; | |
10224 | m68k) | |
ce2cded5 L |
10225 | library_names_spec='$libname.ixlibrary $libname.a' |
10226 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 10227 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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 |
10228 | ;; |
10229 | esac | |
ce2cded5 L |
10230 | ;; |
10231 | ||
10232 | beos*) | |
10233 | library_names_spec='${libname}${shared_ext}' | |
10234 | dynamic_linker="$host_os ld.so" | |
10235 | shlibpath_var=LIBRARY_PATH | |
10236 | ;; | |
10237 | ||
10238 | bsdi[45]*) | |
10239 | version_type=linux | |
10240 | need_version=no | |
10241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10242 | soname_spec='${libname}${release}${shared_ext}$major' | |
10243 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10244 | shlibpath_var=LD_LIBRARY_PATH | |
10245 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10246 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10247 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10248 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10249 | # libtool to hard-code these into programs | |
10250 | ;; | |
10251 | ||
718a6fd8 | 10252 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10253 | version_type=windows |
10254 | shrext_cmds=".dll" | |
10255 | need_version=no | |
10256 | need_lib_prefix=no | |
10257 | ||
718a6fd8 SE |
10258 | case $GCC,$host_os in |
10259 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10260 | library_names_spec='$libname.dll.a' |
10261 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10262 | postinstall_cmds='base_file=`basename \${file}`~ | |
10263 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10264 | dldir=$destdir/`dirname \$dlpath`~ | |
10265 | test -d \$dldir || mkdir -p \$dldir~ | |
10266 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10267 | chmod a+x \$dldir/$dlname~ | |
10268 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10269 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10270 | fi' | |
10271 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10272 | dlpath=$dir/\$dldll~ | |
10273 | $RM \$dlpath' | |
10274 | shlibpath_overrides_runpath=yes | |
10275 | ||
10276 | case $host_os in | |
10277 | cygwin*) | |
10278 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10279 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
10280 | |
10281 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
ce2cded5 | 10282 | ;; |
718a6fd8 | 10283 | mingw* | cegcc*) |
ce2cded5 L |
10284 | # MinGW DLLs use traditional 'lib' prefix |
10285 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
ce2cded5 L |
10286 | ;; |
10287 | pw32*) | |
10288 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10289 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10290 | ;; | |
10291 | esac | |
10292 | ;; | |
10293 | ||
10294 | *) | |
10295 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10296 | ;; | |
10297 | esac | |
10298 | dynamic_linker='Win32 ld.exe' | |
10299 | # FIXME: first we should search . and the directory the executable is in | |
10300 | shlibpath_var=PATH | |
10301 | ;; | |
10302 | ||
10303 | darwin* | rhapsody*) | |
10304 | dynamic_linker="$host_os dyld" | |
10305 | version_type=darwin | |
10306 | need_lib_prefix=no | |
10307 | need_version=no | |
10308 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10309 | soname_spec='${libname}${release}${major}$shared_ext' | |
10310 | shlibpath_overrides_runpath=yes | |
10311 | shlibpath_var=DYLD_LIBRARY_PATH | |
10312 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10313 | ||
10314 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10315 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10316 | ;; | |
10317 | ||
10318 | dgux*) | |
10319 | version_type=linux | |
10320 | need_lib_prefix=no | |
10321 | need_version=no | |
10322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10323 | soname_spec='${libname}${release}${shared_ext}$major' | |
10324 | shlibpath_var=LD_LIBRARY_PATH | |
10325 | ;; | |
10326 | ||
10327 | freebsd1*) | |
10328 | dynamic_linker=no | |
10329 | ;; | |
10330 | ||
10331 | freebsd* | dragonfly*) | |
10332 | # DragonFly does not have aout. When/if they implement a new | |
10333 | # versioning mechanism, adjust this. | |
10334 | if test -x /usr/bin/objformat; then | |
10335 | objformat=`/usr/bin/objformat` | |
10336 | else | |
10337 | case $host_os in | |
10338 | freebsd[123]*) objformat=aout ;; | |
10339 | *) objformat=elf ;; | |
10340 | esac | |
10341 | fi | |
10342 | version_type=freebsd-$objformat | |
10343 | case $version_type in | |
10344 | freebsd-elf*) | |
10345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10346 | need_version=no | |
10347 | need_lib_prefix=no | |
10348 | ;; | |
10349 | freebsd-*) | |
10350 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10351 | need_version=yes | |
10352 | ;; | |
10353 | esac | |
10354 | shlibpath_var=LD_LIBRARY_PATH | |
10355 | case $host_os in | |
10356 | freebsd2*) | |
10357 | shlibpath_overrides_runpath=yes | |
10358 | ;; | |
10359 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10360 | shlibpath_overrides_runpath=yes | |
10361 | hardcode_into_libs=yes | |
10362 | ;; | |
10363 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10364 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10365 | shlibpath_overrides_runpath=no | |
10366 | hardcode_into_libs=yes | |
10367 | ;; | |
10368 | *) # from 4.6 on, and DragonFly | |
10369 | shlibpath_overrides_runpath=yes | |
10370 | hardcode_into_libs=yes | |
10371 | ;; | |
10372 | esac | |
10373 | ;; | |
10374 | ||
10375 | gnu*) | |
10376 | version_type=linux | |
10377 | need_lib_prefix=no | |
10378 | need_version=no | |
10379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10380 | soname_spec='${libname}${release}${shared_ext}$major' | |
10381 | shlibpath_var=LD_LIBRARY_PATH | |
10382 | hardcode_into_libs=yes | |
10383 | ;; | |
10384 | ||
3725885a RW |
10385 | haiku*) |
10386 | version_type=linux | |
10387 | need_lib_prefix=no | |
10388 | need_version=no | |
10389 | dynamic_linker="$host_os runtime_loader" | |
10390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10391 | soname_spec='${libname}${release}${shared_ext}$major' | |
10392 | shlibpath_var=LIBRARY_PATH | |
10393 | shlibpath_overrides_runpath=yes | |
10394 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10395 | hardcode_into_libs=yes | |
10396 | ;; | |
10397 | ||
ce2cded5 L |
10398 | hpux9* | hpux10* | hpux11*) |
10399 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10400 | # link against other versions. | |
10401 | version_type=sunos | |
10402 | need_lib_prefix=no | |
10403 | need_version=no | |
10404 | case $host_cpu in | |
10405 | ia64*) | |
10406 | shrext_cmds='.so' | |
10407 | hardcode_into_libs=yes | |
10408 | dynamic_linker="$host_os dld.so" | |
10409 | shlibpath_var=LD_LIBRARY_PATH | |
10410 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10412 | soname_spec='${libname}${release}${shared_ext}$major' | |
10413 | if test "X$HPUX_IA64_MODE" = X32; then | |
10414 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10415 | else | |
10416 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10417 | fi | |
10418 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10419 | ;; | |
10420 | hppa*64*) | |
10421 | shrext_cmds='.sl' | |
10422 | hardcode_into_libs=yes | |
10423 | dynamic_linker="$host_os dld.sl" | |
10424 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10425 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10427 | soname_spec='${libname}${release}${shared_ext}$major' | |
10428 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10429 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10430 | ;; | |
10431 | *) | |
10432 | shrext_cmds='.sl' | |
10433 | dynamic_linker="$host_os dld.sl" | |
10434 | shlibpath_var=SHLIB_PATH | |
10435 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10437 | soname_spec='${libname}${release}${shared_ext}$major' | |
10438 | ;; | |
10439 | esac | |
3725885a | 10440 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
ce2cded5 | 10441 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10442 | # or fails outright, so override atomically: |
10443 | install_override_mode=555 | |
ce2cded5 L |
10444 | ;; |
10445 | ||
10446 | interix[3-9]*) | |
10447 | version_type=linux | |
10448 | need_lib_prefix=no | |
10449 | need_version=no | |
10450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10451 | soname_spec='${libname}${release}${shared_ext}$major' | |
10452 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10453 | shlibpath_var=LD_LIBRARY_PATH | |
10454 | shlibpath_overrides_runpath=no | |
10455 | hardcode_into_libs=yes | |
10456 | ;; | |
10457 | ||
10458 | irix5* | irix6* | nonstopux*) | |
10459 | case $host_os in | |
10460 | nonstopux*) version_type=nonstopux ;; | |
10461 | *) | |
10462 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10463 | version_type=linux | |
10464 | else | |
10465 | version_type=irix | |
10466 | fi ;; | |
10467 | esac | |
10468 | need_lib_prefix=no | |
10469 | need_version=no | |
10470 | soname_spec='${libname}${release}${shared_ext}$major' | |
10471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10472 | case $host_os in | |
10473 | irix5* | nonstopux*) | |
10474 | libsuff= shlibsuff= | |
10475 | ;; | |
10476 | *) | |
10477 | case $LD in # libtool.m4 will add one of these switches to LD | |
10478 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10479 | libsuff= shlibsuff= libmagic=32-bit;; | |
10480 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10481 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10482 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10483 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10484 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10485 | esac | |
10486 | ;; | |
10487 | esac | |
10488 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10489 | shlibpath_overrides_runpath=no | |
10490 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10491 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10492 | hardcode_into_libs=yes | |
10493 | ;; | |
d7040cdb | 10494 | |
ce2cded5 L |
10495 | # No shared lib support for Linux oldld, aout, or coff. |
10496 | linux*oldld* | linux*aout* | linux*coff*) | |
10497 | dynamic_linker=no | |
10498 | ;; | |
10499 | ||
10500 | # This must be Linux ELF. | |
58e24671 | 10501 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
10502 | version_type=linux |
10503 | need_lib_prefix=no | |
10504 | need_version=no | |
10505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10506 | soname_spec='${libname}${release}${shared_ext}$major' | |
10507 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10508 | shlibpath_var=LD_LIBRARY_PATH | |
10509 | shlibpath_overrides_runpath=no | |
39144654 | 10510 | |
ce2cded5 | 10511 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
10512 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10513 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10514 | else |
10515 | lt_cv_shlibpath_overrides_runpath=no | |
10516 | save_LDFLAGS=$LDFLAGS | |
10517 | save_libdir=$libdir | |
10518 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10519 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10521 | /* end confdefs.h. */ |
10522 | ||
d7040cdb SE |
10523 | int |
10524 | main () | |
10525 | { | |
ce2cded5 | 10526 | |
d7040cdb SE |
10527 | ; |
10528 | return 0; | |
10529 | } | |
10530 | _ACEOF | |
81ecdfbb RW |
10531 | if ac_fn_c_try_link "$LINENO"; then : |
10532 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10533 | lt_cv_shlibpath_overrides_runpath=yes |
ce2cded5 | 10534 | fi |
ce2cded5 | 10535 | fi |
81ecdfbb RW |
10536 | rm -f core conftest.err conftest.$ac_objext \ |
10537 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10538 | LDFLAGS=$save_LDFLAGS |
10539 | libdir=$save_libdir | |
10540 | ||
10541 | fi | |
10542 | ||
10543 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
ce2cded5 L |
10544 | |
10545 | # This implies no fast_install, which is unacceptable. | |
10546 | # Some rework will be needed to allow for fast_install | |
10547 | # before this can be enabled. | |
10548 | hardcode_into_libs=yes | |
10549 | ||
10550 | # Append ld.so.conf contents to the search path | |
10551 | if test -f /etc/ld.so.conf; then | |
3725885a | 10552 | 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;s/"//g;/^$/d' | tr '\n' ' '` |
ce2cded5 L |
10553 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10554 | fi | |
10555 | ||
10556 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10557 | # powerpc, because MkLinux only supported shared libraries with the | |
10558 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10559 | # most powerpc-linux boxes support dynamic linking these days and | |
10560 | # people can always --disable-shared, the test was removed, and we | |
10561 | # assume the GNU/Linux dynamic linker is in use. | |
10562 | dynamic_linker='GNU/Linux ld.so' | |
10563 | ;; | |
10564 | ||
10565 | netbsd*) | |
10566 | version_type=sunos | |
10567 | need_lib_prefix=no | |
10568 | need_version=no | |
10569 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10571 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10572 | dynamic_linker='NetBSD (a.out) ld.so' | |
10573 | else | |
10574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10575 | soname_spec='${libname}${release}${shared_ext}$major' | |
10576 | dynamic_linker='NetBSD ld.elf_so' | |
10577 | fi | |
10578 | shlibpath_var=LD_LIBRARY_PATH | |
10579 | shlibpath_overrides_runpath=yes | |
10580 | hardcode_into_libs=yes | |
10581 | ;; | |
10582 | ||
10583 | newsos6) | |
10584 | version_type=linux | |
10585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10586 | shlibpath_var=LD_LIBRARY_PATH | |
10587 | shlibpath_overrides_runpath=yes | |
10588 | ;; | |
10589 | ||
10590 | *nto* | *qnx*) | |
10591 | version_type=qnx | |
10592 | need_lib_prefix=no | |
10593 | need_version=no | |
10594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10595 | soname_spec='${libname}${release}${shared_ext}$major' | |
10596 | shlibpath_var=LD_LIBRARY_PATH | |
10597 | shlibpath_overrides_runpath=no | |
10598 | hardcode_into_libs=yes | |
10599 | dynamic_linker='ldqnx.so' | |
10600 | ;; | |
10601 | ||
10602 | openbsd*) | |
10603 | version_type=sunos | |
10604 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10605 | need_lib_prefix=no | |
10606 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10607 | case $host_os in | |
10608 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10609 | *) need_version=no ;; | |
10610 | esac | |
10611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10612 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10613 | shlibpath_var=LD_LIBRARY_PATH | |
10614 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10615 | case $host_os in | |
10616 | openbsd2.[89] | openbsd2.[89].*) | |
10617 | shlibpath_overrides_runpath=no | |
10618 | ;; | |
10619 | *) | |
10620 | shlibpath_overrides_runpath=yes | |
10621 | ;; | |
10622 | esac | |
10623 | else | |
10624 | shlibpath_overrides_runpath=yes | |
10625 | fi | |
10626 | ;; | |
10627 | ||
10628 | os2*) | |
10629 | libname_spec='$name' | |
10630 | shrext_cmds=".dll" | |
10631 | need_lib_prefix=no | |
10632 | library_names_spec='$libname${shared_ext} $libname.a' | |
10633 | dynamic_linker='OS/2 ld.exe' | |
10634 | shlibpath_var=LIBPATH | |
10635 | ;; | |
10636 | ||
10637 | osf3* | osf4* | osf5*) | |
10638 | version_type=osf | |
10639 | need_lib_prefix=no | |
10640 | need_version=no | |
10641 | soname_spec='${libname}${release}${shared_ext}$major' | |
10642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10643 | shlibpath_var=LD_LIBRARY_PATH | |
10644 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10645 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10646 | ;; | |
10647 | ||
10648 | rdos*) | |
10649 | dynamic_linker=no | |
10650 | ;; | |
10651 | ||
10652 | solaris*) | |
10653 | version_type=linux | |
10654 | need_lib_prefix=no | |
10655 | need_version=no | |
10656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10657 | soname_spec='${libname}${release}${shared_ext}$major' | |
10658 | shlibpath_var=LD_LIBRARY_PATH | |
10659 | shlibpath_overrides_runpath=yes | |
10660 | hardcode_into_libs=yes | |
10661 | # ldd complains unless libraries are executable | |
10662 | postinstall_cmds='chmod +x $lib' | |
10663 | ;; | |
10664 | ||
10665 | sunos4*) | |
10666 | version_type=sunos | |
10667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10668 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10669 | shlibpath_var=LD_LIBRARY_PATH | |
10670 | shlibpath_overrides_runpath=yes | |
10671 | if test "$with_gnu_ld" = yes; then | |
10672 | need_lib_prefix=no | |
10673 | fi | |
10674 | need_version=yes | |
10675 | ;; | |
10676 | ||
10677 | sysv4 | sysv4.3*) | |
10678 | version_type=linux | |
10679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10680 | soname_spec='${libname}${release}${shared_ext}$major' | |
10681 | shlibpath_var=LD_LIBRARY_PATH | |
10682 | case $host_vendor in | |
10683 | sni) | |
10684 | shlibpath_overrides_runpath=no | |
10685 | need_lib_prefix=no | |
10686 | runpath_var=LD_RUN_PATH | |
10687 | ;; | |
10688 | siemens) | |
10689 | need_lib_prefix=no | |
10690 | ;; | |
10691 | motorola) | |
10692 | need_lib_prefix=no | |
10693 | need_version=no | |
10694 | shlibpath_overrides_runpath=no | |
10695 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10696 | ;; | |
10697 | esac | |
10698 | ;; | |
10699 | ||
10700 | sysv4*MP*) | |
10701 | if test -d /usr/nec ;then | |
10702 | version_type=linux | |
10703 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10704 | soname_spec='$libname${shared_ext}.$major' | |
10705 | shlibpath_var=LD_LIBRARY_PATH | |
10706 | fi | |
10707 | ;; | |
10708 | ||
10709 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10710 | version_type=freebsd-elf | |
10711 | need_lib_prefix=no | |
10712 | need_version=no | |
10713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10714 | soname_spec='${libname}${release}${shared_ext}$major' | |
10715 | shlibpath_var=LD_LIBRARY_PATH | |
10716 | shlibpath_overrides_runpath=yes | |
10717 | hardcode_into_libs=yes | |
10718 | if test "$with_gnu_ld" = yes; then | |
10719 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10720 | else | |
10721 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10722 | case $host_os in | |
10723 | sco3.2v5*) | |
10724 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10725 | ;; | |
10726 | esac | |
10727 | fi | |
10728 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10729 | ;; | |
10730 | ||
10731 | tpf*) | |
10732 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10733 | version_type=linux | |
10734 | need_lib_prefix=no | |
10735 | need_version=no | |
718a6fd8 | 10736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
10737 | shlibpath_var=LD_LIBRARY_PATH |
10738 | shlibpath_overrides_runpath=no | |
10739 | hardcode_into_libs=yes | |
10740 | ;; | |
d7040cdb | 10741 | |
ce2cded5 L |
10742 | uts4*) |
10743 | version_type=linux | |
10744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10745 | soname_spec='${libname}${release}${shared_ext}$major' | |
10746 | shlibpath_var=LD_LIBRARY_PATH | |
10747 | ;; | |
d7040cdb | 10748 | |
ce2cded5 L |
10749 | *) |
10750 | dynamic_linker=no | |
10751 | ;; | |
10752 | esac | |
81ecdfbb RW |
10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10754 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
10755 | test "$dynamic_linker" = no && can_build_shared=no |
10756 | ||
10757 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10758 | if test "$GCC" = yes; then | |
10759 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10760 | fi |
d7040cdb | 10761 | |
718a6fd8 SE |
10762 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10763 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10764 | fi | |
10765 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10766 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10767 | fi | |
10768 | ||
d7040cdb | 10769 | |
d7040cdb SE |
10770 | |
10771 | ||
d7040cdb SE |
10772 | |
10773 | ||
d7040cdb SE |
10774 | |
10775 | ||
d7040cdb SE |
10776 | |
10777 | ||
d7040cdb SE |
10778 | |
10779 | ||
d7040cdb | 10780 | |
d7040cdb | 10781 | |
d7040cdb | 10782 | |
d7040cdb | 10783 | |
d7040cdb | 10784 | |
d7040cdb | 10785 | |
d7040cdb | 10786 | |
d7040cdb | 10787 | |
d7040cdb | 10788 | |
d7040cdb | 10789 | |
d7040cdb | 10790 | |
d7040cdb | 10791 | |
d7040cdb | 10792 | |
d7040cdb | 10793 | |
d7040cdb SE |
10794 | |
10795 | ||
d7040cdb | 10796 | |
d7040cdb | 10797 | |
d7040cdb | 10798 | |
d7040cdb | 10799 | |
d7040cdb | 10800 | |
d7040cdb | 10801 | |
d7040cdb | 10802 | |
d7040cdb | 10803 | |
d7040cdb | 10804 | |
d7040cdb SE |
10805 | |
10806 | ||
d7040cdb | 10807 | |
d7040cdb | 10808 | |
d7040cdb | 10809 | |
d7040cdb SE |
10810 | |
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | ||
10825 | ||
10826 | ||
d7040cdb SE |
10827 | |
10828 | ||
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
d7040cdb | 10839 | |
d7040cdb | 10840 | |
d7040cdb | 10841 | |
d7040cdb | 10842 | |
d7040cdb SE |
10843 | |
10844 | ||
10845 | ||
10846 | ||
ce2cded5 L |
10847 | |
10848 | ||
3725885a RW |
10849 | |
10850 | ||
10851 | ||
10852 | ||
10853 | ||
ce2cded5 L |
10854 | |
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
81ecdfbb RW |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10861 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
10862 | hardcode_action= |
10863 | if test -n "$hardcode_libdir_flag_spec" || | |
10864 | test -n "$runpath_var" || | |
10865 | test "X$hardcode_automatic" = "Xyes" ; then | |
10866 | ||
10867 | # We can hardcode non-existent directories. | |
10868 | if test "$hardcode_direct" != no && | |
10869 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10870 | # have to relink, otherwise we might link with an installed library | |
10871 | # when we should be linking with a yet-to-be-installed one | |
10872 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10873 | test "$hardcode_minus_L" != no; then | |
10874 | # Linking always hardcodes the temporary library directory. | |
10875 | hardcode_action=relink | |
10876 | else | |
10877 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10878 | hardcode_action=immediate | |
10879 | fi | |
10880 | else | |
10881 | # We cannot hardcode anything, or else we can only hardcode existing | |
10882 | # directories. | |
10883 | hardcode_action=unsupported | |
10884 | fi | |
81ecdfbb RW |
10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10886 | $as_echo "$hardcode_action" >&6; } | |
ce2cded5 L |
10887 | |
10888 | if test "$hardcode_action" = relink || | |
10889 | test "$inherit_rpath" = yes; then | |
10890 | # Fast installation is not supported | |
10891 | enable_fast_install=no | |
10892 | elif test "$shlibpath_overrides_runpath" = yes || | |
10893 | test "$enable_shared" = no; then | |
10894 | # Fast installation is not necessary | |
10895 | enable_fast_install=needless | |
d7040cdb | 10896 | fi |
d7040cdb | 10897 | |
d7040cdb SE |
10898 | |
10899 | ||
10900 | ||
10901 | ||
10902 | ||
ce2cded5 L |
10903 | if test "x$enable_dlopen" != xyes; then |
10904 | enable_dlopen=unknown | |
10905 | enable_dlopen_self=unknown | |
10906 | enable_dlopen_self_static=unknown | |
10907 | else | |
10908 | lt_cv_dlopen=no | |
10909 | lt_cv_dlopen_libs= | |
10910 | ||
10911 | case $host_os in | |
10912 | beos*) | |
10913 | lt_cv_dlopen="load_add_on" | |
10914 | lt_cv_dlopen_libs= | |
10915 | lt_cv_dlopen_self=yes | |
10916 | ;; | |
d7040cdb | 10917 | |
718a6fd8 | 10918 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10919 | lt_cv_dlopen="LoadLibrary" |
10920 | lt_cv_dlopen_libs= | |
10921 | ;; | |
d7040cdb | 10922 | |
ce2cded5 L |
10923 | cygwin*) |
10924 | lt_cv_dlopen="dlopen" | |
10925 | lt_cv_dlopen_libs= | |
10926 | ;; | |
d7040cdb | 10927 | |
ce2cded5 L |
10928 | darwin*) |
10929 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10931 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10932 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10933 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10934 | else |
10935 | ac_check_lib_save_LIBS=$LIBS | |
10936 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10938 | /* end confdefs.h. */ |
d7040cdb | 10939 | |
81ecdfbb RW |
10940 | /* Override any GCC internal prototype to avoid an error. |
10941 | Use char because int might match the return type of a GCC | |
10942 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10943 | #ifdef __cplusplus |
10944 | extern "C" | |
10945 | #endif | |
ce2cded5 L |
10946 | char dlopen (); |
10947 | int | |
10948 | main () | |
10949 | { | |
81ecdfbb | 10950 | return dlopen (); |
ce2cded5 L |
10951 | ; |
10952 | return 0; | |
10953 | } | |
10954 | _ACEOF | |
81ecdfbb | 10955 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
10956 | ac_cv_lib_dl_dlopen=yes |
10957 | else | |
81ecdfbb | 10958 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 10959 | fi |
81ecdfbb RW |
10960 | rm -f core conftest.err conftest.$ac_objext \ |
10961 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
10962 | LIBS=$ac_check_lib_save_LIBS |
10963 | fi | |
81ecdfbb RW |
10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10965 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10966 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 L |
10967 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10968 | else | |
d7040cdb | 10969 | |
ce2cded5 L |
10970 | lt_cv_dlopen="dyld" |
10971 | lt_cv_dlopen_libs= | |
10972 | lt_cv_dlopen_self=yes | |
d7040cdb | 10973 | |
ce2cded5 | 10974 | fi |
d7040cdb | 10975 | |
ce2cded5 | 10976 | ;; |
d7040cdb | 10977 | |
ce2cded5 | 10978 | *) |
81ecdfbb RW |
10979 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
10980 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
10981 | lt_cv_dlopen="shl_load" |
10982 | else | |
81ecdfbb RW |
10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10984 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10985 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10986 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
10987 | else |
10988 | ac_check_lib_save_LIBS=$LIBS | |
10989 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 10991 | /* end confdefs.h. */ |
d7040cdb | 10992 | |
81ecdfbb RW |
10993 | /* Override any GCC internal prototype to avoid an error. |
10994 | Use char because int might match the return type of a GCC | |
10995 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
10996 | #ifdef __cplusplus |
10997 | extern "C" | |
10998 | #endif | |
ce2cded5 L |
10999 | char shl_load (); |
11000 | int | |
11001 | main () | |
11002 | { | |
81ecdfbb | 11003 | return shl_load (); |
ce2cded5 L |
11004 | ; |
11005 | return 0; | |
11006 | } | |
d7040cdb | 11007 | _ACEOF |
81ecdfbb | 11008 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11009 | ac_cv_lib_dld_shl_load=yes |
11010 | else | |
81ecdfbb | 11011 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 11012 | fi |
81ecdfbb RW |
11013 | rm -f core conftest.err conftest.$ac_objext \ |
11014 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11015 | LIBS=$ac_check_lib_save_LIBS |
11016 | fi | |
81ecdfbb RW |
11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11018 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11019 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
718a6fd8 | 11020 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 11021 | else |
81ecdfbb RW |
11022 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11023 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
11024 | lt_cv_dlopen="dlopen" |
11025 | else | |
81ecdfbb RW |
11026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11027 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11028 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11029 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11030 | else |
ce2cded5 L |
11031 | ac_check_lib_save_LIBS=$LIBS |
11032 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11034 | /* end confdefs.h. */ |
d7040cdb | 11035 | |
81ecdfbb RW |
11036 | /* Override any GCC internal prototype to avoid an error. |
11037 | Use char because int might match the return type of a GCC | |
11038 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11039 | #ifdef __cplusplus |
11040 | extern "C" | |
11041 | #endif | |
ce2cded5 | 11042 | char dlopen (); |
d7040cdb SE |
11043 | int |
11044 | main () | |
11045 | { | |
81ecdfbb | 11046 | return dlopen (); |
d7040cdb SE |
11047 | ; |
11048 | return 0; | |
11049 | } | |
11050 | _ACEOF | |
81ecdfbb | 11051 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11052 | ac_cv_lib_dl_dlopen=yes |
11053 | else | |
81ecdfbb | 11054 | ac_cv_lib_dl_dlopen=no |
ce2cded5 | 11055 | fi |
81ecdfbb RW |
11056 | rm -f core conftest.err conftest.$ac_objext \ |
11057 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11058 | LIBS=$ac_check_lib_save_LIBS |
11059 | fi | |
81ecdfbb RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11061 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11062 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 L |
11063 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11064 | else | |
81ecdfbb RW |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11066 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11067 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
11068 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11069 | else |
11070 | ac_check_lib_save_LIBS=$LIBS | |
11071 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 11072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11073 | /* end confdefs.h. */ |
d7040cdb | 11074 | |
81ecdfbb RW |
11075 | /* Override any GCC internal prototype to avoid an error. |
11076 | Use char because int might match the return type of a GCC | |
11077 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11078 | #ifdef __cplusplus |
11079 | extern "C" | |
11080 | #endif | |
ce2cded5 | 11081 | char dlopen (); |
d7040cdb SE |
11082 | int |
11083 | main () | |
11084 | { | |
81ecdfbb | 11085 | return dlopen (); |
d7040cdb SE |
11086 | ; |
11087 | return 0; | |
11088 | } | |
11089 | _ACEOF | |
81ecdfbb | 11090 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11091 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 11092 | else |
81ecdfbb | 11093 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 11094 | fi |
81ecdfbb RW |
11095 | rm -f core conftest.err conftest.$ac_objext \ |
11096 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11097 | LIBS=$ac_check_lib_save_LIBS |
11098 | fi | |
81ecdfbb RW |
11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11100 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11101 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
11102 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11103 | else | |
81ecdfbb RW |
11104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11105 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11106 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11107 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11108 | else |
ce2cded5 L |
11109 | ac_check_lib_save_LIBS=$LIBS |
11110 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11112 | /* end confdefs.h. */ |
ce2cded5 | 11113 | |
81ecdfbb RW |
11114 | /* Override any GCC internal prototype to avoid an error. |
11115 | Use char because int might match the return type of a GCC | |
11116 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11117 | #ifdef __cplusplus |
11118 | extern "C" | |
11119 | #endif | |
ce2cded5 | 11120 | char dld_link (); |
d7040cdb SE |
11121 | int |
11122 | main () | |
11123 | { | |
81ecdfbb | 11124 | return dld_link (); |
d7040cdb SE |
11125 | ; |
11126 | return 0; | |
11127 | } | |
11128 | _ACEOF | |
81ecdfbb | 11129 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11130 | ac_cv_lib_dld_dld_link=yes |
11131 | else | |
81ecdfbb | 11132 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11133 | fi |
81ecdfbb RW |
11134 | rm -f core conftest.err conftest.$ac_objext \ |
11135 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11136 | LIBS=$ac_check_lib_save_LIBS |
11137 | fi | |
81ecdfbb RW |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11139 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11140 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
718a6fd8 | 11141 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11142 | fi |
11143 | ||
11144 | ||
11145 | fi | |
11146 | ||
11147 | ||
11148 | fi | |
11149 | ||
11150 | ||
11151 | fi | |
11152 | ||
11153 | ||
11154 | fi | |
11155 | ||
11156 | ||
11157 | fi | |
11158 | ||
11159 | ;; | |
11160 | esac | |
11161 | ||
11162 | if test "x$lt_cv_dlopen" != xno; then | |
11163 | enable_dlopen=yes | |
d7040cdb | 11164 | else |
ce2cded5 | 11165 | enable_dlopen=no |
d7040cdb | 11166 | fi |
ce2cded5 L |
11167 | |
11168 | case $lt_cv_dlopen in | |
11169 | dlopen) | |
11170 | save_CPPFLAGS="$CPPFLAGS" | |
11171 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11172 | ||
11173 | save_LDFLAGS="$LDFLAGS" | |
11174 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11175 | ||
11176 | save_LIBS="$LIBS" | |
11177 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11178 | ||
81ecdfbb RW |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11180 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11181 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11182 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11183 | else |
ce2cded5 L |
11184 | if test "$cross_compiling" = yes; then : |
11185 | lt_cv_dlopen_self=cross | |
11186 | else | |
11187 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11188 | lt_status=$lt_dlunknown | |
11189 | cat > conftest.$ac_ext <<_LT_EOF | |
3725885a | 11190 | #line 11190 "configure" |
ce2cded5 L |
11191 | #include "confdefs.h" |
11192 | ||
11193 | #if HAVE_DLFCN_H | |
11194 | #include <dlfcn.h> | |
11195 | #endif | |
11196 | ||
11197 | #include <stdio.h> | |
11198 | ||
11199 | #ifdef RTLD_GLOBAL | |
11200 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11201 | #else | |
11202 | # ifdef DL_GLOBAL | |
11203 | # define LT_DLGLOBAL DL_GLOBAL | |
11204 | # else | |
11205 | # define LT_DLGLOBAL 0 | |
11206 | # endif | |
11207 | #endif | |
11208 | ||
11209 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11210 | find out it does not work in some platform. */ | |
11211 | #ifndef LT_DLLAZY_OR_NOW | |
11212 | # ifdef RTLD_LAZY | |
11213 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11214 | # else | |
11215 | # ifdef DL_LAZY | |
11216 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11217 | # else | |
11218 | # ifdef RTLD_NOW | |
11219 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11220 | # else | |
11221 | # ifdef DL_NOW | |
11222 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11223 | # else | |
11224 | # define LT_DLLAZY_OR_NOW 0 | |
11225 | # endif | |
11226 | # endif | |
11227 | # endif | |
11228 | # endif | |
11229 | #endif | |
11230 | ||
3725885a RW |
11231 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11232 | correspondingly for the symbols needed. */ | |
11233 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11234 | void fnord () __attribute__((visibility("default"))); | |
11235 | #endif | |
11236 | ||
11237 | void fnord () { int i=42; } | |
ce2cded5 L |
11238 | int main () |
11239 | { | |
11240 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11241 | int status = $lt_dlunknown; | |
11242 | ||
11243 | if (self) | |
11244 | { | |
11245 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11246 | else |
11247 | { | |
11248 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11249 | else puts (dlerror ()); | |
11250 | } | |
ce2cded5 L |
11251 | /* dlclose (self); */ |
11252 | } | |
11253 | else | |
11254 | puts (dlerror ()); | |
11255 | ||
718a6fd8 | 11256 | return status; |
ce2cded5 L |
11257 | } |
11258 | _LT_EOF | |
81ecdfbb | 11259 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
11260 | (eval $ac_link) 2>&5 |
11261 | ac_status=$? | |
81ecdfbb RW |
11262 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11263 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11264 | (./conftest; exit; ) >&5 2>/dev/null |
11265 | lt_status=$? | |
11266 | case x$lt_status in | |
11267 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11268 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11269 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11270 | esac | |
11271 | else : | |
11272 | # compilation failed | |
11273 | lt_cv_dlopen_self=no | |
11274 | fi | |
11275 | fi | |
11276 | rm -fr conftest* | |
11277 | ||
d7040cdb SE |
11278 | |
11279 | fi | |
81ecdfbb RW |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11281 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11282 | |
11283 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11284 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11286 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11287 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11288 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11289 | else |
ce2cded5 L |
11290 | if test "$cross_compiling" = yes; then : |
11291 | lt_cv_dlopen_self_static=cross | |
11292 | else | |
11293 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11294 | lt_status=$lt_dlunknown | |
11295 | cat > conftest.$ac_ext <<_LT_EOF | |
3725885a | 11296 | #line 11296 "configure" |
ce2cded5 L |
11297 | #include "confdefs.h" |
11298 | ||
11299 | #if HAVE_DLFCN_H | |
11300 | #include <dlfcn.h> | |
11301 | #endif | |
11302 | ||
11303 | #include <stdio.h> | |
11304 | ||
11305 | #ifdef RTLD_GLOBAL | |
11306 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11307 | #else | |
11308 | # ifdef DL_GLOBAL | |
11309 | # define LT_DLGLOBAL DL_GLOBAL | |
11310 | # else | |
11311 | # define LT_DLGLOBAL 0 | |
11312 | # endif | |
11313 | #endif | |
11314 | ||
11315 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11316 | find out it does not work in some platform. */ | |
11317 | #ifndef LT_DLLAZY_OR_NOW | |
11318 | # ifdef RTLD_LAZY | |
11319 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11320 | # else | |
11321 | # ifdef DL_LAZY | |
11322 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11323 | # else | |
11324 | # ifdef RTLD_NOW | |
11325 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11326 | # else | |
11327 | # ifdef DL_NOW | |
11328 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11329 | # else | |
11330 | # define LT_DLLAZY_OR_NOW 0 | |
11331 | # endif | |
11332 | # endif | |
11333 | # endif | |
11334 | # endif | |
11335 | #endif | |
11336 | ||
3725885a RW |
11337 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11338 | correspondingly for the symbols needed. */ | |
11339 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11340 | void fnord () __attribute__((visibility("default"))); | |
11341 | #endif | |
11342 | ||
11343 | void fnord () { int i=42; } | |
ce2cded5 | 11344 | int main () |
d7040cdb | 11345 | { |
ce2cded5 L |
11346 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11347 | int status = $lt_dlunknown; | |
11348 | ||
11349 | if (self) | |
11350 | { | |
11351 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11352 | else |
11353 | { | |
11354 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11355 | else puts (dlerror ()); | |
11356 | } | |
ce2cded5 L |
11357 | /* dlclose (self); */ |
11358 | } | |
11359 | else | |
11360 | puts (dlerror ()); | |
11361 | ||
718a6fd8 | 11362 | return status; |
d7040cdb | 11363 | } |
ce2cded5 | 11364 | _LT_EOF |
81ecdfbb | 11365 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
11366 | (eval $ac_link) 2>&5 |
11367 | ac_status=$? | |
81ecdfbb RW |
11368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11369 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11370 | (./conftest; exit; ) >&5 2>/dev/null |
11371 | lt_status=$? | |
11372 | case x$lt_status in | |
11373 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11374 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11375 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11376 | esac | |
11377 | else : | |
11378 | # compilation failed | |
11379 | lt_cv_dlopen_self_static=no | |
11380 | fi | |
d7040cdb | 11381 | fi |
ce2cded5 L |
11382 | rm -fr conftest* |
11383 | ||
11384 | ||
d7040cdb | 11385 | fi |
81ecdfbb RW |
11386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11387 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
ce2cded5 L |
11388 | fi |
11389 | ||
11390 | CPPFLAGS="$save_CPPFLAGS" | |
11391 | LDFLAGS="$save_LDFLAGS" | |
11392 | LIBS="$save_LIBS" | |
11393 | ;; | |
11394 | esac | |
11395 | ||
11396 | case $lt_cv_dlopen_self in | |
11397 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11398 | *) enable_dlopen_self=unknown ;; | |
11399 | esac | |
11400 | ||
11401 | case $lt_cv_dlopen_self_static in | |
11402 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11403 | *) enable_dlopen_self_static=unknown ;; | |
11404 | esac | |
d7040cdb | 11405 | fi |
d7040cdb | 11406 | |
d7040cdb SE |
11407 | |
11408 | ||
d7040cdb | 11409 | |
d7040cdb | 11410 | |
ce2cded5 L |
11411 | |
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | striplib= | |
11424 | old_striplib= | |
81ecdfbb RW |
11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11426 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
ce2cded5 L |
11427 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11428 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11429 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11431 | $as_echo "yes" >&6; } | |
ce2cded5 L |
11432 | else |
11433 | # FIXME - insert some real tests, host_os isn't really good enough | |
11434 | case $host_os in | |
11435 | darwin*) | |
11436 | if test -n "$STRIP" ; then | |
11437 | striplib="$STRIP -x" | |
11438 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11440 | $as_echo "yes" >&6; } | |
ce2cded5 | 11441 | else |
81ecdfbb RW |
11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11443 | $as_echo "no" >&6; } | |
d7040cdb | 11444 | fi |
ce2cded5 L |
11445 | ;; |
11446 | *) | |
81ecdfbb RW |
11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11448 | $as_echo "no" >&6; } | |
ce2cded5 | 11449 | ;; |
d7040cdb | 11450 | esac |
d7040cdb SE |
11451 | fi |
11452 | ||
d7040cdb | 11453 | |
d7040cdb | 11454 | |
d7040cdb | 11455 | |
d7040cdb | 11456 | |
d7040cdb | 11457 | |
d7040cdb | 11458 | |
d7040cdb | 11459 | |
d7040cdb | 11460 | |
d7040cdb | 11461 | |
d7040cdb | 11462 | |
d7040cdb | 11463 | |
ce2cded5 | 11464 | # Report which library types will actually be built |
81ecdfbb RW |
11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11466 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11468 | $as_echo "$can_build_shared" >&6; } | |
d7040cdb | 11469 | |
81ecdfbb RW |
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11471 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
ce2cded5 | 11472 | test "$can_build_shared" = "no" && enable_shared=no |
d7040cdb | 11473 | |
ce2cded5 L |
11474 | # On AIX, shared libraries and static libraries use the same namespace, and |
11475 | # are all built from PIC. | |
11476 | case $host_os in | |
11477 | aix3*) | |
11478 | test "$enable_shared" = yes && enable_static=no | |
11479 | if test -n "$RANLIB"; then | |
11480 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11481 | postinstall_cmds='$RANLIB $lib' | |
11482 | fi | |
11483 | ;; | |
d7040cdb | 11484 | |
50e7d84b | 11485 | aix[4-9]*) |
ce2cded5 L |
11486 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11487 | test "$enable_shared" = yes && enable_static=no | |
11488 | fi | |
11489 | ;; | |
11490 | esac | |
81ecdfbb RW |
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11492 | $as_echo "$enable_shared" >&6; } | |
ce2cded5 | 11493 | |
81ecdfbb RW |
11494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11495 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
ce2cded5 L |
11496 | # Make sure either enable_shared or enable_static is yes. |
11497 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11499 | $as_echo "$enable_static" >&6; } | |
d7040cdb | 11500 | |
d7040cdb | 11501 | |
d7040cdb | 11502 | |
d7040cdb | 11503 | |
ce2cded5 L |
11504 | fi |
11505 | ac_ext=c | |
11506 | ac_cpp='$CPP $CPPFLAGS' | |
11507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 11510 | |
ce2cded5 | 11511 | CC="$lt_save_CC" |
d7040cdb | 11512 | |
d7040cdb | 11513 | |
d7040cdb | 11514 | |
d7040cdb | 11515 | |
d7040cdb | 11516 | |
d7040cdb | 11517 | |
d7040cdb | 11518 | |
d7040cdb | 11519 | |
d7040cdb | 11520 | |
d7040cdb SE |
11521 | |
11522 | ||
d7040cdb SE |
11523 | |
11524 | ||
81ecdfbb | 11525 | ac_config_commands="$ac_config_commands libtool" |
d7040cdb SE |
11526 | |
11527 | ||
d7040cdb | 11528 | |
d7040cdb | 11529 | |
ce2cded5 | 11530 | # Only expand once: |
d7040cdb | 11531 | |
d7040cdb | 11532 | |
d7040cdb | 11533 | |
81ecdfbb RW |
11534 | # Check whether --enable-targets was given. |
11535 | if test "${enable_targets+set}" = set; then : | |
11536 | enableval=$enable_targets; case "${enableval}" in | |
11537 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
ce2cded5 L |
11538 | ;; |
11539 | no) enable_targets= ;; | |
11540 | *) enable_targets=$enableval ;; | |
11541 | esac | |
81ecdfbb RW |
11542 | fi |
11543 | ||
ce2cded5 L |
11544 | ac_checking=yes |
11545 | if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then | |
11546 | ac_checking= | |
11547 | fi | |
81ecdfbb RW |
11548 | # Check whether --enable-checking was given. |
11549 | if test "${enable_checking+set}" = set; then : | |
11550 | enableval=$enable_checking; case "${enableval}" in | |
ce2cded5 L |
11551 | no|none) ac_checking= ;; |
11552 | *) ac_checking=yes ;; | |
11553 | esac | |
81ecdfbb RW |
11554 | fi |
11555 | if test x$ac_checking != x ; then | |
d7040cdb | 11556 | |
81ecdfbb | 11557 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
d7040cdb | 11558 | |
ce2cded5 | 11559 | fi |
d7040cdb | 11560 | |
ce2cded5 | 11561 | using_cgen=no |
d7040cdb | 11562 | |
d7040cdb | 11563 | |
91d6fa6a | 11564 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow" |
d7040cdb | 11565 | |
81ecdfbb RW |
11566 | # Check whether --enable-werror was given. |
11567 | if test "${enable_werror+set}" = set; then : | |
11568 | enableval=$enable_werror; case "${enableval}" in | |
ce2cded5 L |
11569 | yes | y) ERROR_ON_WARNING="yes" ;; |
11570 | no | n) ERROR_ON_WARNING="no" ;; | |
81ecdfbb | 11571 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
ce2cded5 | 11572 | esac |
81ecdfbb RW |
11573 | fi |
11574 | ||
d7040cdb | 11575 | |
bb8541b9 L |
11576 | # Enable -Wno-format by default when using gcc on mingw |
11577 | case "${host}" in | |
11578 | *-*-mingw32*) | |
11579 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11580 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11581 | fi | |
11582 | ;; | |
11583 | *) ;; | |
11584 | esac | |
11585 | ||
ce2cded5 L |
11586 | # Enable -Werror by default when using gcc |
11587 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11588 | ERROR_ON_WARNING=yes | |
11589 | fi | |
11590 | ||
11591 | NO_WERROR= | |
11592 | if test "${ERROR_ON_WARNING}" = yes ; then | |
11593 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
11594 | NO_WERROR="-Wno-error" | |
11595 | fi | |
11596 | ||
11597 | if test "${GCC}" = yes ; then | |
11598 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11599 | fi | |
11600 | ||
81ecdfbb RW |
11601 | # Check whether --enable-build-warnings was given. |
11602 | if test "${enable_build_warnings+set}" = set; then : | |
11603 | enableval=$enable_build_warnings; case "${enableval}" in | |
ce2cded5 L |
11604 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
11605 | no) if test "${GCC}" = yes ; then | |
11606 | WARN_CFLAGS="-w" | |
11607 | fi;; | |
11608 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11609 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
11610 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11611 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
11612 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11613 | esac | |
81ecdfbb RW |
11614 | fi |
11615 | ||
d7040cdb | 11616 | |
ce2cded5 L |
11617 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11618 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
11619 | fi | |
d7040cdb | 11620 | |
d7040cdb | 11621 | |
d7040cdb | 11622 | |
d7040cdb | 11623 | |
d7040cdb | 11624 | |
ce2cded5 | 11625 | # Generate a header file |
81ecdfbb | 11626 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb | 11627 | |
d7040cdb | 11628 | |
ce2cded5 L |
11629 | # If we are on a DOS filesystem, we must use gdb.ini rather than |
11630 | # .gdbinit. | |
11631 | case "${host}" in | |
11632 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) | |
11633 | GDBINIT="gdb.ini" | |
81ecdfbb | 11634 | ac_config_files="$ac_config_files gdb.ini:gdbinit.in" |
d7040cdb | 11635 | |
ce2cded5 L |
11636 | ;; |
11637 | *) | |
11638 | GDBINIT=".gdbinit" | |
81ecdfbb | 11639 | ac_config_files="$ac_config_files .gdbinit:gdbinit.in" |
d7040cdb | 11640 | |
ce2cded5 L |
11641 | ;; |
11642 | esac | |
d7040cdb | 11643 | |
d7040cdb | 11644 | |
ce2cded5 | 11645 | #We need this for the host. BOUT header is in host order. |
81ecdfbb RW |
11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
11647 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
11648 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
11649 | $as_echo_n "(cached) " >&6 | |
11650 | else | |
11651 | ac_cv_c_bigendian=unknown | |
11652 | # See if we're dealing with a universal compiler. | |
11653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11654 | /* end confdefs.h. */ | |
11655 | #ifndef __APPLE_CC__ | |
11656 | not a universal capable compiler | |
11657 | #endif | |
11658 | typedef int dummy; | |
11659 | ||
11660 | _ACEOF | |
11661 | if ac_fn_c_try_compile "$LINENO"; then : | |
11662 | ||
11663 | # Check for potential -arch flags. It is not universal unless | |
11664 | # there are at least two -arch flags with different values. | |
11665 | ac_arch= | |
11666 | ac_prev= | |
11667 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
11668 | if test -n "$ac_prev"; then | |
11669 | case $ac_word in | |
11670 | i?86 | x86_64 | ppc | ppc64) | |
11671 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
11672 | ac_arch=$ac_word | |
11673 | else | |
11674 | ac_cv_c_bigendian=universal | |
11675 | break | |
11676 | fi | |
11677 | ;; | |
11678 | esac | |
11679 | ac_prev= | |
11680 | elif test "x$ac_word" = "x-arch"; then | |
11681 | ac_prev=arch | |
11682 | fi | |
11683 | done | |
11684 | fi | |
11685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11686 | if test $ac_cv_c_bigendian = unknown; then | |
11687 | # See if sys/param.h defines the BYTE_ORDER macro. | |
11688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 L |
11689 | /* end confdefs.h. */ |
11690 | #include <sys/types.h> | |
81ecdfbb | 11691 | #include <sys/param.h> |
d7040cdb | 11692 | |
ce2cded5 L |
11693 | int |
11694 | main () | |
11695 | { | |
81ecdfbb RW |
11696 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
11697 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
11698 | && LITTLE_ENDIAN) | |
11699 | bogus endian macros | |
11700 | #endif | |
d7040cdb | 11701 | |
ce2cded5 L |
11702 | ; |
11703 | return 0; | |
11704 | } | |
11705 | _ACEOF | |
81ecdfbb | 11706 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 11707 | # It does; now see whether it defined to BIG_ENDIAN or not. |
81ecdfbb | 11708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11709 | /* end confdefs.h. */ |
11710 | #include <sys/types.h> | |
81ecdfbb | 11711 | #include <sys/param.h> |
d7040cdb | 11712 | |
ce2cded5 L |
11713 | int |
11714 | main () | |
11715 | { | |
11716 | #if BYTE_ORDER != BIG_ENDIAN | |
81ecdfbb RW |
11717 | not big endian |
11718 | #endif | |
d7040cdb | 11719 | |
ce2cded5 L |
11720 | ; |
11721 | return 0; | |
11722 | } | |
11723 | _ACEOF | |
81ecdfbb | 11724 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
11725 | ac_cv_c_bigendian=yes |
11726 | else | |
81ecdfbb | 11727 | ac_cv_c_bigendian=no |
ce2cded5 | 11728 | fi |
81ecdfbb RW |
11729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11730 | fi | |
11731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11732 | fi | |
11733 | if test $ac_cv_c_bigendian = unknown; then | |
11734 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
11735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11736 | /* end confdefs.h. */ | |
11737 | #include <limits.h> | |
d7040cdb | 11738 | |
81ecdfbb RW |
11739 | int |
11740 | main () | |
11741 | { | |
11742 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
11743 | bogus endian macros | |
11744 | #endif | |
11745 | ||
11746 | ; | |
11747 | return 0; | |
11748 | } | |
ce2cded5 | 11749 | _ACEOF |
81ecdfbb RW |
11750 | if ac_fn_c_try_compile "$LINENO"; then : |
11751 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
11752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 11753 | /* end confdefs.h. */ |
81ecdfbb RW |
11754 | #include <limits.h> |
11755 | ||
ce2cded5 L |
11756 | int |
11757 | main () | |
11758 | { | |
81ecdfbb RW |
11759 | #ifndef _BIG_ENDIAN |
11760 | not big endian | |
11761 | #endif | |
11762 | ||
ce2cded5 L |
11763 | ; |
11764 | return 0; | |
11765 | } | |
11766 | _ACEOF | |
81ecdfbb | 11767 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 11768 | ac_cv_c_bigendian=yes |
81ecdfbb RW |
11769 | else |
11770 | ac_cv_c_bigendian=no | |
d7040cdb | 11771 | fi |
81ecdfbb | 11772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 11773 | fi |
81ecdfbb RW |
11774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11775 | fi | |
11776 | if test $ac_cv_c_bigendian = unknown; then | |
11777 | # Compile a test program. | |
11778 | if test "$cross_compiling" = yes; then : | |
11779 | # Try to guess by grepping values from an object file. | |
11780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11781 | /* end confdefs.h. */ | |
11782 | short int ascii_mm[] = | |
11783 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
11784 | short int ascii_ii[] = | |
11785 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
11786 | int use_ascii (int i) { | |
11787 | return ascii_mm[i] + ascii_ii[i]; | |
11788 | } | |
11789 | short int ebcdic_ii[] = | |
11790 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
11791 | short int ebcdic_mm[] = | |
11792 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
11793 | int use_ebcdic (int i) { | |
11794 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
11795 | } | |
11796 | extern int foo; | |
d7040cdb | 11797 | |
81ecdfbb RW |
11798 | int |
11799 | main () | |
11800 | { | |
11801 | return use_ascii (foo) == use_ebcdic (foo); | |
11802 | ; | |
11803 | return 0; | |
11804 | } | |
11805 | _ACEOF | |
11806 | if ac_fn_c_try_compile "$LINENO"; then : | |
11807 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
11808 | ac_cv_c_bigendian=yes | |
11809 | fi | |
11810 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
11811 | if test "$ac_cv_c_bigendian" = unknown; then | |
11812 | ac_cv_c_bigendian=no | |
11813 | else | |
11814 | # finding both strings is unlikely to happen, but who knows? | |
11815 | ac_cv_c_bigendian=unknown | |
11816 | fi | |
11817 | fi | |
ce2cded5 | 11818 | fi |
81ecdfbb | 11819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 11820 | else |
81ecdfbb | 11821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11822 | /* end confdefs.h. */ |
81ecdfbb | 11823 | $ac_includes_default |
ce2cded5 L |
11824 | int |
11825 | main () | |
11826 | { | |
81ecdfbb RW |
11827 | |
11828 | /* Are we little or big endian? From Harbison&Steele. */ | |
11829 | union | |
11830 | { | |
11831 | long int l; | |
11832 | char c[sizeof (long int)]; | |
11833 | } u; | |
11834 | u.l = 1; | |
11835 | return u.c[sizeof (long int) - 1] == 1; | |
11836 | ||
11837 | ; | |
11838 | return 0; | |
ce2cded5 | 11839 | } |
d7040cdb | 11840 | _ACEOF |
81ecdfbb | 11841 | if ac_fn_c_try_run "$LINENO"; then : |
ce2cded5 L |
11842 | ac_cv_c_bigendian=no |
11843 | else | |
81ecdfbb | 11844 | ac_cv_c_bigendian=yes |
d7040cdb | 11845 | fi |
81ecdfbb RW |
11846 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
11847 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d7040cdb | 11848 | fi |
81ecdfbb RW |
11849 | |
11850 | fi | |
ce2cded5 | 11851 | fi |
81ecdfbb RW |
11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
11853 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
11854 | case $ac_cv_c_bigendian in #( | |
11855 | yes) | |
11856 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
11857 | ;; #( | |
11858 | no) | |
11859 | ;; #( | |
11860 | universal) | |
d7040cdb | 11861 | |
81ecdfbb RW |
11862 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
11863 | ||
11864 | ;; #( | |
11865 | *) | |
11866 | as_fn_error "unknown endianness | |
11867 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
11868 | esac | |
d7040cdb | 11869 | |
d7040cdb | 11870 | |
ce2cded5 | 11871 | te_file=generic |
d7040cdb | 11872 | |
ce2cded5 L |
11873 | # Makefile target for installing gas in $(tooldir)/bin. |
11874 | install_tooldir=install-exec-tooldir | |
d7040cdb | 11875 | |
ce2cded5 L |
11876 | canon_targets="" |
11877 | all_targets=no | |
11878 | if test -n "$enable_targets" ; then | |
11879 | for t in `echo $enable_targets | sed 's/,/ /g'`; do | |
11880 | if test $t = "all"; then | |
11881 | all_targets=yes | |
11882 | continue | |
11883 | fi | |
11884 | result=`$ac_config_sub $t 2>/dev/null` | |
11885 | if test -n "$result" ; then | |
11886 | canon_targets="$canon_targets $result" | |
11887 | # else | |
11888 | # # Permit "all", etc. We don't support it yet though. | |
11889 | # canon_targets="$canon_targets $t" | |
11890 | fi | |
11891 | done | |
11892 | _gas_uniq_list="$canon_targets" | |
d7040cdb SE |
11893 | _gas_uniq_newlist="" |
11894 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
11895 | case $_gas_uniq_i in | |
11896 | _gas_uniq_dummy) ;; | |
11897 | *) case " $_gas_uniq_newlist " in | |
11898 | *" $_gas_uniq_i "*) ;; | |
11899 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
11900 | esac ;; | |
11901 | esac | |
11902 | done | |
ce2cded5 | 11903 | canon_targets=$_gas_uniq_newlist |
d7040cdb | 11904 | |
ce2cded5 L |
11905 | fi |
11906 | ||
11907 | emulations="" | |
11908 | ||
11909 | for this_target in $target $canon_targets ; do | |
11910 | ||
11911 | targ=${this_target} | |
11912 | . ${srcdir}/configure.tgt | |
11913 | ||
11914 | case ${target_cpu} in | |
11915 | crisv32) | |
11916 | ||
11917 | cat >>confdefs.h <<_ACEOF | |
11918 | #define DEFAULT_CRIS_ARCH $arch | |
d7040cdb | 11919 | _ACEOF |
ce2cded5 L |
11920 | |
11921 | ;; | |
11922 | esac | |
11923 | ||
11924 | if test ${this_target} = $target ; then | |
11925 | target_cpu_type=${cpu_type} | |
11926 | elif test ${target_cpu_type} != ${cpu_type} ; then | |
11927 | continue | |
11928 | fi | |
11929 | ||
11930 | generic_target=${cpu_type}-${target_vendor}-${target_os} | |
11931 | case ${generic_target} in | |
11932 | i386-*-sco3.2v5*) | |
11933 | if test ${this_target} = $target; then | |
11934 | ||
81ecdfbb | 11935 | $as_echo "#define SCO_ELF 1" >>confdefs.h |
ce2cded5 L |
11936 | |
11937 | fi | |
11938 | ;; | |
11939 | ||
11940 | i386-*-msdosdjgpp* \ | |
11941 | | i386-*-go32* \ | |
11942 | | i386-go32-rtems*) | |
11943 | ||
81ecdfbb | 11944 | $as_echo "#define STRICTCOFF 1" >>confdefs.h |
ce2cded5 L |
11945 | |
11946 | ;; | |
11947 | ||
11948 | i860-*-*) | |
81ecdfbb RW |
11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5 |
11950 | $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;} | |
ce2cded5 L |
11951 | ;; |
11952 | ||
7ba29e2a NC |
11953 | microblaze*) |
11954 | ;; | |
11955 | ||
ce2cded5 L |
11956 | mips-sony-bsd*) |
11957 | ;; | |
11958 | mips-*-bsd*) | |
81ecdfbb | 11959 | as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5 |
ce2cded5 L |
11960 | ;; |
11961 | ||
e5231592 | 11962 | ppc-*-aix[5-9].*) |
ce2cded5 | 11963 | |
81ecdfbb | 11964 | $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h |
ce2cded5 L |
11965 | |
11966 | ;; | |
11967 | ppc-*-linux-*) | |
11968 | case "$endian" in | |
11969 | big) ;; | |
81ecdfbb | 11970 | *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;; |
ce2cded5 L |
11971 | esac |
11972 | ;; | |
11973 | ppc-*-solaris*) | |
11974 | if test ${this_target} = $target; then | |
11975 | ||
81ecdfbb | 11976 | $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h |
ce2cded5 L |
11977 | |
11978 | fi | |
11979 | if test x${endian} = xbig; then | |
81ecdfbb | 11980 | as_fn_error "Solaris must be configured little endian" "$LINENO" 5 |
ce2cded5 L |
11981 | fi |
11982 | ;; | |
11983 | ||
11984 | sh*-*-symbianelf*) | |
11985 | ||
81ecdfbb | 11986 | $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h |
ce2cded5 L |
11987 | |
11988 | ;; | |
d7040cdb | 11989 | esac |
d7040cdb | 11990 | |
ce2cded5 L |
11991 | if test ${this_target} = $target ; then |
11992 | endian_def= | |
11993 | if test x${endian} = xbig; then | |
11994 | endian_def=1 | |
11995 | elif test x${endian} = xlittle; then | |
11996 | endian_def=0 | |
11997 | fi | |
11998 | if test x${endian_def} != x; then | |
11999 | ||
12000 | cat >>confdefs.h <<_ACEOF | |
12001 | #define TARGET_BYTES_BIG_ENDIAN $endian_def | |
12002 | _ACEOF | |
12003 | ||
12004 | fi | |
12005 | fi | |
12006 | ||
12007 | # Other random stuff. | |
12008 | ||
12009 | case ${cpu_type} in | |
12010 | mips) | |
12011 | # Set mips_cpu to the name of the default CPU. | |
12012 | case ${target_cpu} in | |
12013 | mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el) | |
12014 | mips_cpu=from-abi | |
12015 | ;; | |
12016 | mipsisa32 | mipsisa32el) | |
12017 | mips_cpu=mips32 | |
12018 | ;; | |
12019 | mipsisa32r2 | mipsisa32r2el) | |
12020 | mips_cpu=mips32r2 | |
12021 | ;; | |
12022 | mipsisa64 | mipsisa64el) | |
12023 | mips_cpu=mips64 | |
12024 | ;; | |
12025 | mipsisa64r2 | mipsisa64r2el) | |
12026 | mips_cpu=mips64r2 | |
12027 | ;; | |
12028 | mipstx39 | mipstx39el) | |
12029 | mips_cpu=r3900 | |
12030 | ;; | |
12031 | mips64vr | mips64vrel) | |
12032 | mips_cpu=vr4100 | |
12033 | ;; | |
12034 | mipsisa32r2* | mipsisa64r2*) | |
12035 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` | |
12036 | ;; | |
12037 | mips64* | mipsisa64* | mipsisa32*) | |
12038 | mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'` | |
12039 | ;; | |
12040 | *) | |
81ecdfbb | 12041 | as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5 |
ce2cded5 L |
12042 | ;; |
12043 | esac | |
12044 | # See whether it's appropriate to set E_MIPS_ABI_O32 for o32 | |
12045 | # binaries. It's a GNU extension that some OSes don't understand. | |
12046 | # The value only matters on ELF targets. | |
12047 | case ${target} in | |
12048 | *-*-irix*) | |
12049 | use_e_mips_abi_o32=0 | |
12050 | ;; | |
12051 | *) | |
12052 | use_e_mips_abi_o32=1 | |
12053 | ;; | |
12054 | esac | |
12055 | # Decide whether to generate 32-bit or 64-bit code by default. | |
12056 | # Used to resolve -march=from-abi when an embedded ABI is selected. | |
12057 | case ${target} in | |
12058 | mips64*-*-* | mipsisa64*-*-*) | |
12059 | mips_default_64bit=1 | |
12060 | ;; | |
12061 | *) | |
12062 | mips_default_64bit=0 | |
12063 | ;; | |
12064 | esac | |
12065 | # Decide which ABI to target by default. | |
12066 | case ${target} in | |
12067 | mips64*-linux* | mips-sgi-irix6*) | |
12068 | mips_default_abi=N32_ABI | |
12069 | ;; | |
12070 | mips*-linux*) | |
12071 | mips_default_abi=O32_ABI | |
12072 | ;; | |
12073 | mips64*-openbsd*) | |
12074 | mips_default_abi=N64_ABI | |
12075 | ;; | |
12076 | *) | |
12077 | mips_default_abi=NO_ABI | |
12078 | ;; | |
12079 | esac | |
12080 | ||
12081 | cat >>confdefs.h <<_ACEOF | |
12082 | #define MIPS_CPU_STRING_DEFAULT "$mips_cpu" | |
d7040cdb | 12083 | _ACEOF |
d7040cdb SE |
12084 | |
12085 | ||
12086 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12087 | #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32 |
d7040cdb SE |
12088 | _ACEOF |
12089 | ||
12090 | ||
12091 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12092 | #define MIPS_DEFAULT_64BIT $mips_default_64bit |
d7040cdb SE |
12093 | _ACEOF |
12094 | ||
12095 | ||
ce2cded5 L |
12096 | cat >>confdefs.h <<_ACEOF |
12097 | #define MIPS_DEFAULT_ABI $mips_default_abi | |
12098 | _ACEOF | |
d7040cdb | 12099 | |
ce2cded5 L |
12100 | ;; |
12101 | esac | |
d7040cdb | 12102 | |
ce2cded5 L |
12103 | # Do we need the opcodes library? |
12104 | case ${cpu_type} in | |
12105 | vax | tic30) | |
12106 | ;; | |
d7040cdb | 12107 | |
ce2cded5 L |
12108 | *) |
12109 | need_opcodes=yes | |
d7040cdb | 12110 | |
ce2cded5 L |
12111 | case "${enable_shared}" in |
12112 | yes) shared_opcodes=true ;; | |
12113 | *opcodes*) shared_opcodes=true ;; | |
12114 | *) shared_opcodes=false ;; | |
12115 | esac | |
12116 | ;; | |
12117 | esac | |
d7040cdb | 12118 | |
ce2cded5 L |
12119 | # Any other special object files needed ? |
12120 | case ${cpu_type} in | |
d7040cdb | 12121 | |
ce2cded5 L |
12122 | bfin) |
12123 | echo ${extra_objects} | grep -s "bfin-parse.o" | |
12124 | if test $? -ne 0 ; then | |
12125 | extra_objects="$extra_objects bfin-parse.o" | |
12126 | fi | |
d7040cdb | 12127 | |
ce2cded5 L |
12128 | echo ${extra_objects} | grep -s "bfin-lex.o" |
12129 | if test $? -ne 0 ; then | |
12130 | extra_objects="$extra_objects bfin-lex.o" | |
12131 | fi | |
12132 | ;; | |
d7040cdb | 12133 | |
84e94c90 | 12134 | fr30 | ip2k | iq2000 | lm32 | m32r | openrisc) |
ce2cded5 L |
12135 | using_cgen=yes |
12136 | ;; | |
d7040cdb | 12137 | |
ce2cded5 L |
12138 | m32c) |
12139 | using_cgen=yes | |
12140 | ;; | |
12141 | frv) | |
12142 | using_cgen=yes | |
12143 | ;; | |
12144 | m68k) | |
12145 | case ${extra_objects} in | |
12146 | *m68k-parse.o*) ;; | |
12147 | *) extra_objects="$extra_objects m68k-parse.o" ;; | |
12148 | esac | |
12149 | ;; | |
d7040cdb | 12150 | |
ce2cded5 L |
12151 | mep) |
12152 | using_cgen=yes | |
12153 | ;; | |
d7040cdb | 12154 | |
ce2cded5 L |
12155 | mips) |
12156 | echo ${extra_objects} | grep -s "itbl-parse.o" | |
12157 | if test $? -ne 0 ; then | |
12158 | extra_objects="$extra_objects itbl-parse.o" | |
12159 | fi | |
d7040cdb | 12160 | |
ce2cded5 L |
12161 | echo ${extra_objects} | grep -s "itbl-lex.o" |
12162 | if test $? -ne 0 ; then | |
12163 | extra_objects="$extra_objects itbl-lex.o" | |
12164 | fi | |
d7040cdb | 12165 | |
ce2cded5 L |
12166 | echo ${extra_objects} | grep -s "itbl-ops.o" |
12167 | if test $? -ne 0 ; then | |
12168 | extra_objects="$extra_objects itbl-ops.o" | |
12169 | fi | |
12170 | ;; | |
d7040cdb | 12171 | |
ce2cded5 L |
12172 | mt) |
12173 | using_cgen=yes | |
12174 | ;; | |
d7040cdb | 12175 | |
ce2cded5 L |
12176 | i386 | s390 | sparc) |
12177 | if test $this_target = $target ; then | |
d7040cdb SE |
12178 | |
12179 | cat >>confdefs.h <<_ACEOF | |
ce2cded5 | 12180 | #define DEFAULT_ARCH "${arch}" |
d7040cdb SE |
12181 | _ACEOF |
12182 | ||
ce2cded5 L |
12183 | fi |
12184 | ;; | |
d7040cdb | 12185 | |
c7927a3c NC |
12186 | rx) |
12187 | echo ${extra_objects} | grep -s "rx-parse.o" | |
12188 | if test $? -ne 0 ; then | |
12189 | extra_objects="$extra_objects rx-parse.o" | |
12190 | fi | |
12191 | ;; | |
12192 | ||
ce2cded5 L |
12193 | xstormy16) |
12194 | using_cgen=yes | |
12195 | ;; | |
d7040cdb | 12196 | |
ce2cded5 L |
12197 | xc16x) |
12198 | using_cgen=yes | |
12199 | ;; | |
d7040cdb | 12200 | |
ce2cded5 L |
12201 | xtensa) |
12202 | echo ${extra_objects} | grep -s "xtensa-relax.o" | |
12203 | if test $? -ne 0 ; then | |
12204 | extra_objects="$extra_objects xtensa-relax.o" | |
12205 | fi | |
12206 | ;; | |
d7040cdb | 12207 | |
ce2cded5 L |
12208 | *) |
12209 | ;; | |
12210 | esac | |
d7040cdb | 12211 | |
ce2cded5 L |
12212 | if test $using_cgen = yes ; then |
12213 | case "x${extra_objects}" in | |
12214 | *cgen.o*) ;; | |
12215 | *) extra_objects="$extra_objects cgen.o" ;; | |
12216 | esac | |
12217 | fi | |
d7040cdb | 12218 | |
ce2cded5 | 12219 | # See if we really can support this configuration with the emulation code. |
d7040cdb | 12220 | |
ce2cded5 L |
12221 | if test $this_target = $target ; then |
12222 | obj_format=$fmt | |
12223 | te_file=$em | |
12224 | fi | |
d7040cdb | 12225 | |
b11d79f2 TG |
12226 | case ${te_file} in |
12227 | vms) extra_objects="$extra_objects te-vms.o" ;; | |
12228 | esac | |
12229 | ||
ce2cded5 | 12230 | # From target name and format, produce a list of supported emulations. |
d7040cdb | 12231 | |
ce2cded5 L |
12232 | case ${generic_target}-${fmt} in |
12233 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
12234 | mips*-*-linux*-*) case "$endian" in | |
12235 | big) emulation="mipsbelf mipslelf mipself" ;; | |
12236 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12237 | esac ;; | |
12238 | mips-*-lnews*-ecoff) ;; | |
12239 | mips-*-*-ecoff) case "$endian" in | |
12240 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;; | |
12241 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;; | |
12242 | esac ;; | |
12243 | mips-*-*-elf) case "$endian" in | |
12244 | big) emulation="mipsbelf mipslelf mipself" ;; | |
12245 | *) emulation="mipslelf mipsbelf mipself" ;; | |
12246 | esac ;; | |
12247 | mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; | |
12248 | # i386-pc-pe-coff != i386-pc-coff. | |
12249 | i386-*-pe-coff) ;; | |
12250 | # Uncommenting the next line will turn on support for i386 AOUT | |
12251 | # for the default linux configuration | |
12252 | # i386-*-linux*-elf) emulation="i386elf i386aout" ;; | |
12253 | # | |
12254 | i386-*-aout) emulation="i386aout" ;; | |
12255 | i386-*-coff) emulation="i386coff" ;; | |
12256 | i386-*-elf) emulation="i386elf" ;; | |
d7040cdb | 12257 | |
ce2cded5 L |
12258 | # Always all formats. The first stated emulation becomes the default. |
12259 | cris-*-*aout*) emulation="crisaout criself" ;; | |
12260 | cris-*-*) emulation="criself crisaout" ;; | |
12261 | esac | |
13b2be9c | 12262 | |
ce2cded5 | 12263 | emulations="$emulations $emulation" |
13b2be9c | 12264 | |
13b2be9c | 12265 | done |
13b2be9c | 12266 | |
ce2cded5 L |
12267 | # Turn on all targets if possible |
12268 | if test ${all_targets} = "yes"; then | |
12269 | case ${target_cpu_type} in | |
12270 | i386) | |
12271 | case ${obj_format} in | |
12272 | aout) | |
12273 | emulations="$emulations i386coff i386elf" | |
12274 | ;; | |
12275 | coff) | |
12276 | emulations="$emulations i386aout i386elf" | |
12277 | ;; | |
12278 | elf) | |
12279 | emulations="$emulations i386aout i386coff" | |
12280 | ;; | |
12281 | esac | |
12282 | ;; | |
12283 | x86_64) | |
12284 | case ${obj_format} in | |
12285 | aout) | |
12286 | emulations="$emulations i386coff i386elf" | |
12287 | ;; | |
12288 | coff) | |
12289 | emulations="$emulations i386aout i386elf" | |
12290 | ;; | |
12291 | elf) | |
12292 | emulations="$emulations i386aout i386coff" | |
12293 | ;; | |
12294 | esac | |
12295 | ;; | |
12296 | esac | |
13b2be9c | 12297 | fi |
c8615825 | 12298 | |
ce2cded5 L |
12299 | # Assign floating point type. Most processors with FP support |
12300 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
12301 | # is emulated. | |
12302 | case ${target_cpu} in | |
12303 | vax | pdp11 ) atof=vax ;; | |
12304 | *) atof=ieee ;; | |
12305 | esac | |
c8615825 | 12306 | |
ce2cded5 | 12307 | case "${obj_format}" in |
81ecdfbb | 12308 | "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;; |
ce2cded5 | 12309 | esac |
13b2be9c | 12310 | |
ce2cded5 L |
12311 | # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU). |
12312 | cgen_cpu_prefix="" | |
12313 | if test $using_cgen = yes ; then | |
12314 | case ${target_cpu} in | |
12315 | *) cgen_cpu_prefix=${target_cpu} ;; | |
12316 | esac | |
c8615825 | 12317 | |
c8615825 | 12318 | |
81ecdfbb | 12319 | $as_echo "#define USING_CGEN 1" >>confdefs.h |
d7040cdb | 12320 | |
d7040cdb | 12321 | fi |
13b2be9c | 12322 | |
ce2cded5 L |
12323 | |
12324 | if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then | |
81ecdfbb | 12325 | as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5 |
13b2be9c | 12326 | fi |
ce2cded5 L |
12327 | |
12328 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then | |
81ecdfbb | 12329 | as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5 |
13b2be9c DJ |
12330 | fi |
12331 | ||
ce2cded5 L |
12332 | # Some COFF configurations want these random other flags set. |
12333 | case ${obj_format} in | |
12334 | coff) | |
12335 | case ${target_cpu_type} in | |
12336 | i386) | |
81ecdfbb | 12337 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12338 | ;; |
12339 | m68k) | |
81ecdfbb | 12340 | $as_echo "#define M68KCOFF 1" >>confdefs.h |
ce2cded5 L |
12341 | ;; |
12342 | m88k) | |
81ecdfbb | 12343 | $as_echo "#define M88KCOFF 1" >>confdefs.h |
ce2cded5 L |
12344 | ;; |
12345 | x86_64) | |
81ecdfbb | 12346 | $as_echo "#define I386COFF 1" >>confdefs.h |
ce2cded5 L |
12347 | ;; |
12348 | esac | |
12349 | ;; | |
12350 | esac | |
12351 | ||
12352 | # Getting this done right is going to be a bitch. Each configuration specified | |
12353 | # with --enable-targets=... should be checked for environment, format, cpu | |
12354 | # setting. | |
12355 | # | |
12356 | # For each configuration, the necessary object file support code must be linked | |
12357 | # in. This might be only one, it might be up to four. The necessary emulation | |
12358 | # code needs to be provided, too. | |
12359 | # | |
12360 | # And then there's "--enable-targets=all".... | |
12361 | # | |
12362 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. | |
12363 | ||
12364 | formats="${obj_format}" | |
12365 | emfiles="" | |
12366 | EMULATIONS="" | |
12367 | _gas_uniq_list="$emulations" | |
12368 | _gas_uniq_newlist="" | |
12369 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12370 | case $_gas_uniq_i in | |
12371 | _gas_uniq_dummy) ;; | |
12372 | *) case " $_gas_uniq_newlist " in | |
12373 | *" $_gas_uniq_i "*) ;; | |
12374 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12375 | esac ;; | |
12376 | esac | |
12377 | done | |
12378 | emulations=$_gas_uniq_newlist | |
12379 | ||
12380 | for em in . $emulations ; do | |
12381 | case $em in | |
12382 | .) continue ;; | |
12383 | mipsbelf | mipslelf | mipself) | |
12384 | fmt=elf file=mipself ;; | |
12385 | mipsbecoff | mipslecoff | mipsecoff) | |
12386 | fmt=ecoff file=mipsecoff ;; | |
12387 | *coff) | |
12388 | fmt=coff file=$em ;; | |
12389 | *aout) | |
12390 | fmt=aout file=$em ;; | |
12391 | *elf) | |
12392 | fmt=elf file=$em ;; | |
12393 | esac | |
12394 | formats="$formats $fmt" | |
12395 | emfiles="$emfiles e-$file.o" | |
12396 | EMULATIONS="$EMULATIONS &$em," | |
12397 | done | |
12398 | _gas_uniq_list="$formats" | |
12399 | _gas_uniq_newlist="" | |
12400 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12401 | case $_gas_uniq_i in | |
12402 | _gas_uniq_dummy) ;; | |
12403 | *) case " $_gas_uniq_newlist " in | |
12404 | *" $_gas_uniq_i "*) ;; | |
12405 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12406 | esac ;; | |
12407 | esac | |
13b2be9c | 12408 | done |
ce2cded5 | 12409 | formats=$_gas_uniq_newlist |
13b2be9c | 12410 | |
ce2cded5 L |
12411 | _gas_uniq_list="$emfiles" |
12412 | _gas_uniq_newlist="" | |
12413 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
12414 | case $_gas_uniq_i in | |
12415 | _gas_uniq_dummy) ;; | |
12416 | *) case " $_gas_uniq_newlist " in | |
12417 | *" $_gas_uniq_i "*) ;; | |
12418 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
12419 | esac ;; | |
12420 | esac | |
12421 | done | |
12422 | emfiles=$_gas_uniq_newlist | |
d7040cdb | 12423 | |
ce2cded5 L |
12424 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then |
12425 | for fmt in $formats ; do | |
12426 | case $fmt in | |
12427 | aout) | |
81ecdfbb | 12428 | $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h |
ce2cded5 L |
12429 | ;; |
12430 | bout) | |
81ecdfbb | 12431 | $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h |
ce2cded5 L |
12432 | ;; |
12433 | coff) | |
81ecdfbb | 12434 | $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h |
ce2cded5 L |
12435 | ;; |
12436 | ecoff) | |
81ecdfbb | 12437 | $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h |
ce2cded5 L |
12438 | ;; |
12439 | elf) | |
81ecdfbb | 12440 | $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h |
ce2cded5 L |
12441 | ;; |
12442 | generic) | |
81ecdfbb | 12443 | $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h |
ce2cded5 L |
12444 | ;; |
12445 | som) | |
81ecdfbb | 12446 | $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h |
ce2cded5 L |
12447 | ;; |
12448 | esac | |
12449 | extra_objects="$extra_objects obj-$fmt.o" | |
12450 | done | |
12451 | obj_format=multi | |
13b2be9c | 12452 | fi |
ce2cded5 L |
12453 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then |
12454 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
12455 | # e-mips* has more than one emulation per file, e-i386* has just one at the | |
12456 | # moment. If only one emulation is specified, then don't define | |
12457 | # USE_EMULATIONS or include any of the e-files as they will only be bloat. | |
12458 | case "${obj_format}${emfiles}" in | |
12459 | multi* | *mips*) | |
12460 | extra_objects="$extra_objects $emfiles" | |
d7040cdb | 12461 | |
81ecdfbb | 12462 | $as_echo "#define USE_EMULATIONS 1" >>confdefs.h |
ce2cded5 L |
12463 | ;; |
12464 | esac | |
12465 | fi | |
d7040cdb | 12466 | |
13b2be9c | 12467 | |
ce2cded5 L |
12468 | cat >>confdefs.h <<_ACEOF |
12469 | #define EMULATIONS $EMULATIONS | |
13b2be9c | 12470 | _ACEOF |
d7040cdb | 12471 | |
d7040cdb | 12472 | |
ce2cded5 L |
12473 | cat >>confdefs.h <<_ACEOF |
12474 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
d7040cdb | 12475 | _ACEOF |
d7040cdb | 12476 | |
d7040cdb | 12477 | |
ce2cded5 | 12478 | reject_dev_configs=yes |
252b5132 | 12479 | |
ce2cded5 L |
12480 | case ${reject_dev_configs}-${dev} in |
12481 | yes-yes) # Oops. | |
81ecdfbb | 12482 | as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5 |
ce2cded5 | 12483 | ;; |
d7040cdb SE |
12484 | esac |
12485 | ||
13b2be9c | 12486 | |
ce2cded5 L |
12487 | |
12488 | ||
12489 | ||
12490 | ||
12491 | ||
12492 | # do we need the opcodes library? | |
12493 | case "${need_opcodes}" in | |
12494 | yes) | |
12495 | OPCODES_LIB=../opcodes/libopcodes.la | |
12496 | ;; | |
12497 | esac | |
12498 | ||
12499 | ||
12500 | ||
12501 | ||
12502 | cat >>confdefs.h <<_ACEOF | |
12503 | #define TARGET_ALIAS "${target_alias}" | |
d7040cdb | 12504 | _ACEOF |
20e95c23 | 12505 | |
20e95c23 | 12506 | |
ce2cded5 L |
12507 | cat >>confdefs.h <<_ACEOF |
12508 | #define TARGET_CANONICAL "${target}" | |
12509 | _ACEOF | |
20e95c23 | 12510 | |
d6d788bd | 12511 | |
ce2cded5 L |
12512 | cat >>confdefs.h <<_ACEOF |
12513 | #define TARGET_CPU "${target_cpu}" | |
12514 | _ACEOF | |
20e95c23 | 12515 | |
ce2cded5 L |
12516 | |
12517 | cat >>confdefs.h <<_ACEOF | |
12518 | #define TARGET_VENDOR "${target_vendor}" | |
0efedc4c AM |
12519 | _ACEOF |
12520 | ||
12521 | ||
ce2cded5 L |
12522 | cat >>confdefs.h <<_ACEOF |
12523 | #define TARGET_OS "${target_os}" | |
12524 | _ACEOF | |
12525 | ||
0efedc4c | 12526 | |
d7040cdb SE |
12527 | for ac_prog in 'bison -y' byacc |
12528 | do | |
12529 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12530 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12532 | $as_echo_n "checking for $ac_word... " >&6; } | |
12533 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
12534 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 12535 | else |
d7040cdb SE |
12536 | if test -n "$YACC"; then |
12537 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
d6d788bd | 12538 | else |
d7040cdb SE |
12539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12540 | for as_dir in $PATH | |
12541 | do | |
12542 | IFS=$as_save_IFS | |
12543 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12544 | for ac_exec_ext in '' $ac_executable_extensions; do |
12545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12546 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 12547 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 12548 | break 2 |
20e95c23 | 12549 | fi |
d7040cdb | 12550 | done |
81ecdfbb RW |
12551 | done |
12552 | IFS=$as_save_IFS | |
20e95c23 | 12553 | |
d7040cdb SE |
12554 | fi |
12555 | fi | |
12556 | YACC=$ac_cv_prog_YACC | |
12557 | if test -n "$YACC"; then | |
81ecdfbb RW |
12558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12559 | $as_echo "$YACC" >&6; } | |
d7040cdb | 12560 | else |
81ecdfbb RW |
12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12562 | $as_echo "no" >&6; } | |
d7040cdb | 12563 | fi |
20e95c23 | 12564 | |
81ecdfbb | 12565 | |
d7040cdb SE |
12566 | test -n "$YACC" && break |
12567 | done | |
12568 | test -n "$YACC" || YACC="yacc" | |
20e95c23 | 12569 | |
d7040cdb SE |
12570 | for ac_prog in flex lex |
12571 | do | |
12572 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12573 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12575 | $as_echo_n "checking for $ac_word... " >&6; } | |
12576 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
12577 | $as_echo_n "(cached) " >&6 | |
d6d788bd | 12578 | else |
d7040cdb SE |
12579 | if test -n "$LEX"; then |
12580 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12581 | else | |
12582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12583 | for as_dir in $PATH | |
12584 | do | |
12585 | IFS=$as_save_IFS | |
12586 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12587 | for ac_exec_ext in '' $ac_executable_extensions; do |
12588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12589 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 12590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12591 | break 2 |
12592 | fi | |
12593 | done | |
81ecdfbb RW |
12594 | done |
12595 | IFS=$as_save_IFS | |
20e95c23 | 12596 | |
d7040cdb SE |
12597 | fi |
12598 | fi | |
12599 | LEX=$ac_cv_prog_LEX | |
12600 | if test -n "$LEX"; then | |
81ecdfbb RW |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12602 | $as_echo "$LEX" >&6; } | |
20e95c23 | 12603 | else |
81ecdfbb RW |
12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12605 | $as_echo "no" >&6; } | |
13b2be9c DJ |
12606 | fi |
12607 | ||
81ecdfbb | 12608 | |
d7040cdb SE |
12609 | test -n "$LEX" && break |
12610 | done | |
12611 | test -n "$LEX" || LEX=":" | |
20e95c23 | 12612 | |
81ecdfbb RW |
12613 | if test "x$LEX" != "x:"; then |
12614 | cat >conftest.l <<_ACEOF | |
12615 | %% | |
12616 | a { ECHO; } | |
12617 | b { REJECT; } | |
12618 | c { yymore (); } | |
12619 | d { yyless (1); } | |
12620 | e { yyless (input () != 0); } | |
12621 | f { unput (yytext[0]); } | |
12622 | . { BEGIN INITIAL; } | |
12623 | %% | |
12624 | #ifdef YYTEXT_POINTER | |
12625 | extern char *yytext; | |
d7040cdb | 12626 | #endif |
d7040cdb | 12627 | int |
81ecdfbb | 12628 | main (void) |
d7040cdb | 12629 | { |
81ecdfbb | 12630 | return ! yylex () + ! yywrap (); |
d7040cdb SE |
12631 | } |
12632 | _ACEOF | |
81ecdfbb RW |
12633 | { { ac_try="$LEX conftest.l" |
12634 | case "(($ac_try" in | |
12635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12636 | *) ac_try_echo=$ac_try;; | |
12637 | esac | |
12638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12639 | $as_echo "$ac_try_echo"; } >&5 | |
12640 | (eval "$LEX conftest.l") 2>&5 | |
d7040cdb | 12641 | ac_status=$? |
81ecdfbb RW |
12642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12643 | test $ac_status = 0; } | |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
12645 | $as_echo_n "checking lex output file root... " >&6; } | |
12646 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
12647 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 12648 | else |
d5fbea21 | 12649 | |
81ecdfbb RW |
12650 | if test -f lex.yy.c; then |
12651 | ac_cv_prog_lex_root=lex.yy | |
12652 | elif test -f lexyy.c; then | |
12653 | ac_cv_prog_lex_root=lexyy | |
12654 | else | |
12655 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
d6d788bd | 12656 | fi |
d7040cdb | 12657 | fi |
81ecdfbb RW |
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12659 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
12660 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
d7040cdb | 12661 | |
81ecdfbb RW |
12662 | if test -z "${LEXLIB+set}"; then |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
12664 | $as_echo_n "checking lex library... " >&6; } | |
12665 | if test "${ac_cv_lib_lex+set}" = set; then : | |
12666 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 12667 | else |
d7040cdb | 12668 | |
81ecdfbb RW |
12669 | ac_save_LIBS=$LIBS |
12670 | ac_cv_lib_lex='none needed' | |
12671 | for ac_lib in '' -lfl -ll; do | |
12672 | LIBS="$ac_lib $ac_save_LIBS" | |
12673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12674 | /* end confdefs.h. */ | |
12675 | `cat $LEX_OUTPUT_ROOT.c` | |
12676 | _ACEOF | |
12677 | if ac_fn_c_try_link "$LINENO"; then : | |
12678 | ac_cv_lib_lex=$ac_lib | |
d7040cdb | 12679 | fi |
81ecdfbb RW |
12680 | rm -f core conftest.err conftest.$ac_objext \ |
12681 | conftest$ac_exeext conftest.$ac_ext | |
12682 | test "$ac_cv_lib_lex" != 'none needed' && break | |
12683 | done | |
12684 | LIBS=$ac_save_LIBS | |
d7040cdb SE |
12685 | |
12686 | fi | |
81ecdfbb RW |
12687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12688 | $as_echo "$ac_cv_lib_lex" >&6; } | |
12689 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb SE |
12690 | fi |
12691 | ||
13b2be9c | 12692 | |
81ecdfbb RW |
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12694 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
12695 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
12696 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
12697 | else |
12698 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 12699 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
12700 | # not all implementations provide the %pointer and %array declarations. |
12701 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 12702 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
12703 | LIBS="$LEXLIB $ac_save_LIBS" |
12704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12705 | /* end confdefs.h. */ | |
12706 | #define YYTEXT_POINTER 1 | |
d7040cdb | 12707 | `cat $LEX_OUTPUT_ROOT.c` |
13b2be9c | 12708 | _ACEOF |
81ecdfbb | 12709 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 12710 | ac_cv_prog_lex_yytext_pointer=yes |
13b2be9c | 12711 | fi |
81ecdfbb RW |
12712 | rm -f core conftest.err conftest.$ac_objext \ |
12713 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 12714 | LIBS=$ac_save_LIBS |
252b5132 | 12715 | |
9b2b7d69 | 12716 | fi |
81ecdfbb RW |
12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12718 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb | 12719 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
13b2be9c | 12720 | |
81ecdfbb | 12721 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
9b2b7d69 | 12722 | |
d6d788bd | 12723 | fi |
81ecdfbb | 12724 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
d7040cdb | 12725 | |
c8615825 | 12726 | fi |
d7040cdb SE |
12727 | if test "$LEX" = :; then |
12728 | LEX=${am_missing_run}flex | |
12729 | fi | |
12730 | ||
8cc9115f | 12731 | ALL_LINGUAS="fr tr es rw id" |
d7040cdb SE |
12732 | # If we haven't got the data from the intl directory, |
12733 | # assume NLS is disabled. | |
12734 | USE_NLS=no | |
12735 | LIBINTL= | |
12736 | LIBINTL_DEP= | |
12737 | INCINTL= | |
12738 | XGETTEXT= | |
12739 | GMSGFMT= | |
12740 | POSUB= | |
12741 | ||
12742 | if test -f ../intl/config.intl; then | |
12743 | . ../intl/config.intl | |
12744 | fi | |
81ecdfbb RW |
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
12746 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 12747 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12749 | $as_echo "no" >&6; } | |
d7040cdb | 12750 | else |
81ecdfbb RW |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12752 | $as_echo "yes" >&6; } | |
d7040cdb | 12753 | |
81ecdfbb | 12754 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
12755 | |
12756 | ||
81ecdfbb RW |
12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
12758 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
12759 | # Look for .po and .gmo files in the source directory. |
12760 | CATALOGS= | |
12761 | XLINGUAS= | |
12762 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
12763 | # If there aren't any .gmo files the shell will give us the | |
12764 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
12765 | # weeded out. | |
12766 | case "$cat" in *\**) | |
12767 | continue;; | |
12768 | esac | |
12769 | # The quadruple backslash is collapsed to a double backslash | |
12770 | # by the backticks, then collapsed again by the double quotes, | |
12771 | # leaving us with one backslash in the sed expression (right | |
12772 | # before the dot that mustn't act as a wildcard). | |
12773 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
12774 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
12775 | # The user is allowed to set LINGUAS to a list of languages to | |
12776 | # install catalogs for. If it's empty that means "all of them." | |
12777 | if test "x$LINGUAS" = x; then | |
12778 | CATALOGS="$CATALOGS $cat" | |
12779 | XLINGUAS="$XLINGUAS $lang" | |
12780 | else | |
12781 | case "$LINGUAS" in *$lang*) | |
12782 | CATALOGS="$CATALOGS $cat" | |
12783 | XLINGUAS="$XLINGUAS $lang" | |
12784 | ;; | |
12785 | esac | |
12786 | fi | |
12787 | done | |
12788 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
12790 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
12791 | |
12792 | ||
12793 | DATADIRNAME=share | |
12794 | ||
12795 | INSTOBJEXT=.mo | |
12796 | ||
12797 | GENCAT=gencat | |
12798 | ||
12799 | CATOBJEXT=.gmo | |
12800 | ||
12801 | fi | |
12802 | ||
12803 | MKINSTALLDIRS= | |
12804 | if test -n "$ac_aux_dir"; then | |
12805 | case "$ac_aux_dir" in | |
12806 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
12807 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
12808 | esac | |
12809 | fi | |
12810 | if test -z "$MKINSTALLDIRS"; then | |
12811 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
12812 | fi | |
12813 | ||
12814 | ||
12815 | ||
81ecdfbb RW |
12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
12817 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
12818 | # Check whether --enable-nls was given. | |
12819 | if test "${enable_nls+set}" = set; then : | |
12820 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
12821 | else |
12822 | USE_NLS=yes | |
81ecdfbb RW |
12823 | fi |
12824 | ||
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
12826 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
12827 | |
12828 | ||
12829 | ||
12830 | ||
12831 | ||
12832 | ||
12833 | # Prepare PATH_SEPARATOR. | |
12834 | # The user is always right. | |
12835 | if test "${PATH_SEPARATOR+set}" != set; then | |
12836 | echo "#! /bin/sh" >conf$$.sh | |
12837 | echo "exit 0" >>conf$$.sh | |
12838 | chmod +x conf$$.sh | |
12839 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12840 | PATH_SEPARATOR=';' | |
13b2be9c | 12841 | else |
d7040cdb | 12842 | PATH_SEPARATOR=: |
13b2be9c | 12843 | fi |
d7040cdb | 12844 | rm -f conf$$.sh |
252b5132 | 12845 | fi |
13b2be9c | 12846 | |
d7040cdb SE |
12847 | # Find out how to test for executable files. Don't use a zero-byte file, |
12848 | # as systems may use methods other than mode bits to determine executability. | |
12849 | cat >conf$$.file <<_ASEOF | |
12850 | #! /bin/sh | |
12851 | exit 0 | |
12852 | _ASEOF | |
12853 | chmod +x conf$$.file | |
12854 | if test -x conf$$.file >/dev/null 2>&1; then | |
12855 | ac_executable_p="test -x" | |
12856 | else | |
12857 | ac_executable_p="test -f" | |
13b2be9c | 12858 | fi |
d7040cdb | 12859 | rm -f conf$$.file |
13b2be9c | 12860 | |
d7040cdb SE |
12861 | # Extract the first word of "msgfmt", so it can be a program name with args. |
12862 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
12863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12864 | $as_echo_n "checking for $ac_word... " >&6; } | |
12865 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
12866 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12867 | else |
d7040cdb SE |
12868 | case "$MSGFMT" in |
12869 | [\\/]* | ?:[\\/]*) | |
12870 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
12871 | ;; | |
12872 | *) | |
12873 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12874 | for ac_dir in $PATH; do | |
12875 | IFS="$ac_save_IFS" | |
12876 | test -z "$ac_dir" && ac_dir=. | |
12877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12878 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12879 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
12880 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12881 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
12882 | break 2 | |
12883 | fi | |
12884 | fi | |
12885 | done | |
12886 | done | |
12887 | IFS="$ac_save_IFS" | |
12888 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
12889 | ;; | |
12890 | esac | |
252b5132 | 12891 | fi |
d7040cdb SE |
12892 | MSGFMT="$ac_cv_path_MSGFMT" |
12893 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
12894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
12895 | $as_echo "$MSGFMT" >&6; } | |
252b5132 | 12896 | else |
81ecdfbb RW |
12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12898 | $as_echo "no" >&6; } | |
252b5132 | 12899 | fi |
252b5132 | 12900 | |
d7040cdb SE |
12901 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
12902 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12904 | $as_echo_n "checking for $ac_word... " >&6; } | |
12905 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
12906 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 12907 | else |
d7040cdb SE |
12908 | case $GMSGFMT in |
12909 | [\\/]* | ?:[\\/]*) | |
12910 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
12911 | ;; | |
12912 | *) | |
12913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12914 | for as_dir in $PATH | |
12915 | do | |
12916 | IFS=$as_save_IFS | |
12917 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12918 | for ac_exec_ext in '' $ac_executable_extensions; do |
12919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12920 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12922 | break 2 |
12923 | fi | |
12924 | done | |
81ecdfbb RW |
12925 | done |
12926 | IFS=$as_save_IFS | |
252b5132 | 12927 | |
d7040cdb SE |
12928 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
12929 | ;; | |
12930 | esac | |
12931 | fi | |
12932 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 12933 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
12934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
12935 | $as_echo "$GMSGFMT" >&6; } | |
ac48eca1 | 12936 | else |
81ecdfbb RW |
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12938 | $as_echo "no" >&6; } | |
6840198f | 12939 | fi |
6840198f | 12940 | |
13b2be9c | 12941 | |
20e95c23 | 12942 | |
81ecdfbb | 12943 | |
d7040cdb SE |
12944 | # Prepare PATH_SEPARATOR. |
12945 | # The user is always right. | |
12946 | if test "${PATH_SEPARATOR+set}" != set; then | |
12947 | echo "#! /bin/sh" >conf$$.sh | |
12948 | echo "exit 0" >>conf$$.sh | |
12949 | chmod +x conf$$.sh | |
12950 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12951 | PATH_SEPARATOR=';' | |
12952 | else | |
12953 | PATH_SEPARATOR=: | |
12954 | fi | |
12955 | rm -f conf$$.sh | |
12956 | fi | |
20e95c23 | 12957 | |
d7040cdb SE |
12958 | # Find out how to test for executable files. Don't use a zero-byte file, |
12959 | # as systems may use methods other than mode bits to determine executability. | |
12960 | cat >conf$$.file <<_ASEOF | |
12961 | #! /bin/sh | |
12962 | exit 0 | |
12963 | _ASEOF | |
12964 | chmod +x conf$$.file | |
12965 | if test -x conf$$.file >/dev/null 2>&1; then | |
12966 | ac_executable_p="test -x" | |
13b2be9c | 12967 | else |
d7040cdb | 12968 | ac_executable_p="test -f" |
13b2be9c | 12969 | fi |
d7040cdb | 12970 | rm -f conf$$.file |
20e95c23 | 12971 | |
d7040cdb SE |
12972 | # Extract the first word of "xgettext", so it can be a program name with args. |
12973 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12975 | $as_echo_n "checking for $ac_word... " >&6; } | |
12976 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
12977 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12978 | else |
d7040cdb SE |
12979 | case "$XGETTEXT" in |
12980 | [\\/]* | ?:[\\/]*) | |
12981 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12982 | ;; | |
12983 | *) | |
12984 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12985 | for ac_dir in $PATH; do | |
12986 | IFS="$ac_save_IFS" | |
12987 | test -z "$ac_dir" && ac_dir=. | |
12988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12989 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12990 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12991 | (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 | |
12992 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12993 | break 2 | |
12994 | fi | |
12995 | fi | |
12996 | done | |
12997 | done | |
12998 | IFS="$ac_save_IFS" | |
12999 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
13000 | ;; | |
13001 | esac | |
13b2be9c | 13002 | fi |
d7040cdb SE |
13003 | XGETTEXT="$ac_cv_path_XGETTEXT" |
13004 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
13006 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 13007 | else |
81ecdfbb RW |
13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13009 | $as_echo "no" >&6; } | |
13b2be9c | 13010 | fi |
13b2be9c | 13011 | |
d7040cdb | 13012 | rm -f messages.po |
20e95c23 | 13013 | |
13b2be9c | 13014 | |
d7040cdb SE |
13015 | # Prepare PATH_SEPARATOR. |
13016 | # The user is always right. | |
13017 | if test "${PATH_SEPARATOR+set}" != set; then | |
13018 | echo "#! /bin/sh" >conf$$.sh | |
13019 | echo "exit 0" >>conf$$.sh | |
13020 | chmod +x conf$$.sh | |
13021 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13022 | PATH_SEPARATOR=';' | |
13023 | else | |
13024 | PATH_SEPARATOR=: | |
13025 | fi | |
13026 | rm -f conf$$.sh | |
252b5132 | 13027 | fi |
20e95c23 | 13028 | |
d7040cdb SE |
13029 | # Find out how to test for executable files. Don't use a zero-byte file, |
13030 | # as systems may use methods other than mode bits to determine executability. | |
13031 | cat >conf$$.file <<_ASEOF | |
13032 | #! /bin/sh | |
13033 | exit 0 | |
13034 | _ASEOF | |
13035 | chmod +x conf$$.file | |
13036 | if test -x conf$$.file >/dev/null 2>&1; then | |
13037 | ac_executable_p="test -x" | |
252b5132 | 13038 | else |
d7040cdb SE |
13039 | ac_executable_p="test -f" |
13040 | fi | |
13041 | rm -f conf$$.file | |
20e95c23 | 13042 | |
d7040cdb SE |
13043 | # Extract the first word of "msgmerge", so it can be a program name with args. |
13044 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13046 | $as_echo_n "checking for $ac_word... " >&6; } | |
13047 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
13048 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 13049 | else |
d7040cdb SE |
13050 | case "$MSGMERGE" in |
13051 | [\\/]* | ?:[\\/]*) | |
13052 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
13053 | ;; | |
13054 | *) | |
13055 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
13056 | for ac_dir in $PATH; do | |
13057 | IFS="$ac_save_IFS" | |
13058 | test -z "$ac_dir" && ac_dir=. | |
13059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13060 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
13061 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
13062 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
13063 | break 2 | |
13064 | fi | |
13065 | fi | |
13066 | done | |
13067 | done | |
13068 | IFS="$ac_save_IFS" | |
13069 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
13070 | ;; | |
13071 | esac | |
20e95c23 | 13072 | fi |
d7040cdb SE |
13073 | MSGMERGE="$ac_cv_path_MSGMERGE" |
13074 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
13076 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 13077 | else |
81ecdfbb RW |
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13079 | $as_echo "no" >&6; } | |
20e95c23 | 13080 | fi |
252b5132 | 13081 | |
252b5132 | 13082 | |
d7040cdb SE |
13083 | if test "$GMSGFMT" != ":"; then |
13084 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
13085 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
13086 | : ; | |
13087 | else | |
13088 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
13090 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
13091 | GMSGFMT=":" |
13092 | fi | |
13093 | fi | |
13b2be9c | 13094 | |
d7040cdb SE |
13095 | if test "$XGETTEXT" != ":"; then |
13096 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
13097 | (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 | |
13098 | : ; | |
13099 | else | |
81ecdfbb RW |
13100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
13101 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
13102 | XGETTEXT=":" |
13103 | fi | |
13104 | rm -f messages.po | |
13105 | fi | |
252b5132 | 13106 | |
81ecdfbb | 13107 | ac_config_commands="$ac_config_commands default-1" |
13b2be9c | 13108 | |
13b2be9c | 13109 | |
81ecdfbb RW |
13110 | |
13111 | ||
13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
13113 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13114 | # Check whether --enable-maintainer-mode was given. | |
13115 | if test "${enable_maintainer_mode+set}" = set; then : | |
13116 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
9b2b7d69 | 13117 | else |
81ecdfbb | 13118 | USE_MAINTAINER_MODE=no |
13b2be9c | 13119 | fi |
13b2be9c | 13120 | |
81ecdfbb RW |
13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
13122 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
13123 | if test $USE_MAINTAINER_MODE = yes; then | |
13124 | MAINTAINER_MODE_TRUE= | |
13125 | MAINTAINER_MODE_FALSE='#' | |
13126 | else | |
13127 | MAINTAINER_MODE_TRUE='#' | |
13128 | MAINTAINER_MODE_FALSE= | |
13b2be9c | 13129 | fi |
13b2be9c | 13130 | |
81ecdfbb RW |
13131 | MAINT=$MAINTAINER_MODE_TRUE |
13132 | ||
13133 | ||
13134 | if false; then | |
13135 | GENINSRC_NEVER_TRUE= | |
13136 | GENINSRC_NEVER_FALSE='#' | |
13b2be9c | 13137 | else |
81ecdfbb RW |
13138 | GENINSRC_NEVER_TRUE='#' |
13139 | GENINSRC_NEVER_FALSE= | |
252b5132 | 13140 | fi |
13b2be9c | 13141 | |
81ecdfbb RW |
13142 | |
13143 | ||
b11d79f2 | 13144 | 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 |
13145 | do : |
13146 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13147 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
13148 | eval as_val=\$$as_ac_Header | |
13149 | if test "x$as_val" = x""yes; then : | |
13b2be9c | 13150 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 13151 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13b2be9c DJ |
13152 | _ACEOF |
13153 | ||
252b5132 | 13154 | fi |
13b2be9c | 13155 | |
252b5132 RH |
13156 | done |
13157 | ||
d6d788bd | 13158 | |
252b5132 RH |
13159 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
13160 | # people who are not cross-compiling but are compiling cross-assemblers. | |
81ecdfbb RW |
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5 |
13162 | $as_echo_n "checking whether compiling a cross-assembler... " >&6; } | |
252b5132 RH |
13163 | if test "${host}" = "${target}"; then |
13164 | cross_gas=no | |
13165 | else | |
13166 | cross_gas=yes | |
13b2be9c | 13167 | |
81ecdfbb | 13168 | $as_echo "#define CROSS_COMPILE 1" >>confdefs.h |
252b5132 RH |
13169 | |
13170 | fi | |
81ecdfbb RW |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5 |
13172 | $as_echo "$cross_gas" >&6; } | |
252b5132 RH |
13173 | |
13174 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
13175 | # for constant arguments. Useless! | |
81ecdfbb RW |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
13177 | $as_echo_n "checking for working alloca.h... " >&6; } | |
13178 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
13179 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13180 | else |
81ecdfbb | 13181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13182 | /* end confdefs.h. */ |
252b5132 | 13183 | #include <alloca.h> |
13b2be9c DJ |
13184 | int |
13185 | main () | |
13186 | { | |
13187 | char *p = (char *) alloca (2 * sizeof (int)); | |
81ecdfbb | 13188 | if (p) return 0; |
13b2be9c DJ |
13189 | ; |
13190 | return 0; | |
13191 | } | |
13192 | _ACEOF | |
81ecdfbb | 13193 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13194 | ac_cv_working_alloca_h=yes |
13195 | else | |
81ecdfbb | 13196 | ac_cv_working_alloca_h=no |
13b2be9c | 13197 | fi |
81ecdfbb RW |
13198 | rm -f core conftest.err conftest.$ac_objext \ |
13199 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13200 | fi |
81ecdfbb RW |
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
13202 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
13b2be9c DJ |
13203 | if test $ac_cv_working_alloca_h = yes; then |
13204 | ||
81ecdfbb | 13205 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
252b5132 RH |
13206 | |
13207 | fi | |
13208 | ||
81ecdfbb RW |
13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
13210 | $as_echo_n "checking for alloca... " >&6; } | |
13211 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
13212 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13213 | else |
81ecdfbb | 13214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13215 | /* end confdefs.h. */ |
252b5132 RH |
13216 | #ifdef __GNUC__ |
13217 | # define alloca __builtin_alloca | |
13218 | #else | |
13219 | # ifdef _MSC_VER | |
13220 | # include <malloc.h> | |
13221 | # define alloca _alloca | |
13222 | # else | |
81ecdfbb | 13223 | # ifdef HAVE_ALLOCA_H |
252b5132 RH |
13224 | # include <alloca.h> |
13225 | # else | |
13226 | # ifdef _AIX | |
13227 | #pragma alloca | |
13228 | # else | |
13229 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
13230 | char *alloca (); | |
13231 | # endif | |
13232 | # endif | |
13233 | # endif | |
13234 | # endif | |
13235 | #endif | |
13236 | ||
13b2be9c DJ |
13237 | int |
13238 | main () | |
13239 | { | |
13240 | char *p = (char *) alloca (1); | |
81ecdfbb | 13241 | if (p) return 0; |
13b2be9c DJ |
13242 | ; |
13243 | return 0; | |
13244 | } | |
13245 | _ACEOF | |
81ecdfbb | 13246 | if ac_fn_c_try_link "$LINENO"; then : |
252b5132 RH |
13247 | ac_cv_func_alloca_works=yes |
13248 | else | |
81ecdfbb | 13249 | ac_cv_func_alloca_works=no |
252b5132 | 13250 | fi |
81ecdfbb RW |
13251 | rm -f core conftest.err conftest.$ac_objext \ |
13252 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13253 | fi |
81ecdfbb RW |
13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
13255 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
252b5132 | 13256 | |
252b5132 | 13257 | if test $ac_cv_func_alloca_works = yes; then |
9b2b7d69 | 13258 | |
81ecdfbb | 13259 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
9b2b7d69 | 13260 | |
13b2be9c | 13261 | else |
c8615825 | 13262 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
13b2be9c DJ |
13263 | # that cause trouble. Some versions do not even contain alloca or |
13264 | # contain a buggy version. If you still want to use their alloca, | |
13265 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13266 | ||
81ecdfbb | 13267 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
13b2be9c | 13268 | |
81ecdfbb | 13269 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
252b5132 | 13270 | |
d6d788bd | 13271 | |
81ecdfbb RW |
13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
13273 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
13274 | if test "${ac_cv_os_cray+set}" = set; then : | |
13275 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13276 | else |
81ecdfbb | 13277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13278 | /* end confdefs.h. */ |
81ecdfbb | 13279 | #if defined CRAY && ! defined CRAY2 |
252b5132 RH |
13280 | webecray |
13281 | #else | |
13282 | wenotbecray | |
13283 | #endif | |
13284 | ||
13b2be9c | 13285 | _ACEOF |
252b5132 | 13286 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
81ecdfbb | 13287 | $EGREP "webecray" >/dev/null 2>&1; then : |
252b5132 RH |
13288 | ac_cv_os_cray=yes |
13289 | else | |
252b5132 RH |
13290 | ac_cv_os_cray=no |
13291 | fi | |
13292 | rm -f conftest* | |
13293 | ||
13294 | fi | |
81ecdfbb RW |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
13296 | $as_echo "$ac_cv_os_cray" >&6; } | |
252b5132 | 13297 | if test $ac_cv_os_cray = yes; then |
13b2be9c | 13298 | for ac_func in _getb67 GETB67 getb67; do |
81ecdfbb RW |
13299 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13300 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13301 | eval as_val=\$$as_ac_var | |
13302 | if test "x$as_val" = x""yes; then : | |
13b2be9c DJ |
13303 | |
13304 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 13305 | #define CRAY_STACKSEG_END $ac_func |
13b2be9c | 13306 | _ACEOF |
252b5132 | 13307 | |
13b2be9c | 13308 | break |
252b5132 RH |
13309 | fi |
13310 | ||
13b2be9c | 13311 | done |
252b5132 RH |
13312 | fi |
13313 | ||
81ecdfbb RW |
13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
13315 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
13316 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
13317 | $as_echo_n "(cached) " >&6 | |
252b5132 | 13318 | else |
81ecdfbb | 13319 | if test "$cross_compiling" = yes; then : |
252b5132 RH |
13320 | ac_cv_c_stack_direction=0 |
13321 | else | |
81ecdfbb | 13322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13323 | /* end confdefs.h. */ |
81ecdfbb | 13324 | $ac_includes_default |
13b2be9c | 13325 | int |
252b5132 RH |
13326 | find_stack_direction () |
13327 | { | |
13328 | static char *addr = 0; | |
13329 | auto char dummy; | |
13330 | if (addr == 0) | |
13331 | { | |
13332 | addr = &dummy; | |
13333 | return find_stack_direction (); | |
13334 | } | |
13335 | else | |
13336 | return (&dummy > addr) ? 1 : -1; | |
13337 | } | |
13b2be9c DJ |
13338 | |
13339 | int | |
252b5132 RH |
13340 | main () |
13341 | { | |
81ecdfbb | 13342 | return find_stack_direction () < 0; |
252b5132 | 13343 | } |
13b2be9c | 13344 | _ACEOF |
81ecdfbb | 13345 | if ac_fn_c_try_run "$LINENO"; then : |
252b5132 RH |
13346 | ac_cv_c_stack_direction=1 |
13347 | else | |
81ecdfbb | 13348 | ac_cv_c_stack_direction=-1 |
252b5132 | 13349 | fi |
81ecdfbb RW |
13350 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13351 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
252b5132 | 13352 | fi |
252b5132 | 13353 | |
81ecdfbb RW |
13354 | fi |
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
13356 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
13b2be9c | 13357 | cat >>confdefs.h <<_ACEOF |
252b5132 | 13358 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
13b2be9c DJ |
13359 | _ACEOF |
13360 | ||
252b5132 RH |
13361 | |
13362 | fi | |
13363 | ||
81ecdfbb RW |
13364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13365 | $as_echo_n "checking for inline... " >&6; } | |
13366 | if test "${ac_cv_c_inline+set}" = set; then : | |
13367 | $as_echo_n "(cached) " >&6 | |
252b5132 RH |
13368 | else |
13369 | ac_cv_c_inline=no | |
13370 | for ac_kw in inline __inline__ __inline; do | |
81ecdfbb | 13371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13372 | /* end confdefs.h. */ |
13373 | #ifndef __cplusplus | |
13374 | typedef int foo_t; | |
13375 | static $ac_kw foo_t static_foo () {return 0; } | |
13376 | $ac_kw foo_t foo () {return 0; } | |
13377 | #endif | |
252b5132 | 13378 | |
13b2be9c | 13379 | _ACEOF |
81ecdfbb RW |
13380 | if ac_fn_c_try_compile "$LINENO"; then : |
13381 | ac_cv_c_inline=$ac_kw | |
252b5132 | 13382 | fi |
81ecdfbb RW |
13383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13384 | test "$ac_cv_c_inline" != no && break | |
252b5132 RH |
13385 | done |
13386 | ||
13387 | fi | |
81ecdfbb RW |
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
13389 | $as_echo "$ac_cv_c_inline" >&6; } | |
ab509236 | 13390 | |
13b2be9c | 13391 | case $ac_cv_c_inline in |
252b5132 | 13392 | inline | yes) ;; |
ab509236 L |
13393 | *) |
13394 | case $ac_cv_c_inline in | |
13395 | no) ac_val=;; | |
13396 | *) ac_val=$ac_cv_c_inline;; | |
13397 | esac | |
13398 | cat >>confdefs.h <<_ACEOF | |
13399 | #ifndef __cplusplus | |
13400 | #define inline $ac_val | |
13401 | #endif | |
13b2be9c | 13402 | _ACEOF |
ab509236 | 13403 | ;; |
252b5132 RH |
13404 | esac |
13405 | ||
6840198f | 13406 | |
d6d788bd | 13407 | # VMS doesn't have unlink. |
252b5132 | 13408 | for ac_func in unlink remove |
81ecdfbb RW |
13409 | do : |
13410 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13411 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13412 | eval as_val=\$$as_ac_var | |
13413 | if test "x$as_val" = x""yes; then : | |
13b2be9c | 13414 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 13415 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
13b2be9c | 13416 | _ACEOF |
252b5132 | 13417 | break |
252b5132 RH |
13418 | fi |
13419 | done | |
13420 | ||
6840198f | 13421 | |
d6d788bd | 13422 | # Some systems don't have sbrk(). |
252b5132 | 13423 | for ac_func in sbrk |
81ecdfbb RW |
13424 | do : |
13425 | ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk" | |
13426 | if test "x$ac_cv_func_sbrk" = x""yes; then : | |
13b2be9c | 13427 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 13428 | #define HAVE_SBRK 1 |
13b2be9c | 13429 | _ACEOF |
252b5132 | 13430 | |
252b5132 RH |
13431 | fi |
13432 | done | |
13433 | ||
d6d788bd | 13434 | |
39bec121 TW |
13435 | # do we need the math library? |
13436 | case "${need_libm}" in | |
13b2be9c | 13437 | yes) |
39bec121 | 13438 | LIBM= |
f9c19112 | 13439 | case $host in |
3725885a | 13440 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) |
d7040cdb | 13441 | # These system don't have libm, or don't need it |
39bec121 TW |
13442 | ;; |
13443 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
13445 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
13446 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then : | |
13447 | $as_echo_n "(cached) " >&6 | |
39bec121 | 13448 | else |
13b2be9c | 13449 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13450 | LIBS="-lmw $LIBS" |
81ecdfbb | 13451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13452 | /* end confdefs.h. */ |
13453 | ||
81ecdfbb RW |
13454 | /* Override any GCC internal prototype to avoid an error. |
13455 | Use char because int might match the return type of a GCC | |
13456 | builtin and then its argument prototype would still apply. */ | |
13b2be9c DJ |
13457 | #ifdef __cplusplus |
13458 | extern "C" | |
13459 | #endif | |
13b2be9c DJ |
13460 | char _mwvalidcheckl (); |
13461 | int | |
13462 | main () | |
13463 | { | |
81ecdfbb | 13464 | return _mwvalidcheckl (); |
13b2be9c DJ |
13465 | ; |
13466 | return 0; | |
13467 | } | |
13468 | _ACEOF | |
81ecdfbb | 13469 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13470 | ac_cv_lib_mw__mwvalidcheckl=yes |
13471 | else | |
81ecdfbb | 13472 | ac_cv_lib_mw__mwvalidcheckl=no |
13b2be9c | 13473 | fi |
81ecdfbb RW |
13474 | rm -f core conftest.err conftest.$ac_objext \ |
13475 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13476 | LIBS=$ac_check_lib_save_LIBS |
13477 | fi | |
81ecdfbb RW |
13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
13479 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
13480 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then : | |
39bec121 | 13481 | LIBM="-lmw" |
39bec121 TW |
13482 | fi |
13483 | ||
81ecdfbb RW |
13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13485 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13486 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
13487 | $as_echo_n "(cached) " >&6 | |
39bec121 | 13488 | else |
13b2be9c | 13489 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13490 | LIBS="-lm $LIBS" |
81ecdfbb | 13491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13492 | /* end confdefs.h. */ |
39bec121 | 13493 | |
81ecdfbb RW |
13494 | /* Override any GCC internal prototype to avoid an error. |
13495 | Use char because int might match the return type of a GCC | |
13496 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
13497 | #ifdef __cplusplus |
13498 | extern "C" | |
13499 | #endif | |
d7040cdb | 13500 | char cos (); |
13b2be9c DJ |
13501 | int |
13502 | main () | |
13503 | { | |
81ecdfbb | 13504 | return cos (); |
13b2be9c DJ |
13505 | ; |
13506 | return 0; | |
13507 | } | |
13508 | _ACEOF | |
81ecdfbb | 13509 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13510 | ac_cv_lib_m_cos=yes |
13b2be9c | 13511 | else |
81ecdfbb | 13512 | ac_cv_lib_m_cos=no |
13b2be9c | 13513 | fi |
81ecdfbb RW |
13514 | rm -f core conftest.err conftest.$ac_objext \ |
13515 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13516 | LIBS=$ac_check_lib_save_LIBS |
13517 | fi | |
81ecdfbb RW |
13518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
13519 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13520 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
39bec121 | 13521 | LIBM="$LIBM -lm" |
39bec121 TW |
13522 | fi |
13523 | ||
13524 | ;; | |
13525 | *) | |
81ecdfbb RW |
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13527 | $as_echo_n "checking for cos in -lm... " >&6; } | |
13528 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
13529 | $as_echo_n "(cached) " >&6 | |
39bec121 | 13530 | else |
13b2be9c | 13531 | ac_check_lib_save_LIBS=$LIBS |
39bec121 | 13532 | LIBS="-lm $LIBS" |
81ecdfbb | 13533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13534 | /* end confdefs.h. */ |
39bec121 | 13535 | |
81ecdfbb RW |
13536 | /* Override any GCC internal prototype to avoid an error. |
13537 | Use char because int might match the return type of a GCC | |
13538 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
13539 | #ifdef __cplusplus |
13540 | extern "C" | |
13541 | #endif | |
d7040cdb | 13542 | char cos (); |
13b2be9c DJ |
13543 | int |
13544 | main () | |
13545 | { | |
81ecdfbb | 13546 | return cos (); |
13b2be9c DJ |
13547 | ; |
13548 | return 0; | |
13549 | } | |
13550 | _ACEOF | |
81ecdfbb | 13551 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 13552 | ac_cv_lib_m_cos=yes |
13b2be9c | 13553 | else |
81ecdfbb | 13554 | ac_cv_lib_m_cos=no |
13b2be9c | 13555 | fi |
81ecdfbb RW |
13556 | rm -f core conftest.err conftest.$ac_objext \ |
13557 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c DJ |
13558 | LIBS=$ac_check_lib_save_LIBS |
13559 | fi | |
81ecdfbb RW |
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
13561 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
13562 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
39bec121 | 13563 | LIBM="-lm" |
39bec121 TW |
13564 | fi |
13565 | ||
13566 | ;; | |
13567 | esac | |
13568 | ||
13b2be9c | 13569 | |
d7040cdb | 13570 | |
39bec121 TW |
13571 | ;; |
13572 | esac | |
13573 | ||
252b5132 RH |
13574 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
13575 | # enough, but on some of those systems, the assert macro relies on requoting | |
13576 | # working properly! | |
81ecdfbb RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5 |
13578 | $as_echo_n "checking for working assert macro... " >&6; } | |
13579 | if test "${gas_cv_assert_ok+set}" = set; then : | |
13580 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13581 | else |
81ecdfbb | 13582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13583 | /* end confdefs.h. */ |
252b5132 RH |
13584 | #include <assert.h> |
13585 | #include <stdio.h> | |
13b2be9c DJ |
13586 | int |
13587 | main () | |
13588 | { | |
252b5132 RH |
13589 | |
13590 | /* check for requoting problems */ | |
13591 | static int a, b, c, d; | |
13592 | static char *s; | |
13593 | assert (!strcmp(s, "foo bar baz quux")); | |
13594 | /* check for newline handling */ | |
13595 | assert (a == b | |
13596 | || c == d); | |
13597 | ||
13b2be9c DJ |
13598 | ; |
13599 | return 0; | |
81ecdfbb RW |
13600 | } |
13601 | _ACEOF | |
13602 | if ac_fn_c_try_link "$LINENO"; then : | |
252b5132 RH |
13603 | gas_cv_assert_ok=yes |
13604 | else | |
81ecdfbb | 13605 | gas_cv_assert_ok=no |
252b5132 | 13606 | fi |
81ecdfbb RW |
13607 | rm -f core conftest.err conftest.$ac_objext \ |
13608 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13609 | fi |
81ecdfbb RW |
13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5 |
13611 | $as_echo "$gas_cv_assert_ok" >&6; } | |
13b2be9c | 13612 | test $gas_cv_assert_ok = yes || |
81ecdfbb | 13613 | $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h |
252b5132 | 13614 | |
d6d788bd L |
13615 | |
13616 | ||
252b5132 RH |
13617 | # On some systems, the system header files may not declare malloc, realloc, |
13618 | # and free. There are places where gas needs these functions to have been | |
13619 | # declared -- such as when taking their addresses. | |
13620 | gas_test_headers=" | |
13621 | #ifdef HAVE_MEMORY_H | |
13622 | #include <memory.h> | |
13623 | #endif | |
13624 | #ifdef HAVE_STRING_H | |
13625 | #include <string.h> | |
13626 | #else | |
13627 | #ifdef HAVE_STRINGS_H | |
13628 | #include <strings.h> | |
13629 | #endif | |
13630 | #endif | |
13631 | #ifdef HAVE_STDLIB_H | |
13632 | #include <stdlib.h> | |
13633 | #endif | |
13634 | #ifdef HAVE_UNISTD_H | |
13635 | #include <unistd.h> | |
13636 | #endif | |
13637 | " | |
13638 | ||
e8a38df5 AL |
13639 | # Does errno.h declare errno, or do we have to add a separate declaration |
13640 | # for it? | |
13641 | ||
81ecdfbb RW |
13642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5 |
13643 | $as_echo_n "checking whether declaration is required for errno... " >&6; } | |
13644 | if test "${gas_cv_decl_needed_errno+set}" = set; then : | |
13645 | $as_echo_n "(cached) " >&6 | |
e8a38df5 | 13646 | else |
81ecdfbb | 13647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a38df5 AL |
13648 | /* end confdefs.h. */ |
13649 | ||
13650 | #ifdef HAVE_ERRNO_H | |
13651 | #include <errno.h> | |
13652 | #endif | |
13653 | ||
13654 | int | |
13655 | main () | |
13656 | { | |
13657 | ||
13658 | typedef int f; | |
13659 | f x; | |
13660 | x = (f) errno; | |
13661 | ||
13662 | ; | |
13663 | return 0; | |
13664 | } | |
13665 | _ACEOF | |
81ecdfbb | 13666 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 AL |
13667 | gas_cv_decl_needed_errno=no |
13668 | else | |
81ecdfbb | 13669 | gas_cv_decl_needed_errno=yes |
e8a38df5 | 13670 | fi |
81ecdfbb RW |
13671 | rm -f core conftest.err conftest.$ac_objext \ |
13672 | conftest$ac_exeext conftest.$ac_ext | |
e8a38df5 | 13673 | fi |
81ecdfbb RW |
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5 |
13675 | $as_echo "$gas_cv_decl_needed_errno" >&6; } | |
e8a38df5 AL |
13676 | if test $gas_cv_decl_needed_errno = yes; then |
13677 | ||
81ecdfbb | 13678 | $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h |
e8a38df5 AL |
13679 | |
13680 | fi | |
13681 | ||
13682 | ||
81ecdfbb RW |
13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
13684 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
13685 | if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then : | |
13686 | $as_echo_n "(cached) " >&6 | |
56f36663 | 13687 | else |
81ecdfbb | 13688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
56f36663 NC |
13689 | /* end confdefs.h. */ |
13690 | #include <unistd.h> | |
13691 | int | |
13692 | main () | |
13693 | { | |
13694 | extern int getopt (int, char *const*, const char *); | |
13695 | ; | |
13696 | return 0; | |
13697 | } | |
13698 | _ACEOF | |
81ecdfbb | 13699 | if ac_fn_c_try_compile "$LINENO"; then : |
56f36663 NC |
13700 | gas_cv_decl_getopt_unistd_h=yes |
13701 | else | |
81ecdfbb | 13702 | gas_cv_decl_getopt_unistd_h=no |
56f36663 | 13703 | fi |
81ecdfbb | 13704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
56f36663 NC |
13705 | fi |
13706 | ||
81ecdfbb RW |
13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5 |
13708 | $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; } | |
56f36663 NC |
13709 | if test $gas_cv_decl_getopt_unistd_h = yes; then |
13710 | ||
81ecdfbb | 13711 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
56f36663 NC |
13712 | |
13713 | fi | |
13714 | ||
e8a38df5 | 13715 | |
81ecdfbb RW |
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5 |
13717 | $as_echo_n "checking whether declaration is required for environ... " >&6; } | |
13718 | if test "${gas_cv_decl_needed_environ+set}" = set; then : | |
13719 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13720 | else |
81ecdfbb | 13721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13722 | /* end confdefs.h. */ |
252b5132 | 13723 | $gas_test_headers |
13b2be9c DJ |
13724 | int |
13725 | main () | |
13726 | { | |
252b5132 | 13727 | |
e8a38df5 | 13728 | typedef char **f; |
252b5132 | 13729 | f x; |
e8a38df5 | 13730 | x = (f) environ; |
252b5132 | 13731 | |
13b2be9c DJ |
13732 | ; |
13733 | return 0; | |
13734 | } | |
13735 | _ACEOF | |
81ecdfbb | 13736 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13737 | gas_cv_decl_needed_environ=no |
252b5132 | 13738 | else |
81ecdfbb | 13739 | gas_cv_decl_needed_environ=yes |
252b5132 | 13740 | fi |
81ecdfbb RW |
13741 | rm -f core conftest.err conftest.$ac_objext \ |
13742 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13743 | fi |
81ecdfbb RW |
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5 |
13745 | $as_echo "$gas_cv_decl_needed_environ" >&6; } | |
e8a38df5 | 13746 | if test $gas_cv_decl_needed_environ = yes; then |
13b2be9c | 13747 | |
81ecdfbb | 13748 | $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h |
13b2be9c DJ |
13749 | |
13750 | fi | |
13751 | ||
13752 | ||
81ecdfbb RW |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5 |
13754 | $as_echo_n "checking whether declaration is required for ffs... " >&6; } | |
13755 | if test "${gas_cv_decl_needed_ffs+set}" = set; then : | |
13756 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13757 | else |
81ecdfbb | 13758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13759 | /* end confdefs.h. */ |
13760 | $gas_test_headers | |
13761 | int | |
13762 | main () | |
13763 | { | |
13764 | ||
e8a38df5 | 13765 | typedef int (*f)(int); |
13b2be9c | 13766 | f x; |
e8a38df5 | 13767 | x = (f) ffs; |
13b2be9c DJ |
13768 | |
13769 | ; | |
13770 | return 0; | |
13771 | } | |
13772 | _ACEOF | |
81ecdfbb | 13773 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13774 | gas_cv_decl_needed_ffs=no |
13b2be9c | 13775 | else |
81ecdfbb | 13776 | gas_cv_decl_needed_ffs=yes |
13b2be9c | 13777 | fi |
81ecdfbb RW |
13778 | rm -f core conftest.err conftest.$ac_objext \ |
13779 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13780 | fi |
81ecdfbb RW |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5 |
13782 | $as_echo "$gas_cv_decl_needed_ffs" >&6; } | |
e8a38df5 | 13783 | if test $gas_cv_decl_needed_ffs = yes; then |
13b2be9c | 13784 | |
81ecdfbb | 13785 | $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h |
13b2be9c DJ |
13786 | |
13787 | fi | |
13788 | ||
13789 | ||
81ecdfbb RW |
13790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5 |
13791 | $as_echo_n "checking whether declaration is required for free... " >&6; } | |
13792 | if test "${gas_cv_decl_needed_free+set}" = set; then : | |
13793 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13794 | else |
81ecdfbb | 13795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13796 | /* end confdefs.h. */ |
13797 | $gas_test_headers | |
13798 | int | |
13799 | main () | |
13800 | { | |
13801 | ||
13802 | typedef void (*f)(); | |
13803 | f x; | |
13804 | x = (f) free; | |
13805 | ||
13806 | ; | |
13807 | return 0; | |
13808 | } | |
13809 | _ACEOF | |
81ecdfbb | 13810 | if ac_fn_c_try_link "$LINENO"; then : |
13b2be9c DJ |
13811 | gas_cv_decl_needed_free=no |
13812 | else | |
81ecdfbb | 13813 | gas_cv_decl_needed_free=yes |
13b2be9c | 13814 | fi |
81ecdfbb RW |
13815 | rm -f core conftest.err conftest.$ac_objext \ |
13816 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13817 | fi |
81ecdfbb RW |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5 |
13819 | $as_echo "$gas_cv_decl_needed_free" >&6; } | |
13b2be9c DJ |
13820 | if test $gas_cv_decl_needed_free = yes; then |
13821 | ||
81ecdfbb | 13822 | $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h |
13b2be9c DJ |
13823 | |
13824 | fi | |
13825 | ||
13826 | ||
81ecdfbb RW |
13827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5 |
13828 | $as_echo_n "checking whether declaration is required for malloc... " >&6; } | |
13829 | if test "${gas_cv_decl_needed_malloc+set}" = set; then : | |
13830 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13831 | else |
81ecdfbb | 13832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13833 | /* end confdefs.h. */ |
13834 | $gas_test_headers | |
13835 | int | |
13836 | main () | |
13837 | { | |
13838 | ||
13839 | typedef char *(*f)(); | |
13840 | f x; | |
e8a38df5 | 13841 | x = (f) malloc; |
13b2be9c DJ |
13842 | |
13843 | ; | |
13844 | return 0; | |
13845 | } | |
13846 | _ACEOF | |
81ecdfbb | 13847 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13848 | gas_cv_decl_needed_malloc=no |
13b2be9c | 13849 | else |
81ecdfbb | 13850 | gas_cv_decl_needed_malloc=yes |
13b2be9c | 13851 | fi |
81ecdfbb RW |
13852 | rm -f core conftest.err conftest.$ac_objext \ |
13853 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13854 | fi |
81ecdfbb RW |
13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5 |
13856 | $as_echo "$gas_cv_decl_needed_malloc" >&6; } | |
e8a38df5 | 13857 | if test $gas_cv_decl_needed_malloc = yes; then |
13b2be9c | 13858 | |
81ecdfbb | 13859 | $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h |
13b2be9c DJ |
13860 | |
13861 | fi | |
13862 | ||
13863 | ||
81ecdfbb RW |
13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5 |
13865 | $as_echo_n "checking whether declaration is required for sbrk... " >&6; } | |
13866 | if test "${gas_cv_decl_needed_sbrk+set}" = set; then : | |
13867 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13868 | else |
81ecdfbb | 13869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c DJ |
13870 | /* end confdefs.h. */ |
13871 | $gas_test_headers | |
13872 | int | |
13873 | main () | |
13874 | { | |
13875 | ||
e8a38df5 | 13876 | typedef char *(*f)(); |
13b2be9c | 13877 | f x; |
e8a38df5 | 13878 | x = (f) sbrk; |
13b2be9c DJ |
13879 | |
13880 | ; | |
13881 | return 0; | |
13882 | } | |
13883 | _ACEOF | |
81ecdfbb | 13884 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13885 | gas_cv_decl_needed_sbrk=no |
13b2be9c | 13886 | else |
81ecdfbb | 13887 | gas_cv_decl_needed_sbrk=yes |
13b2be9c | 13888 | fi |
81ecdfbb RW |
13889 | rm -f core conftest.err conftest.$ac_objext \ |
13890 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13891 | fi |
81ecdfbb RW |
13892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5 |
13893 | $as_echo "$gas_cv_decl_needed_sbrk" >&6; } | |
e8a38df5 | 13894 | if test $gas_cv_decl_needed_sbrk = yes; then |
13b2be9c | 13895 | |
81ecdfbb | 13896 | $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h |
13b2be9c DJ |
13897 | |
13898 | fi | |
13899 | ||
13900 | ||
81ecdfbb RW |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5 |
13902 | $as_echo_n "checking whether declaration is required for strstr... " >&6; } | |
13903 | if test "${gas_cv_decl_needed_strstr+set}" = set; then : | |
13904 | $as_echo_n "(cached) " >&6 | |
13b2be9c | 13905 | else |
81ecdfbb | 13906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13b2be9c | 13907 | /* end confdefs.h. */ |
e8a38df5 | 13908 | $gas_test_headers |
13b2be9c DJ |
13909 | int |
13910 | main () | |
13911 | { | |
13912 | ||
e8a38df5 | 13913 | typedef char *(*f)(); |
13b2be9c | 13914 | f x; |
e8a38df5 | 13915 | x = (f) strstr; |
13b2be9c DJ |
13916 | |
13917 | ; | |
13918 | return 0; | |
13919 | } | |
13920 | _ACEOF | |
81ecdfbb | 13921 | if ac_fn_c_try_link "$LINENO"; then : |
e8a38df5 | 13922 | gas_cv_decl_needed_strstr=no |
13b2be9c | 13923 | else |
81ecdfbb | 13924 | gas_cv_decl_needed_strstr=yes |
13b2be9c | 13925 | fi |
81ecdfbb RW |
13926 | rm -f core conftest.err conftest.$ac_objext \ |
13927 | conftest$ac_exeext conftest.$ac_ext | |
13b2be9c | 13928 | fi |
81ecdfbb RW |
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5 |
13930 | $as_echo "$gas_cv_decl_needed_strstr" >&6; } | |
e8a38df5 | 13931 | if test $gas_cv_decl_needed_strstr = yes; then |
13b2be9c | 13932 | |
81ecdfbb | 13933 | $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h |
13b2be9c DJ |
13934 | |
13935 | fi | |
13936 | ||
13937 | ||
0175442d L |
13938 | ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default" |
13939 | if test "x$ac_cv_have_decl_mempcpy" = x""yes; then : | |
13940 | ac_have_decl=1 | |
13941 | else | |
13942 | ac_have_decl=0 | |
13943 | fi | |
13944 | ||
13945 | cat >>confdefs.h <<_ACEOF | |
13946 | #define HAVE_DECL_MEMPCPY $ac_have_decl | |
13947 | _ACEOF | |
13948 | ||
81ecdfbb RW |
13949 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" |
13950 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
13951 | ac_have_decl=1 | |
6d74f28b | 13952 | else |
81ecdfbb | 13953 | ac_have_decl=0 |
6d74f28b | 13954 | fi |
6d74f28b EB |
13955 | |
13956 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 13957 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
6d74f28b EB |
13958 | _ACEOF |
13959 | ||
13960 | ||
13b2be9c | 13961 | |
c973bc5c NC |
13962 | case "${host}" in |
13963 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
13964 | ||
81ecdfbb | 13965 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
c973bc5c NC |
13966 | ;; |
13967 | esac | |
13968 | ||
b11d79f2 TG |
13969 | # Support for VMS timestamps via cross compile |
13970 | ||
13971 | if test "$ac_cv_header_time_h" = yes; then | |
13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5 | |
13973 | $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; } | |
13974 | if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then : | |
13975 | $as_echo_n "(cached) " >&6 | |
13976 | else | |
13977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13978 | /* end confdefs.h. */ | |
13979 | ||
13980 | #define _BSD_SOURCE 1 | |
13981 | #include <time.h> | |
13982 | int | |
13983 | main () | |
13984 | { | |
13985 | struct tm avar; void* aref = (void*) &avar.tm_gmtoff | |
13986 | ; | |
13987 | return 0; | |
13988 | } | |
13989 | _ACEOF | |
13990 | if ac_fn_c_try_compile "$LINENO"; then : | |
13991 | gas_cv_have_time_type_member_tm_gmtoff=yes | |
13992 | else | |
13993 | gas_cv_have_time_type_member_tm_gmtoff=no | |
13994 | ||
13995 | fi | |
13996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13997 | fi | |
13998 | ||
13999 | if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then | |
14000 | ||
14001 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
14002 | ||
14003 | fi | |
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5 | |
14005 | $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; } | |
14006 | ||
14007 | fi | |
14008 | ||
14009 | if test "$ac_cv_header_sys_stat_h" = yes; then | |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5 | |
14011 | $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; } | |
14012 | if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then : | |
14013 | $as_echo_n "(cached) " >&6 | |
14014 | else | |
14015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14016 | /* end confdefs.h. */ | |
14017 | ||
14018 | #define _BSD_SOURCE 1 | |
14019 | #include <sys/stat.h> | |
14020 | int | |
14021 | main () | |
14022 | { | |
14023 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec | |
14024 | ; | |
14025 | return 0; | |
14026 | } | |
14027 | _ACEOF | |
14028 | if ac_fn_c_try_compile "$LINENO"; then : | |
14029 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes | |
14030 | else | |
14031 | gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no | |
14032 | ||
14033 | fi | |
14034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14035 | fi | |
14036 | ||
14037 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then | |
14038 | ||
14039 | $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h | |
14040 | ||
14041 | fi | |
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5 | |
14043 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; } | |
14044 | ||
14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5 | |
14046 | $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; } | |
14047 | if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then : | |
14048 | $as_echo_n "(cached) " >&6 | |
14049 | else | |
14050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14051 | /* end confdefs.h. */ | |
14052 | ||
14053 | #define _BSD_SOURCE 1 | |
14054 | #include <sys/stat.h> | |
14055 | int | |
14056 | main () | |
14057 | { | |
14058 | struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec | |
14059 | ; | |
14060 | return 0; | |
14061 | } | |
14062 | _ACEOF | |
14063 | if ac_fn_c_try_compile "$LINENO"; then : | |
14064 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes | |
14065 | else | |
14066 | gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no | |
14067 | ||
14068 | fi | |
14069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14070 | fi | |
14071 | ||
14072 | if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then | |
14073 | ||
14074 | $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h | |
14075 | ||
14076 | fi | |
14077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5 | |
14078 | $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; } | |
14079 | ||
14080 | fi | |
14081 | ||
14082 | ||
c973bc5c | 14083 | |
13b2be9c | 14084 | |
108a6f8e CD |
14085 | |
14086 | ||
14087 | ||
14088 | ||
31dd3154 | 14089 | |
81ecdfbb | 14090 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
13b2be9c | 14091 | |
81ecdfbb | 14092 | ac_config_commands="$ac_config_commands default" |
13b2be9c DJ |
14093 | |
14094 | ||
14095 | cat >confcache <<\_ACEOF | |
14096 | # This file is a shell script that caches the results of configure | |
14097 | # tests run on this system so they can be shared between configure | |
14098 | # scripts and configure runs, see configure's option --config-cache. | |
14099 | # It is not useful on other systems. If it contains results you don't | |
14100 | # want to keep, you may remove or edit it. | |
14101 | # | |
14102 | # config.status only pays attention to the cache file if you give it | |
14103 | # the --recheck option to rerun configure. | |
14104 | # | |
14105 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14106 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14107 | # following values. | |
14108 | ||
14109 | _ACEOF | |
14110 | ||
14111 | # The following way of writing the cache mishandles newlines in values, | |
14112 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14113 | # So, we kill variables containing newlines. |
13b2be9c DJ |
14114 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14115 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14116 | ( |
14117 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14118 | eval ac_val=\$$ac_var | |
14119 | case $ac_val in #( | |
14120 | *${as_nl}*) | |
14121 | case $ac_var in #( | |
14122 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14123 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14124 | esac | |
14125 | case $ac_var in #( | |
14126 | _ | IFS | as_nl) ;; #( | |
14127 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14128 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14129 | esac ;; | |
14130 | esac | |
14131 | done | |
14132 | ||
13b2be9c | 14133 | (set) 2>&1 | |
81ecdfbb RW |
14134 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14135 | *${as_nl}ac_space=\ *) | |
14136 | # `set' does not quote correctly, so add quotes: double-quote | |
14137 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13b2be9c | 14138 | sed -n \ |
ab509236 L |
14139 | "s/'/'\\\\''/g; |
14140 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14141 | ;; #( |
13b2be9c DJ |
14142 | *) |
14143 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14144 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13b2be9c | 14145 | ;; |
81ecdfbb RW |
14146 | esac | |
14147 | sort | |
14148 | ) | | |
13b2be9c | 14149 | sed ' |
81ecdfbb | 14150 | /^ac_cv_env_/b end |
13b2be9c | 14151 | t clear |
81ecdfbb | 14152 | :clear |
13b2be9c DJ |
14153 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14154 | t end | |
81ecdfbb RW |
14155 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14156 | :end' >>confcache | |
14157 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14158 | if test -w "$cache_file"; then | |
14159 | test "x$cache_file" != "x/dev/null" && | |
14160 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14161 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
13b2be9c DJ |
14162 | cat confcache >$cache_file |
14163 | else | |
81ecdfbb RW |
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14165 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13b2be9c DJ |
14166 | fi |
14167 | fi | |
14168 | rm -f confcache | |
14169 | ||
14170 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14171 | # Let make expand exec_prefix. | |
14172 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14173 | ||
13b2be9c DJ |
14174 | DEFS=-DHAVE_CONFIG_H |
14175 | ||
14176 | ac_libobjs= | |
14177 | ac_ltlibobjs= | |
14178 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14179 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14180 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14181 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14182 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14183 | # will be set to the directory where LIBOBJS objects are built. | |
14184 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14185 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13b2be9c DJ |
14186 | done |
14187 | LIBOBJS=$ac_libobjs | |
14188 | ||
14189 | LTLIBOBJS=$ac_ltlibobjs | |
14190 | ||
14191 | ||
14192 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
14193 | as_fn_error "conditional \"AMDEP\" was never defined. |
14194 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13b2be9c DJ |
14195 | fi |
14196 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
14197 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
14198 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14199 | fi | |
14200 | if test -n "$EXEEXT"; then | |
14201 | am__EXEEXT_TRUE= | |
14202 | am__EXEEXT_FALSE='#' | |
14203 | else | |
14204 | am__EXEEXT_TRUE='#' | |
14205 | am__EXEEXT_FALSE= | |
13b2be9c | 14206 | fi |
81ecdfbb RW |
14207 | |
14208 | ||
13b2be9c | 14209 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
14210 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
14211 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13b2be9c | 14212 | fi |
d5fbea21 | 14213 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
14214 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
14215 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 14216 | fi |
13b2be9c DJ |
14217 | |
14218 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14219 | ac_write_fail=0 |
13b2be9c DJ |
14220 | ac_clean_files_save=$ac_clean_files |
14221 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14222 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14223 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14224 | as_write_fail=0 | |
14225 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13b2be9c DJ |
14226 | #! $SHELL |
14227 | # Generated by $as_me. | |
14228 | # Run this file to recreate the current configuration. | |
14229 | # Compiler output produced by configure, useful for debugging | |
14230 | # configure, is in config.log if it exists. | |
14231 | ||
14232 | debug=false | |
14233 | ac_cs_recheck=false | |
14234 | ac_cs_silent=false | |
13b2be9c | 14235 | |
81ecdfbb RW |
14236 | SHELL=\${CONFIG_SHELL-$SHELL} |
14237 | export SHELL | |
14238 | _ASEOF | |
14239 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14240 | ## -------------------- ## | |
14241 | ## M4sh Initialization. ## | |
14242 | ## -------------------- ## | |
13b2be9c | 14243 | |
81ecdfbb RW |
14244 | # Be more Bourne compatible |
14245 | DUALCASE=1; export DUALCASE # for MKS sh | |
14246 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13b2be9c DJ |
14247 | emulate sh |
14248 | NULLCMD=: | |
81ecdfbb | 14249 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13b2be9c DJ |
14250 | # is contrary to our usage. Disable this feature. |
14251 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14252 | setopt NO_GLOB_SUBST |
14253 | else | |
14254 | case `(set -o) 2>/dev/null` in #( | |
14255 | *posix*) : | |
14256 | set -o posix ;; #( | |
14257 | *) : | |
14258 | ;; | |
14259 | esac | |
13b2be9c DJ |
14260 | fi |
14261 | ||
81ecdfbb RW |
14262 | |
14263 | as_nl=' | |
14264 | ' | |
14265 | export as_nl | |
14266 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14267 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14268 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14269 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14270 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14271 | # but without wasting forks for bash or zsh. | |
14272 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14273 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14274 | as_echo='print -r --' | |
14275 | as_echo_n='print -rn --' | |
14276 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14277 | as_echo='printf %s\n' | |
14278 | as_echo_n='printf %s' | |
14279 | else | |
14280 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14281 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14282 | as_echo_n='/usr/ucb/echo -n' | |
14283 | else | |
14284 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14285 | as_echo_n_body='eval | |
14286 | arg=$1; | |
14287 | case $arg in #( | |
14288 | *"$as_nl"*) | |
14289 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14290 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14291 | esac; | |
14292 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14293 | ' | |
14294 | export as_echo_n_body | |
14295 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14296 | fi | |
14297 | export as_echo_body | |
14298 | as_echo='sh -c $as_echo_body as_echo' | |
13b2be9c DJ |
14299 | fi |
14300 | ||
81ecdfbb RW |
14301 | # The user is always right. |
14302 | if test "${PATH_SEPARATOR+set}" != set; then | |
14303 | PATH_SEPARATOR=: | |
14304 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14305 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14306 | PATH_SEPARATOR=';' | |
14307 | } | |
14308 | fi | |
14309 | ||
14310 | ||
14311 | # IFS | |
14312 | # We need space, tab and new line, in precisely that order. Quoting is | |
14313 | # there to prevent editors from complaining about space-tab. | |
14314 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14315 | # splitting by setting IFS to empty value.) | |
14316 | IFS=" "" $as_nl" | |
14317 | ||
14318 | # Find who we are. Look in the path if we contain no directory separator. | |
14319 | case $0 in #(( | |
14320 | *[\\/]* ) as_myself=$0 ;; | |
14321 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14322 | for as_dir in $PATH | |
14323 | do | |
14324 | IFS=$as_save_IFS | |
14325 | test -z "$as_dir" && as_dir=. | |
14326 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14327 | done | |
14328 | IFS=$as_save_IFS | |
14329 | ||
14330 | ;; | |
14331 | esac | |
14332 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14333 | # in which case we are not to be found in the path. | |
14334 | if test "x$as_myself" = x; then | |
14335 | as_myself=$0 | |
14336 | fi | |
14337 | if test ! -f "$as_myself"; then | |
14338 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14339 | exit 1 | |
14340 | fi | |
13b2be9c | 14341 | |
81ecdfbb RW |
14342 | # Unset variables that we do not need and which cause bugs (e.g. in |
14343 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14344 | # suppresses any "Segmentation fault" message there. '((' could | |
14345 | # trigger a bug in pdksh 5.2.14. | |
14346 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14347 | do eval test x\${$as_var+set} = xset \ | |
14348 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14349 | done | |
13b2be9c DJ |
14350 | PS1='$ ' |
14351 | PS2='> ' | |
14352 | PS4='+ ' | |
14353 | ||
14354 | # NLS nuisances. | |
81ecdfbb RW |
14355 | LC_ALL=C |
14356 | export LC_ALL | |
14357 | LANGUAGE=C | |
14358 | export LANGUAGE | |
14359 | ||
14360 | # CDPATH. | |
14361 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14362 | ||
14363 | ||
14364 | # as_fn_error ERROR [LINENO LOG_FD] | |
14365 | # --------------------------------- | |
14366 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14367 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14368 | # script with status $?, using 1 if that was 0. | |
14369 | as_fn_error () | |
14370 | { | |
14371 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14372 | if test "$3"; then | |
14373 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14374 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
13b2be9c | 14375 | fi |
81ecdfbb RW |
14376 | $as_echo "$as_me: error: $1" >&2 |
14377 | as_fn_exit $as_status | |
14378 | } # as_fn_error | |
14379 | ||
14380 | ||
14381 | # as_fn_set_status STATUS | |
14382 | # ----------------------- | |
14383 | # Set $? to STATUS, without forking. | |
14384 | as_fn_set_status () | |
14385 | { | |
14386 | return $1 | |
14387 | } # as_fn_set_status | |
14388 | ||
14389 | # as_fn_exit STATUS | |
14390 | # ----------------- | |
14391 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14392 | as_fn_exit () | |
14393 | { | |
14394 | set +e | |
14395 | as_fn_set_status $1 | |
14396 | exit $1 | |
14397 | } # as_fn_exit | |
14398 | ||
14399 | # as_fn_unset VAR | |
14400 | # --------------- | |
14401 | # Portably unset VAR. | |
14402 | as_fn_unset () | |
14403 | { | |
14404 | { eval $1=; unset $1;} | |
14405 | } | |
14406 | as_unset=as_fn_unset | |
14407 | # as_fn_append VAR VALUE | |
14408 | # ---------------------- | |
14409 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14410 | # advantage of any shell optimizations that allow amortized linear growth over | |
14411 | # repeated appends, instead of the typical quadratic growth present in naive | |
14412 | # implementations. | |
14413 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14414 | eval 'as_fn_append () | |
14415 | { | |
14416 | eval $1+=\$2 | |
14417 | }' | |
14418 | else | |
14419 | as_fn_append () | |
14420 | { | |
14421 | eval $1=\$$1\$2 | |
14422 | } | |
14423 | fi # as_fn_append | |
14424 | ||
14425 | # as_fn_arith ARG... | |
14426 | # ------------------ | |
14427 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14428 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14429 | # must be portable across $(()) and expr. | |
14430 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14431 | eval 'as_fn_arith () | |
14432 | { | |
14433 | as_val=$(( $* )) | |
14434 | }' | |
14435 | else | |
14436 | as_fn_arith () | |
14437 | { | |
14438 | as_val=`expr "$@" || test $? -eq 1` | |
14439 | } | |
14440 | fi # as_fn_arith | |
14441 | ||
13b2be9c | 14442 | |
81ecdfbb RW |
14443 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14444 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13b2be9c DJ |
14445 | as_expr=expr |
14446 | else | |
14447 | as_expr=false | |
14448 | fi | |
14449 | ||
81ecdfbb | 14450 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13b2be9c DJ |
14451 | as_basename=basename |
14452 | else | |
14453 | as_basename=false | |
14454 | fi | |
14455 | ||
81ecdfbb RW |
14456 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14457 | as_dirname=dirname | |
14458 | else | |
14459 | as_dirname=false | |
14460 | fi | |
13b2be9c | 14461 | |
81ecdfbb | 14462 | as_me=`$as_basename -- "$0" || |
13b2be9c DJ |
14463 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14464 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14465 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14466 | $as_echo X/"$0" | | |
14467 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14468 | s//\1/ | |
14469 | q | |
14470 | } | |
14471 | /^X\/\(\/\/\)$/{ | |
14472 | s//\1/ | |
14473 | q | |
14474 | } | |
14475 | /^X\/\(\/\).*/{ | |
14476 | s//\1/ | |
14477 | q | |
14478 | } | |
14479 | s/.*/./; q'` | |
13b2be9c | 14480 | |
13b2be9c DJ |
14481 | # Avoid depending upon Character Ranges. |
14482 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14483 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14484 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14485 | as_cr_digits='0123456789' | |
14486 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14487 | ||
81ecdfbb RW |
14488 | ECHO_C= ECHO_N= ECHO_T= |
14489 | case `echo -n x` in #((((( | |
14490 | -n*) | |
14491 | case `echo 'xy\c'` in | |
14492 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14493 | xy) ECHO_C='\c';; | |
14494 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14495 | ECHO_T=' ';; | |
14496 | esac;; | |
14497 | *) | |
14498 | ECHO_N='-n';; | |
13b2be9c | 14499 | esac |
252b5132 | 14500 | |
81ecdfbb RW |
14501 | rm -f conf$$ conf$$.exe conf$$.file |
14502 | if test -d conf$$.dir; then | |
14503 | rm -f conf$$.dir/conf$$.file | |
252b5132 | 14504 | else |
81ecdfbb RW |
14505 | rm -f conf$$.dir |
14506 | mkdir conf$$.dir 2>/dev/null | |
252b5132 | 14507 | fi |
81ecdfbb RW |
14508 | if (echo >conf$$.file) 2>/dev/null; then |
14509 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13b2be9c | 14510 | as_ln_s='ln -s' |
81ecdfbb RW |
14511 | # ... but there are two gotchas: |
14512 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14513 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14514 | # In both cases, we have to default to `cp -p'. | |
14515 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14516 | as_ln_s='cp -p' | |
14517 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14518 | as_ln_s=ln | |
14519 | else | |
14520 | as_ln_s='cp -p' | |
13b2be9c | 14521 | fi |
13b2be9c DJ |
14522 | else |
14523 | as_ln_s='cp -p' | |
252b5132 | 14524 | fi |
81ecdfbb RW |
14525 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14526 | rmdir conf$$.dir 2>/dev/null | |
252b5132 | 14527 | |
81ecdfbb RW |
14528 | |
14529 | # as_fn_mkdir_p | |
14530 | # ------------- | |
14531 | # Create "$as_dir" as a directory, including parents if necessary. | |
14532 | as_fn_mkdir_p () | |
14533 | { | |
14534 | ||
14535 | case $as_dir in #( | |
14536 | -*) as_dir=./$as_dir;; | |
14537 | esac | |
14538 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14539 | as_dirs= | |
14540 | while :; do | |
14541 | case $as_dir in #( | |
14542 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14543 | *) as_qdir=$as_dir;; | |
14544 | esac | |
14545 | as_dirs="'$as_qdir' $as_dirs" | |
14546 | as_dir=`$as_dirname -- "$as_dir" || | |
14547 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14548 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14549 | X"$as_dir" : 'X\(//\)$' \| \ | |
14550 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14551 | $as_echo X"$as_dir" | | |
14552 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14553 | s//\1/ | |
14554 | q | |
14555 | } | |
14556 | /^X\(\/\/\)[^/].*/{ | |
14557 | s//\1/ | |
14558 | q | |
14559 | } | |
14560 | /^X\(\/\/\)$/{ | |
14561 | s//\1/ | |
14562 | q | |
14563 | } | |
14564 | /^X\(\/\).*/{ | |
14565 | s//\1/ | |
14566 | q | |
14567 | } | |
14568 | s/.*/./; q'` | |
14569 | test -d "$as_dir" && break | |
14570 | done | |
14571 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14572 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14573 | ||
14574 | ||
14575 | } # as_fn_mkdir_p | |
13b2be9c | 14576 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14577 | as_mkdir_p='mkdir -p "$as_dir"' |
252b5132 | 14578 | else |
ab509236 | 14579 | test -d ./-p && rmdir ./-p |
13b2be9c DJ |
14580 | as_mkdir_p=false |
14581 | fi | |
81ecdfbb RW |
14582 | |
14583 | if test -x / >/dev/null 2>&1; then | |
14584 | as_test_x='test -x' | |
14585 | else | |
14586 | if ls -dL / >/dev/null 2>&1; then | |
14587 | as_ls_L_option=L | |
14588 | else | |
14589 | as_ls_L_option= | |
14590 | fi | |
14591 | as_test_x=' | |
14592 | eval sh -c '\'' | |
14593 | if test -d "$1"; then | |
14594 | test -d "$1/."; | |
14595 | else | |
14596 | case $1 in #( | |
14597 | -*)set "./$1";; | |
14598 | esac; | |
14599 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14600 | ???[sx]*):;;*)false;;esac;fi | |
14601 | '\'' sh | |
14602 | ' | |
14603 | fi | |
14604 | as_executable_p=$as_test_x | |
252b5132 | 14605 | |
13b2be9c | 14606 | # Sed expression to map a string onto a valid CPP name. |
ab509236 | 14607 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14608 | |
13b2be9c | 14609 | # Sed expression to map a string onto a valid variable name. |
ab509236 | 14610 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
252b5132 | 14611 | |
d6d788bd | 14612 | |
13b2be9c | 14613 | exec 6>&1 |
81ecdfbb RW |
14614 | ## ----------------------------------- ## |
14615 | ## Main body of $CONFIG_STATUS script. ## | |
14616 | ## ----------------------------------- ## | |
14617 | _ASEOF | |
14618 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
252b5132 | 14619 | |
81ecdfbb RW |
14620 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14621 | # Save the log message, to keep $0 and so on meaningful, and to | |
13b2be9c | 14622 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14623 | # values after options handling. |
14624 | ac_log=" | |
13b2be9c | 14625 | This file was extended by $as_me, which was |
81ecdfbb | 14626 | generated by GNU Autoconf 2.64. Invocation command line was |
d6d788bd | 14627 | |
13b2be9c DJ |
14628 | CONFIG_FILES = $CONFIG_FILES |
14629 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14630 | CONFIG_LINKS = $CONFIG_LINKS | |
14631 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14632 | $ $0 $@ | |
252b5132 | 14633 | |
81ecdfbb RW |
14634 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14635 | " | |
14636 | ||
13b2be9c | 14637 | _ACEOF |
252b5132 | 14638 | |
81ecdfbb RW |
14639 | case $ac_config_files in *" |
14640 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14641 | esac | |
13b2be9c | 14642 | |
81ecdfbb RW |
14643 | case $ac_config_headers in *" |
14644 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14645 | esac | |
252b5132 | 14646 | |
252b5132 | 14647 | |
81ecdfbb RW |
14648 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14649 | # Files that config.status was made for. | |
14650 | config_files="$ac_config_files" | |
14651 | config_headers="$ac_config_headers" | |
14652 | config_commands="$ac_config_commands" | |
d6d788bd | 14653 | |
81ecdfbb | 14654 | _ACEOF |
252b5132 | 14655 | |
81ecdfbb | 14656 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 14657 | ac_cs_usage="\ |
81ecdfbb RW |
14658 | \`$as_me' instantiates files and other configuration actions |
14659 | from templates according to the current configuration. Unless the files | |
14660 | and actions are specified as TAGs, all are instantiated by default. | |
252b5132 | 14661 | |
81ecdfbb | 14662 | Usage: $0 [OPTION]... [TAG]... |
252b5132 | 14663 | |
13b2be9c | 14664 | -h, --help print this help, then exit |
81ecdfbb RW |
14665 | -V, --version print version number and configuration settings, then exit |
14666 | -q, --quiet, --silent | |
14667 | do not print progress messages | |
13b2be9c DJ |
14668 | -d, --debug don't remove temporary files |
14669 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14670 | --file=FILE[:TEMPLATE] |
14671 | instantiate the configuration file FILE | |
14672 | --header=FILE[:TEMPLATE] | |
14673 | instantiate the configuration header FILE | |
252b5132 | 14674 | |
13b2be9c DJ |
14675 | Configuration files: |
14676 | $config_files | |
252b5132 | 14677 | |
13b2be9c DJ |
14678 | Configuration headers: |
14679 | $config_headers | |
252b5132 | 14680 | |
13b2be9c DJ |
14681 | Configuration commands: |
14682 | $config_commands | |
252b5132 | 14683 | |
81ecdfbb | 14684 | Report bugs to the package provider." |
d6d788bd | 14685 | |
81ecdfbb RW |
14686 | _ACEOF |
14687 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13b2be9c DJ |
14688 | ac_cs_version="\\ |
14689 | config.status | |
81ecdfbb RW |
14690 | configured by $0, generated by GNU Autoconf 2.64, |
14691 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
d6d788bd | 14692 | |
81ecdfbb | 14693 | Copyright (C) 2009 Free Software Foundation, Inc. |
13b2be9c DJ |
14694 | This config.status script is free software; the Free Software Foundation |
14695 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14696 | |
14697 | ac_pwd='$ac_pwd' | |
14698 | srcdir='$srcdir' | |
14699 | INSTALL='$INSTALL' | |
14700 | MKDIR_P='$MKDIR_P' | |
14701 | AWK='$AWK' | |
14702 | test -n "\$AWK" || AWK=awk | |
13b2be9c | 14703 | _ACEOF |
d6d788bd | 14704 | |
81ecdfbb RW |
14705 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14706 | # The default lists apply if the user does not specify any file. | |
13b2be9c DJ |
14707 | ac_need_defaults=: |
14708 | while test $# != 0 | |
14709 | do | |
14710 | case $1 in | |
14711 | --*=*) | |
81ecdfbb RW |
14712 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14713 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13b2be9c | 14714 | ac_shift=: |
c8615825 | 14715 | ;; |
81ecdfbb | 14716 | *) |
13b2be9c DJ |
14717 | ac_option=$1 |
14718 | ac_optarg=$2 | |
14719 | ac_shift=shift | |
c8615825 | 14720 | ;; |
13b2be9c | 14721 | esac |
252b5132 | 14722 | |
13b2be9c DJ |
14723 | case $ac_option in |
14724 | # Handling of the options. | |
13b2be9c DJ |
14725 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14726 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
14727 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14728 | $as_echo "$ac_cs_version"; exit ;; | |
14729 | --debug | --debu | --deb | --de | --d | -d ) | |
13b2be9c DJ |
14730 | debug=: ;; |
14731 | --file | --fil | --fi | --f ) | |
14732 | $ac_shift | |
81ecdfbb RW |
14733 | case $ac_optarg in |
14734 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14735 | esac | |
14736 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
13b2be9c DJ |
14737 | ac_need_defaults=false;; |
14738 | --header | --heade | --head | --hea ) | |
14739 | $ac_shift | |
81ecdfbb RW |
14740 | case $ac_optarg in |
14741 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14742 | esac | |
14743 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
13b2be9c | 14744 | ac_need_defaults=false;; |
81ecdfbb RW |
14745 | --he | --h) |
14746 | # Conflict between --help and --header | |
14747 | as_fn_error "ambiguous option: \`$1' | |
14748 | Try \`$0 --help' for more information.";; | |
14749 | --help | --hel | -h ) | |
14750 | $as_echo "$ac_cs_usage"; exit ;; | |
13b2be9c DJ |
14751 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14752 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14753 | ac_cs_silent=: ;; | |
c8615825 | 14754 | |
13b2be9c | 14755 | # This is an error. |
81ecdfbb RW |
14756 | -*) as_fn_error "unrecognized option: \`$1' |
14757 | Try \`$0 --help' for more information." ;; | |
252b5132 | 14758 | |
81ecdfbb RW |
14759 | *) as_fn_append ac_config_targets " $1" |
14760 | ac_need_defaults=false ;; | |
252b5132 | 14761 | |
13b2be9c DJ |
14762 | esac |
14763 | shift | |
14764 | done | |
252b5132 | 14765 | |
13b2be9c | 14766 | ac_configure_extra_args= |
d6d788bd | 14767 | |
13b2be9c DJ |
14768 | if $ac_cs_silent; then |
14769 | exec 6>/dev/null | |
14770 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14771 | fi | |
9b2b7d69 | 14772 | |
13b2be9c | 14773 | _ACEOF |
81ecdfbb | 14774 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13b2be9c | 14775 | if \$ac_cs_recheck; then |
81ecdfbb RW |
14776 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14777 | shift | |
14778 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14779 | CONFIG_SHELL='$SHELL' | |
14780 | export CONFIG_SHELL | |
14781 | exec "\$@" | |
13b2be9c DJ |
14782 | fi |
14783 | ||
14784 | _ACEOF | |
81ecdfbb RW |
14785 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14786 | exec 5>>config.log | |
14787 | { | |
14788 | echo | |
14789 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14790 | ## Running $as_me. ## | |
14791 | _ASBOX | |
14792 | $as_echo "$ac_log" | |
14793 | } >&5 | |
13b2be9c | 14794 | |
81ecdfbb RW |
14795 | _ACEOF |
14796 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9b2b7d69 | 14797 | # |
81ecdfbb | 14798 | # INIT-COMMANDS |
9b2b7d69 | 14799 | # |
13b2be9c | 14800 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
14801 | |
14802 | ||
14803 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
14804 | # if CDPATH is set. | |
14805 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14806 | ||
14807 | sed_quote_subst='$sed_quote_subst' | |
14808 | double_quote_subst='$double_quote_subst' | |
14809 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
14810 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
14811 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
14812 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
14813 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
14814 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
14815 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
14816 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
14817 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
14818 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
14819 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
14820 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
14821 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
14822 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
14823 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
14824 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
14825 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
14826 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
14827 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
14828 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
14829 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
14830 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
14831 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
14832 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
14833 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
14834 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
14835 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
14836 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
14837 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
14838 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
14839 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14840 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14841 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14842 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14843 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14844 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14845 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14846 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14847 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14848 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14849 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14850 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14851 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14852 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14853 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14854 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14855 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
14856 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
14857 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
14858 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14859 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
14860 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
14861 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
14862 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
14863 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
14864 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
14865 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
14866 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
14867 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
14868 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
14869 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
14870 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
14871 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
14872 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
14873 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
14874 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14875 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
14876 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
14877 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14878 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14879 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
14880 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
14881 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14882 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14883 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14884 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
14885 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14886 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
14887 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14888 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14889 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14890 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
14891 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
14892 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
14893 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
14894 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
14895 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14896 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
14897 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
14898 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
14899 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
14900 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
14901 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
14902 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
14903 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
14904 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
14905 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14906 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
14907 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14908 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
14909 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
14910 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
14911 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14912 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
14913 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
14914 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
14915 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
14916 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
14917 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14918 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14919 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
14920 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
14921 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
14922 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
14923 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
14924 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
14925 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
14926 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
14927 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
14928 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
14929 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
14930 | |
14931 | LTCC='$LTCC' | |
14932 | LTCFLAGS='$LTCFLAGS' | |
14933 | compiler='$compiler_DEFAULT' | |
14934 | ||
3725885a RW |
14935 | # A function that is used when there is no print builtin or printf. |
14936 | func_fallback_echo () | |
14937 | { | |
14938 | eval 'cat <<_LTECHO_EOF | |
14939 | \$1 | |
14940 | _LTECHO_EOF' | |
14941 | } | |
14942 | ||
d7040cdb | 14943 | # Quote evaled strings. |
3725885a RW |
14944 | for var in SHELL \ |
14945 | ECHO \ | |
14946 | SED \ | |
d7040cdb SE |
14947 | GREP \ |
14948 | EGREP \ | |
14949 | FGREP \ | |
14950 | LD \ | |
14951 | NM \ | |
14952 | LN_S \ | |
14953 | lt_SP2NL \ | |
14954 | lt_NL2SP \ | |
14955 | reload_flag \ | |
718a6fd8 | 14956 | OBJDUMP \ |
d7040cdb SE |
14957 | deplibs_check_method \ |
14958 | file_magic_cmd \ | |
14959 | AR \ | |
14960 | AR_FLAGS \ | |
14961 | STRIP \ | |
14962 | RANLIB \ | |
14963 | CC \ | |
14964 | CFLAGS \ | |
14965 | compiler \ | |
14966 | lt_cv_sys_global_symbol_pipe \ | |
14967 | lt_cv_sys_global_symbol_to_cdecl \ | |
14968 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 14969 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
14970 | lt_prog_compiler_no_builtin_flag \ |
14971 | lt_prog_compiler_wl \ | |
14972 | lt_prog_compiler_pic \ | |
14973 | lt_prog_compiler_static \ | |
14974 | lt_cv_prog_compiler_c_o \ | |
14975 | need_locks \ | |
718a6fd8 SE |
14976 | DSYMUTIL \ |
14977 | NMEDIT \ | |
14978 | LIPO \ | |
14979 | OTOOL \ | |
14980 | OTOOL64 \ | |
d7040cdb SE |
14981 | shrext_cmds \ |
14982 | export_dynamic_flag_spec \ | |
14983 | whole_archive_flag_spec \ | |
14984 | compiler_needs_object \ | |
14985 | with_gnu_ld \ | |
14986 | allow_undefined_flag \ | |
14987 | no_undefined_flag \ | |
14988 | hardcode_libdir_flag_spec \ | |
14989 | hardcode_libdir_flag_spec_ld \ | |
14990 | hardcode_libdir_separator \ | |
14991 | fix_srcfile_path \ | |
14992 | exclude_expsyms \ | |
14993 | include_expsyms \ | |
14994 | file_list_spec \ | |
14995 | variables_saved_for_relink \ | |
14996 | libname_spec \ | |
14997 | library_names_spec \ | |
14998 | soname_spec \ | |
3725885a | 14999 | install_override_mode \ |
d7040cdb SE |
15000 | finish_eval \ |
15001 | old_striplib \ | |
15002 | striplib; do | |
3725885a | 15003 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15004 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15005 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15006 | ;; |
15007 | *) | |
15008 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15009 | ;; | |
15010 | esac | |
15011 | done | |
15012 | ||
15013 | # Double-quote double-evaled strings. | |
15014 | for var in reload_cmds \ | |
15015 | old_postinstall_cmds \ | |
15016 | old_postuninstall_cmds \ | |
15017 | old_archive_cmds \ | |
15018 | extract_expsyms_cmds \ | |
15019 | old_archive_from_new_cmds \ | |
15020 | old_archive_from_expsyms_cmds \ | |
15021 | archive_cmds \ | |
15022 | archive_expsym_cmds \ | |
15023 | module_cmds \ | |
15024 | module_expsym_cmds \ | |
15025 | export_symbols_cmds \ | |
15026 | prelink_cmds \ | |
15027 | postinstall_cmds \ | |
15028 | postuninstall_cmds \ | |
15029 | finish_cmds \ | |
15030 | sys_lib_search_path_spec \ | |
15031 | sys_lib_dlsearch_path_spec; do | |
3725885a | 15032 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15033 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15034 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15035 | ;; |
15036 | *) | |
15037 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15038 | ;; | |
15039 | esac | |
15040 | done | |
15041 | ||
d7040cdb SE |
15042 | ac_aux_dir='$ac_aux_dir' |
15043 | xsi_shell='$xsi_shell' | |
15044 | lt_shell_append='$lt_shell_append' | |
15045 | ||
15046 | # See if we are running on zsh, and set the options which allow our | |
15047 | # commands through without removal of \ escapes INIT. | |
15048 | if test -n "\${ZSH_VERSION+set}" ; then | |
15049 | setopt NO_GLOB_SUBST | |
15050 | fi | |
15051 | ||
15052 | ||
15053 | PACKAGE='$PACKAGE' | |
15054 | VERSION='$VERSION' | |
15055 | TIMESTAMP='$TIMESTAMP' | |
15056 | RM='$RM' | |
15057 | ofile='$ofile' | |
15058 | ||
15059 | ||
15060 | ||
20e95c23 DJ |
15061 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15062 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15063 | # from automake. | |
15064 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15065 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15066 | LINGUAS="${LINGUAS-%UNSET%}" | |
15067 | ||
13b2be9c DJ |
15068 | target_cpu_type=${target_cpu_type} |
15069 | cgen_cpu_prefix=${cgen_cpu_prefix} | |
15070 | obj_format=${obj_format} | |
15071 | te_file=${te_file} | |
15072 | ||
15073 | _ACEOF | |
15074 | ||
81ecdfbb | 15075 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c | 15076 | |
81ecdfbb | 15077 | # Handling of arguments. |
13b2be9c | 15078 | for ac_config_target in $ac_config_targets |
9b2b7d69 | 15079 | do |
81ecdfbb RW |
15080 | case $ac_config_target in |
15081 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15082 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15083 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15084 | "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; | |
15085 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
15086 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
15087 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15088 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
15089 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
15090 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
15091 | ||
15092 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
9b2b7d69 MM |
15093 | esac |
15094 | done | |
15095 | ||
81ecdfbb | 15096 | |
13b2be9c DJ |
15097 | # If the user did not use the arguments to specify the items to instantiate, |
15098 | # then the envvar interface is used. Set only those that are not. | |
15099 | # We use the long form for the default assignment because of an extremely | |
15100 | # bizarre bug on SunOS 4.1.3. | |
15101 | if $ac_need_defaults; then | |
15102 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15103 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15104 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15105 | fi | |
15106 | ||
15107 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15108 | # simply because there is no reason against having it here, and in addition, |
13b2be9c | 15109 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15110 | # Hook for its removal unless debugging. |
15111 | # Note that there is a small window in which the directory will not be cleaned: | |
15112 | # after its creation but before its name has been assigned to `$tmp'. | |
13b2be9c DJ |
15113 | $debug || |
15114 | { | |
81ecdfbb RW |
15115 | tmp= |
15116 | trap 'exit_status=$? | |
15117 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15118 | ' 0 | |
15119 | trap 'as_fn_exit 1' 1 2 13 15 | |
13b2be9c | 15120 | } |
13b2be9c | 15121 | # Create a (secure) tmp directory for tmp files. |
9b2b7d69 | 15122 | |
13b2be9c | 15123 | { |
81ecdfbb | 15124 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
13b2be9c DJ |
15125 | test -n "$tmp" && test -d "$tmp" |
15126 | } || | |
15127 | { | |
81ecdfbb RW |
15128 | tmp=./conf$$-$RANDOM |
15129 | (umask 077 && mkdir "$tmp") | |
15130 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15131 | ||
15132 | # Set up the scripts for CONFIG_FILES section. | |
15133 | # No need to generate them if there are no CONFIG_FILES. | |
15134 | # This happens for instance with `./config.status config.h'. | |
15135 | if test -n "$CONFIG_FILES"; then | |
15136 | ||
15137 | ||
15138 | ac_cr=`echo X | tr X '\015'` | |
15139 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15140 | # But we know of no other shell where ac_cr would be empty at this | |
15141 | # point, so we can use a bashism as a fallback. | |
15142 | if test "x$ac_cr" = x; then | |
15143 | eval ac_cr=\$\'\\r\' | |
15144 | fi | |
15145 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15146 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15147 | ac_cs_awk_cr='\r' | |
15148 | else | |
15149 | ac_cs_awk_cr=$ac_cr | |
15150 | fi | |
15151 | ||
15152 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15153 | _ACEOF | |
15154 | ||
15155 | ||
15156 | { | |
15157 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15158 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15159 | echo "_ACEOF" | |
15160 | } >conf$$subs.sh || | |
15161 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15162 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15163 | ac_delim='%!_!# ' | |
15164 | for ac_last_try in false false false false false :; do | |
15165 | . ./conf$$subs.sh || | |
15166 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15167 | ||
15168 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15169 | if test $ac_delim_n = $ac_delim_num; then | |
15170 | break | |
15171 | elif $ac_last_try; then | |
15172 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15173 | else | |
15174 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15175 | fi | |
15176 | done | |
15177 | rm -f conf$$subs.sh | |
15178 | ||
15179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15180 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
15181 | _ACEOF | |
15182 | sed -n ' | |
15183 | h | |
15184 | s/^/S["/; s/!.*/"]=/ | |
15185 | p | |
15186 | g | |
15187 | s/^[^!]*!// | |
15188 | :repl | |
15189 | t repl | |
15190 | s/'"$ac_delim"'$// | |
15191 | t delim | |
15192 | :nl | |
15193 | h | |
15194 | s/\(.\{148\}\).*/\1/ | |
15195 | t more1 | |
15196 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15197 | p | |
15198 | n | |
15199 | b repl | |
15200 | :more1 | |
15201 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15202 | p | |
15203 | g | |
15204 | s/.\{148\}// | |
15205 | t nl | |
15206 | :delim | |
15207 | h | |
15208 | s/\(.\{148\}\).*/\1/ | |
15209 | t more2 | |
15210 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15211 | p | |
15212 | b | |
15213 | :more2 | |
15214 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15215 | p | |
15216 | g | |
15217 | s/.\{148\}// | |
15218 | t delim | |
15219 | ' <conf$$subs.awk | sed ' | |
15220 | /^[^""]/{ | |
15221 | N | |
15222 | s/\n// | |
15223 | } | |
15224 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15225 | rm -f conf$$subs.awk | |
15226 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15227 | _ACAWK | |
15228 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15229 | for (key in S) S_is_set[key] = 1 | |
15230 | FS = "\a" | |
15231 | ||
15232 | } | |
13b2be9c | 15233 | { |
81ecdfbb RW |
15234 | line = $ 0 |
15235 | nfields = split(line, field, "@") | |
15236 | substed = 0 | |
15237 | len = length(field[1]) | |
15238 | for (i = 2; i < nfields; i++) { | |
15239 | key = field[i] | |
15240 | keylen = length(key) | |
15241 | if (S_is_set[key]) { | |
15242 | value = S[key] | |
15243 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15244 | len += length(value) + length(field[++i]) | |
15245 | substed = 1 | |
15246 | } else | |
15247 | len += 1 + keylen | |
15248 | } | |
15249 | ||
15250 | print line | |
13b2be9c | 15251 | } |
9b2b7d69 | 15252 | |
81ecdfbb RW |
15253 | _ACAWK |
15254 | _ACEOF | |
15255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15256 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15257 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15258 | else | |
15259 | cat | |
15260 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15261 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
13b2be9c DJ |
15262 | _ACEOF |
15263 | ||
81ecdfbb RW |
15264 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
15265 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15266 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15267 | # (actually we leave an empty line to preserve line numbers). | |
15268 | if test "x$srcdir" = x.; then | |
15269 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15270 | s/:*\$(srcdir):*/:/ | |
15271 | s/:*\${srcdir}:*/:/ | |
15272 | s/:*@srcdir@:*/:/ | |
15273 | s/^\([^=]*=[ ]*\):*/\1/ | |
15274 | s/:*$// | |
15275 | s/^[^=]*=[ ]*$// | |
15276 | }' | |
15277 | fi | |
15278 | ||
15279 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15280 | fi # test -n "$CONFIG_FILES" | |
13b2be9c | 15281 | |
81ecdfbb RW |
15282 | # Set up the scripts for CONFIG_HEADERS section. |
15283 | # No need to generate them if there are no CONFIG_HEADERS. | |
15284 | # This happens for instance with `./config.status Makefile'. | |
15285 | if test -n "$CONFIG_HEADERS"; then | |
15286 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
15287 | BEGIN { | |
15288 | _ACEOF | |
13b2be9c | 15289 | |
81ecdfbb RW |
15290 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
15291 | # here-document in config.status, that substitutes the proper values into | |
15292 | # config.h.in to produce config.h. | |
9b2b7d69 | 15293 | |
81ecdfbb RW |
15294 | # Create a delimiter string that does not exist in confdefs.h, to ease |
15295 | # handling of long lines. | |
15296 | ac_delim='%!_!# ' | |
15297 | for ac_last_try in false false :; do | |
15298 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
15299 | if test -z "$ac_t"; then | |
15300 | break | |
15301 | elif $ac_last_try; then | |
15302 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
15303 | else | |
15304 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15305 | fi | |
15306 | done | |
15307 | ||
15308 | # For the awk script, D is an array of macro values keyed by name, | |
15309 | # likewise P contains macro parameters if any. Preserve backslash | |
15310 | # newline sequences. | |
15311 | ||
15312 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15313 | sed -n ' | |
15314 | s/.\{148\}/&'"$ac_delim"'/g | |
15315 | t rset | |
15316 | :rset | |
15317 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15318 | t def | |
15319 | d | |
15320 | :def | |
15321 | s/\\$// | |
15322 | t bsnl | |
15323 | s/["\\]/\\&/g | |
15324 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15325 | D["\1"]=" \3"/p | |
15326 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15327 | d | |
15328 | :bsnl | |
15329 | s/["\\]/\\&/g | |
15330 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15331 | D["\1"]=" \3\\\\\\n"\\/p | |
15332 | t cont | |
15333 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15334 | t cont | |
15335 | d | |
15336 | :cont | |
15337 | n | |
15338 | s/.\{148\}/&'"$ac_delim"'/g | |
15339 | t clear | |
15340 | :clear | |
15341 | s/\\$// | |
15342 | t bsnlc | |
15343 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15344 | d | |
15345 | :bsnlc | |
15346 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15347 | b cont | |
15348 | ' <confdefs.h | sed ' | |
15349 | s/'"$ac_delim"'/"\\\ | |
15350 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15351 | ||
15352 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15353 | for (key in D) D_is_set[key] = 1 | |
15354 | FS = "\a" | |
15355 | } | |
15356 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15357 | line = \$ 0 | |
15358 | split(line, arg, " ") | |
15359 | if (arg[1] == "#") { | |
15360 | defundef = arg[2] | |
15361 | mac1 = arg[3] | |
15362 | } else { | |
15363 | defundef = substr(arg[1], 2) | |
15364 | mac1 = arg[2] | |
15365 | } | |
15366 | split(mac1, mac2, "(") #) | |
15367 | macro = mac2[1] | |
15368 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15369 | if (D_is_set[macro]) { | |
15370 | # Preserve the white space surrounding the "#". | |
15371 | print prefix "define", macro P[macro] D[macro] | |
15372 | next | |
15373 | } else { | |
15374 | # Replace #undef with comments. This is necessary, for example, | |
15375 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15376 | # on some systems where configure will not decide to define it. | |
15377 | if (defundef == "undef") { | |
15378 | print "/*", prefix defundef, macro, "*/" | |
15379 | next | |
15380 | } | |
15381 | } | |
15382 | } | |
15383 | { print } | |
15384 | _ACAWK | |
13b2be9c | 15385 | _ACEOF |
81ecdfbb RW |
15386 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15387 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
15388 | fi # test -n "$CONFIG_HEADERS" | |
13b2be9c | 15389 | |
81ecdfbb RW |
15390 | |
15391 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
15392 | shift | |
15393 | for ac_tag | |
15394 | do | |
15395 | case $ac_tag in | |
15396 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15397 | esac | |
15398 | case $ac_mode$ac_tag in | |
15399 | :[FHL]*:*);; | |
15400 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15401 | :[FH]-) ac_tag=-:-;; | |
15402 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15403 | esac | |
15404 | ac_save_IFS=$IFS | |
15405 | IFS=: | |
15406 | set x $ac_tag | |
15407 | IFS=$ac_save_IFS | |
15408 | shift | |
15409 | ac_file=$1 | |
15410 | shift | |
15411 | ||
15412 | case $ac_mode in | |
15413 | :L) ac_source=$1;; | |
15414 | :[FH]) | |
15415 | ac_file_inputs= | |
15416 | for ac_f | |
15417 | do | |
15418 | case $ac_f in | |
15419 | -) ac_f="$tmp/stdin";; | |
15420 | *) # Look for the file first in the build tree, then in the source tree | |
15421 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15422 | # because $ac_f cannot contain `:'. | |
15423 | test -f "$ac_f" || | |
15424 | case $ac_f in | |
15425 | [\\/$]*) false;; | |
15426 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15427 | esac || | |
15428 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15429 | esac | |
15430 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15431 | as_fn_append ac_file_inputs " '$ac_f'" | |
15432 | done | |
15433 | ||
15434 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15435 | # use $as_me), people would be surprised to read: | |
15436 | # /* config.h. Generated by config.status. */ | |
15437 | configure_input='Generated from '` | |
15438 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15439 | `' by configure.' | |
15440 | if test x"$ac_file" != x-; then | |
15441 | configure_input="$ac_file. $configure_input" | |
15442 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15443 | $as_echo "$as_me: creating $ac_file" >&6;} | |
9b2b7d69 | 15444 | fi |
81ecdfbb RW |
15445 | # Neutralize special characters interpreted by sed in replacement strings. |
15446 | case $configure_input in #( | |
15447 | *\&* | *\|* | *\\* ) | |
15448 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15449 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15450 | *) ac_sed_conf_input=$configure_input;; | |
15451 | esac | |
252b5132 | 15452 | |
81ecdfbb RW |
15453 | case $ac_tag in |
15454 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15455 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15456 | esac | |
15457 | ;; | |
252b5132 | 15458 | esac |
9b2b7d69 | 15459 | |
81ecdfbb | 15460 | ac_dir=`$as_dirname -- "$ac_file" || |
13b2be9c | 15461 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15462 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
15463 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15464 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15465 | $as_echo X"$ac_file" | | |
15466 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15467 | s//\1/ | |
15468 | q | |
15469 | } | |
15470 | /^X\(\/\/\)[^/].*/{ | |
15471 | s//\1/ | |
15472 | q | |
15473 | } | |
15474 | /^X\(\/\/\)$/{ | |
15475 | s//\1/ | |
15476 | q | |
15477 | } | |
15478 | /^X\(\/\).*/{ | |
15479 | s//\1/ | |
15480 | q | |
15481 | } | |
15482 | s/.*/./; q'` | |
15483 | as_dir="$ac_dir"; as_fn_mkdir_p | |
13b2be9c DJ |
15484 | ac_builddir=. |
15485 | ||
81ecdfbb RW |
15486 | case "$ac_dir" in |
15487 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15488 | *) | |
15489 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15490 | # A ".." for each directory in $ac_dir_suffix. | |
15491 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15492 | case $ac_top_builddir_sub in | |
15493 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15494 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15495 | esac ;; | |
15496 | esac | |
15497 | ac_abs_top_builddir=$ac_pwd | |
15498 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15499 | # for backward compatibility: | |
15500 | ac_top_builddir=$ac_top_build_prefix | |
9b2b7d69 | 15501 | |
13b2be9c | 15502 | case $srcdir in |
81ecdfbb | 15503 | .) # We are building in place. |
13b2be9c | 15504 | ac_srcdir=. |
81ecdfbb RW |
15505 | ac_top_srcdir=$ac_top_builddir_sub |
15506 | ac_abs_top_srcdir=$ac_pwd ;; | |
15507 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13b2be9c | 15508 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15509 | ac_top_srcdir=$srcdir |
15510 | ac_abs_top_srcdir=$srcdir ;; | |
15511 | *) # Relative name. | |
15512 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15513 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15514 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13b2be9c | 15515 | esac |
81ecdfbb | 15516 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
ab509236 | 15517 | |
252b5132 | 15518 | |
81ecdfbb RW |
15519 | case $ac_mode in |
15520 | :F) | |
15521 | # | |
15522 | # CONFIG_FILE | |
15523 | # | |
9b2b7d69 | 15524 | |
13b2be9c DJ |
15525 | case $INSTALL in |
15526 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
15527 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
15528 | esac | |
15529 | ac_MKDIR_P=$MKDIR_P | |
15530 | case $MKDIR_P in | |
15531 | [\\/$]* | ?:[\\/]* ) ;; | |
15532 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
c8615825 | 15533 | esac |
81ecdfbb | 15534 | _ACEOF |
9b2b7d69 | 15535 | |
81ecdfbb RW |
15536 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15537 | # If the template does not know about datarootdir, expand it. | |
15538 | # FIXME: This hack should be removed a few years after 2.60. | |
15539 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15540 | ac_sed_dataroot=' | |
15541 | /datarootdir/ { | |
15542 | p | |
15543 | q | |
15544 | } | |
15545 | /@datadir@/p | |
15546 | /@docdir@/p | |
15547 | /@infodir@/p | |
15548 | /@localedir@/p | |
15549 | /@mandir@/p' | |
15550 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15551 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15552 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15554 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15555 | _ACEOF | |
15556 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15557 | ac_datarootdir_hack=' | |
15558 | s&@datadir@&$datadir&g | |
15559 | s&@docdir@&$docdir&g | |
15560 | s&@infodir@&$infodir&g | |
15561 | s&@localedir@&$localedir&g | |
15562 | s&@mandir@&$mandir&g | |
15563 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15564 | esac | |
13b2be9c | 15565 | _ACEOF |
81ecdfbb RW |
15566 | |
15567 | # Neutralize VPATH when `$srcdir' = `.'. | |
15568 | # Shell code in configure.ac might set extrasub. | |
15569 | # FIXME: do we really want to maintain this feature? | |
15570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15571 | ac_sed_extra="$ac_vpsub | |
13b2be9c DJ |
15572 | $extrasub |
15573 | _ACEOF | |
81ecdfbb | 15574 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13b2be9c DJ |
15575 | :t |
15576 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15577 | s|@configure_input@|$ac_sed_conf_input|;t t |
15578 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15579 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15580 | s&@srcdir@&$ac_srcdir&;t t | |
15581 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15582 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15583 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15584 | s&@builddir@&$ac_builddir&;t t | |
15585 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15586 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15587 | s&@INSTALL@&$ac_INSTALL&;t t | |
15588 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
15589 | $ac_datarootdir_hack | |
15590 | " | |
15591 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
15592 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15593 | ||
15594 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15595 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15596 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15598 | which seems to be undefined. Please make sure it is defined." >&5 | |
15599 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15600 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15601 | ||
15602 | rm -f "$tmp/stdin" | |
13b2be9c | 15603 | case $ac_file in |
81ecdfbb RW |
15604 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
15605 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15606 | esac \ | |
15607 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15608 | ;; | |
15609 | :H) | |
15610 | # | |
15611 | # CONFIG_HEADER | |
15612 | # | |
13b2be9c | 15613 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
15614 | { |
15615 | $as_echo "/* $configure_input */" \ | |
15616 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
15617 | } >"$tmp/config.h" \ | |
15618 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15619 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
15620 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
15621 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13b2be9c | 15622 | else |
81ecdfbb RW |
15623 | rm -f "$ac_file" |
15624 | mv "$tmp/config.h" "$ac_file" \ | |
15625 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
9b2b7d69 | 15626 | fi |
13b2be9c | 15627 | else |
81ecdfbb RW |
15628 | $as_echo "/* $configure_input */" \ |
15629 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
15630 | || as_fn_error "could not create -" "$LINENO" 5 | |
9b2b7d69 | 15631 | fi |
81ecdfbb RW |
15632 | # Compute "$ac_file"'s index in $config_headers. |
15633 | _am_arg="$ac_file" | |
13b2be9c DJ |
15634 | _am_stamp_count=1 |
15635 | for _am_header in $config_headers :; do | |
15636 | case $_am_header in | |
81ecdfbb | 15637 | $_am_arg | $_am_arg:* ) |
13b2be9c DJ |
15638 | break ;; |
15639 | * ) | |
15640 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15641 | esac | |
15642 | done | |
81ecdfbb RW |
15643 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
15644 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15645 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15646 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15647 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15648 | $as_echo X"$_am_arg" | | |
15649 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15650 | s//\1/ | |
15651 | q | |
15652 | } | |
15653 | /^X\(\/\/\)[^/].*/{ | |
15654 | s//\1/ | |
15655 | q | |
15656 | } | |
15657 | /^X\(\/\/\)$/{ | |
15658 | s//\1/ | |
15659 | q | |
15660 | } | |
15661 | /^X\(\/\).*/{ | |
15662 | s//\1/ | |
15663 | q | |
15664 | } | |
15665 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15666 | ;; | |
ab509236 | 15667 | |
81ecdfbb RW |
15668 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
15669 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15670 | ;; | |
15671 | esac | |
13b2be9c DJ |
15672 | |
15673 | ||
81ecdfbb RW |
15674 | case $ac_file$ac_mode in |
15675 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
15676 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
15677 | # are listed without --file. Let's play safe and only enable the eval | |
15678 | # if we detect the quoting. | |
15679 | case $CONFIG_FILES in | |
15680 | *\'*) eval set x "$CONFIG_FILES" ;; | |
15681 | *) set x $CONFIG_FILES ;; | |
15682 | esac | |
15683 | shift | |
15684 | for mf | |
15685 | do | |
15686 | # Strip MF so we end up with the name of the file. | |
15687 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15688 | # Check whether this is an Automake generated Makefile or not. | |
15689 | # We used to match only the files named `Makefile.in', but | |
15690 | # some people rename them; so instead we look at the file content. | |
15691 | # Grep'ing the first line is not enough: some people post-process | |
15692 | # each Makefile.in and add a new line on top of each file to say so. | |
15693 | # Grep'ing the whole file is not good either: AIX grep has a line | |
15694 | # limit of 2048, but all sed's we know have understand at least 4000. | |
15695 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
15696 | dirpart=`$as_dirname -- "$mf" || | |
13b2be9c | 15697 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15698 | X"$mf" : 'X\(//\)[^/]' \| \ |
15699 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15700 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
15701 | $as_echo X"$mf" | | |
15702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15703 | s//\1/ | |
15704 | q | |
15705 | } | |
15706 | /^X\(\/\/\)[^/].*/{ | |
15707 | s//\1/ | |
15708 | q | |
15709 | } | |
15710 | /^X\(\/\/\)$/{ | |
15711 | s//\1/ | |
15712 | q | |
15713 | } | |
15714 | /^X\(\/\).*/{ | |
15715 | s//\1/ | |
15716 | q | |
15717 | } | |
15718 | s/.*/./; q'` | |
15719 | else | |
15720 | continue | |
15721 | fi | |
15722 | # Extract the definition of DEPDIR, am__include, and am__quote | |
15723 | # from the Makefile without running `make'. | |
15724 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
15725 | test -z "$DEPDIR" && continue | |
15726 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
15727 | test -z "am__include" && continue | |
15728 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
15729 | # When using ansi2knr, U may be empty or an underscore; expand it | |
15730 | U=`sed -n 's/^U = //p' < "$mf"` | |
15731 | # Find all dependency output files, they are included files with | |
15732 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
15733 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
15734 | # expansion. | |
15735 | for file in `sed -n " | |
15736 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
15737 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
15738 | # Make sure the directory exists. | |
15739 | test -f "$dirpart/$file" && continue | |
15740 | fdir=`$as_dirname -- "$file" || | |
13b2be9c | 15741 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ab509236 L |
15742 | X"$file" : 'X\(//\)[^/]' \| \ |
15743 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15744 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
15745 | $as_echo X"$file" | | |
15746 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15747 | s//\1/ | |
15748 | q | |
15749 | } | |
15750 | /^X\(\/\/\)[^/].*/{ | |
15751 | s//\1/ | |
15752 | q | |
15753 | } | |
15754 | /^X\(\/\/\)$/{ | |
15755 | s//\1/ | |
15756 | q | |
15757 | } | |
15758 | /^X\(\/\).*/{ | |
15759 | s//\1/ | |
15760 | q | |
15761 | } | |
15762 | s/.*/./; q'` | |
15763 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
15764 | # echo "creating $dirpart/$file" | |
15765 | echo '# dummy' > "$dirpart/$file" | |
13b2be9c | 15766 | done |
13b2be9c | 15767 | done |
81ecdfbb | 15768 | } |
d7040cdb | 15769 | ;; |
81ecdfbb | 15770 | "libtool":C) |
d7040cdb SE |
15771 | |
15772 | # See if we are running on zsh, and set the options which allow our | |
15773 | # commands through without removal of \ escapes. | |
15774 | if test -n "${ZSH_VERSION+set}" ; then | |
15775 | setopt NO_GLOB_SUBST | |
15776 | fi | |
15777 | ||
15778 | cfgfile="${ofile}T" | |
15779 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15780 | $RM "$cfgfile" | |
15781 | ||
15782 | cat <<_LT_EOF >> "$cfgfile" | |
15783 | #! $SHELL | |
15784 | ||
15785 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 15786 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
15787 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15788 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15789 | # | |
718a6fd8 | 15790 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 15791 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
718a6fd8 | 15792 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 15793 | # |
718a6fd8 | 15794 | # This file is part of GNU Libtool. |
d7040cdb | 15795 | # |
718a6fd8 SE |
15796 | # GNU Libtool is free software; you can redistribute it and/or |
15797 | # modify it under the terms of the GNU General Public License as | |
15798 | # published by the Free Software Foundation; either version 2 of | |
15799 | # the License, or (at your option) any later version. | |
d7040cdb | 15800 | # |
718a6fd8 SE |
15801 | # As a special exception to the GNU General Public License, |
15802 | # if you distribute this file as part of a program or library that | |
15803 | # is built using GNU Libtool, you may include this file under the | |
15804 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 15805 | # |
718a6fd8 SE |
15806 | # GNU Libtool is distributed in the hope that it will be useful, |
15807 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15808 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15809 | # GNU General Public License for more details. | |
d7040cdb | 15810 | # |
718a6fd8 SE |
15811 | # You should have received a copy of the GNU General Public License |
15812 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15813 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15814 | # obtained by writing to the Free Software Foundation, Inc., | |
15815 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
15816 | |
15817 | ||
15818 | # The names of the tagged configurations supported by this script. | |
15819 | available_tags="" | |
15820 | ||
15821 | # ### BEGIN LIBTOOL CONFIG | |
15822 | ||
15823 | # Which release of libtool.m4 was used? | |
15824 | macro_version=$macro_version | |
15825 | macro_revision=$macro_revision | |
15826 | ||
15827 | # Whether or not to build shared libraries. | |
15828 | build_libtool_libs=$enable_shared | |
15829 | ||
15830 | # Whether or not to build static libraries. | |
15831 | build_old_libs=$enable_static | |
15832 | ||
15833 | # What type of objects to build. | |
15834 | pic_mode=$pic_mode | |
15835 | ||
15836 | # Whether or not to optimize for fast installation. | |
15837 | fast_install=$enable_fast_install | |
15838 | ||
3725885a RW |
15839 | # Shell to use when invoking shell scripts. |
15840 | SHELL=$lt_SHELL | |
15841 | ||
15842 | # An echo program that protects backslashes. | |
15843 | ECHO=$lt_ECHO | |
15844 | ||
d7040cdb SE |
15845 | # The host system. |
15846 | host_alias=$host_alias | |
15847 | host=$host | |
15848 | host_os=$host_os | |
15849 | ||
15850 | # The build system. | |
15851 | build_alias=$build_alias | |
15852 | build=$build | |
15853 | build_os=$build_os | |
15854 | ||
15855 | # A sed program that does not truncate output. | |
15856 | SED=$lt_SED | |
15857 | ||
15858 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15859 | Xsed="\$SED -e 1s/^X//" | |
15860 | ||
15861 | # A grep program that handles long lines. | |
15862 | GREP=$lt_GREP | |
15863 | ||
15864 | # An ERE matcher. | |
15865 | EGREP=$lt_EGREP | |
15866 | ||
15867 | # A literal string matcher. | |
15868 | FGREP=$lt_FGREP | |
15869 | ||
15870 | # A BSD- or MS-compatible name lister. | |
15871 | NM=$lt_NM | |
15872 | ||
15873 | # Whether we need soft or hard links. | |
15874 | LN_S=$lt_LN_S | |
15875 | ||
15876 | # What is the maximum length of a command? | |
15877 | max_cmd_len=$max_cmd_len | |
15878 | ||
15879 | # Object file suffix (normally "o"). | |
15880 | objext=$ac_objext | |
15881 | ||
15882 | # Executable file suffix (normally ""). | |
15883 | exeext=$exeext | |
15884 | ||
15885 | # whether the shell understands "unset". | |
15886 | lt_unset=$lt_unset | |
15887 | ||
15888 | # turn spaces into newlines. | |
15889 | SP2NL=$lt_lt_SP2NL | |
15890 | ||
15891 | # turn newlines into spaces. | |
15892 | NL2SP=$lt_lt_NL2SP | |
15893 | ||
718a6fd8 SE |
15894 | # An object symbol dumper. |
15895 | OBJDUMP=$lt_OBJDUMP | |
15896 | ||
d7040cdb SE |
15897 | # Method to check whether dependent libraries are shared objects. |
15898 | deplibs_check_method=$lt_deplibs_check_method | |
15899 | ||
15900 | # Command to use when deplibs_check_method == "file_magic". | |
15901 | file_magic_cmd=$lt_file_magic_cmd | |
15902 | ||
15903 | # The archiver. | |
15904 | AR=$lt_AR | |
15905 | AR_FLAGS=$lt_AR_FLAGS | |
15906 | ||
15907 | # A symbol stripping program. | |
15908 | STRIP=$lt_STRIP | |
15909 | ||
15910 | # Commands used to install an old-style archive. | |
15911 | RANLIB=$lt_RANLIB | |
15912 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15913 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15914 | ||
3725885a RW |
15915 | # Whether to use a lock for old archive extraction. |
15916 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15917 | ||
d7040cdb SE |
15918 | # A C compiler. |
15919 | LTCC=$lt_CC | |
15920 | ||
15921 | # LTCC compiler flags. | |
15922 | LTCFLAGS=$lt_CFLAGS | |
15923 | ||
15924 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15925 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15926 | ||
15927 | # Transform the output of nm in a proper C declaration. | |
15928 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15929 | ||
15930 | # Transform the output of nm in a C name address pair. | |
15931 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15932 | ||
718a6fd8 SE |
15933 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
15934 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
15935 | ||
d7040cdb SE |
15936 | # The name of the directory that contains temporary libtool files. |
15937 | objdir=$objdir | |
15938 | ||
d7040cdb SE |
15939 | # Used to examine libraries when file_magic_cmd begins with "file". |
15940 | MAGIC_CMD=$MAGIC_CMD | |
15941 | ||
15942 | # Must we lock files when doing compilation? | |
15943 | need_locks=$lt_need_locks | |
15944 | ||
718a6fd8 SE |
15945 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15946 | DSYMUTIL=$lt_DSYMUTIL | |
15947 | ||
15948 | # Tool to change global to local symbols on Mac OS X. | |
15949 | NMEDIT=$lt_NMEDIT | |
15950 | ||
15951 | # Tool to manipulate fat objects and archives on Mac OS X. | |
15952 | LIPO=$lt_LIPO | |
15953 | ||
15954 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
15955 | OTOOL=$lt_OTOOL | |
15956 | ||
15957 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
15958 | OTOOL64=$lt_OTOOL64 | |
15959 | ||
d7040cdb SE |
15960 | # Old archive suffix (normally "a"). |
15961 | libext=$libext | |
15962 | ||
15963 | # Shared library suffix (normally ".so"). | |
15964 | shrext_cmds=$lt_shrext_cmds | |
15965 | ||
15966 | # The commands to extract the exported symbol list from a shared archive. | |
15967 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15968 | ||
15969 | # Variables whose values should be saved in libtool wrapper scripts and | |
15970 | # restored at link time. | |
15971 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
15972 | ||
15973 | # Do we need the "lib" prefix for modules? | |
15974 | need_lib_prefix=$need_lib_prefix | |
15975 | ||
15976 | # Do we need a version for libraries? | |
15977 | need_version=$need_version | |
15978 | ||
15979 | # Library versioning type. | |
15980 | version_type=$version_type | |
15981 | ||
15982 | # Shared library runtime path variable. | |
15983 | runpath_var=$runpath_var | |
15984 | ||
15985 | # Shared library path variable. | |
15986 | shlibpath_var=$shlibpath_var | |
15987 | ||
15988 | # Is shlibpath searched before the hard-coded library search path? | |
15989 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15990 | ||
15991 | # Format of library name prefix. | |
15992 | libname_spec=$lt_libname_spec | |
15993 | ||
15994 | # List of archive names. First name is the real one, the rest are links. | |
15995 | # The last name is the one that the linker finds with -lNAME | |
15996 | library_names_spec=$lt_library_names_spec | |
15997 | ||
15998 | # The coded name of the library, if different from the real name. | |
15999 | soname_spec=$lt_soname_spec | |
16000 | ||
3725885a RW |
16001 | # Permission mode override for installation of shared libraries. |
16002 | install_override_mode=$lt_install_override_mode | |
16003 | ||
d7040cdb SE |
16004 | # Command to use after installation of a shared archive. |
16005 | postinstall_cmds=$lt_postinstall_cmds | |
16006 | ||
16007 | # Command to use after uninstallation of a shared archive. | |
16008 | postuninstall_cmds=$lt_postuninstall_cmds | |
16009 | ||
16010 | # Commands used to finish a libtool library installation in a directory. | |
16011 | finish_cmds=$lt_finish_cmds | |
16012 | ||
16013 | # As "finish_cmds", except a single script fragment to be evaled but | |
16014 | # not shown. | |
16015 | finish_eval=$lt_finish_eval | |
16016 | ||
16017 | # Whether we should hardcode library paths into libraries. | |
16018 | hardcode_into_libs=$hardcode_into_libs | |
16019 | ||
16020 | # Compile-time system search path for libraries. | |
16021 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16022 | ||
16023 | # Run-time system search path for libraries. | |
16024 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16025 | ||
16026 | # Whether dlopen is supported. | |
16027 | dlopen_support=$enable_dlopen | |
16028 | ||
16029 | # Whether dlopen of programs is supported. | |
16030 | dlopen_self=$enable_dlopen_self | |
16031 | ||
16032 | # Whether dlopen of statically linked programs is supported. | |
16033 | dlopen_self_static=$enable_dlopen_self_static | |
16034 | ||
16035 | # Commands to strip libraries. | |
16036 | old_striplib=$lt_old_striplib | |
16037 | striplib=$lt_striplib | |
16038 | ||
16039 | ||
16040 | # The linker used to build libraries. | |
16041 | LD=$lt_LD | |
16042 | ||
3725885a RW |
16043 | # How to create reloadable object files. |
16044 | reload_flag=$lt_reload_flag | |
16045 | reload_cmds=$lt_reload_cmds | |
16046 | ||
d7040cdb SE |
16047 | # Commands used to build an old-style archive. |
16048 | old_archive_cmds=$lt_old_archive_cmds | |
16049 | ||
16050 | # A language specific compiler. | |
16051 | CC=$lt_compiler | |
16052 | ||
16053 | # Is the compiler the GNU compiler? | |
16054 | with_gcc=$GCC | |
16055 | ||
16056 | # Compiler flag to turn off builtin functions. | |
16057 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16058 | ||
16059 | # How to pass a linker flag through the compiler. | |
16060 | wl=$lt_lt_prog_compiler_wl | |
16061 | ||
16062 | # Additional compiler flags for building library objects. | |
16063 | pic_flag=$lt_lt_prog_compiler_pic | |
16064 | ||
16065 | # Compiler flag to prevent dynamic linking. | |
16066 | link_static_flag=$lt_lt_prog_compiler_static | |
16067 | ||
16068 | # Does compiler simultaneously support -c and -o options? | |
16069 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16070 | ||
16071 | # Whether or not to add -lc for building shared libraries. | |
16072 | build_libtool_need_lc=$archive_cmds_need_lc | |
16073 | ||
16074 | # Whether or not to disallow shared libs when runtime libs are static. | |
16075 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16076 | ||
16077 | # Compiler flag to allow reflexive dlopens. | |
16078 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16079 | ||
16080 | # Compiler flag to generate shared objects directly from archives. | |
16081 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16082 | ||
16083 | # Whether the compiler copes with passing no objects directly. | |
16084 | compiler_needs_object=$lt_compiler_needs_object | |
16085 | ||
16086 | # Create an old-style archive from a shared archive. | |
16087 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16088 | ||
16089 | # Create a temporary old-style archive to link instead of a shared archive. | |
16090 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16091 | ||
16092 | # Commands used to build a shared archive. | |
16093 | archive_cmds=$lt_archive_cmds | |
16094 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16095 | ||
16096 | # Commands used to build a loadable module if different from building | |
16097 | # a shared archive. | |
16098 | module_cmds=$lt_module_cmds | |
16099 | module_expsym_cmds=$lt_module_expsym_cmds | |
16100 | ||
16101 | # Whether we are building with GNU ld or not. | |
16102 | with_gnu_ld=$lt_with_gnu_ld | |
16103 | ||
16104 | # Flag that allows shared libraries with undefined symbols to be built. | |
16105 | allow_undefined_flag=$lt_allow_undefined_flag | |
16106 | ||
16107 | # Flag that enforces no undefined symbols. | |
16108 | no_undefined_flag=$lt_no_undefined_flag | |
16109 | ||
16110 | # Flag to hardcode \$libdir into a binary during linking. | |
16111 | # This must work even if \$libdir does not exist | |
16112 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16113 | ||
16114 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16115 | # during linking. This must work even if \$libdir does not exist. | |
16116 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16117 | ||
16118 | # Whether we need a single "-rpath" flag with a separated argument. | |
16119 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16120 | ||
16121 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16122 | # DIR into the resulting binary. | |
16123 | hardcode_direct=$hardcode_direct | |
16124 | ||
16125 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16126 | # DIR into the resulting binary and the resulting library dependency is | |
16127 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16128 | # library is relocated. | |
16129 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16130 | ||
16131 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16132 | # into the resulting binary. | |
16133 | hardcode_minus_L=$hardcode_minus_L | |
16134 | ||
16135 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16136 | # into the resulting binary. | |
16137 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16138 | ||
16139 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16140 | # into the library and all subsequent libraries and executables linked | |
16141 | # against it. | |
16142 | hardcode_automatic=$hardcode_automatic | |
16143 | ||
16144 | # Set to yes if linker adds runtime paths of dependent libraries | |
16145 | # to runtime path list. | |
16146 | inherit_rpath=$inherit_rpath | |
16147 | ||
16148 | # Whether libtool must link a program against all its dependency libraries. | |
16149 | link_all_deplibs=$link_all_deplibs | |
16150 | ||
16151 | # Fix the shell variable \$srcfile for the compiler. | |
16152 | fix_srcfile_path=$lt_fix_srcfile_path | |
16153 | ||
16154 | # Set to "yes" if exported symbols are required. | |
16155 | always_export_symbols=$always_export_symbols | |
16156 | ||
16157 | # The commands to list exported symbols. | |
16158 | export_symbols_cmds=$lt_export_symbols_cmds | |
16159 | ||
16160 | # Symbols that should not be listed in the preloaded symbols. | |
16161 | exclude_expsyms=$lt_exclude_expsyms | |
16162 | ||
16163 | # Symbols that must always be exported. | |
16164 | include_expsyms=$lt_include_expsyms | |
16165 | ||
16166 | # Commands necessary for linking programs (against libraries) with templates. | |
16167 | prelink_cmds=$lt_prelink_cmds | |
16168 | ||
16169 | # Specify filename containing input files. | |
16170 | file_list_spec=$lt_file_list_spec | |
16171 | ||
16172 | # How to hardcode a shared library path into an executable. | |
16173 | hardcode_action=$hardcode_action | |
16174 | ||
16175 | # ### END LIBTOOL CONFIG | |
16176 | ||
16177 | _LT_EOF | |
16178 | ||
16179 | case $host_os in | |
16180 | aix3*) | |
16181 | cat <<\_LT_EOF >> "$cfgfile" | |
16182 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16183 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16184 | # vanish in a puff of smoke. | |
16185 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16186 | COLLECT_NAMES= | |
16187 | export COLLECT_NAMES | |
16188 | fi | |
16189 | _LT_EOF | |
16190 | ;; | |
16191 | esac | |
16192 | ||
16193 | ||
16194 | ltmain="$ac_aux_dir/ltmain.sh" | |
16195 | ||
16196 | ||
16197 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16198 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16199 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16200 | # is reportedly fixed, but why not run on old versions too? | |
16201 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
16202 | || (rm -f "$cfgfile"; exit 1) | |
16203 | ||
16204 | case $xsi_shell in | |
16205 | yes) | |
16206 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 16207 | |
d7040cdb SE |
16208 | # func_dirname file append nondir_replacement |
16209 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16210 | # otherwise set result to NONDIR_REPLACEMENT. | |
16211 | func_dirname () | |
16212 | { | |
16213 | case ${1} in | |
16214 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16215 | * ) func_dirname_result="${3}" ;; | |
16216 | esac | |
16217 | } | |
16218 | ||
16219 | # func_basename file | |
16220 | func_basename () | |
16221 | { | |
16222 | func_basename_result="${1##*/}" | |
16223 | } | |
16224 | ||
718a6fd8 SE |
16225 | # func_dirname_and_basename file append nondir_replacement |
16226 | # perform func_basename and func_dirname in a single function | |
16227 | # call: | |
16228 | # dirname: Compute the dirname of FILE. If nonempty, | |
16229 | # add APPEND to the result, otherwise set result | |
16230 | # to NONDIR_REPLACEMENT. | |
16231 | # value returned in "$func_dirname_result" | |
16232 | # basename: Compute filename of FILE. | |
16233 | # value retuned in "$func_basename_result" | |
16234 | # Implementation must be kept synchronized with func_dirname | |
16235 | # and func_basename. For efficiency, we do not delegate to | |
16236 | # those functions but instead duplicate the functionality here. | |
16237 | func_dirname_and_basename () | |
16238 | { | |
16239 | case ${1} in | |
16240 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16241 | * ) func_dirname_result="${3}" ;; | |
16242 | esac | |
16243 | func_basename_result="${1##*/}" | |
16244 | } | |
16245 | ||
d7040cdb SE |
16246 | # func_stripname prefix suffix name |
16247 | # strip PREFIX and SUFFIX off of NAME. | |
16248 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16249 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16250 | # dot (in which case that matches only a dot). | |
16251 | func_stripname () | |
16252 | { | |
16253 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16254 | # positional parameters, so assign one to ordinary parameter first. | |
16255 | func_stripname_result=${3} | |
16256 | func_stripname_result=${func_stripname_result#"${1}"} | |
16257 | func_stripname_result=${func_stripname_result%"${2}"} | |
16258 | } | |
16259 | ||
16260 | # func_opt_split | |
16261 | func_opt_split () | |
16262 | { | |
16263 | func_opt_split_opt=${1%%=*} | |
16264 | func_opt_split_arg=${1#*=} | |
16265 | } | |
16266 | ||
16267 | # func_lo2o object | |
16268 | func_lo2o () | |
16269 | { | |
16270 | case ${1} in | |
16271 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16272 | *) func_lo2o_result=${1} ;; | |
16273 | esac | |
16274 | } | |
718a6fd8 SE |
16275 | |
16276 | # func_xform libobj-or-source | |
16277 | func_xform () | |
16278 | { | |
16279 | func_xform_result=${1%.*}.lo | |
16280 | } | |
16281 | ||
16282 | # func_arith arithmetic-term... | |
16283 | func_arith () | |
16284 | { | |
16285 | func_arith_result=$(( $* )) | |
16286 | } | |
16287 | ||
16288 | # func_len string | |
16289 | # STRING may not start with a hyphen. | |
16290 | func_len () | |
16291 | { | |
16292 | func_len_result=${#1} | |
16293 | } | |
16294 | ||
d7040cdb SE |
16295 | _LT_EOF |
16296 | ;; | |
16297 | *) # Bourne compatible functions. | |
16298 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 16299 | |
d7040cdb SE |
16300 | # func_dirname file append nondir_replacement |
16301 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16302 | # otherwise set result to NONDIR_REPLACEMENT. | |
16303 | func_dirname () | |
16304 | { | |
16305 | # Extract subdirectory from the argument. | |
3725885a | 16306 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
16307 | if test "X$func_dirname_result" = "X${1}"; then |
16308 | func_dirname_result="${3}" | |
16309 | else | |
16310 | func_dirname_result="$func_dirname_result${2}" | |
16311 | fi | |
16312 | } | |
16313 | ||
16314 | # func_basename file | |
16315 | func_basename () | |
16316 | { | |
3725885a | 16317 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
16318 | } |
16319 | ||
718a6fd8 | 16320 | |
d7040cdb SE |
16321 | # func_stripname prefix suffix name |
16322 | # strip PREFIX and SUFFIX off of NAME. | |
16323 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16324 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16325 | # dot (in which case that matches only a dot). | |
16326 | # func_strip_suffix prefix name | |
16327 | func_stripname () | |
16328 | { | |
16329 | case ${2} in | |
3725885a RW |
16330 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
16331 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
16332 | esac |
16333 | } | |
16334 | ||
16335 | # sed scripts: | |
16336 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16337 | my_sed_long_arg='1s/^-[^=]*=//' | |
16338 | ||
16339 | # func_opt_split | |
16340 | func_opt_split () | |
16341 | { | |
3725885a RW |
16342 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
16343 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
16344 | } |
16345 | ||
16346 | # func_lo2o object | |
16347 | func_lo2o () | |
16348 | { | |
3725885a | 16349 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 16350 | } |
718a6fd8 SE |
16351 | |
16352 | # func_xform libobj-or-source | |
16353 | func_xform () | |
16354 | { | |
3725885a | 16355 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
718a6fd8 SE |
16356 | } |
16357 | ||
16358 | # func_arith arithmetic-term... | |
16359 | func_arith () | |
16360 | { | |
16361 | func_arith_result=`expr "$@"` | |
16362 | } | |
16363 | ||
16364 | # func_len string | |
16365 | # STRING may not start with a hyphen. | |
16366 | func_len () | |
16367 | { | |
16368 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16369 | } | |
16370 | ||
d7040cdb SE |
16371 | _LT_EOF |
16372 | esac | |
16373 | ||
16374 | case $lt_shell_append in | |
16375 | yes) | |
16376 | cat << \_LT_EOF >> "$cfgfile" | |
16377 | ||
16378 | # func_append var value | |
16379 | # Append VALUE to the end of shell variable VAR. | |
16380 | func_append () | |
16381 | { | |
16382 | eval "$1+=\$2" | |
16383 | } | |
16384 | _LT_EOF | |
16385 | ;; | |
16386 | *) | |
16387 | cat << \_LT_EOF >> "$cfgfile" | |
16388 | ||
16389 | # func_append var value | |
16390 | # Append VALUE to the end of shell variable VAR. | |
16391 | func_append () | |
16392 | { | |
16393 | eval "$1=\$$1\$2" | |
16394 | } | |
718a6fd8 | 16395 | |
d7040cdb SE |
16396 | _LT_EOF |
16397 | ;; | |
16398 | esac | |
16399 | ||
16400 | ||
16401 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16402 | || (rm -f "$cfgfile"; exit 1) | |
16403 | ||
16404 | mv -f "$cfgfile" "$ofile" || | |
16405 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16406 | chmod +x "$ofile" | |
16407 | ||
13b2be9c | 16408 | ;; |
81ecdfbb | 16409 | "default-1":C) |
20e95c23 DJ |
16410 | for ac_file in $CONFIG_FILES; do |
16411 | # Support "outfile[:infile[:infile...]]" | |
16412 | case "$ac_file" in | |
16413 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16414 | esac | |
16415 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16416 | case "$ac_file" in */Makefile.in) | |
16417 | # Adjust a relative srcdir. | |
16418 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
16419 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
16420 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
16421 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16422 | # In autoconf-2.50 it is called $srcdir. | |
16423 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
16424 | case "$ac_given_srcdir" in | |
16425 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16426 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16427 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16428 | esac | |
16429 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
16430 | rm -f "$ac_dir/POTFILES" | |
16431 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
16432 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
16433 | POMAKEFILEDEPS="POTFILES.in" | |
16434 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
16435 | # on $ac_dir but don't depend on user-specified configuration | |
16436 | # parameters. | |
16437 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
16438 | # The LINGUAS file contains the set of available languages. | |
16439 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
16440 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
16441 | fi | |
16442 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
16443 | # Hide the ALL_LINGUAS assigment from automake. | |
16444 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
16445 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
16446 | else | |
16447 | # The set of available languages was given in configure.in. | |
16448 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
16449 | fi | |
16450 | case "$ac_given_srcdir" in | |
16451 | .) srcdirpre= ;; | |
16452 | *) srcdirpre='$(srcdir)/' ;; | |
16453 | esac | |
16454 | POFILES= | |
16455 | GMOFILES= | |
16456 | UPDATEPOFILES= | |
16457 | DUMMYPOFILES= | |
16458 | for lang in $ALL_LINGUAS; do | |
16459 | POFILES="$POFILES $srcdirpre$lang.po" | |
16460 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
16461 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
16462 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
16463 | done | |
16464 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
16465 | # environment variable. | |
16466 | INST_LINGUAS= | |
16467 | if test -n "$ALL_LINGUAS"; then | |
16468 | for presentlang in $ALL_LINGUAS; do | |
16469 | useit=no | |
16470 | if test "%UNSET%" != "$LINGUAS"; then | |
16471 | desiredlanguages="$LINGUAS" | |
16472 | else | |
16473 | desiredlanguages="$ALL_LINGUAS" | |
16474 | fi | |
16475 | for desiredlang in $desiredlanguages; do | |
16476 | # Use the presentlang catalog if desiredlang is | |
16477 | # a. equal to presentlang, or | |
16478 | # b. a variant of presentlang (because in this case, | |
16479 | # presentlang can be used as a fallback for messages | |
16480 | # which are not translated in the desiredlang catalog). | |
16481 | case "$desiredlang" in | |
16482 | "$presentlang"*) useit=yes;; | |
16483 | esac | |
16484 | done | |
16485 | if test $useit = yes; then | |
16486 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
16487 | fi | |
16488 | done | |
16489 | fi | |
16490 | CATALOGS= | |
16491 | if test -n "$INST_LINGUAS"; then | |
16492 | for lang in $INST_LINGUAS; do | |
16493 | CATALOGS="$CATALOGS $lang.gmo" | |
16494 | done | |
16495 | fi | |
16496 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
16497 | 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" | |
16498 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
16499 | if test -f "$f"; then | |
16500 | case "$f" in | |
16501 | *.orig | *.bak | *~) ;; | |
16502 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
16503 | esac | |
16504 | fi | |
16505 | done | |
16506 | fi | |
16507 | ;; | |
16508 | esac | |
16509 | done ;; | |
81ecdfbb | 16510 | "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 |
16511 | echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h |
16512 | echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h | |
16513 | echo '#include "te-'"${te_file}"'.h"' > targ-env.h | |
16514 | echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h | |
16515 | if test "x$cgen_cpu_prefix" != x ; then | |
16516 | echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h | |
20e95c23 | 16517 | fi ;; |
81ecdfbb | 16518 | |
13b2be9c | 16519 | esac |
81ecdfbb | 16520 | done # for ac_tag |
13b2be9c | 16521 | |
13b2be9c | 16522 | |
81ecdfbb | 16523 | as_fn_exit 0 |
13b2be9c | 16524 | _ACEOF |
13b2be9c DJ |
16525 | ac_clean_files=$ac_clean_files_save |
16526 | ||
81ecdfbb RW |
16527 | test $ac_write_fail = 0 || |
16528 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16529 | ||
13b2be9c DJ |
16530 | |
16531 | # configure is writing to config.log, and then calls config.status. | |
16532 | # config.status does its own redirection, appending to config.log. | |
16533 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16534 | # by configure, so config.status won't be able to write to it; its | |
16535 | # output is simply discarded. So we exec the FD to /dev/null, | |
16536 | # effectively closing config.log, so it can be properly (re)opened and | |
16537 | # appended to by config.status. When coming back to configure, we | |
16538 | # need to make the FD available again. | |
16539 | if test "$no_create" != yes; then | |
16540 | ac_cs_success=: | |
16541 | ac_config_status_args= | |
16542 | test "$silent" = yes && | |
16543 | ac_config_status_args="$ac_config_status_args --quiet" | |
16544 | exec 5>/dev/null | |
16545 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16546 | exec 5>>config.log | |
16547 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16548 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
16549 | $ac_cs_success || as_fn_exit $? |
16550 | fi | |
16551 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16553 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
13b2be9c | 16554 | fi |
252b5132 | 16555 |