]>
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 | ## -------------------- ## | |
979273e3 | 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 : | |
979273e3 NN |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
979273e3 NN |
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 | |
979273e3 | 31 | fi |
979273e3 | 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 | } | |
979273e3 NN |
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 | |
979273e3 NN |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
979273e3 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
979273e3 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
979273e3 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
979273e3 | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
979273e3 NN |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
979273e3 NN |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
979273e3 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
979273e3 NN |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
979273e3 | 410 | |
979273e3 NN |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
979273e3 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
979273e3 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
979273e3 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
979273e3 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
979273e3 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
979273e3 NN |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
979273e3 NN |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
979273e3 NN |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
979273e3 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
979273e3 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
979273e3 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
979273e3 | 483 | fi |
979273e3 NN |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
979273e3 NN |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
979273e3 NN |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
979273e3 NN |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
d7040cdb SE |
527 | |
528 | # Check that we are running under the correct shell. | |
529 | SHELL=${CONFIG_SHELL-/bin/sh} | |
530 | ||
531 | case X$lt_ECHO in | |
532 | X*--fallback-echo) | |
533 | # Remove one level of quotation (which was required for Make). | |
534 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
535 | ;; | |
536 | esac | |
537 | ||
538 | ECHO=${lt_ECHO-echo} | |
539 | if test "X$1" = X--no-reexec; then | |
540 | # Discard the --no-reexec flag, and continue. | |
541 | shift | |
542 | elif test "X$1" = X--fallback-echo; then | |
543 | # Avoid inline document here, it may be left over | |
544 | : | |
545 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
546 | # Yippee, $ECHO works! | |
547 | : | |
548 | else | |
549 | # Restart under the correct shell. | |
550 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
551 | fi | |
552 | ||
553 | if test "X$1" = X--fallback-echo; then | |
554 | # used as fallback echo | |
555 | shift | |
556 | cat <<_LT_EOF | |
557 | $* | |
558 | _LT_EOF | |
559 | exit 0 | |
560 | fi | |
561 | ||
562 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
563 | # if CDPATH is set. | |
564 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
565 | ||
566 | if test -z "$lt_ECHO"; then | |
567 | if test "X${echo_test_string+set}" != Xset; then | |
568 | # find a string as large as possible, as long as the shell can cope with it | |
569 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
570 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
571 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
572 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
573 | then | |
574 | break | |
575 | fi | |
576 | done | |
577 | fi | |
578 | ||
579 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
580 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
581 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
582 | : | |
583 | else | |
584 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
585 | # backslashes. This makes it impossible to quote backslashes using | |
586 | # echo "$something" | sed 's/\\/\\\\/g' | |
587 | # | |
588 | # So, first we look for a working echo in the user's PATH. | |
589 | ||
590 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
591 | for dir in $PATH /usr/ucb; do | |
592 | IFS="$lt_save_ifs" | |
593 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
594 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
595 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
596 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
597 | ECHO="$dir/echo" | |
598 | break | |
599 | fi | |
600 | done | |
601 | IFS="$lt_save_ifs" | |
602 | ||
603 | if test "X$ECHO" = Xecho; then | |
604 | # We didn't find a better echo, so look for alternatives. | |
605 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
606 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
607 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
608 | # This shell has a builtin print -r that does the trick. | |
609 | ECHO='print -r' | |
610 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
611 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
612 | # If we have ksh, try running configure again with it. | |
613 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
614 | export ORIGINAL_CONFIG_SHELL | |
615 | CONFIG_SHELL=/bin/ksh | |
616 | export CONFIG_SHELL | |
617 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
618 | else | |
619 | # Try using printf. | |
620 | ECHO='printf %s\n' | |
621 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
622 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
623 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
624 | # Cool, printf works | |
625 | : | |
626 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
627 | test "X$echo_testing_string" = 'X\t' && | |
628 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
629 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
630 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
631 | export CONFIG_SHELL | |
632 | SHELL="$CONFIG_SHELL" | |
633 | export SHELL | |
634 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
635 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
636 | test "X$echo_testing_string" = 'X\t' && | |
637 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
638 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
640 | else | |
641 | # maybe with a smaller string... | |
642 | prev=: | |
643 | ||
644 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
645 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
646 | then | |
647 | break | |
648 | fi | |
649 | prev="$cmd" | |
650 | done | |
651 | ||
652 | if test "$prev" != 'sed 50q "$0"'; then | |
653 | echo_test_string=`eval $prev` | |
654 | export echo_test_string | |
655 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
656 | else | |
657 | # Oops. We lost completely, so just stick with echo. | |
658 | ECHO=echo | |
659 | fi | |
660 | fi | |
661 | fi | |
662 | fi | |
663 | fi | |
664 | fi | |
665 | ||
666 | # Copy echo and quote the copy suitably for passing to libtool from | |
667 | # the Makefile, instead of quoting the original, which is used later. | |
668 | lt_ECHO=$ECHO | |
669 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
670 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
671 | fi | |
672 | ||
673 | ||
674 | ||
675 | ||
81ecdfbb RW |
676 | exec 7<&0 </dev/null 6>&1 |
677 | ||
979273e3 NN |
678 | # Name of the host. |
679 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
680 | # so uname gets run too. | |
681 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 682 | |
979273e3 NN |
683 | # |
684 | # Initializations. | |
685 | # | |
252b5132 | 686 | ac_default_prefix=/usr/local |
81ecdfbb | 687 | ac_clean_files= |
979273e3 | 688 | ac_config_libobj_dir=. |
81ecdfbb | 689 | LIBOBJS= |
979273e3 NN |
690 | cross_compiling=no |
691 | subdirs= | |
692 | MFLAGS= | |
693 | MAKEFLAGS= | |
979273e3 NN |
694 | |
695 | # Identity of this package. | |
696 | PACKAGE_NAME= | |
697 | PACKAGE_TARNAME= | |
698 | PACKAGE_VERSION= | |
699 | PACKAGE_STRING= | |
700 | PACKAGE_BUGREPORT= | |
81ecdfbb | 701 | PACKAGE_URL= |
979273e3 NN |
702 | |
703 | ac_unique_file="z8k-dis.c" | |
704 | # Factoring default headers for most tests. | |
705 | ac_includes_default="\ | |
706 | #include <stdio.h> | |
81ecdfbb | 707 | #ifdef HAVE_SYS_TYPES_H |
979273e3 NN |
708 | # include <sys/types.h> |
709 | #endif | |
81ecdfbb | 710 | #ifdef HAVE_SYS_STAT_H |
979273e3 NN |
711 | # include <sys/stat.h> |
712 | #endif | |
81ecdfbb | 713 | #ifdef STDC_HEADERS |
979273e3 NN |
714 | # include <stdlib.h> |
715 | # include <stddef.h> | |
716 | #else | |
81ecdfbb | 717 | # ifdef HAVE_STDLIB_H |
979273e3 NN |
718 | # include <stdlib.h> |
719 | # endif | |
720 | #endif | |
81ecdfbb RW |
721 | #ifdef HAVE_STRING_H |
722 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
979273e3 NN |
723 | # include <memory.h> |
724 | # endif | |
725 | # include <string.h> | |
726 | #endif | |
81ecdfbb | 727 | #ifdef HAVE_STRINGS_H |
979273e3 NN |
728 | # include <strings.h> |
729 | #endif | |
81ecdfbb | 730 | #ifdef HAVE_INTTYPES_H |
979273e3 | 731 | # include <inttypes.h> |
979273e3 | 732 | #endif |
81ecdfbb RW |
733 | #ifdef HAVE_STDINT_H |
734 | # include <stdint.h> | |
735 | #endif | |
736 | #ifdef HAVE_UNISTD_H | |
979273e3 NN |
737 | # include <unistd.h> |
738 | #endif" | |
739 | ||
81ecdfbb RW |
740 | ac_subst_vars='am__EXEEXT_FALSE |
741 | am__EXEEXT_TRUE | |
742 | LTLIBOBJS | |
743 | LIBOBJS | |
744 | BFD_MACHINES | |
745 | archdefs | |
746 | SHARED_DEPENDENCIES | |
747 | SHARED_LIBADD | |
748 | SHARED_LDFLAGS | |
2eee5593 AM |
749 | BUILD_LIB_DEPS |
750 | BUILD_LIBS | |
81ecdfbb RW |
751 | LIBM |
752 | cgendir | |
753 | CGEN_MAINT_FALSE | |
754 | CGEN_MAINT_TRUE | |
755 | HDEFINES | |
756 | EXEEXT_FOR_BUILD | |
757 | CC_FOR_BUILD | |
758 | MSGMERGE | |
759 | MSGFMT | |
760 | MKINSTALLDIRS | |
761 | CATOBJEXT | |
762 | GENCAT | |
763 | INSTOBJEXT | |
764 | DATADIRNAME | |
765 | CATALOGS | |
766 | POSUB | |
767 | GMSGFMT | |
768 | XGETTEXT | |
769 | INCINTL | |
770 | LIBINTL_DEP | |
771 | LIBINTL | |
772 | USE_NLS | |
773 | bfdincludedir | |
774 | bfdlibdir | |
775 | target_noncanonical | |
776 | host_noncanonical | |
777 | INSTALL_LIBBFD_FALSE | |
778 | INSTALL_LIBBFD_TRUE | |
779 | MAINT | |
780 | MAINTAINER_MODE_FALSE | |
781 | MAINTAINER_MODE_TRUE | |
782 | NO_WERROR | |
783 | WARN_CFLAGS | |
784 | OTOOL64 | |
785 | OTOOL | |
786 | LIPO | |
787 | NMEDIT | |
788 | DSYMUTIL | |
789 | lt_ECHO | |
790 | OBJDUMP | |
791 | LN_S | |
792 | NM | |
793 | ac_ct_DUMPBIN | |
794 | DUMPBIN | |
795 | LD | |
796 | FGREP | |
797 | SED | |
798 | LIBTOOL | |
799 | RANLIB | |
800 | AR | |
801 | EGREP | |
802 | GREP | |
803 | CPP | |
804 | am__fastdepCC_FALSE | |
805 | am__fastdepCC_TRUE | |
806 | CCDEPMODE | |
807 | AMDEPBACKSLASH | |
808 | AMDEP_FALSE | |
809 | AMDEP_TRUE | |
810 | am__quote | |
811 | am__include | |
812 | DEPDIR | |
813 | am__untar | |
814 | am__tar | |
815 | AMTAR | |
816 | am__leading_dot | |
817 | SET_MAKE | |
818 | AWK | |
819 | mkdir_p | |
820 | MKDIR_P | |
821 | INSTALL_STRIP_PROGRAM | |
822 | STRIP | |
823 | install_sh | |
824 | MAKEINFO | |
825 | AUTOHEADER | |
826 | AUTOMAKE | |
827 | AUTOCONF | |
828 | ACLOCAL | |
829 | VERSION | |
830 | PACKAGE | |
831 | CYGPATH_W | |
832 | am__isrc | |
833 | INSTALL_DATA | |
834 | INSTALL_SCRIPT | |
835 | INSTALL_PROGRAM | |
836 | OBJEXT | |
837 | EXEEXT | |
838 | ac_ct_CC | |
839 | CPPFLAGS | |
840 | LDFLAGS | |
841 | CFLAGS | |
842 | CC | |
843 | target_os | |
844 | target_vendor | |
845 | target_cpu | |
846 | target | |
847 | host_os | |
848 | host_vendor | |
849 | host_cpu | |
850 | host | |
851 | build_os | |
852 | build_vendor | |
853 | build_cpu | |
854 | build | |
855 | target_alias | |
856 | host_alias | |
857 | build_alias | |
858 | LIBS | |
859 | ECHO_T | |
860 | ECHO_N | |
861 | ECHO_C | |
862 | DEFS | |
863 | mandir | |
864 | localedir | |
865 | libdir | |
866 | psdir | |
867 | pdfdir | |
868 | dvidir | |
869 | htmldir | |
870 | infodir | |
871 | docdir | |
872 | oldincludedir | |
873 | includedir | |
874 | localstatedir | |
875 | sharedstatedir | |
876 | sysconfdir | |
877 | datadir | |
878 | datarootdir | |
879 | libexecdir | |
880 | sbindir | |
881 | bindir | |
882 | program_transform_name | |
883 | prefix | |
884 | exec_prefix | |
885 | PACKAGE_URL | |
886 | PACKAGE_BUGREPORT | |
887 | PACKAGE_STRING | |
888 | PACKAGE_VERSION | |
889 | PACKAGE_TARNAME | |
890 | PACKAGE_NAME | |
891 | PATH_SEPARATOR | |
892 | SHELL' | |
979273e3 | 893 | ac_subst_files='' |
81ecdfbb RW |
894 | ac_user_opts=' |
895 | enable_option_checking | |
896 | enable_dependency_tracking | |
897 | enable_shared | |
898 | enable_static | |
899 | with_pic | |
900 | enable_fast_install | |
901 | with_gnu_ld | |
902 | enable_libtool_lock | |
903 | enable_targets | |
904 | enable_werror | |
905 | enable_build_warnings | |
906 | enable_maintainer_mode | |
907 | enable_install_libbfd | |
908 | enable_nls | |
909 | enable_cgen_maint | |
910 | ' | |
911 | ac_precious_vars='build_alias | |
912 | host_alias | |
913 | target_alias | |
914 | CC | |
915 | CFLAGS | |
916 | LDFLAGS | |
917 | LIBS | |
918 | CPPFLAGS | |
919 | CPP' | |
920 | ||
252b5132 RH |
921 | |
922 | # Initialize some variables set by options. | |
979273e3 NN |
923 | ac_init_help= |
924 | ac_init_version=false | |
81ecdfbb RW |
925 | ac_unrecognized_opts= |
926 | ac_unrecognized_sep= | |
252b5132 RH |
927 | # The variables have the same names as the options, with |
928 | # dashes changed to underlines. | |
979273e3 | 929 | cache_file=/dev/null |
252b5132 | 930 | exec_prefix=NONE |
252b5132 | 931 | no_create= |
252b5132 RH |
932 | no_recursion= |
933 | prefix=NONE | |
934 | program_prefix=NONE | |
935 | program_suffix=NONE | |
936 | program_transform_name=s,x,x, | |
937 | silent= | |
938 | site= | |
939 | srcdir= | |
252b5132 RH |
940 | verbose= |
941 | x_includes=NONE | |
942 | x_libraries=NONE | |
979273e3 NN |
943 | |
944 | # Installation directory options. | |
945 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
946 | # and all the variables that are supposed to be based on exec_prefix | |
947 | # by default will actually change. | |
948 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 949 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
950 | bindir='${exec_prefix}/bin' |
951 | sbindir='${exec_prefix}/sbin' | |
952 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
953 | datarootdir='${prefix}/share' |
954 | datadir='${datarootdir}' | |
252b5132 RH |
955 | sysconfdir='${prefix}/etc' |
956 | sharedstatedir='${prefix}/com' | |
957 | localstatedir='${prefix}/var' | |
252b5132 RH |
958 | includedir='${prefix}/include' |
959 | oldincludedir='/usr/include' | |
81ecdfbb RW |
960 | docdir='${datarootdir}/doc/${PACKAGE}' |
961 | infodir='${datarootdir}/info' | |
962 | htmldir='${docdir}' | |
963 | dvidir='${docdir}' | |
964 | pdfdir='${docdir}' | |
965 | psdir='${docdir}' | |
966 | libdir='${exec_prefix}/lib' | |
967 | localedir='${datarootdir}/locale' | |
968 | mandir='${datarootdir}/man' | |
252b5132 | 969 | |
252b5132 | 970 | ac_prev= |
81ecdfbb | 971 | ac_dashdash= |
252b5132 RH |
972 | for ac_option |
973 | do | |
252b5132 RH |
974 | # If the previous option needs an argument, assign it. |
975 | if test -n "$ac_prev"; then | |
81ecdfbb | 976 | eval $ac_prev=\$ac_option |
252b5132 RH |
977 | ac_prev= |
978 | continue | |
979 | fi | |
980 | ||
81ecdfbb RW |
981 | case $ac_option in |
982 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
983 | *) ac_optarg=yes ;; | |
984 | esac | |
252b5132 RH |
985 | |
986 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
987 | ||
81ecdfbb RW |
988 | case $ac_dashdash$ac_option in |
989 | --) | |
990 | ac_dashdash=yes ;; | |
252b5132 RH |
991 | |
992 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
993 | ac_prev=bindir ;; | |
994 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
979273e3 | 995 | bindir=$ac_optarg ;; |
252b5132 RH |
996 | |
997 | -build | --build | --buil | --bui | --bu) | |
979273e3 | 998 | ac_prev=build_alias ;; |
252b5132 | 999 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
979273e3 | 1000 | build_alias=$ac_optarg ;; |
252b5132 RH |
1001 | |
1002 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1003 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1004 | ac_prev=cache_file ;; | |
1005 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1006 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
979273e3 NN |
1007 | cache_file=$ac_optarg ;; |
1008 | ||
1009 | --config-cache | -C) | |
1010 | cache_file=config.cache ;; | |
252b5132 | 1011 | |
81ecdfbb | 1012 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 1013 | ac_prev=datadir ;; |
81ecdfbb | 1014 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
979273e3 | 1015 | datadir=$ac_optarg ;; |
252b5132 | 1016 | |
81ecdfbb RW |
1017 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1018 | | --dataroo | --dataro | --datar) | |
1019 | ac_prev=datarootdir ;; | |
1020 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1021 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1022 | datarootdir=$ac_optarg ;; | |
1023 | ||
252b5132 | 1024 | -disable-* | --disable-*) |
81ecdfbb | 1025 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 1026 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1028 | as_fn_error "invalid feature name: $ac_useropt" | |
1029 | ac_useropt_orig=$ac_useropt | |
1030 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1031 | case $ac_user_opts in | |
1032 | *" | |
1033 | "enable_$ac_useropt" | |
1034 | "*) ;; | |
1035 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1036 | ac_unrecognized_sep=', ';; | |
1037 | esac | |
1038 | eval enable_$ac_useropt=no ;; | |
1039 | ||
1040 | -docdir | --docdir | --docdi | --doc | --do) | |
1041 | ac_prev=docdir ;; | |
1042 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1043 | docdir=$ac_optarg ;; | |
1044 | ||
1045 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1046 | ac_prev=dvidir ;; | |
1047 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1048 | dvidir=$ac_optarg ;; | |
252b5132 RH |
1049 | |
1050 | -enable-* | --enable-*) | |
81ecdfbb | 1051 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 1052 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1053 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1054 | as_fn_error "invalid feature name: $ac_useropt" | |
1055 | ac_useropt_orig=$ac_useropt | |
1056 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1057 | case $ac_user_opts in | |
1058 | *" | |
1059 | "enable_$ac_useropt" | |
1060 | "*) ;; | |
1061 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1062 | ac_unrecognized_sep=', ';; | |
252b5132 | 1063 | esac |
81ecdfbb | 1064 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1065 | |
1066 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1067 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1068 | | --exec | --exe | --ex) | |
1069 | ac_prev=exec_prefix ;; | |
1070 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1071 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1072 | | --exec=* | --exe=* | --ex=*) | |
979273e3 | 1073 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1074 | |
1075 | -gas | --gas | --ga | --g) | |
1076 | # Obsolete; use --with-gas. | |
1077 | with_gas=yes ;; | |
1078 | ||
979273e3 NN |
1079 | -help | --help | --hel | --he | -h) |
1080 | ac_init_help=long ;; | |
1081 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1082 | ac_init_help=recursive ;; | |
1083 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1084 | ac_init_help=short ;; | |
252b5132 RH |
1085 | |
1086 | -host | --host | --hos | --ho) | |
979273e3 | 1087 | ac_prev=host_alias ;; |
252b5132 | 1088 | -host=* | --host=* | --hos=* | --ho=*) |
979273e3 | 1089 | host_alias=$ac_optarg ;; |
252b5132 | 1090 | |
81ecdfbb RW |
1091 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1092 | ac_prev=htmldir ;; | |
1093 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1094 | | --ht=*) | |
1095 | htmldir=$ac_optarg ;; | |
1096 | ||
252b5132 RH |
1097 | -includedir | --includedir | --includedi | --included | --include \ |
1098 | | --includ | --inclu | --incl | --inc) | |
1099 | ac_prev=includedir ;; | |
1100 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1101 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
979273e3 | 1102 | includedir=$ac_optarg ;; |
252b5132 RH |
1103 | |
1104 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1105 | ac_prev=infodir ;; | |
1106 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
979273e3 | 1107 | infodir=$ac_optarg ;; |
252b5132 RH |
1108 | |
1109 | -libdir | --libdir | --libdi | --libd) | |
1110 | ac_prev=libdir ;; | |
1111 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
979273e3 | 1112 | libdir=$ac_optarg ;; |
252b5132 RH |
1113 | |
1114 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1115 | | --libexe | --libex | --libe) | |
1116 | ac_prev=libexecdir ;; | |
1117 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1118 | | --libexe=* | --libex=* | --libe=*) | |
979273e3 | 1119 | libexecdir=$ac_optarg ;; |
252b5132 | 1120 | |
81ecdfbb RW |
1121 | -localedir | --localedir | --localedi | --localed | --locale) |
1122 | ac_prev=localedir ;; | |
1123 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1124 | localedir=$ac_optarg ;; | |
1125 | ||
252b5132 | 1126 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1127 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1128 | ac_prev=localstatedir ;; |
1129 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1130 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
979273e3 | 1131 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1132 | |
1133 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1134 | ac_prev=mandir ;; | |
1135 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
979273e3 | 1136 | mandir=$ac_optarg ;; |
252b5132 RH |
1137 | |
1138 | -nfp | --nfp | --nf) | |
1139 | # Obsolete; use --without-fp. | |
1140 | with_fp=no ;; | |
1141 | ||
1142 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
979273e3 | 1143 | | --no-cr | --no-c | -n) |
252b5132 RH |
1144 | no_create=yes ;; |
1145 | ||
1146 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1147 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1148 | no_recursion=yes ;; | |
1149 | ||
1150 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1151 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1152 | | --oldin | --oldi | --old | --ol | --o) | |
1153 | ac_prev=oldincludedir ;; | |
1154 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1155 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1156 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
979273e3 | 1157 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1158 | |
1159 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1160 | ac_prev=prefix ;; | |
1161 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
979273e3 | 1162 | prefix=$ac_optarg ;; |
252b5132 RH |
1163 | |
1164 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1165 | | --program-pre | --program-pr | --program-p) | |
1166 | ac_prev=program_prefix ;; | |
1167 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1168 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
979273e3 | 1169 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1170 | |
1171 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1172 | | --program-suf | --program-su | --program-s) | |
1173 | ac_prev=program_suffix ;; | |
1174 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1175 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
979273e3 | 1176 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1177 | |
1178 | -program-transform-name | --program-transform-name \ | |
1179 | | --program-transform-nam | --program-transform-na \ | |
1180 | | --program-transform-n | --program-transform- \ | |
1181 | | --program-transform | --program-transfor \ | |
1182 | | --program-transfo | --program-transf \ | |
1183 | | --program-trans | --program-tran \ | |
1184 | | --progr-tra | --program-tr | --program-t) | |
1185 | ac_prev=program_transform_name ;; | |
1186 | -program-transform-name=* | --program-transform-name=* \ | |
1187 | | --program-transform-nam=* | --program-transform-na=* \ | |
1188 | | --program-transform-n=* | --program-transform-=* \ | |
1189 | | --program-transform=* | --program-transfor=* \ | |
1190 | | --program-transfo=* | --program-transf=* \ | |
1191 | | --program-trans=* | --program-tran=* \ | |
1192 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
979273e3 | 1193 | program_transform_name=$ac_optarg ;; |
252b5132 | 1194 | |
81ecdfbb RW |
1195 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1196 | ac_prev=pdfdir ;; | |
1197 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1198 | pdfdir=$ac_optarg ;; | |
1199 | ||
1200 | -psdir | --psdir | --psdi | --psd | --ps) | |
1201 | ac_prev=psdir ;; | |
1202 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1203 | psdir=$ac_optarg ;; | |
1204 | ||
252b5132 RH |
1205 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1206 | | -silent | --silent | --silen | --sile | --sil) | |
1207 | silent=yes ;; | |
1208 | ||
1209 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1210 | ac_prev=sbindir ;; | |
1211 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1212 | | --sbi=* | --sb=*) | |
979273e3 | 1213 | sbindir=$ac_optarg ;; |
252b5132 RH |
1214 | |
1215 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1216 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1217 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1218 | | --sha | --sh) | |
1219 | ac_prev=sharedstatedir ;; | |
1220 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1221 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1222 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1223 | | --sha=* | --sh=*) | |
979273e3 | 1224 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1225 | |
1226 | -site | --site | --sit) | |
1227 | ac_prev=site ;; | |
1228 | -site=* | --site=* | --sit=*) | |
979273e3 | 1229 | site=$ac_optarg ;; |
1fe1f39c | 1230 | |
252b5132 RH |
1231 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1232 | ac_prev=srcdir ;; | |
1233 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
979273e3 | 1234 | srcdir=$ac_optarg ;; |
252b5132 RH |
1235 | |
1236 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1237 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1238 | ac_prev=sysconfdir ;; | |
1239 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1240 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
979273e3 | 1241 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1242 | |
1243 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
979273e3 | 1244 | ac_prev=target_alias ;; |
252b5132 | 1245 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
979273e3 | 1246 | target_alias=$ac_optarg ;; |
252b5132 RH |
1247 | |
1248 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1249 | verbose=yes ;; | |
1250 | ||
979273e3 NN |
1251 | -version | --version | --versio | --versi | --vers | -V) |
1252 | ac_init_version=: ;; | |
252b5132 RH |
1253 | |
1254 | -with-* | --with-*) | |
81ecdfbb | 1255 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1256 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1257 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1258 | as_fn_error "invalid package name: $ac_useropt" | |
1259 | ac_useropt_orig=$ac_useropt | |
1260 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1261 | case $ac_user_opts in | |
1262 | *" | |
1263 | "with_$ac_useropt" | |
1264 | "*) ;; | |
1265 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1266 | ac_unrecognized_sep=', ';; | |
252b5132 | 1267 | esac |
81ecdfbb | 1268 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1269 | |
1270 | -without-* | --without-*) | |
81ecdfbb | 1271 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1272 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1273 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1274 | as_fn_error "invalid package name: $ac_useropt" | |
1275 | ac_useropt_orig=$ac_useropt | |
1276 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1277 | case $ac_user_opts in | |
1278 | *" | |
1279 | "with_$ac_useropt" | |
1280 | "*) ;; | |
1281 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1282 | ac_unrecognized_sep=', ';; | |
1283 | esac | |
1284 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1285 | |
1286 | --x) | |
1287 | # Obsolete; use --with-x. | |
1288 | with_x=yes ;; | |
1289 | ||
1290 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1291 | | --x-incl | --x-inc | --x-in | --x-i) | |
1292 | ac_prev=x_includes ;; | |
1293 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1294 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
979273e3 | 1295 | x_includes=$ac_optarg ;; |
252b5132 RH |
1296 | |
1297 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1298 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1299 | ac_prev=x_libraries ;; | |
1300 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1301 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
979273e3 | 1302 | x_libraries=$ac_optarg ;; |
252b5132 | 1303 | |
81ecdfbb RW |
1304 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1305 | Try \`$0 --help' for more information." | |
252b5132 RH |
1306 | ;; |
1307 | ||
979273e3 NN |
1308 | *=*) |
1309 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1310 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1311 | case $ac_envvar in #( |
1312 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1313 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1314 | esac | |
1315 | eval $ac_envvar=\$ac_optarg | |
979273e3 NN |
1316 | export $ac_envvar ;; |
1317 | ||
252b5132 | 1318 | *) |
979273e3 | 1319 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1320 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
979273e3 | 1321 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1322 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
979273e3 | 1323 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1324 | ;; |
1325 | ||
1326 | esac | |
1327 | done | |
1328 | ||
1329 | if test -n "$ac_prev"; then | |
979273e3 | 1330 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1331 | as_fn_error "missing argument to $ac_option" |
252b5132 | 1332 | fi |
252b5132 | 1333 | |
81ecdfbb RW |
1334 | if test -n "$ac_unrecognized_opts"; then |
1335 | case $enable_option_checking in | |
1336 | no) ;; | |
1337 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1338 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
979273e3 | 1339 | esac |
81ecdfbb | 1340 | fi |
252b5132 | 1341 | |
81ecdfbb RW |
1342 | # Check all directory arguments for consistency. |
1343 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1344 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1345 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1346 | libdir localedir mandir | |
252b5132 | 1347 | do |
81ecdfbb RW |
1348 | eval ac_val=\$$ac_var |
1349 | # Remove trailing slashes. | |
1350 | case $ac_val in | |
1351 | */ ) | |
1352 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1353 | eval $ac_var=\$ac_val;; | |
1354 | esac | |
1355 | # Be sure to have absolute directory names. | |
979273e3 | 1356 | case $ac_val in |
81ecdfbb RW |
1357 | [\\/$]* | ?:[\\/]* ) continue;; |
1358 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1359 | esac |
81ecdfbb | 1360 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1361 | done |
1362 | ||
979273e3 NN |
1363 | # There might be people who depend on the old broken behavior: `$host' |
1364 | # used to hold the argument of --host etc. | |
1365 | # FIXME: To remove some day. | |
1366 | build=$build_alias | |
1367 | host=$host_alias | |
1368 | target=$target_alias | |
1369 | ||
1370 | # FIXME: To remove some day. | |
1371 | if test "x$host_alias" != x; then | |
1372 | if test "x$build_alias" = x; then | |
1373 | cross_compiling=maybe | |
81ecdfbb | 1374 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
979273e3 NN |
1375 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1376 | elif test "x$build_alias" != "x$host_alias"; then | |
1377 | cross_compiling=yes | |
1378 | fi | |
1379 | fi | |
252b5132 | 1380 | |
979273e3 NN |
1381 | ac_tool_prefix= |
1382 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1383 | ||
1384 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1385 | |
252b5132 | 1386 | |
81ecdfbb RW |
1387 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1388 | ac_ls_di=`ls -di .` && | |
1389 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1390 | as_fn_error "working directory cannot be determined" | |
1391 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1392 | as_fn_error "pwd does not report name of working directory" | |
1393 | ||
1394 | ||
252b5132 RH |
1395 | # Find the source files, if location was not specified. |
1396 | if test -z "$srcdir"; then | |
1397 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1398 | # Try the directory containing this script, then the parent directory. |
1399 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1400 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1401 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1402 | X"$as_myself" : 'X\(//\)$' \| \ | |
1403 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1404 | $as_echo X"$as_myself" | | |
1405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1406 | s//\1/ | |
1407 | q | |
1408 | } | |
1409 | /^X\(\/\/\)[^/].*/{ | |
1410 | s//\1/ | |
1411 | q | |
1412 | } | |
1413 | /^X\(\/\/\)$/{ | |
1414 | s//\1/ | |
1415 | q | |
1416 | } | |
1417 | /^X\(\/\).*/{ | |
1418 | s//\1/ | |
1419 | q | |
1420 | } | |
1421 | s/.*/./; q'` | |
252b5132 | 1422 | srcdir=$ac_confdir |
81ecdfbb | 1423 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1424 | srcdir=.. |
1425 | fi | |
1426 | else | |
1427 | ac_srcdir_defaulted=no | |
1428 | fi | |
81ecdfbb RW |
1429 | if test ! -r "$srcdir/$ac_unique_file"; then |
1430 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1431 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1432 | fi | |
1433 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1434 | ac_abs_confdir=`( | |
1435 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1436 | pwd)` | |
1437 | # When building in place, set srcdir=. | |
1438 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1439 | srcdir=. | |
1440 | fi | |
1441 | # Remove unnecessary trailing slashes from srcdir. | |
1442 | # Double slashes in file names in object file debugging info | |
1443 | # mess up M-x gdb in Emacs. | |
1444 | case $srcdir in | |
1445 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1446 | esac | |
1447 | for ac_var in $ac_precious_vars; do | |
1448 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1449 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1450 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1451 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1452 | done | |
252b5132 | 1453 | |
979273e3 NN |
1454 | # |
1455 | # Report the --help message. | |
1456 | # | |
1457 | if test "$ac_init_help" = "long"; then | |
1458 | # Omit some internal or obsolete options to make the list less imposing. | |
1459 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1460 | cat <<_ACEOF | |
1461 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 1462 | |
979273e3 | 1463 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1464 | |
979273e3 NN |
1465 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1466 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1467 | |
979273e3 | 1468 | Defaults for the options are specified in brackets. |
ac48eca1 | 1469 | |
979273e3 NN |
1470 | Configuration: |
1471 | -h, --help display this help and exit | |
1472 | --help=short display options specific to this package | |
1473 | --help=recursive display the short help of all the included packages | |
1474 | -V, --version display version information and exit | |
1475 | -q, --quiet, --silent do not print \`checking...' messages | |
1476 | --cache-file=FILE cache test results in FILE [disabled] | |
1477 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1478 | -n, --no-create do not create output files | |
1479 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1480 | ||
979273e3 NN |
1481 | Installation directories: |
1482 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1483 | [$ac_default_prefix] |
979273e3 | 1484 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1485 | [PREFIX] |
ac48eca1 | 1486 | |
979273e3 NN |
1487 | By default, \`make install' will install all the files in |
1488 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1489 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1490 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1491 | |
979273e3 | 1492 | For better control, use the options below. |
ac48eca1 | 1493 | |
979273e3 | 1494 | Fine tuning of the installation directories: |
81ecdfbb RW |
1495 | --bindir=DIR user executables [EPREFIX/bin] |
1496 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1497 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1498 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1499 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1500 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1501 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1502 | --includedir=DIR C header files [PREFIX/include] | |
1503 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1504 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1505 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1506 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1507 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1508 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1509 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1510 | --htmldir=DIR html documentation [DOCDIR] | |
1511 | --dvidir=DIR dvi documentation [DOCDIR] | |
1512 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1513 | --psdir=DIR ps documentation [DOCDIR] | |
979273e3 | 1514 | _ACEOF |
ac48eca1 | 1515 | |
979273e3 | 1516 | cat <<\_ACEOF |
252b5132 | 1517 | |
979273e3 NN |
1518 | Program names: |
1519 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1520 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1521 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1522 | |
979273e3 NN |
1523 | System types: |
1524 | --build=BUILD configure for building on BUILD [guessed] | |
1525 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1526 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1527 | _ACEOF | |
252b5132 | 1528 | fi |
252b5132 | 1529 | |
979273e3 | 1530 | if test -n "$ac_init_help"; then |
252b5132 | 1531 | |
979273e3 | 1532 | cat <<\_ACEOF |
252b5132 | 1533 | |
979273e3 | 1534 | Optional Features: |
81ecdfbb | 1535 | --disable-option-checking ignore unrecognized --enable/--with options |
979273e3 NN |
1536 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1537 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
8ae85421 AM |
1538 | --disable-dependency-tracking speeds up one-time build |
1539 | --enable-dependency-tracking do not reject slow dependency extractors | |
81ecdfbb RW |
1540 | --enable-shared[=PKGS] build shared libraries [default=no] |
1541 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1542 | --enable-fast-install[=PKGS] |
1543 | optimize for fast installation [default=yes] | |
979273e3 NN |
1544 | --disable-libtool-lock avoid locking (might break parallel builds) |
1545 | --enable-targets alternative target configurations | |
241a6c40 AM |
1546 | --enable-werror treat compile warnings as errors |
1547 | --enable-build-warnings enable build-time compiler warnings | |
8ae85421 AM |
1548 | --enable-maintainer-mode enable make rules and dependencies not useful |
1549 | (and sometimes confusing) to the casual installer | |
979273e3 NN |
1550 | --enable-install-libbfd controls installation of libbfd and related headers |
1551 | --disable-nls do not use Native Language Support | |
1552 | --enable-cgen-maint=dir build cgen generated files | |
1553 | ||
1554 | Optional Packages: | |
1555 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1556 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1557 | --with-pic try to use only PIC/non-PIC objects [default=use |
1558 | both] | |
1559 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
252b5132 | 1560 | |
979273e3 NN |
1561 | Some influential environment variables: |
1562 | CC C compiler command | |
1563 | CFLAGS C compiler flags | |
1564 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1565 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1566 | LIBS libraries to pass to the linker, e.g. -l<library> |
1567 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1568 | you have headers in a nonstandard directory <include dir> | |
979273e3 | 1569 | CPP C preprocessor |
a2d91340 | 1570 | |
979273e3 NN |
1571 | Use these variables to override the choices made by `configure' or to help |
1572 | it to find libraries and programs with nonstandard names/locations. | |
1573 | ||
81ecdfbb | 1574 | Report bugs to the package provider. |
979273e3 | 1575 | _ACEOF |
81ecdfbb | 1576 | ac_status=$? |
a2d91340 AC |
1577 | fi |
1578 | ||
979273e3 NN |
1579 | if test "$ac_init_help" = "recursive"; then |
1580 | # If there are subdirs, report their specific --help. | |
979273e3 | 1581 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1582 | test -d "$ac_dir" || |
1583 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1584 | continue | |
979273e3 NN |
1585 | ac_builddir=. |
1586 | ||
81ecdfbb RW |
1587 | case "$ac_dir" in |
1588 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1589 | *) | |
1590 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1591 | # A ".." for each directory in $ac_dir_suffix. | |
1592 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1593 | case $ac_top_builddir_sub in | |
1594 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1595 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1596 | esac ;; | |
1597 | esac | |
1598 | ac_abs_top_builddir=$ac_pwd | |
1599 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1600 | # for backward compatibility: | |
1601 | ac_top_builddir=$ac_top_build_prefix | |
a2d91340 | 1602 | |
979273e3 | 1603 | case $srcdir in |
81ecdfbb | 1604 | .) # We are building in place. |
979273e3 | 1605 | ac_srcdir=. |
81ecdfbb RW |
1606 | ac_top_srcdir=$ac_top_builddir_sub |
1607 | ac_abs_top_srcdir=$ac_pwd ;; | |
1608 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
979273e3 | 1609 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1610 | ac_top_srcdir=$srcdir |
1611 | ac_abs_top_srcdir=$srcdir ;; | |
1612 | *) # Relative name. | |
1613 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1614 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1615 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a2d91340 | 1616 | esac |
81ecdfbb RW |
1617 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1618 | ||
1619 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1620 | # Check for guested configure. | |
1621 | if test -f "$ac_srcdir/configure.gnu"; then | |
1622 | echo && | |
1623 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1624 | elif test -f "$ac_srcdir/configure"; then | |
1625 | echo && | |
1626 | $SHELL "$ac_srcdir/configure" --help=recursive | |
979273e3 | 1627 | else |
81ecdfbb RW |
1628 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1629 | fi || ac_status=$? | |
1630 | cd "$ac_pwd" || { ac_status=$?; break; } | |
979273e3 NN |
1631 | done |
1632 | fi | |
a2d91340 | 1633 | |
81ecdfbb | 1634 | test -n "$ac_init_help" && exit $ac_status |
979273e3 NN |
1635 | if $ac_init_version; then |
1636 | cat <<\_ACEOF | |
81ecdfbb RW |
1637 | configure |
1638 | generated by GNU Autoconf 2.64 | |
252b5132 | 1639 | |
81ecdfbb | 1640 | Copyright (C) 2009 Free Software Foundation, Inc. |
979273e3 NN |
1641 | This configure script is free software; the Free Software Foundation |
1642 | gives unlimited permission to copy, distribute and modify it. | |
1643 | _ACEOF | |
81ecdfbb | 1644 | exit |
979273e3 | 1645 | fi |
2c73f9d8 | 1646 | |
81ecdfbb RW |
1647 | ## ------------------------ ## |
1648 | ## Autoconf initialization. ## | |
1649 | ## ------------------------ ## | |
252b5132 | 1650 | |
81ecdfbb RW |
1651 | # ac_fn_c_try_compile LINENO |
1652 | # -------------------------- | |
1653 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1654 | ac_fn_c_try_compile () | |
1655 | { | |
1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1657 | rm -f conftest.$ac_objext | |
1658 | if { { ac_try="$ac_compile" | |
1659 | case "(($ac_try" in | |
1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1661 | *) ac_try_echo=$ac_try;; | |
1662 | esac | |
1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1664 | $as_echo "$ac_try_echo"; } >&5 | |
1665 | (eval "$ac_compile") 2>conftest.err | |
1666 | ac_status=$? | |
1667 | if test -s conftest.err; then | |
1668 | grep -v '^ *+' conftest.err >conftest.er1 | |
1669 | cat conftest.er1 >&5 | |
1670 | mv -f conftest.er1 conftest.err | |
1671 | fi | |
1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1673 | test $ac_status = 0; } && { | |
1674 | test -z "$ac_c_werror_flag" || | |
1675 | test ! -s conftest.err | |
1676 | } && test -s conftest.$ac_objext; then : | |
1677 | ac_retval=0 | |
1678 | else | |
1679 | $as_echo "$as_me: failed program was:" >&5 | |
1680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 1681 | |
81ecdfbb RW |
1682 | ac_retval=1 |
1683 | fi | |
1684 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1685 | return $ac_retval | |
1686 | ||
1687 | } # ac_fn_c_try_compile | |
1688 | ||
1689 | # ac_fn_c_try_link LINENO | |
1690 | # ----------------------- | |
1691 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1692 | ac_fn_c_try_link () | |
979273e3 | 1693 | { |
81ecdfbb RW |
1694 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1696 | if { { ac_try="$ac_link" | |
1697 | case "(($ac_try" in | |
1698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1699 | *) ac_try_echo=$ac_try;; | |
1700 | esac | |
1701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1702 | $as_echo "$ac_try_echo"; } >&5 | |
1703 | (eval "$ac_link") 2>conftest.err | |
1704 | ac_status=$? | |
1705 | if test -s conftest.err; then | |
1706 | grep -v '^ *+' conftest.err >conftest.er1 | |
1707 | cat conftest.er1 >&5 | |
1708 | mv -f conftest.er1 conftest.err | |
1709 | fi | |
1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; } && { | |
1712 | test -z "$ac_c_werror_flag" || | |
1713 | test ! -s conftest.err | |
1714 | } && test -s conftest$ac_exeext && { | |
1715 | test "$cross_compiling" = yes || | |
1716 | $as_test_x conftest$ac_exeext | |
1717 | }; then : | |
1718 | ac_retval=0 | |
1719 | else | |
1720 | $as_echo "$as_me: failed program was:" >&5 | |
1721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
979273e3 | 1722 | |
81ecdfbb RW |
1723 | ac_retval=1 |
1724 | fi | |
1725 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1726 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1727 | # interfere with the next link command; also delete a directory that is | |
1728 | # left behind by Apple's compiler. We do this before executing the actions. | |
1729 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1730 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1731 | return $ac_retval | |
979273e3 | 1732 | |
81ecdfbb RW |
1733 | } # ac_fn_c_try_link |
1734 | ||
1735 | # ac_fn_c_try_cpp LINENO | |
1736 | # ---------------------- | |
1737 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1738 | ac_fn_c_try_cpp () | |
1739 | { | |
1740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1741 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1742 | case "(($ac_try" in | |
1743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1744 | *) ac_try_echo=$ac_try;; | |
1745 | esac | |
1746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1747 | $as_echo "$ac_try_echo"; } >&5 | |
1748 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1749 | ac_status=$? | |
1750 | if test -s conftest.err; then | |
1751 | grep -v '^ *+' conftest.err >conftest.er1 | |
1752 | cat conftest.er1 >&5 | |
1753 | mv -f conftest.er1 conftest.err | |
1754 | fi | |
1755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1756 | test $ac_status = 0; } >/dev/null && { | |
1757 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1758 | test ! -s conftest.err | |
1759 | }; then : | |
1760 | ac_retval=0 | |
1761 | else | |
1762 | $as_echo "$as_me: failed program was:" >&5 | |
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1764 | ||
1765 | ac_retval=1 | |
1766 | fi | |
1767 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1768 | return $ac_retval | |
1769 | ||
1770 | } # ac_fn_c_try_cpp | |
1771 | ||
1772 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1773 | # ------------------------------------------------------- | |
1774 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1775 | # the include files in INCLUDES and setting the cache variable VAR | |
1776 | # accordingly. | |
1777 | ac_fn_c_check_header_mongrel () | |
1778 | { | |
1779 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1780 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1782 | $as_echo_n "checking for $2... " >&6; } | |
1783 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1784 | $as_echo_n "(cached) " >&6 | |
1785 | fi | |
1786 | eval ac_res=\$$3 | |
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1788 | $as_echo "$ac_res" >&6; } | |
1789 | else | |
1790 | # Is the header compilable? | |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1792 | $as_echo_n "checking $2 usability... " >&6; } | |
1793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1794 | /* end confdefs.h. */ | |
1795 | $4 | |
1796 | #include <$2> | |
1797 | _ACEOF | |
1798 | if ac_fn_c_try_compile "$LINENO"; then : | |
1799 | ac_header_compiler=yes | |
1800 | else | |
1801 | ac_header_compiler=no | |
1802 | fi | |
1803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1805 | $as_echo "$ac_header_compiler" >&6; } | |
1806 | ||
1807 | # Is the header present? | |
1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1809 | $as_echo_n "checking $2 presence... " >&6; } | |
1810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1811 | /* end confdefs.h. */ | |
1812 | #include <$2> | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1815 | ac_header_preproc=yes | |
1816 | else | |
1817 | ac_header_preproc=no | |
1818 | fi | |
1819 | rm -f conftest.err conftest.$ac_ext | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1821 | $as_echo "$ac_header_preproc" >&6; } | |
1822 | ||
1823 | # So? What about this header? | |
1824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1825 | yes:no: ) | |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1827 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1829 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1830 | ;; | |
1831 | no:yes:* ) | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1833 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1835 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1837 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1839 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1841 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1842 | ;; | |
1843 | esac | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1845 | $as_echo_n "checking for $2... " >&6; } | |
1846 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1847 | $as_echo_n "(cached) " >&6 | |
1848 | else | |
1849 | eval "$3=\$ac_header_compiler" | |
1850 | fi | |
1851 | eval ac_res=\$$3 | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1853 | $as_echo "$ac_res" >&6; } | |
1854 | fi | |
1855 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1856 | ||
1857 | } # ac_fn_c_check_header_mongrel | |
1858 | ||
1859 | # ac_fn_c_try_run LINENO | |
1860 | # ---------------------- | |
1861 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1862 | # that executables *can* be run. | |
1863 | ac_fn_c_try_run () | |
1864 | { | |
1865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1866 | if { { ac_try="$ac_link" | |
1867 | case "(($ac_try" in | |
1868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1869 | *) ac_try_echo=$ac_try;; | |
1870 | esac | |
1871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1872 | $as_echo "$ac_try_echo"; } >&5 | |
1873 | (eval "$ac_link") 2>&5 | |
1874 | ac_status=$? | |
1875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1876 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1877 | { { case "(($ac_try" in | |
1878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1879 | *) ac_try_echo=$ac_try;; | |
1880 | esac | |
1881 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1882 | $as_echo "$ac_try_echo"; } >&5 | |
1883 | (eval "$ac_try") 2>&5 | |
1884 | ac_status=$? | |
1885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1886 | test $ac_status = 0; }; }; then : | |
1887 | ac_retval=0 | |
1888 | else | |
1889 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1890 | $as_echo "$as_me: failed program was:" >&5 | |
1891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1892 | ||
1893 | ac_retval=$ac_status | |
1894 | fi | |
1895 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1896 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1897 | return $ac_retval | |
1898 | ||
1899 | } # ac_fn_c_try_run | |
1900 | ||
1901 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1902 | # ------------------------------------------------------- | |
1903 | # Tests whether HEADER exists and can be compiled using the include files in | |
1904 | # INCLUDES, setting the cache variable VAR accordingly. | |
1905 | ac_fn_c_check_header_compile () | |
1906 | { | |
1907 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1909 | $as_echo_n "checking for $2... " >&6; } | |
1910 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1911 | $as_echo_n "(cached) " >&6 | |
1912 | else | |
1913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1914 | /* end confdefs.h. */ | |
1915 | $4 | |
1916 | #include <$2> | |
1917 | _ACEOF | |
1918 | if ac_fn_c_try_compile "$LINENO"; then : | |
1919 | eval "$3=yes" | |
1920 | else | |
1921 | eval "$3=no" | |
1922 | fi | |
1923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1924 | fi | |
1925 | eval ac_res=\$$3 | |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1927 | $as_echo "$ac_res" >&6; } | |
1928 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1929 | ||
1930 | } # ac_fn_c_check_header_compile | |
1931 | ||
1932 | # ac_fn_c_check_func LINENO FUNC VAR | |
1933 | # ---------------------------------- | |
1934 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1935 | ac_fn_c_check_func () | |
1936 | { | |
1937 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1939 | $as_echo_n "checking for $2... " >&6; } | |
1940 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1941 | $as_echo_n "(cached) " >&6 | |
1942 | else | |
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1944 | /* end confdefs.h. */ | |
1945 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1947 | #define $2 innocuous_$2 | |
1948 | ||
1949 | /* System header to define __stub macros and hopefully few prototypes, | |
1950 | which can conflict with char $2 (); below. | |
1951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1952 | <limits.h> exists even on freestanding compilers. */ | |
1953 | ||
1954 | #ifdef __STDC__ | |
1955 | # include <limits.h> | |
1956 | #else | |
1957 | # include <assert.h> | |
1958 | #endif | |
1959 | ||
1960 | #undef $2 | |
1961 | ||
1962 | /* Override any GCC internal prototype to avoid an error. | |
1963 | Use char because int might match the return type of a GCC | |
1964 | builtin and then its argument prototype would still apply. */ | |
1965 | #ifdef __cplusplus | |
1966 | extern "C" | |
1967 | #endif | |
1968 | char $2 (); | |
1969 | /* The GNU C library defines this for functions which it implements | |
1970 | to always fail with ENOSYS. Some functions are actually named | |
1971 | something starting with __ and the normal name is an alias. */ | |
1972 | #if defined __stub_$2 || defined __stub___$2 | |
1973 | choke me | |
1974 | #endif | |
1975 | ||
1976 | int | |
1977 | main () | |
1978 | { | |
1979 | return $2 (); | |
1980 | ; | |
1981 | return 0; | |
1982 | } | |
1983 | _ACEOF | |
1984 | if ac_fn_c_try_link "$LINENO"; then : | |
1985 | eval "$3=yes" | |
1986 | else | |
1987 | eval "$3=no" | |
1988 | fi | |
1989 | rm -f core conftest.err conftest.$ac_objext \ | |
1990 | conftest$ac_exeext conftest.$ac_ext | |
1991 | fi | |
1992 | eval ac_res=\$$3 | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1994 | $as_echo "$ac_res" >&6; } | |
1995 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1996 | ||
1997 | } # ac_fn_c_check_func | |
1998 | ||
1999 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
2000 | # ------------------------------------ | |
2001 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2002 | ac_fn_c_check_decl () | |
2003 | { | |
2004 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | |
2006 | $as_echo_n "checking whether $2 is declared... " >&6; } | |
2007 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2008 | $as_echo_n "(cached) " >&6 | |
2009 | else | |
2010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2011 | /* end confdefs.h. */ | |
2012 | $4 | |
2013 | int | |
2014 | main () | |
2015 | { | |
2016 | #ifndef $2 | |
2017 | (void) $2; | |
2018 | #endif | |
2019 | ||
2020 | ; | |
2021 | return 0; | |
2022 | } | |
2023 | _ACEOF | |
2024 | if ac_fn_c_try_compile "$LINENO"; then : | |
2025 | eval "$3=yes" | |
2026 | else | |
2027 | eval "$3=no" | |
2028 | fi | |
2029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2030 | fi | |
2031 | eval ac_res=\$$3 | |
2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2033 | $as_echo "$ac_res" >&6; } | |
2034 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2035 | ||
2036 | } # ac_fn_c_check_decl | |
2037 | cat >config.log <<_ACEOF | |
2038 | This file contains any messages produced by compilers while | |
2039 | running configure, to aid debugging if configure makes a mistake. | |
2040 | ||
2041 | It was created by $as_me, which was | |
2042 | generated by GNU Autoconf 2.64. Invocation command line was | |
2043 | ||
2044 | $ $0 $@ | |
2045 | ||
2046 | _ACEOF | |
2047 | exec 5>>config.log | |
2048 | { | |
2049 | cat <<_ASUNAME | |
2050 | ## --------- ## | |
2051 | ## Platform. ## | |
2052 | ## --------- ## | |
2053 | ||
2054 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2055 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2056 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2057 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2058 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2059 | ||
2060 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2061 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
979273e3 NN |
2062 | |
2063 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2064 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2065 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2066 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
979273e3 NN |
2067 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2068 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2069 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2070 | ||
2071 | _ASUNAME | |
2072 | ||
2073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2074 | for as_dir in $PATH | |
2075 | do | |
2076 | IFS=$as_save_IFS | |
2077 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2078 | $as_echo "PATH: $as_dir" |
2079 | done | |
2080 | IFS=$as_save_IFS | |
252b5132 | 2081 | |
979273e3 | 2082 | } >&5 |
75798298 | 2083 | |
979273e3 | 2084 | cat >&5 <<_ACEOF |
252b5132 | 2085 | |
252b5132 | 2086 | |
979273e3 NN |
2087 | ## ----------- ## |
2088 | ## Core tests. ## | |
2089 | ## ----------- ## | |
2090 | ||
2091 | _ACEOF | |
2092 | ||
2093 | ||
2094 | # Keep a trace of the command line. | |
2095 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2096 | # Strip out --silent because we don't want to record it for future runs. | |
2097 | # Also quote any args containing shell meta-characters. | |
2098 | # Make two passes to allow for proper duplicate-argument suppression. | |
2099 | ac_configure_args= | |
2100 | ac_configure_args0= | |
2101 | ac_configure_args1= | |
979273e3 NN |
2102 | ac_must_keep_next=false |
2103 | for ac_pass in 1 2 | |
2104 | do | |
2105 | for ac_arg | |
2106 | do | |
2107 | case $ac_arg in | |
2108 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2109 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2110 | | -silent | --silent | --silen | --sile | --sil) | |
2111 | continue ;; | |
81ecdfbb RW |
2112 | *\'*) |
2113 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
979273e3 NN |
2114 | esac |
2115 | case $ac_pass in | |
81ecdfbb | 2116 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
979273e3 | 2117 | 2) |
81ecdfbb | 2118 | as_fn_append ac_configure_args1 " '$ac_arg'" |
979273e3 NN |
2119 | if test $ac_must_keep_next = true; then |
2120 | ac_must_keep_next=false # Got value, back to normal. | |
2121 | else | |
2122 | case $ac_arg in | |
2123 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2124 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2125 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2126 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2127 | case "$ac_configure_args0 " in | |
2128 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2129 | esac | |
2130 | ;; | |
2131 | -* ) ac_must_keep_next=true ;; | |
2132 | esac | |
2133 | fi | |
81ecdfbb | 2134 | as_fn_append ac_configure_args " '$ac_arg'" |
979273e3 NN |
2135 | ;; |
2136 | esac | |
2137 | done | |
2138 | done | |
81ecdfbb RW |
2139 | { ac_configure_args0=; unset ac_configure_args0;} |
2140 | { ac_configure_args1=; unset ac_configure_args1;} | |
979273e3 NN |
2141 | |
2142 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2143 | # config.log. We remove comments because anyway the quotes in there | |
2144 | # would cause problems or look ugly. | |
81ecdfbb RW |
2145 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2146 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
979273e3 NN |
2147 | trap 'exit_status=$? |
2148 | # Save into config.log some information that might help in debugging. | |
2149 | { | |
2150 | echo | |
2151 | ||
2152 | cat <<\_ASBOX | |
2153 | ## ---------------- ## | |
2154 | ## Cache variables. ## | |
2155 | ## ---------------- ## | |
2156 | _ASBOX | |
2157 | echo | |
2158 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2159 | ( |
2160 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2161 | eval ac_val=\$$ac_var | |
2162 | case $ac_val in #( | |
2163 | *${as_nl}*) | |
2164 | case $ac_var in #( | |
2165 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2166 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2167 | esac | |
2168 | case $ac_var in #( | |
2169 | _ | IFS | as_nl) ;; #( | |
2170 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2171 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2172 | esac ;; | |
2173 | esac | |
2174 | done | |
979273e3 | 2175 | (set) 2>&1 | |
81ecdfbb RW |
2176 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2177 | *${as_nl}ac_space=\ *) | |
979273e3 | 2178 | sed -n \ |
81ecdfbb RW |
2179 | "s/'\''/'\''\\\\'\'''\''/g; |
2180 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2181 | ;; #( | |
979273e3 | 2182 | *) |
81ecdfbb | 2183 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
979273e3 | 2184 | ;; |
81ecdfbb RW |
2185 | esac | |
2186 | sort | |
2187 | ) | |
979273e3 NN |
2188 | echo |
2189 | ||
2190 | cat <<\_ASBOX | |
2191 | ## ----------------- ## | |
2192 | ## Output variables. ## | |
2193 | ## ----------------- ## | |
2194 | _ASBOX | |
2195 | echo | |
2196 | for ac_var in $ac_subst_vars | |
2197 | do | |
81ecdfbb RW |
2198 | eval ac_val=\$$ac_var |
2199 | case $ac_val in | |
2200 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2201 | esac | |
2202 | $as_echo "$ac_var='\''$ac_val'\''" | |
979273e3 NN |
2203 | done | sort |
2204 | echo | |
2205 | ||
2206 | if test -n "$ac_subst_files"; then | |
2207 | cat <<\_ASBOX | |
81ecdfbb RW |
2208 | ## ------------------- ## |
2209 | ## File substitutions. ## | |
2210 | ## ------------------- ## | |
979273e3 NN |
2211 | _ASBOX |
2212 | echo | |
2213 | for ac_var in $ac_subst_files | |
2214 | do | |
81ecdfbb RW |
2215 | eval ac_val=\$$ac_var |
2216 | case $ac_val in | |
2217 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2218 | esac | |
2219 | $as_echo "$ac_var='\''$ac_val'\''" | |
979273e3 NN |
2220 | done | sort |
2221 | echo | |
2222 | fi | |
2223 | ||
2224 | if test -s confdefs.h; then | |
2225 | cat <<\_ASBOX | |
2226 | ## ----------- ## | |
2227 | ## confdefs.h. ## | |
2228 | ## ----------- ## | |
2229 | _ASBOX | |
2230 | echo | |
81ecdfbb | 2231 | cat confdefs.h |
979273e3 NN |
2232 | echo |
2233 | fi | |
2234 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2235 | $as_echo "$as_me: caught signal $ac_signal" |
2236 | $as_echo "$as_me: exit $exit_status" | |
979273e3 | 2237 | } >&5 |
81ecdfbb RW |
2238 | rm -f core *.core core.conftest.* && |
2239 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
979273e3 | 2240 | exit $exit_status |
81ecdfbb | 2241 | ' 0 |
979273e3 | 2242 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2243 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
979273e3 NN |
2244 | done |
2245 | ac_signal=0 | |
2246 | ||
2247 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2248 | rm -f -r conftest* confdefs.h |
2249 | ||
2250 | $as_echo "/* confdefs.h */" > confdefs.h | |
979273e3 NN |
2251 | |
2252 | # Predefined preprocessor variables. | |
2253 | ||
2254 | cat >>confdefs.h <<_ACEOF | |
2255 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2256 | _ACEOF | |
2257 | ||
979273e3 NN |
2258 | cat >>confdefs.h <<_ACEOF |
2259 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2260 | _ACEOF | |
2261 | ||
979273e3 NN |
2262 | cat >>confdefs.h <<_ACEOF |
2263 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2264 | _ACEOF | |
2265 | ||
979273e3 NN |
2266 | cat >>confdefs.h <<_ACEOF |
2267 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2268 | _ACEOF | |
2269 | ||
979273e3 NN |
2270 | cat >>confdefs.h <<_ACEOF |
2271 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2272 | _ACEOF | |
2273 | ||
81ecdfbb RW |
2274 | cat >>confdefs.h <<_ACEOF |
2275 | #define PACKAGE_URL "$PACKAGE_URL" | |
2276 | _ACEOF | |
2277 | ||
979273e3 NN |
2278 | |
2279 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2280 | # Prefer an explicitly selected file to automatically selected ones. |
2281 | ac_site_file1=NONE | |
2282 | ac_site_file2=NONE | |
2283 | if test -n "$CONFIG_SITE"; then | |
2284 | ac_site_file1=$CONFIG_SITE | |
2285 | elif test "x$prefix" != xNONE; then | |
2286 | ac_site_file1=$prefix/share/config.site | |
2287 | ac_site_file2=$prefix/etc/config.site | |
2288 | else | |
2289 | ac_site_file1=$ac_default_prefix/share/config.site | |
2290 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2291 | fi | |
2292 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2293 | do | |
2294 | test "x$ac_site_file" = xNONE && continue | |
979273e3 | 2295 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2297 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
979273e3 NN |
2298 | sed 's/^/| /' "$ac_site_file" >&5 |
2299 | . "$ac_site_file" | |
2300 | fi | |
2301 | done | |
2302 | ||
2303 | if test -r "$cache_file"; then | |
2304 | # Some versions of bash will fail to source /dev/null (special | |
2305 | # files actually), so we avoid doing that. | |
2306 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2308 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
979273e3 | 2309 | case $cache_file in |
81ecdfbb RW |
2310 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2311 | *) . "./$cache_file";; | |
979273e3 NN |
2312 | esac |
2313 | fi | |
2314 | else | |
81ecdfbb RW |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2316 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
979273e3 NN |
2317 | >$cache_file |
2318 | fi | |
2319 | ||
2320 | # Check that the precious variables saved in the cache have kept the same | |
2321 | # value. | |
2322 | ac_cache_corrupted=false | |
81ecdfbb | 2323 | for ac_var in $ac_precious_vars; do |
979273e3 NN |
2324 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2325 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2326 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2327 | eval ac_new_val=\$ac_env_${ac_var}_value | |
979273e3 NN |
2328 | case $ac_old_set,$ac_new_set in |
2329 | set,) | |
81ecdfbb RW |
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2331 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
979273e3 NN |
2332 | ac_cache_corrupted=: ;; |
2333 | ,set) | |
81ecdfbb RW |
2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2335 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
979273e3 NN |
2336 | ac_cache_corrupted=: ;; |
2337 | ,);; | |
2338 | *) | |
2339 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2340 | # differences in whitespace do not lead to failure. |
2341 | ac_old_val_w=`echo x $ac_old_val` | |
2342 | ac_new_val_w=`echo x $ac_new_val` | |
2343 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2345 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2346 | ac_cache_corrupted=: | |
2347 | else | |
2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2349 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2350 | eval $ac_var=\$ac_old_val | |
2351 | fi | |
2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2353 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2355 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
979273e3 NN |
2356 | fi;; |
2357 | esac | |
2358 | # Pass precious variables to config.status. | |
2359 | if test "$ac_new_set" = set; then | |
2360 | case $ac_new_val in | |
81ecdfbb | 2361 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
979273e3 NN |
2362 | *) ac_arg=$ac_var=$ac_new_val ;; |
2363 | esac | |
2364 | case " $ac_configure_args " in | |
2365 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2366 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
979273e3 NN |
2367 | esac |
2368 | fi | |
2369 | done | |
2370 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2372 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2373 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2374 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2375 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
979273e3 | 2376 | fi |
81ecdfbb RW |
2377 | ## -------------------- ## |
2378 | ## Main body of script. ## | |
2379 | ## -------------------- ## | |
979273e3 NN |
2380 | |
2381 | ac_ext=c | |
2382 | ac_cpp='$CPP $CPPFLAGS' | |
2383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2386 | ||
2387 | ||
2388 | ||
979273e3 NN |
2389 | |
2390 | ||
2391 | ||
2392 | ||
2393 | ac_aux_dir= | |
81ecdfbb RW |
2394 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2395 | for ac_t in install-sh install.sh shtool; do | |
2396 | if test -f "$ac_dir/$ac_t"; then | |
2397 | ac_aux_dir=$ac_dir | |
2398 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2399 | break 2 | |
2400 | fi | |
2401 | done | |
979273e3 NN |
2402 | done |
2403 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2404 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
979273e3 | 2405 | fi |
81ecdfbb RW |
2406 | |
2407 | # These three variables are undocumented and unsupported, | |
2408 | # and are intended to be withdrawn in a future Autoconf release. | |
2409 | # They can cause serious problems if a builder's source tree is in a directory | |
2410 | # whose full name contains unusual characters. | |
2411 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2412 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2413 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2414 | ||
979273e3 NN |
2415 | |
2416 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2417 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2418 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2419 | ||
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2421 | $as_echo_n "checking build system type... " >&6; } | |
2422 | if test "${ac_cv_build+set}" = set; then : | |
2423 | $as_echo_n "(cached) " >&6 | |
2424 | else | |
2425 | ac_build_alias=$build_alias | |
2426 | test "x$ac_build_alias" = x && | |
2427 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2428 | test "x$ac_build_alias" = x && | |
2429 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2430 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2431 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2432 | ||
2433 | fi | |
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2435 | $as_echo "$ac_cv_build" >&6; } | |
2436 | case $ac_cv_build in | |
2437 | *-*-*) ;; | |
2438 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2439 | esac | |
979273e3 | 2440 | build=$ac_cv_build |
81ecdfbb RW |
2441 | ac_save_IFS=$IFS; IFS='-' |
2442 | set x $ac_cv_build | |
2443 | shift | |
2444 | build_cpu=$1 | |
2445 | build_vendor=$2 | |
2446 | shift; shift | |
2447 | # Remember, the first character of IFS is used to create $*, | |
2448 | # except with old shells: | |
2449 | build_os=$* | |
2450 | IFS=$ac_save_IFS | |
2451 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2452 | |
2453 | ||
81ecdfbb RW |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2455 | $as_echo_n "checking host system type... " >&6; } | |
2456 | if test "${ac_cv_host+set}" = set; then : | |
2457 | $as_echo_n "(cached) " >&6 | |
979273e3 | 2458 | else |
81ecdfbb RW |
2459 | if test "x$host_alias" = x; then |
2460 | ac_cv_host=$ac_cv_build | |
2461 | else | |
2462 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2463 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2464 | fi | |
979273e3 NN |
2465 | |
2466 | fi | |
81ecdfbb RW |
2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2468 | $as_echo "$ac_cv_host" >&6; } | |
2469 | case $ac_cv_host in | |
2470 | *-*-*) ;; | |
2471 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2472 | esac | |
979273e3 | 2473 | host=$ac_cv_host |
81ecdfbb RW |
2474 | ac_save_IFS=$IFS; IFS='-' |
2475 | set x $ac_cv_host | |
2476 | shift | |
2477 | host_cpu=$1 | |
2478 | host_vendor=$2 | |
2479 | shift; shift | |
2480 | # Remember, the first character of IFS is used to create $*, | |
2481 | # except with old shells: | |
2482 | host_os=$* | |
2483 | IFS=$ac_save_IFS | |
2484 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2485 | |
2486 | ||
81ecdfbb RW |
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2488 | $as_echo_n "checking target system type... " >&6; } | |
2489 | if test "${ac_cv_target+set}" = set; then : | |
2490 | $as_echo_n "(cached) " >&6 | |
2491 | else | |
2492 | if test "x$target_alias" = x; then | |
2493 | ac_cv_target=$ac_cv_host | |
979273e3 | 2494 | else |
81ecdfbb RW |
2495 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2496 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2497 | fi | |
979273e3 NN |
2498 | |
2499 | fi | |
81ecdfbb RW |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2501 | $as_echo "$ac_cv_target" >&6; } | |
2502 | case $ac_cv_target in | |
2503 | *-*-*) ;; | |
2504 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2505 | esac | |
979273e3 | 2506 | target=$ac_cv_target |
81ecdfbb RW |
2507 | ac_save_IFS=$IFS; IFS='-' |
2508 | set x $ac_cv_target | |
2509 | shift | |
2510 | target_cpu=$1 | |
2511 | target_vendor=$2 | |
2512 | shift; shift | |
2513 | # Remember, the first character of IFS is used to create $*, | |
2514 | # except with old shells: | |
2515 | target_os=$* | |
2516 | IFS=$ac_save_IFS | |
2517 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
979273e3 NN |
2518 | |
2519 | ||
2520 | # The aliases save the names the user supplied, while $host etc. | |
2521 | # will get canonicalized. | |
2522 | test -n "$target_alias" && | |
2523 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2524 | NONENONEs,x,x, && | |
2525 | program_prefix=${target_alias}- | |
2526 | ac_ext=c | |
2527 | ac_cpp='$CPP $CPPFLAGS' | |
2528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2531 | if test -n "$ac_tool_prefix"; then | |
2532 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2533 | set dummy ${ac_tool_prefix}gcc; 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 | |
979273e3 NN |
2538 | else |
2539 | if test -n "$CC"; then | |
2540 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2541 | else | |
2542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2543 | for as_dir in $PATH | |
2544 | do | |
2545 | IFS=$as_save_IFS | |
2546 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2547 | for ac_exec_ext in '' $ac_executable_extensions; do |
2548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2549 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2551 | break 2 |
2552 | fi | |
2553 | done | |
81ecdfbb RW |
2554 | done |
2555 | IFS=$as_save_IFS | |
979273e3 NN |
2556 | |
2557 | fi | |
2558 | fi | |
2559 | CC=$ac_cv_prog_CC | |
2560 | if test -n "$CC"; then | |
81ecdfbb RW |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2562 | $as_echo "$CC" >&6; } | |
979273e3 | 2563 | else |
81ecdfbb RW |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2565 | $as_echo "no" >&6; } | |
979273e3 NN |
2566 | fi |
2567 | ||
81ecdfbb | 2568 | |
979273e3 NN |
2569 | fi |
2570 | if test -z "$ac_cv_prog_CC"; then | |
2571 | ac_ct_CC=$CC | |
2572 | # Extract the first word of "gcc", so it can be a program name with args. | |
2573 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2575 | $as_echo_n "checking for $ac_word... " >&6; } | |
2576 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2577 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2578 | else |
2579 | if test -n "$ac_ct_CC"; then | |
2580 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2581 | else | |
2582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2583 | for as_dir in $PATH | |
2584 | do | |
2585 | IFS=$as_save_IFS | |
2586 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2587 | for ac_exec_ext in '' $ac_executable_extensions; do |
2588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2589 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2591 | break 2 |
2592 | fi | |
2593 | done | |
81ecdfbb RW |
2594 | done |
2595 | IFS=$as_save_IFS | |
979273e3 NN |
2596 | |
2597 | fi | |
2598 | fi | |
2599 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2600 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2602 | $as_echo "$ac_ct_CC" >&6; } | |
979273e3 | 2603 | else |
81ecdfbb RW |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2605 | $as_echo "no" >&6; } | |
979273e3 NN |
2606 | fi |
2607 | ||
81ecdfbb RW |
2608 | if test "x$ac_ct_CC" = x; then |
2609 | CC="" | |
2610 | else | |
2611 | case $cross_compiling:$ac_tool_warned in | |
2612 | yes:) | |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2614 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2615 | ac_tool_warned=yes ;; | |
2616 | esac | |
2617 | CC=$ac_ct_CC | |
2618 | fi | |
979273e3 NN |
2619 | else |
2620 | CC="$ac_cv_prog_CC" | |
2621 | fi | |
2622 | ||
2623 | if test -z "$CC"; then | |
81ecdfbb RW |
2624 | if test -n "$ac_tool_prefix"; then |
2625 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
979273e3 | 2626 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2628 | $as_echo_n "checking for $ac_word... " >&6; } | |
2629 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2630 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2631 | else |
2632 | if test -n "$CC"; then | |
2633 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2634 | else | |
2635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2636 | for as_dir in $PATH | |
2637 | do | |
2638 | IFS=$as_save_IFS | |
2639 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2640 | for ac_exec_ext in '' $ac_executable_extensions; do |
2641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2642 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2644 | break 2 |
2645 | fi | |
2646 | done | |
81ecdfbb RW |
2647 | done |
2648 | IFS=$as_save_IFS | |
979273e3 NN |
2649 | |
2650 | fi | |
2651 | fi | |
2652 | CC=$ac_cv_prog_CC | |
2653 | if test -n "$CC"; then | |
81ecdfbb RW |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2655 | $as_echo "$CC" >&6; } | |
979273e3 | 2656 | else |
81ecdfbb RW |
2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2658 | $as_echo "no" >&6; } | |
979273e3 NN |
2659 | fi |
2660 | ||
979273e3 | 2661 | |
81ecdfbb | 2662 | fi |
979273e3 NN |
2663 | fi |
2664 | if test -z "$CC"; then | |
2665 | # Extract the first word of "cc", so it can be a program name with args. | |
2666 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2668 | $as_echo_n "checking for $ac_word... " >&6; } | |
2669 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2670 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2671 | else |
2672 | if test -n "$CC"; then | |
2673 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2674 | else | |
2675 | ac_prog_rejected=no | |
2676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2677 | for as_dir in $PATH | |
2678 | do | |
2679 | IFS=$as_save_IFS | |
2680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2681 | for ac_exec_ext in '' $ac_executable_extensions; do |
2682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 NN |
2683 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2684 | ac_prog_rejected=yes | |
2685 | continue | |
2686 | fi | |
2687 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2689 | break 2 |
2690 | fi | |
2691 | done | |
81ecdfbb RW |
2692 | done |
2693 | IFS=$as_save_IFS | |
979273e3 NN |
2694 | |
2695 | if test $ac_prog_rejected = yes; then | |
2696 | # We found a bogon in the path, so make sure we never use it. | |
2697 | set dummy $ac_cv_prog_CC | |
2698 | shift | |
2699 | if test $# != 0; then | |
2700 | # We chose a different compiler from the bogus one. | |
2701 | # However, it has the same basename, so the bogon will be chosen | |
2702 | # first if we set CC to just the basename; use the full file name. | |
2703 | shift | |
2704 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2705 | fi | |
2706 | fi | |
2707 | fi | |
2708 | fi | |
2709 | CC=$ac_cv_prog_CC | |
2710 | if test -n "$CC"; then | |
81ecdfbb RW |
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2712 | $as_echo "$CC" >&6; } | |
979273e3 | 2713 | else |
81ecdfbb RW |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2715 | $as_echo "no" >&6; } | |
979273e3 NN |
2716 | fi |
2717 | ||
81ecdfbb | 2718 | |
979273e3 NN |
2719 | fi |
2720 | if test -z "$CC"; then | |
2721 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2722 | for ac_prog in cl.exe |
979273e3 NN |
2723 | do |
2724 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2725 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2727 | $as_echo_n "checking for $ac_word... " >&6; } | |
2728 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2729 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2730 | else |
2731 | if test -n "$CC"; then | |
2732 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2733 | else | |
2734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2735 | for as_dir in $PATH | |
2736 | do | |
2737 | IFS=$as_save_IFS | |
2738 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2739 | for ac_exec_ext in '' $ac_executable_extensions; do |
2740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2741 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2743 | break 2 |
2744 | fi | |
2745 | done | |
81ecdfbb RW |
2746 | done |
2747 | IFS=$as_save_IFS | |
979273e3 NN |
2748 | |
2749 | fi | |
2750 | fi | |
2751 | CC=$ac_cv_prog_CC | |
2752 | if test -n "$CC"; then | |
81ecdfbb RW |
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2754 | $as_echo "$CC" >&6; } | |
979273e3 | 2755 | else |
81ecdfbb RW |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2757 | $as_echo "no" >&6; } | |
979273e3 NN |
2758 | fi |
2759 | ||
81ecdfbb | 2760 | |
979273e3 NN |
2761 | test -n "$CC" && break |
2762 | done | |
2763 | fi | |
2764 | if test -z "$CC"; then | |
2765 | ac_ct_CC=$CC | |
81ecdfbb | 2766 | for ac_prog in cl.exe |
979273e3 NN |
2767 | do |
2768 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2769 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2771 | $as_echo_n "checking for $ac_word... " >&6; } | |
2772 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2773 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
2774 | else |
2775 | if test -n "$ac_ct_CC"; then | |
2776 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2777 | else | |
2778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2779 | for as_dir in $PATH | |
2780 | do | |
2781 | IFS=$as_save_IFS | |
2782 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2783 | for ac_exec_ext in '' $ac_executable_extensions; do |
2784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
979273e3 | 2785 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
2787 | break 2 |
2788 | fi | |
2789 | done | |
81ecdfbb RW |
2790 | done |
2791 | IFS=$as_save_IFS | |
2792 | ||
979273e3 NN |
2793 | fi |
2794 | fi | |
2795 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2796 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2798 | $as_echo "$ac_ct_CC" >&6; } | |
979273e3 | 2799 | else |
81ecdfbb RW |
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2801 | $as_echo "no" >&6; } | |
979273e3 NN |
2802 | fi |
2803 | ||
81ecdfbb | 2804 | |
979273e3 NN |
2805 | test -n "$ac_ct_CC" && break |
2806 | done | |
2807 | ||
81ecdfbb RW |
2808 | if test "x$ac_ct_CC" = x; then |
2809 | CC="" | |
2810 | else | |
2811 | case $cross_compiling:$ac_tool_warned in | |
2812 | yes:) | |
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2814 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2815 | ac_tool_warned=yes ;; | |
2816 | esac | |
2817 | CC=$ac_ct_CC | |
2818 | fi | |
979273e3 NN |
2819 | fi |
2820 | ||
2821 | fi | |
2822 | ||
2823 | ||
81ecdfbb RW |
2824 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2825 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2826 | as_fn_error "no acceptable C compiler found in \$PATH | |
2827 | See \`config.log' for more details." "$LINENO" 5; } | |
979273e3 NN |
2828 | |
2829 | # Provide some information about the compiler. | |
81ecdfbb RW |
2830 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2831 | set X $ac_compile | |
2832 | ac_compiler=$2 | |
2833 | for ac_option in --version -v -V -qversion; do | |
2834 | { { ac_try="$ac_compiler $ac_option >&5" | |
2835 | case "(($ac_try" in | |
2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2837 | *) ac_try_echo=$ac_try;; | |
2838 | esac | |
2839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2840 | $as_echo "$ac_try_echo"; } >&5 | |
2841 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
979273e3 | 2842 | ac_status=$? |
81ecdfbb RW |
2843 | if test -s conftest.err; then |
2844 | sed '10a\ | |
2845 | ... rest of stderr output deleted ... | |
2846 | 10q' conftest.err >conftest.er1 | |
2847 | cat conftest.er1 >&5 | |
2848 | rm -f conftest.er1 conftest.err | |
2849 | fi | |
2850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2851 | test $ac_status = 0; } | |
2852 | done | |
979273e3 | 2853 | |
81ecdfbb | 2854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
2855 | /* end confdefs.h. */ |
2856 | ||
2857 | int | |
2858 | main () | |
2859 | { | |
2860 | ||
2861 | ; | |
2862 | return 0; | |
2863 | } | |
2864 | _ACEOF | |
2865 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2866 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
979273e3 NN |
2867 | # Try to create an executable without -o first, disregard a.out. |
2868 | # It will help us diagnose broken compilers, and finding out an intuition | |
2869 | # of exeext. | |
81ecdfbb RW |
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2871 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2872 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2873 | ||
2874 | # The possible output files: | |
2875 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2876 | ||
2877 | ac_rmfiles= | |
2878 | for ac_file in $ac_files | |
2879 | do | |
2880 | case $ac_file in | |
2881 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2882 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2883 | esac | |
2884 | done | |
2885 | rm -f $ac_rmfiles | |
2886 | ||
2887 | if { { ac_try="$ac_link_default" | |
2888 | case "(($ac_try" in | |
2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2890 | *) ac_try_echo=$ac_try;; | |
2891 | esac | |
2892 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2893 | $as_echo "$ac_try_echo"; } >&5 | |
2894 | (eval "$ac_link_default") 2>&5 | |
2895 | ac_status=$? | |
2896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2897 | test $ac_status = 0; }; then : | |
2898 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2899 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2900 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2901 | # so that the user can short-circuit this test for compilers unknown to | |
2902 | # Autoconf. | |
2903 | for ac_file in $ac_files '' | |
979273e3 NN |
2904 | do |
2905 | test -f "$ac_file" || continue | |
2906 | case $ac_file in | |
81ecdfbb | 2907 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
979273e3 NN |
2908 | ;; |
2909 | [ab].out ) | |
2910 | # We found the default executable, but exeext='' is most | |
2911 | # certainly right. | |
2912 | break;; | |
2913 | *.* ) | |
81ecdfbb RW |
2914 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2915 | then :; else | |
2916 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2917 | fi | |
2918 | # We set ac_cv_exeext here because the later test for it is not | |
2919 | # safe: cross compilers may not add the suffix if given an `-o' | |
2920 | # argument, so we may need to know it at that point already. | |
2921 | # Even if this section looks crufty: it has the advantage of | |
2922 | # actually working. | |
979273e3 NN |
2923 | break;; |
2924 | * ) | |
2925 | break;; | |
2926 | esac | |
2927 | done | |
81ecdfbb RW |
2928 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2929 | ||
979273e3 | 2930 | else |
81ecdfbb RW |
2931 | ac_file='' |
2932 | fi | |
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2934 | $as_echo "$ac_file" >&6; } | |
2935 | if test -z "$ac_file"; then : | |
2936 | $as_echo "$as_me: failed program was:" >&5 | |
979273e3 NN |
2937 | sed 's/^/| /' conftest.$ac_ext >&5 |
2938 | ||
81ecdfbb RW |
2939 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2940 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2941 | { as_fn_set_status 77 | |
2942 | as_fn_error "C compiler cannot create executables | |
2943 | See \`config.log' for more details." "$LINENO" 5; }; } | |
979273e3 | 2944 | fi |
979273e3 | 2945 | ac_exeext=$ac_cv_exeext |
979273e3 | 2946 | |
81ecdfbb | 2947 | # Check that the compiler produces executables we can run. If not, either |
979273e3 | 2948 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2950 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
979273e3 NN |
2951 | # If not cross compiling, check that we can run a simple program. |
2952 | if test "$cross_compiling" != yes; then | |
2953 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2954 | { { case "(($ac_try" in |
2955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2956 | *) ac_try_echo=$ac_try;; | |
2957 | esac | |
2958 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2959 | $as_echo "$ac_try_echo"; } >&5 | |
2960 | (eval "$ac_try") 2>&5 | |
979273e3 | 2961 | ac_status=$? |
81ecdfbb RW |
2962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2963 | test $ac_status = 0; }; }; then | |
979273e3 NN |
2964 | cross_compiling=no |
2965 | else | |
2966 | if test "$cross_compiling" = maybe; then | |
2967 | cross_compiling=yes | |
2968 | else | |
81ecdfbb RW |
2969 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2970 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2971 | as_fn_error "cannot run C compiled programs. | |
979273e3 | 2972 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2973 | See \`config.log' for more details." "$LINENO" 5; } |
979273e3 NN |
2974 | fi |
2975 | fi | |
2976 | fi | |
81ecdfbb RW |
2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2978 | $as_echo "yes" >&6; } | |
979273e3 | 2979 | |
81ecdfbb | 2980 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
979273e3 | 2981 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2982 | # Check that the compiler produces executables we can run. If not, either |
979273e3 | 2983 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2985 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2987 | $as_echo "$cross_compiling" >&6; } | |
2988 | ||
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2990 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2991 | if { { ac_try="$ac_link" | |
2992 | case "(($ac_try" in | |
2993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2994 | *) ac_try_echo=$ac_try;; | |
2995 | esac | |
2996 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2997 | $as_echo "$ac_try_echo"; } >&5 | |
2998 | (eval "$ac_link") 2>&5 | |
979273e3 | 2999 | ac_status=$? |
81ecdfbb RW |
3000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3001 | test $ac_status = 0; }; then : | |
979273e3 NN |
3002 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3003 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3004 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3005 | # `rm'. | |
3006 | for ac_file in conftest.exe conftest conftest.*; do | |
3007 | test -f "$ac_file" || continue | |
3008 | case $ac_file in | |
81ecdfbb | 3009 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
979273e3 | 3010 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
979273e3 NN |
3011 | break;; |
3012 | * ) break;; | |
3013 | esac | |
3014 | done | |
3015 | else | |
81ecdfbb RW |
3016 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3017 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3018 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3019 | See \`config.log' for more details." "$LINENO" 5; } | |
979273e3 | 3020 | fi |
979273e3 | 3021 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3023 | $as_echo "$ac_cv_exeext" >&6; } | |
979273e3 NN |
3024 | |
3025 | rm -f conftest.$ac_ext | |
3026 | EXEEXT=$ac_cv_exeext | |
3027 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3029 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3030 | if test "${ac_cv_objext+set}" = set; then : | |
3031 | $as_echo_n "(cached) " >&6 | |
979273e3 | 3032 | else |
81ecdfbb | 3033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
3034 | /* end confdefs.h. */ |
3035 | ||
3036 | int | |
3037 | main () | |
3038 | { | |
3039 | ||
3040 | ; | |
3041 | return 0; | |
3042 | } | |
3043 | _ACEOF | |
3044 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3045 | if { { ac_try="$ac_compile" |
3046 | case "(($ac_try" in | |
3047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3048 | *) ac_try_echo=$ac_try;; | |
3049 | esac | |
3050 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3051 | $as_echo "$ac_try_echo"; } >&5 | |
3052 | (eval "$ac_compile") 2>&5 | |
3053 | ac_status=$? | |
3054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3055 | test $ac_status = 0; }; then : | |
3056 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3057 | test -f "$ac_file" || continue; | |
979273e3 | 3058 | case $ac_file in |
81ecdfbb | 3059 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
979273e3 NN |
3060 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3061 | break;; | |
3062 | esac | |
3063 | done | |
3064 | else | |
81ecdfbb | 3065 | $as_echo "$as_me: failed program was:" >&5 |
979273e3 NN |
3066 | sed 's/^/| /' conftest.$ac_ext >&5 |
3067 | ||
81ecdfbb RW |
3068 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3069 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3070 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3071 | See \`config.log' for more details." "$LINENO" 5; } | |
979273e3 | 3072 | fi |
979273e3 NN |
3073 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3074 | fi | |
81ecdfbb RW |
3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3076 | $as_echo "$ac_cv_objext" >&6; } | |
979273e3 NN |
3077 | OBJEXT=$ac_cv_objext |
3078 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3080 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3081 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3082 | $as_echo_n "(cached) " >&6 | |
979273e3 | 3083 | else |
81ecdfbb | 3084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
3085 | /* end confdefs.h. */ |
3086 | ||
3087 | int | |
3088 | main () | |
3089 | { | |
3090 | #ifndef __GNUC__ | |
3091 | choke me | |
3092 | #endif | |
3093 | ||
3094 | ; | |
3095 | return 0; | |
3096 | } | |
3097 | _ACEOF | |
81ecdfbb | 3098 | if ac_fn_c_try_compile "$LINENO"; then : |
979273e3 NN |
3099 | ac_compiler_gnu=yes |
3100 | else | |
81ecdfbb | 3101 | ac_compiler_gnu=no |
979273e3 | 3102 | fi |
81ecdfbb | 3103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
979273e3 NN |
3104 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3105 | ||
3106 | fi | |
81ecdfbb RW |
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3108 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3109 | if test $ac_compiler_gnu = yes; then | |
3110 | GCC=yes | |
3111 | else | |
3112 | GCC= | |
3113 | fi | |
979273e3 NN |
3114 | ac_test_CFLAGS=${CFLAGS+set} |
3115 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3117 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3118 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3119 | $as_echo_n "(cached) " >&6 | |
3120 | else | |
3121 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3122 | ac_c_werror_flag=yes | |
3123 | ac_cv_prog_cc_g=no | |
3124 | CFLAGS="-g" | |
3125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
979273e3 NN |
3126 | /* end confdefs.h. */ |
3127 | ||
3128 | int | |
3129 | main () | |
3130 | { | |
3131 | ||
3132 | ; | |
3133 | return 0; | |
3134 | } | |
3135 | _ACEOF | |
81ecdfbb | 3136 | if ac_fn_c_try_compile "$LINENO"; then : |
979273e3 NN |
3137 | ac_cv_prog_cc_g=yes |
3138 | else | |
81ecdfbb RW |
3139 | CFLAGS="" |
3140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3141 | /* end confdefs.h. */ | |
3142 | ||
3143 | int | |
3144 | main () | |
3145 | { | |
3146 | ||
3147 | ; | |
3148 | return 0; | |
3149 | } | |
3150 | _ACEOF | |
3151 | if ac_fn_c_try_compile "$LINENO"; then : | |
3152 | ||
3153 | else | |
3154 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3155 | CFLAGS="-g" | |
3156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3157 | /* end confdefs.h. */ | |
979273e3 | 3158 | |
81ecdfbb RW |
3159 | int |
3160 | main () | |
3161 | { | |
3162 | ||
3163 | ; | |
3164 | return 0; | |
3165 | } | |
3166 | _ACEOF | |
3167 | if ac_fn_c_try_compile "$LINENO"; then : | |
3168 | ac_cv_prog_cc_g=yes | |
979273e3 | 3169 | fi |
81ecdfbb | 3170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
979273e3 | 3171 | fi |
81ecdfbb RW |
3172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3173 | fi | |
3174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3175 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3176 | fi | |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3178 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
979273e3 NN |
3179 | if test "$ac_test_CFLAGS" = set; then |
3180 | CFLAGS=$ac_save_CFLAGS | |
3181 | elif test $ac_cv_prog_cc_g = yes; then | |
3182 | if test "$GCC" = yes; then | |
3183 | CFLAGS="-g -O2" | |
3184 | else | |
3185 | CFLAGS="-g" | |
3186 | fi | |
3187 | else | |
3188 | if test "$GCC" = yes; then | |
3189 | CFLAGS="-O2" | |
3190 | else | |
3191 | CFLAGS= | |
3192 | fi | |
3193 | fi | |
81ecdfbb RW |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3195 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3196 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3197 | $as_echo_n "(cached) " >&6 | |
979273e3 | 3198 | else |
81ecdfbb | 3199 | ac_cv_prog_cc_c89=no |
979273e3 | 3200 | ac_save_CC=$CC |
81ecdfbb | 3201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
3202 | /* end confdefs.h. */ |
3203 | #include <stdarg.h> | |
3204 | #include <stdio.h> | |
3205 | #include <sys/types.h> | |
3206 | #include <sys/stat.h> | |
3207 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3208 | struct buf { int x; }; | |
3209 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3210 | static char *e (p, i) | |
3211 | char **p; | |
3212 | int i; | |
3213 | { | |
3214 | return p[i]; | |
3215 | } | |
3216 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3217 | { | |
3218 | char *s; | |
3219 | va_list v; | |
3220 | va_start (v,p); | |
3221 | s = g (p, va_arg (v,int)); | |
3222 | va_end (v); | |
3223 | return s; | |
3224 | } | |
3225 | ||
3226 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3227 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3228 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3229 | as 'x'. The following induces an error, until -std is added to get |
979273e3 NN |
3230 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3231 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3232 | that's true only with -std. */ |
979273e3 NN |
3233 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3234 | ||
81ecdfbb RW |
3235 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3236 | inside strings and character constants. */ | |
3237 | #define FOO(x) 'x' | |
3238 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3239 | ||
979273e3 NN |
3240 | int test (int i, double x); |
3241 | struct s1 {int (*f) (int a);}; | |
3242 | struct s2 {int (*f) (double a);}; | |
3243 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3244 | int argc; | |
3245 | char **argv; | |
3246 | int | |
3247 | main () | |
3248 | { | |
3249 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3250 | ; | |
3251 | return 0; | |
3252 | } | |
3253 | _ACEOF | |
81ecdfbb RW |
3254 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3255 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
979273e3 NN |
3256 | do |
3257 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3258 | if ac_fn_c_try_compile "$LINENO"; then : |
3259 | ac_cv_prog_cc_c89=$ac_arg | |
979273e3 | 3260 | fi |
81ecdfbb RW |
3261 | rm -f core conftest.err conftest.$ac_objext |
3262 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
979273e3 | 3263 | done |
81ecdfbb | 3264 | rm -f conftest.$ac_ext |
979273e3 NN |
3265 | CC=$ac_save_CC |
3266 | ||
3267 | fi | |
81ecdfbb RW |
3268 | # AC_CACHE_VAL |
3269 | case "x$ac_cv_prog_cc_c89" in | |
3270 | x) | |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3272 | $as_echo "none needed" >&6; } ;; | |
3273 | xno) | |
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3275 | $as_echo "unsupported" >&6; } ;; | |
979273e3 | 3276 | *) |
81ecdfbb RW |
3277 | CC="$CC $ac_cv_prog_cc_c89" |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3279 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
979273e3 | 3280 | esac |
81ecdfbb | 3281 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
979273e3 | 3282 | |
979273e3 NN |
3283 | fi |
3284 | ||
979273e3 NN |
3285 | ac_ext=c |
3286 | ac_cpp='$CPP $CPPFLAGS' | |
3287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3290 | ||
3291 | ||
81ecdfbb RW |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3293 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3294 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3295 | $as_echo_n "(cached) " >&6 | |
979273e3 | 3296 | else |
8ae85421 | 3297 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 3298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
979273e3 NN |
3299 | /* end confdefs.h. */ |
3300 | ||
81ecdfbb RW |
3301 | /* Override any GCC internal prototype to avoid an error. |
3302 | Use char because int might match the return type of a GCC | |
3303 | builtin and then its argument prototype would still apply. */ | |
979273e3 NN |
3304 | #ifdef __cplusplus |
3305 | extern "C" | |
3306 | #endif | |
979273e3 NN |
3307 | char strerror (); |
3308 | int | |
3309 | main () | |
3310 | { | |
81ecdfbb | 3311 | return strerror (); |
979273e3 NN |
3312 | ; |
3313 | return 0; | |
3314 | } | |
3315 | _ACEOF | |
81ecdfbb RW |
3316 | for ac_lib in '' cposix; do |
3317 | if test -z "$ac_lib"; then | |
3318 | ac_res="none required" | |
3319 | else | |
3320 | ac_res=-l$ac_lib | |
8ae85421 | 3321 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3322 | fi |
3323 | if ac_fn_c_try_link "$LINENO"; then : | |
3324 | ac_cv_search_strerror=$ac_res | |
3325 | fi | |
3326 | rm -f core conftest.err conftest.$ac_objext \ | |
3327 | conftest$ac_exeext | |
3328 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3329 | break | |
3330 | fi | |
3331 | done | |
3332 | if test "${ac_cv_search_strerror+set}" = set; then : | |
8ae85421 | 3333 | |
8ae85421 | 3334 | else |
81ecdfbb | 3335 | ac_cv_search_strerror=no |
979273e3 | 3336 | fi |
81ecdfbb | 3337 | rm conftest.$ac_ext |
8ae85421 AM |
3338 | LIBS=$ac_func_search_save_LIBS |
3339 | fi | |
81ecdfbb RW |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3341 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3342 | ac_res=$ac_cv_search_strerror | |
3343 | if test "$ac_res" != no; then : | |
3344 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
979273e3 | 3345 | |
8ae85421 | 3346 | fi |
979273e3 NN |
3347 | |
3348 | ||
3349 | # We currently only use the version number for the name of any shared | |
3350 | # library. For user convenience, we always use the same version | |
3351 | # number that BFD is using. | |
3352 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
3353 | ||
81ecdfbb RW |
3354 | am__api_version='1.11' |
3355 | ||
979273e3 NN |
3356 | # Find a good install program. We prefer a C program (faster), |
3357 | # so one script is as good as another. But avoid the broken or | |
3358 | # incompatible versions: | |
3359 | # SysV /etc/install, /usr/sbin/install | |
3360 | # SunOS /usr/etc/install | |
3361 | # IRIX /sbin/install | |
3362 | # AIX /bin/install | |
3363 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3364 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3365 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
252b5132 | 3366 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
979273e3 | 3367 | # OS/2's system install, which has a completely different semantic |
252b5132 | 3368 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3369 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3371 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
252b5132 | 3372 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3373 | if test "${ac_cv_path_install+set}" = set; then : |
3374 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3375 | else |
979273e3 NN |
3376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3377 | for as_dir in $PATH | |
3378 | do | |
3379 | IFS=$as_save_IFS | |
3380 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3381 | # Account for people who put trailing slashes in PATH elements. |
3382 | case $as_dir/ in #(( | |
3383 | ./ | .// | /[cC]/* | \ | |
979273e3 | 3384 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3385 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
979273e3 NN |
3386 | /usr/ucb/* ) ;; |
3387 | *) | |
3388 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3389 | # Don't use installbsd from OSF since it installs stuff as root | |
3390 | # by default. | |
3391 | for ac_prog in ginstall scoinst install; do | |
3392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3393 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
252b5132 | 3394 | if test $ac_prog = install && |
979273e3 | 3395 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3396 | # AIX install. It has an incompatible calling convention. |
3397 | : | |
979273e3 NN |
3398 | elif test $ac_prog = install && |
3399 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3400 | # program-specific install script used by HP pwplus--don't use. | |
3401 | : | |
252b5132 | 3402 | else |
58c85be7 RW |
3403 | rm -rf conftest.one conftest.two conftest.dir |
3404 | echo one > conftest.one | |
3405 | echo two > conftest.two | |
3406 | mkdir conftest.dir | |
3407 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3408 | test -s conftest.one && test -s conftest.two && | |
3409 | test -s conftest.dir/conftest.one && | |
3410 | test -s conftest.dir/conftest.two | |
3411 | then | |
3412 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3413 | break 3 | |
3414 | fi | |
252b5132 RH |
3415 | fi |
3416 | fi | |
3417 | done | |
979273e3 NN |
3418 | done |
3419 | ;; | |
3420 | esac | |
81ecdfbb RW |
3421 | |
3422 | done | |
3423 | IFS=$as_save_IFS | |
979273e3 | 3424 | |
58c85be7 | 3425 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3426 | |
3427 | fi | |
3428 | if test "${ac_cv_path_install+set}" = set; then | |
979273e3 | 3429 | INSTALL=$ac_cv_path_install |
252b5132 | 3430 | else |
58c85be7 RW |
3431 | # As a last resort, use the slow shell script. Don't cache a |
3432 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3433 | # break other packages using the cache if that directory is |
58c85be7 | 3434 | # removed, or if the value is a relative name. |
979273e3 | 3435 | INSTALL=$ac_install_sh |
252b5132 RH |
3436 | fi |
3437 | fi | |
81ecdfbb RW |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3439 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3440 | |
3441 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3442 | # It thinks the first close brace ends the variable substitution. | |
3443 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3444 | ||
979273e3 | 3445 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3446 | |
3447 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3448 | ||
81ecdfbb RW |
3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3450 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3451 | # Just in case |
3452 | sleep 1 | |
8ae85421 | 3453 | echo timestamp > conftest.file |
81ecdfbb RW |
3454 | # Reject unsafe characters in $srcdir or the absolute working directory |
3455 | # name. Accept space and tab only in the latter. | |
3456 | am_lf=' | |
3457 | ' | |
3458 | case `pwd` in | |
3459 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3460 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3461 | esac | |
3462 | case $srcdir in | |
3463 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3464 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3465 | esac | |
3466 | ||
252b5132 RH |
3467 | # Do `set' in a subshell so we don't clobber the current shell's |
3468 | # arguments. Must try -L first in case configure is actually a | |
3469 | # symlink; some systems play weird games with the mod time of symlinks | |
3470 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3471 | # directory). | |
3472 | if ( | |
81ecdfbb | 3473 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3474 | if test "$*" = "X"; then |
3475 | # -L didn't work. | |
81ecdfbb | 3476 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3477 | fi |
8ae85421 AM |
3478 | rm -f conftest.file |
3479 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3480 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3481 | |
3482 | # If neither matched, then we have a broken ls. This can happen | |
3483 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3484 | # broken ls alias from the environment. This has actually | |
3485 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3486 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3487 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3488 | fi |
3489 | ||
8ae85421 | 3490 | test "$2" = conftest.file |
252b5132 RH |
3491 | ) |
3492 | then | |
3493 | # Ok. | |
3494 | : | |
3495 | else | |
81ecdfbb RW |
3496 | as_fn_error "newly created file is older than distributed files! |
3497 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3498 | fi |
81ecdfbb RW |
3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3500 | $as_echo "yes" >&6; } | |
252b5132 | 3501 | test "$program_prefix" != NONE && |
81ecdfbb | 3502 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3503 | # Use a double $ so make ignores it. |
3504 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3505 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3506 | # Double any \ or $. | |
979273e3 | 3507 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3508 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3509 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
979273e3 | 3510 | |
8ae85421 AM |
3511 | # expand $ac_aux_dir to an absolute path |
3512 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3513 | ||
81ecdfbb RW |
3514 | if test x"${MISSING+set}" != xset; then |
3515 | case $am_aux_dir in | |
3516 | *\ * | *\ *) | |
3517 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3518 | *) | |
3519 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3520 | esac | |
3521 | fi | |
8ae85421 AM |
3522 | # Use eval to expand $SHELL |
3523 | if eval "$MISSING --run true"; then | |
3524 | am_missing_run="$MISSING --run " | |
3525 | else | |
3526 | am_missing_run= | |
81ecdfbb RW |
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3528 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3529 | fi | |
3530 | ||
3531 | if test x"${install_sh}" != xset; then | |
3532 | case $am_aux_dir in | |
3533 | *\ * | *\ *) | |
3534 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3535 | *) | |
3536 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3537 | esac | |
3538 | fi | |
3539 | ||
3540 | # Installed binaries are usually stripped using `strip' when the user | |
3541 | # run `make install-strip'. However `strip' might not be the right | |
3542 | # tool to use in cross-compilation environments, therefore Automake | |
3543 | # will honor the `STRIP' environment variable to overrule this program. | |
3544 | if test "$cross_compiling" != no; then | |
3545 | if test -n "$ac_tool_prefix"; then | |
3546 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3547 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3549 | $as_echo_n "checking for $ac_word... " >&6; } | |
3550 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3551 | $as_echo_n "(cached) " >&6 | |
3552 | else | |
3553 | if test -n "$STRIP"; then | |
3554 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3555 | else | |
3556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3557 | for as_dir in $PATH | |
3558 | do | |
3559 | IFS=$as_save_IFS | |
3560 | test -z "$as_dir" && as_dir=. | |
3561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3563 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3565 | break 2 | |
3566 | fi | |
3567 | done | |
3568 | done | |
3569 | IFS=$as_save_IFS | |
3570 | ||
3571 | fi | |
3572 | fi | |
3573 | STRIP=$ac_cv_prog_STRIP | |
3574 | if test -n "$STRIP"; then | |
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3576 | $as_echo "$STRIP" >&6; } | |
3577 | else | |
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3579 | $as_echo "no" >&6; } | |
3580 | fi | |
3581 | ||
3582 | ||
3583 | fi | |
3584 | if test -z "$ac_cv_prog_STRIP"; then | |
3585 | ac_ct_STRIP=$STRIP | |
3586 | # Extract the first word of "strip", so it can be a program name with args. | |
3587 | set dummy strip; ac_word=$2 | |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3589 | $as_echo_n "checking for $ac_word... " >&6; } | |
3590 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3591 | $as_echo_n "(cached) " >&6 | |
3592 | else | |
3593 | if test -n "$ac_ct_STRIP"; then | |
3594 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3595 | else | |
3596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3597 | for as_dir in $PATH | |
3598 | do | |
3599 | IFS=$as_save_IFS | |
3600 | test -z "$as_dir" && as_dir=. | |
3601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3603 | ac_cv_prog_ac_ct_STRIP="strip" | |
3604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3605 | break 2 | |
3606 | fi | |
3607 | done | |
8ae85421 | 3608 | done |
81ecdfbb RW |
3609 | IFS=$as_save_IFS |
3610 | ||
3611 | fi | |
3612 | fi | |
3613 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3614 | if test -n "$ac_ct_STRIP"; then | |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3616 | $as_echo "$ac_ct_STRIP" >&6; } | |
3617 | else | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3619 | $as_echo "no" >&6; } | |
3620 | fi | |
3621 | ||
3622 | if test "x$ac_ct_STRIP" = x; then | |
3623 | STRIP=":" | |
3624 | else | |
3625 | case $cross_compiling:$ac_tool_warned in | |
3626 | yes:) | |
3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3628 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3629 | ac_tool_warned=yes ;; | |
3630 | esac | |
3631 | STRIP=$ac_ct_STRIP | |
3632 | fi | |
3633 | else | |
3634 | STRIP="$ac_cv_prog_STRIP" | |
3635 | fi | |
3636 | ||
3637 | fi | |
3638 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3639 | ||
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3641 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3642 | if test -z "$MKDIR_P"; then | |
3643 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3644 | $as_echo_n "(cached) " >&6 | |
3645 | else | |
3646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3647 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3648 | do | |
3649 | IFS=$as_save_IFS | |
3650 | test -z "$as_dir" && as_dir=. | |
3651 | for ac_prog in mkdir gmkdir; do | |
3652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3653 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3654 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3655 | 'mkdir (GNU coreutils) '* | \ | |
3656 | 'mkdir (coreutils) '* | \ | |
3657 | 'mkdir (fileutils) '4.1*) | |
3658 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3659 | break 3;; | |
3660 | esac | |
3661 | done | |
3662 | done | |
3663 | done | |
3664 | IFS=$as_save_IFS | |
3665 | ||
3666 | fi | |
3667 | ||
3668 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3669 | MKDIR_P="$ac_cv_path_mkdir -p" | |
8ae85421 | 3670 | else |
81ecdfbb RW |
3671 | # As a last resort, use the slow shell script. Don't cache a |
3672 | # value for MKDIR_P within a source directory, because that will | |
3673 | # break other packages using the cache if that directory is | |
3674 | # removed, or if the value is a relative name. | |
3675 | test -d ./--version && rmdir ./--version | |
3676 | MKDIR_P="$ac_install_sh -d" | |
8ae85421 AM |
3677 | fi |
3678 | fi | |
81ecdfbb RW |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3680 | $as_echo "$MKDIR_P" >&6; } | |
3681 | ||
3682 | mkdir_p="$MKDIR_P" | |
3683 | case $mkdir_p in | |
3684 | [\\/$]* | ?:[\\/]*) ;; | |
3685 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3686 | esac | |
8ae85421 AM |
3687 | |
3688 | for ac_prog in gawk mawk nawk awk | |
3689 | do | |
3690 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3691 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3693 | $as_echo_n "checking for $ac_word... " >&6; } | |
3694 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3695 | $as_echo_n "(cached) " >&6 | |
8ae85421 AM |
3696 | else |
3697 | if test -n "$AWK"; then | |
3698 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3699 | else | |
3700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3701 | for as_dir in $PATH | |
3702 | do | |
3703 | IFS=$as_save_IFS | |
3704 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3705 | for ac_exec_ext in '' $ac_executable_extensions; do |
3706 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8ae85421 | 3707 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3708 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8ae85421 AM |
3709 | break 2 |
3710 | fi | |
3711 | done | |
81ecdfbb RW |
3712 | done |
3713 | IFS=$as_save_IFS | |
8ae85421 AM |
3714 | |
3715 | fi | |
3716 | fi | |
3717 | AWK=$ac_cv_prog_AWK | |
3718 | if test -n "$AWK"; then | |
81ecdfbb RW |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3720 | $as_echo "$AWK" >&6; } | |
8ae85421 | 3721 | else |
81ecdfbb RW |
3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3723 | $as_echo "no" >&6; } | |
8ae85421 AM |
3724 | fi |
3725 | ||
81ecdfbb | 3726 | |
8ae85421 AM |
3727 | test -n "$AWK" && break |
3728 | done | |
3729 | ||
81ecdfbb RW |
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3731 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3732 | set x ${MAKE-make} | |
3733 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3734 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3735 | $as_echo_n "(cached) " >&6 | |
979273e3 NN |
3736 | else |
3737 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3738 | SHELL = /bin/sh |
252b5132 | 3739 | all: |
81ecdfbb | 3740 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
979273e3 | 3741 | _ACEOF |
252b5132 | 3742 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
3743 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3744 | *@@@%%%=?*=@@@%%%*) | |
3745 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3746 | *) | |
3747 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3748 | esac | |
979273e3 | 3749 | rm -f conftest.make |
252b5132 | 3750 | fi |
81ecdfbb RW |
3751 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3753 | $as_echo "yes" >&6; } | |
252b5132 RH |
3754 | SET_MAKE= |
3755 | else | |
81ecdfbb RW |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3757 | $as_echo "no" >&6; } | |
252b5132 RH |
3758 | SET_MAKE="MAKE=${MAKE-make}" |
3759 | fi | |
3760 | ||
8ae85421 AM |
3761 | rm -rf .tst 2>/dev/null |
3762 | mkdir .tst 2>/dev/null | |
3763 | if test -d .tst; then | |
3764 | am__leading_dot=. | |
3765 | else | |
3766 | am__leading_dot=_ | |
3767 | fi | |
3768 | rmdir .tst 2>/dev/null | |
3769 | ||
3770 | DEPDIR="${am__leading_dot}deps" | |
3771 | ||
81ecdfbb | 3772 | ac_config_commands="$ac_config_commands depfiles" |
8ae85421 AM |
3773 | |
3774 | ||
3775 | am_make=${MAKE-make} | |
3776 | cat > confinc << 'END' | |
3777 | am__doit: | |
81ecdfbb | 3778 | @echo this is the am__doit target |
8ae85421 AM |
3779 | .PHONY: am__doit |
3780 | END | |
3781 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3783 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
8ae85421 AM |
3784 | am__include="#" |
3785 | am__quote= | |
3786 | _am_result=none | |
3787 | # First try GNU make style include. | |
3788 | echo "include confinc" > confmf | |
81ecdfbb RW |
3789 | # Ignore all kinds of additional output from `make'. |
3790 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3791 | *the\ am__doit\ target*) | |
3792 | am__include=include | |
3793 | am__quote= | |
3794 | _am_result=GNU | |
3795 | ;; | |
3796 | esac | |
8ae85421 AM |
3797 | # Now try BSD make style include. |
3798 | if test "$am__include" = "#"; then | |
3799 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
3800 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3801 | *the\ am__doit\ target*) | |
3802 | am__include=.include | |
3803 | am__quote="\"" | |
3804 | _am_result=BSD | |
3805 | ;; | |
3806 | esac | |
8ae85421 AM |
3807 | fi |
3808 | ||
3809 | ||
81ecdfbb RW |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3811 | $as_echo "$_am_result" >&6; } | |
8ae85421 AM |
3812 | rm -f confinc confmf |
3813 | ||
81ecdfbb RW |
3814 | # Check whether --enable-dependency-tracking was given. |
3815 | if test "${enable_dependency_tracking+set}" = set; then : | |
3816 | enableval=$enable_dependency_tracking; | |
3817 | fi | |
8ae85421 | 3818 | |
8ae85421 AM |
3819 | if test "x$enable_dependency_tracking" != xno; then |
3820 | am_depcomp="$ac_aux_dir/depcomp" | |
3821 | AMDEPBACKSLASH='\' | |
3822 | fi | |
81ecdfbb | 3823 | if test "x$enable_dependency_tracking" != xno; then |
8ae85421 AM |
3824 | AMDEP_TRUE= |
3825 | AMDEP_FALSE='#' | |
3826 | else | |
3827 | AMDEP_TRUE='#' | |
3828 | AMDEP_FALSE= | |
3829 | fi | |
252b5132 | 3830 | |
252b5132 | 3831 | |
81ecdfbb RW |
3832 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3833 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3834 | # is not polluted with repeated "-I." | |
3835 | am__isrc=' -I$(srcdir)' | |
3836 | # test to see if srcdir already configured | |
3837 | if test -f $srcdir/config.status; then | |
3838 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3839 | fi | |
252b5132 | 3840 | fi |
979273e3 | 3841 | |
8ae85421 AM |
3842 | # test whether we have cygpath |
3843 | if test -z "$CYGPATH_W"; then | |
3844 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3845 | CYGPATH_W='cygpath -w' | |
3846 | else | |
3847 | CYGPATH_W=echo | |
3848 | fi | |
3849 | fi | |
3850 | ||
3851 | ||
3852 | # Define the identity of the package. | |
3853 | PACKAGE=opcodes | |
3854 | VERSION=${BFD_VERSION} | |
3855 | ||
3856 | ||
979273e3 | 3857 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3858 | #define PACKAGE "$PACKAGE" |
979273e3 | 3859 | _ACEOF |
252b5132 | 3860 | |
979273e3 NN |
3861 | |
3862 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3863 | #define VERSION "$VERSION" |
979273e3 | 3864 | _ACEOF |
252b5132 | 3865 | |
8ae85421 | 3866 | # Some tools Automake needs. |
252b5132 | 3867 | |
8ae85421 | 3868 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
252b5132 | 3869 | |
8ae85421 AM |
3870 | |
3871 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3872 | ||
3873 | ||
3874 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3875 | ||
3876 | ||
3877 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3878 | ||
3879 | ||
3880 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3881 | ||
8ae85421 AM |
3882 | # We need awk for the "check" target. The system "awk" is bad on |
3883 | # some platforms. | |
3884 | # Always define AMTAR for backward compatibility. | |
3885 | ||
3886 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3887 | ||
3888 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3889 | ||
3890 | ||
3891 | ||
3892 | ||
3893 | depcc="$CC" am_compiler_list= | |
3894 | ||
81ecdfbb RW |
3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3896 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3897 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3898 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3899 | else |
8ae85421 AM |
3900 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3901 | # We make a subdir and do the tests there. Otherwise we can end up | |
3902 | # making bogus files that we don't know about and never remove. For | |
3903 | # instance it was reported that on HP-UX the gcc test will end up | |
3904 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3905 | # in D'. | |
3906 | mkdir conftest.dir | |
3907 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3908 | # using a relative directory. | |
3909 | cp "$am_depcomp" conftest.dir | |
3910 | cd conftest.dir | |
3911 | # We will build objects and dependencies in a subdirectory because | |
3912 | # it helps to detect inapplicable dependency modes. For instance | |
3913 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3914 | # side effect of compilation, but ICC will put the dependencies in | |
3915 | # the current directory while Tru64 will put them in the object | |
3916 | # directory. | |
3917 | mkdir sub | |
3918 | ||
3919 | am_cv_CC_dependencies_compiler_type=none | |
3920 | if test "$am_compiler_list" = ""; then | |
3921 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3922 | fi | |
81ecdfbb RW |
3923 | am__universal=false |
3924 | case " $depcc " in #( | |
3925 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3926 | esac | |
3927 | ||
8ae85421 AM |
3928 | for depmode in $am_compiler_list; do |
3929 | # Setup a source with many dependencies, because some compilers | |
3930 | # like to wrap large dependency lists on column 80 (with \), and | |
3931 | # we should not choose a depcomp mode which is confused by this. | |
3932 | # | |
3933 | # We need to recreate these files for each test, as the compiler may | |
3934 | # overwrite some of them when testing with obscure command lines. | |
3935 | # This happens at least with the AIX C compiler. | |
3936 | : > sub/conftest.c | |
3937 | for i in 1 2 3 4 5 6; do | |
3938 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3939 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3940 | # Solaris 8's {/usr,}/bin/sh. | |
3941 | touch sub/conftst$i.h | |
3942 | done | |
3943 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3944 | ||
81ecdfbb RW |
3945 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3946 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3947 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3948 | # versions had trouble with output in subdirs | |
3949 | am__obj=sub/conftest.${OBJEXT-o} | |
3950 | am__minus_obj="-o $am__obj" | |
8ae85421 | 3951 | case $depmode in |
81ecdfbb RW |
3952 | gcc) |
3953 | # This depmode causes a compiler race in universal mode. | |
3954 | test "$am__universal" = false || continue | |
3955 | ;; | |
8ae85421 AM |
3956 | nosideeffect) |
3957 | # after this tag, mechanisms are not by side-effect, so they'll | |
3958 | # only be used when explicitly requested | |
3959 | if test "x$enable_dependency_tracking" = xyes; then | |
3960 | continue | |
3961 | else | |
3962 | break | |
3963 | fi | |
3964 | ;; | |
81ecdfbb RW |
3965 | msvisualcpp | msvcmsys) |
3966 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3967 | # not run yet. These depmodes are late enough in the game, and | |
3968 | # so weak that their functioning should not be impacted. | |
3969 | am__obj=conftest.${OBJEXT-o} | |
3970 | am__minus_obj= | |
3971 | ;; | |
8ae85421 AM |
3972 | none) break ;; |
3973 | esac | |
8ae85421 | 3974 | if depmode=$depmode \ |
81ecdfbb | 3975 | source=sub/conftest.c object=$am__obj \ |
8ae85421 | 3976 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 3977 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
8ae85421 | 3978 | >/dev/null 2>conftest.err && |
81ecdfbb | 3979 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
8ae85421 | 3980 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 3981 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
8ae85421 AM |
3982 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3983 | # icc doesn't choke on unknown options, it will just issue warnings | |
3984 | # or remarks (even with -Werror). So we grep stderr for any message | |
3985 | # that says an option was ignored or not supported. | |
3986 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3987 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3988 | # The diagnosis changed in icc 8.0: | |
3989 | # icc: Command line remark: option '-MP' not supported | |
3990 | if (grep 'ignoring option' conftest.err || | |
3991 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3992 | am_cv_CC_dependencies_compiler_type=$depmode | |
3993 | break | |
3994 | fi | |
3995 | fi | |
3996 | done | |
3997 | ||
3998 | cd .. | |
3999 | rm -rf conftest.dir | |
4000 | else | |
4001 | am_cv_CC_dependencies_compiler_type=none | |
4002 | fi | |
4003 | ||
252b5132 | 4004 | fi |
81ecdfbb RW |
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4006 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
8ae85421 AM |
4007 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4008 | ||
81ecdfbb | 4009 | if |
8ae85421 AM |
4010 | test "x$enable_dependency_tracking" != xno \ |
4011 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4012 | am__fastdepCC_TRUE= | |
4013 | am__fastdepCC_FALSE='#' | |
252b5132 | 4014 | else |
8ae85421 AM |
4015 | am__fastdepCC_TRUE='#' |
4016 | am__fastdepCC_FALSE= | |
252b5132 RH |
4017 | fi |
4018 | ||
4019 | ||
4020 | ||
8ae85421 | 4021 | |
dabbade6 L |
4022 | ac_ext=c |
4023 | ac_cpp='$CPP $CPPFLAGS' | |
4024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
979273e3 | 4027 | if test -n "$ac_tool_prefix"; then |
dabbade6 L |
4028 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
4029 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4031 | $as_echo_n "checking for $ac_word... " >&6; } | |
4032 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4033 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4034 | else |
dabbade6 L |
4035 | if test -n "$CC"; then |
4036 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4037 | else |
979273e3 NN |
4038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4039 | for as_dir in $PATH | |
4040 | do | |
4041 | IFS=$as_save_IFS | |
4042 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4043 | for ac_exec_ext in '' $ac_executable_extensions; do |
4044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 4045 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
4047 | break 2 |
4048 | fi | |
4049 | done | |
81ecdfbb RW |
4050 | done |
4051 | IFS=$as_save_IFS | |
979273e3 | 4052 | |
252b5132 RH |
4053 | fi |
4054 | fi | |
dabbade6 L |
4055 | CC=$ac_cv_prog_CC |
4056 | if test -n "$CC"; then | |
81ecdfbb RW |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4058 | $as_echo "$CC" >&6; } | |
252b5132 | 4059 | else |
81ecdfbb RW |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4061 | $as_echo "no" >&6; } | |
979273e3 NN |
4062 | fi |
4063 | ||
81ecdfbb | 4064 | |
252b5132 | 4065 | fi |
dabbade6 L |
4066 | if test -z "$ac_cv_prog_CC"; then |
4067 | ac_ct_CC=$CC | |
4068 | # Extract the first word of "gcc", so it can be a program name with args. | |
4069 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4071 | $as_echo_n "checking for $ac_word... " >&6; } | |
4072 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4073 | $as_echo_n "(cached) " >&6 | |
979273e3 | 4074 | else |
dabbade6 L |
4075 | if test -n "$ac_ct_CC"; then |
4076 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
979273e3 NN |
4077 | else |
4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4079 | for as_dir in $PATH | |
4080 | do | |
4081 | IFS=$as_save_IFS | |
4082 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4083 | for ac_exec_ext in '' $ac_executable_extensions; do |
4084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 4085 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
4087 | break 2 |
4088 | fi | |
4089 | done | |
81ecdfbb RW |
4090 | done |
4091 | IFS=$as_save_IFS | |
252b5132 | 4092 | |
979273e3 NN |
4093 | fi |
4094 | fi | |
dabbade6 L |
4095 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4096 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4098 | $as_echo "$ac_ct_CC" >&6; } | |
979273e3 | 4099 | else |
81ecdfbb RW |
4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4101 | $as_echo "no" >&6; } | |
979273e3 | 4102 | fi |
252b5132 | 4103 | |
81ecdfbb RW |
4104 | if test "x$ac_ct_CC" = x; then |
4105 | CC="" | |
4106 | else | |
4107 | case $cross_compiling:$ac_tool_warned in | |
4108 | yes:) | |
4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4110 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4111 | ac_tool_warned=yes ;; | |
4112 | esac | |
4113 | CC=$ac_ct_CC | |
4114 | fi | |
979273e3 | 4115 | else |
dabbade6 | 4116 | CC="$ac_cv_prog_CC" |
979273e3 | 4117 | fi |
252b5132 | 4118 | |
dabbade6 | 4119 | if test -z "$CC"; then |
81ecdfbb RW |
4120 | if test -n "$ac_tool_prefix"; then |
4121 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
dabbade6 | 4122 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4124 | $as_echo_n "checking for $ac_word... " >&6; } | |
4125 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4126 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4127 | else |
dabbade6 L |
4128 | if test -n "$CC"; then |
4129 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4130 | else |
979273e3 NN |
4131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4132 | for as_dir in $PATH | |
4133 | do | |
4134 | IFS=$as_save_IFS | |
4135 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4136 | for ac_exec_ext in '' $ac_executable_extensions; do |
4137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 4138 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
4140 | break 2 |
4141 | fi | |
4142 | done | |
81ecdfbb RW |
4143 | done |
4144 | IFS=$as_save_IFS | |
979273e3 | 4145 | |
252b5132 RH |
4146 | fi |
4147 | fi | |
dabbade6 L |
4148 | CC=$ac_cv_prog_CC |
4149 | if test -n "$CC"; then | |
81ecdfbb RW |
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4151 | $as_echo "$CC" >&6; } | |
252b5132 | 4152 | else |
81ecdfbb RW |
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4154 | $as_echo "no" >&6; } | |
252b5132 RH |
4155 | fi |
4156 | ||
252b5132 | 4157 | |
81ecdfbb | 4158 | fi |
dabbade6 L |
4159 | fi |
4160 | if test -z "$CC"; then | |
4161 | # Extract the first word of "cc", so it can be a program name with args. | |
4162 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4164 | $as_echo_n "checking for $ac_word... " >&6; } | |
4165 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4166 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
4167 | else |
4168 | if test -n "$CC"; then | |
4169 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4170 | else | |
4171 | ac_prog_rejected=no | |
4172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4173 | for as_dir in $PATH | |
4174 | do | |
4175 | IFS=$as_save_IFS | |
4176 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4177 | for ac_exec_ext in '' $ac_executable_extensions; do |
4178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 L |
4179 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4180 | ac_prog_rejected=yes | |
4181 | continue | |
4182 | fi | |
4183 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
4185 | break 2 |
4186 | fi | |
4187 | done | |
81ecdfbb RW |
4188 | done |
4189 | IFS=$as_save_IFS | |
252b5132 | 4190 | |
dabbade6 L |
4191 | if test $ac_prog_rejected = yes; then |
4192 | # We found a bogon in the path, so make sure we never use it. | |
4193 | set dummy $ac_cv_prog_CC | |
4194 | shift | |
4195 | if test $# != 0; then | |
4196 | # We chose a different compiler from the bogus one. | |
4197 | # However, it has the same basename, so the bogon will be chosen | |
4198 | # first if we set CC to just the basename; use the full file name. | |
4199 | shift | |
4200 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4201 | fi | |
4202 | fi | |
4203 | fi | |
4204 | fi | |
4205 | CC=$ac_cv_prog_CC | |
4206 | if test -n "$CC"; then | |
81ecdfbb RW |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4208 | $as_echo "$CC" >&6; } | |
252b5132 | 4209 | else |
81ecdfbb RW |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4211 | $as_echo "no" >&6; } | |
dabbade6 | 4212 | fi |
252b5132 | 4213 | |
81ecdfbb | 4214 | |
dabbade6 L |
4215 | fi |
4216 | if test -z "$CC"; then | |
4217 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4218 | for ac_prog in cl.exe |
dabbade6 L |
4219 | do |
4220 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4221 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4223 | $as_echo_n "checking for $ac_word... " >&6; } | |
4224 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4225 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
4226 | else |
4227 | if test -n "$CC"; then | |
4228 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4229 | else | |
4230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4231 | for as_dir in $PATH | |
4232 | do | |
4233 | IFS=$as_save_IFS | |
4234 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4235 | for ac_exec_ext in '' $ac_executable_extensions; do |
4236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 4237 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
4239 | break 2 |
4240 | fi | |
4241 | done | |
81ecdfbb RW |
4242 | done |
4243 | IFS=$as_save_IFS | |
d7040cdb | 4244 | |
dabbade6 L |
4245 | fi |
4246 | fi | |
4247 | CC=$ac_cv_prog_CC | |
4248 | if test -n "$CC"; then | |
81ecdfbb RW |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4250 | $as_echo "$CC" >&6; } | |
dabbade6 | 4251 | else |
81ecdfbb RW |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4253 | $as_echo "no" >&6; } | |
dabbade6 | 4254 | fi |
d7040cdb | 4255 | |
81ecdfbb | 4256 | |
dabbade6 L |
4257 | test -n "$CC" && break |
4258 | done | |
4259 | fi | |
4260 | if test -z "$CC"; then | |
4261 | ac_ct_CC=$CC | |
81ecdfbb | 4262 | for ac_prog in cl.exe |
dabbade6 L |
4263 | do |
4264 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4265 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4267 | $as_echo_n "checking for $ac_word... " >&6; } | |
4268 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4269 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
4270 | else |
4271 | if test -n "$ac_ct_CC"; then | |
4272 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4273 | else | |
4274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4275 | for as_dir in $PATH | |
4276 | do | |
4277 | IFS=$as_save_IFS | |
4278 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4279 | for ac_exec_ext in '' $ac_executable_extensions; do |
4280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 4281 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
4283 | break 2 |
4284 | fi | |
4285 | done | |
81ecdfbb RW |
4286 | done |
4287 | IFS=$as_save_IFS | |
d7040cdb | 4288 | |
dabbade6 L |
4289 | fi |
4290 | fi | |
4291 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4292 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4294 | $as_echo "$ac_ct_CC" >&6; } | |
dabbade6 | 4295 | else |
81ecdfbb RW |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4297 | $as_echo "no" >&6; } | |
dabbade6 | 4298 | fi |
d7040cdb | 4299 | |
81ecdfbb | 4300 | |
dabbade6 L |
4301 | test -n "$ac_ct_CC" && break |
4302 | done | |
d7040cdb | 4303 | |
81ecdfbb RW |
4304 | if test "x$ac_ct_CC" = x; then |
4305 | CC="" | |
4306 | else | |
4307 | case $cross_compiling:$ac_tool_warned in | |
4308 | yes:) | |
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4310 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4311 | ac_tool_warned=yes ;; | |
4312 | esac | |
4313 | CC=$ac_ct_CC | |
4314 | fi | |
dabbade6 | 4315 | fi |
d7040cdb | 4316 | |
dabbade6 | 4317 | fi |
d7040cdb SE |
4318 | |
4319 | ||
81ecdfbb RW |
4320 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4322 | as_fn_error "no acceptable C compiler found in \$PATH | |
4323 | See \`config.log' for more details." "$LINENO" 5; } | |
d7040cdb | 4324 | |
dabbade6 | 4325 | # Provide some information about the compiler. |
81ecdfbb RW |
4326 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4327 | set X $ac_compile | |
4328 | ac_compiler=$2 | |
4329 | for ac_option in --version -v -V -qversion; do | |
4330 | { { ac_try="$ac_compiler $ac_option >&5" | |
4331 | case "(($ac_try" in | |
4332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4333 | *) ac_try_echo=$ac_try;; | |
4334 | esac | |
4335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4336 | $as_echo "$ac_try_echo"; } >&5 | |
4337 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
dabbade6 | 4338 | ac_status=$? |
81ecdfbb RW |
4339 | if test -s conftest.err; then |
4340 | sed '10a\ | |
4341 | ... rest of stderr output deleted ... | |
4342 | 10q' conftest.err >conftest.er1 | |
4343 | cat conftest.er1 >&5 | |
4344 | rm -f conftest.er1 conftest.err | |
4345 | fi | |
4346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4347 | test $ac_status = 0; } | |
4348 | done | |
d7040cdb | 4349 | |
81ecdfbb RW |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4351 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4352 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4353 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4354 | else |
81ecdfbb | 4355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 4356 | /* end confdefs.h. */ |
d7040cdb | 4357 | |
dabbade6 L |
4358 | int |
4359 | main () | |
4360 | { | |
4361 | #ifndef __GNUC__ | |
4362 | choke me | |
4363 | #endif | |
d7040cdb | 4364 | |
dabbade6 L |
4365 | ; |
4366 | return 0; | |
4367 | } | |
4368 | _ACEOF | |
81ecdfbb | 4369 | if ac_fn_c_try_compile "$LINENO"; then : |
dabbade6 | 4370 | ac_compiler_gnu=yes |
d7040cdb | 4371 | else |
81ecdfbb | 4372 | ac_compiler_gnu=no |
dabbade6 | 4373 | fi |
81ecdfbb | 4374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dabbade6 | 4375 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 4376 | |
dabbade6 | 4377 | fi |
81ecdfbb RW |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4379 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4380 | if test $ac_compiler_gnu = yes; then | |
4381 | GCC=yes | |
4382 | else | |
4383 | GCC= | |
4384 | fi | |
dabbade6 L |
4385 | ac_test_CFLAGS=${CFLAGS+set} |
4386 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4388 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4389 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4390 | $as_echo_n "(cached) " >&6 | |
4391 | else | |
4392 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4393 | ac_c_werror_flag=yes | |
4394 | ac_cv_prog_cc_g=no | |
4395 | CFLAGS="-g" | |
4396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dabbade6 | 4397 | /* end confdefs.h. */ |
d7040cdb | 4398 | |
dabbade6 L |
4399 | int |
4400 | main () | |
4401 | { | |
d7040cdb | 4402 | |
dabbade6 L |
4403 | ; |
4404 | return 0; | |
4405 | } | |
4406 | _ACEOF | |
81ecdfbb | 4407 | if ac_fn_c_try_compile "$LINENO"; then : |
dabbade6 L |
4408 | ac_cv_prog_cc_g=yes |
4409 | else | |
81ecdfbb RW |
4410 | CFLAGS="" |
4411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4412 | /* end confdefs.h. */ | |
d7040cdb | 4413 | |
81ecdfbb RW |
4414 | int |
4415 | main () | |
4416 | { | |
4417 | ||
4418 | ; | |
4419 | return 0; | |
4420 | } | |
4421 | _ACEOF | |
4422 | if ac_fn_c_try_compile "$LINENO"; then : | |
4423 | ||
4424 | else | |
4425 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4426 | CFLAGS="-g" | |
4427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4428 | /* end confdefs.h. */ | |
4429 | ||
4430 | int | |
4431 | main () | |
4432 | { | |
4433 | ||
4434 | ; | |
4435 | return 0; | |
4436 | } | |
4437 | _ACEOF | |
4438 | if ac_fn_c_try_compile "$LINENO"; then : | |
4439 | ac_cv_prog_cc_g=yes | |
4440 | fi | |
4441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
dabbade6 | 4442 | fi |
81ecdfbb | 4443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dabbade6 | 4444 | fi |
81ecdfbb RW |
4445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4446 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4447 | fi | |
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4449 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
dabbade6 L |
4450 | if test "$ac_test_CFLAGS" = set; then |
4451 | CFLAGS=$ac_save_CFLAGS | |
4452 | elif test $ac_cv_prog_cc_g = yes; then | |
4453 | if test "$GCC" = yes; then | |
4454 | CFLAGS="-g -O2" | |
4455 | else | |
4456 | CFLAGS="-g" | |
4457 | fi | |
4458 | else | |
4459 | if test "$GCC" = yes; then | |
4460 | CFLAGS="-O2" | |
4461 | else | |
4462 | CFLAGS= | |
4463 | fi | |
4464 | fi | |
81ecdfbb RW |
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4466 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4467 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4468 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4469 | else |
81ecdfbb | 4470 | ac_cv_prog_cc_c89=no |
dabbade6 | 4471 | ac_save_CC=$CC |
81ecdfbb | 4472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 L |
4473 | /* end confdefs.h. */ |
4474 | #include <stdarg.h> | |
4475 | #include <stdio.h> | |
4476 | #include <sys/types.h> | |
4477 | #include <sys/stat.h> | |
4478 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4479 | struct buf { int x; }; | |
4480 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4481 | static char *e (p, i) | |
4482 | char **p; | |
4483 | int i; | |
4484 | { | |
4485 | return p[i]; | |
4486 | } | |
4487 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4488 | { | |
4489 | char *s; | |
4490 | va_list v; | |
4491 | va_start (v,p); | |
4492 | s = g (p, va_arg (v,int)); | |
4493 | va_end (v); | |
4494 | return s; | |
4495 | } | |
d7040cdb | 4496 | |
dabbade6 L |
4497 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4498 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4499 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4500 | as 'x'. The following induces an error, until -std is added to get |
dabbade6 L |
4501 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4502 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4503 | that's true only with -std. */ |
dabbade6 | 4504 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 4505 | |
81ecdfbb RW |
4506 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4507 | inside strings and character constants. */ | |
4508 | #define FOO(x) 'x' | |
4509 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4510 | ||
dabbade6 L |
4511 | int test (int i, double x); |
4512 | struct s1 {int (*f) (int a);}; | |
4513 | struct s2 {int (*f) (double a);}; | |
4514 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4515 | int argc; | |
4516 | char **argv; | |
4517 | int | |
4518 | main () | |
4519 | { | |
4520 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4521 | ; | |
4522 | return 0; | |
4523 | } | |
4524 | _ACEOF | |
81ecdfbb RW |
4525 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4526 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
dabbade6 L |
4527 | do |
4528 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4529 | if ac_fn_c_try_compile "$LINENO"; then : |
4530 | ac_cv_prog_cc_c89=$ac_arg | |
d7040cdb | 4531 | fi |
81ecdfbb RW |
4532 | rm -f core conftest.err conftest.$ac_objext |
4533 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
dabbade6 | 4534 | done |
81ecdfbb | 4535 | rm -f conftest.$ac_ext |
dabbade6 | 4536 | CC=$ac_save_CC |
d7040cdb | 4537 | |
dabbade6 | 4538 | fi |
81ecdfbb RW |
4539 | # AC_CACHE_VAL |
4540 | case "x$ac_cv_prog_cc_c89" in | |
4541 | x) | |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4543 | $as_echo "none needed" >&6; } ;; | |
4544 | xno) | |
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4546 | $as_echo "unsupported" >&6; } ;; | |
252b5132 | 4547 | *) |
81ecdfbb RW |
4548 | CC="$CC $ac_cv_prog_cc_c89" |
4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4550 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
dabbade6 | 4551 | esac |
81ecdfbb | 4552 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
ac48eca1 | 4553 | |
dabbade6 | 4554 | fi |
252b5132 | 4555 | |
dabbade6 L |
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 | |
d7040cdb | 4561 | |
7357c5b6 AM |
4562 | ac_ext=c |
4563 | ac_cpp='$CPP $CPPFLAGS' | |
4564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4568 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4569 | # On Suns, sometimes $CPP names a directory. |
4570 | if test -n "$CPP" && test -d "$CPP"; then | |
4571 | CPP= | |
4572 | fi | |
4573 | if test -z "$CPP"; then | |
81ecdfbb RW |
4574 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4575 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 4576 | else |
7357c5b6 AM |
4577 | # Double quotes because CPP needs to be expanded |
4578 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4579 | do | |
4580 | ac_preproc_ok=false | |
4581 | for ac_c_preproc_warn_flag in '' yes | |
dabbade6 | 4582 | do |
7357c5b6 AM |
4583 | # Use a header file that comes with gcc, so configuring glibc |
4584 | # with a fresh cross-compiler works. | |
4585 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4586 | # <limits.h> exists even on freestanding compilers. | |
4587 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4588 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4590 | /* end confdefs.h. */ |
4591 | #ifdef __STDC__ | |
4592 | # include <limits.h> | |
4593 | #else | |
4594 | # include <assert.h> | |
4595 | #endif | |
4596 | Syntax error | |
4597 | _ACEOF | |
81ecdfbb | 4598 | if ac_fn_c_try_cpp "$LINENO"; then : |
dabbade6 | 4599 | |
81ecdfbb | 4600 | else |
7357c5b6 AM |
4601 | # Broken: fails on valid input. |
4602 | continue | |
252b5132 | 4603 | fi |
7357c5b6 AM |
4604 | rm -f conftest.err conftest.$ac_ext |
4605 | ||
81ecdfbb | 4606 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4607 | # can be detected and how. |
81ecdfbb | 4608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4609 | /* end confdefs.h. */ |
4610 | #include <ac_nonexistent.h> | |
4611 | _ACEOF | |
81ecdfbb | 4612 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4613 | # Broken: success on invalid input. |
4614 | continue | |
dabbade6 | 4615 | else |
7357c5b6 AM |
4616 | # Passes both tests. |
4617 | ac_preproc_ok=: | |
4618 | break | |
dabbade6 | 4619 | fi |
7357c5b6 | 4620 | rm -f conftest.err conftest.$ac_ext |
dabbade6 | 4621 | |
d7040cdb | 4622 | done |
7357c5b6 AM |
4623 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4624 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 4625 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4626 | break |
4627 | fi | |
4628 | ||
4629 | done | |
4630 | ac_cv_prog_CPP=$CPP | |
d7040cdb SE |
4631 | |
4632 | fi | |
7357c5b6 AM |
4633 | CPP=$ac_cv_prog_CPP |
4634 | else | |
4635 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4636 | fi |
81ecdfbb RW |
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4638 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4639 | ac_preproc_ok=false |
4640 | for ac_c_preproc_warn_flag in '' yes | |
4641 | do | |
4642 | # Use a header file that comes with gcc, so configuring glibc | |
4643 | # with a fresh cross-compiler works. | |
4644 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4645 | # <limits.h> exists even on freestanding compilers. | |
4646 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4647 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4649 | /* end confdefs.h. */ |
4650 | #ifdef __STDC__ | |
4651 | # include <limits.h> | |
4652 | #else | |
4653 | # include <assert.h> | |
4654 | #endif | |
4655 | Syntax error | |
4656 | _ACEOF | |
81ecdfbb | 4657 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4658 | |
81ecdfbb | 4659 | else |
7357c5b6 AM |
4660 | # Broken: fails on valid input. |
4661 | continue | |
d7040cdb | 4662 | fi |
7357c5b6 | 4663 | rm -f conftest.err conftest.$ac_ext |
d7040cdb | 4664 | |
81ecdfbb | 4665 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4666 | # can be detected and how. |
81ecdfbb | 4667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4668 | /* end confdefs.h. */ |
4669 | #include <ac_nonexistent.h> | |
4670 | _ACEOF | |
81ecdfbb | 4671 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4672 | # Broken: success on invalid input. |
4673 | continue | |
dabbade6 | 4674 | else |
7357c5b6 AM |
4675 | # Passes both tests. |
4676 | ac_preproc_ok=: | |
4677 | break | |
4678 | fi | |
4679 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4680 | |
7357c5b6 AM |
4681 | done |
4682 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4683 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
4684 | if $ac_preproc_ok; then : |
4685 | ||
4686 | else | |
4687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4689 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4690 | See \`config.log' for more details." "$LINENO" 5; } | |
4691 | fi | |
4692 | ||
4693 | ac_ext=c | |
4694 | ac_cpp='$CPP $CPPFLAGS' | |
4695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4698 | ||
4699 | ||
4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4701 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4702 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4703 | $as_echo_n "(cached) " >&6 | |
4704 | else | |
4705 | if test -z "$GREP"; then | |
4706 | ac_path_GREP_found=false | |
4707 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4709 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4710 | do | |
4711 | IFS=$as_save_IFS | |
4712 | test -z "$as_dir" && as_dir=. | |
4713 | for ac_prog in grep ggrep; do | |
4714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4715 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4716 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4717 | # Check for GNU ac_path_GREP and select it if it is found. | |
4718 | # Check for GNU $ac_path_GREP | |
4719 | case `"$ac_path_GREP" --version 2>&1` in | |
4720 | *GNU*) | |
4721 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4722 | *) | |
4723 | ac_count=0 | |
4724 | $as_echo_n 0123456789 >"conftest.in" | |
4725 | while : | |
4726 | do | |
4727 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4728 | mv "conftest.tmp" "conftest.in" | |
4729 | cp "conftest.in" "conftest.nl" | |
4730 | $as_echo 'GREP' >> "conftest.nl" | |
4731 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4732 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4733 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4734 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4735 | # Best one so far, save it but keep looking for a better one | |
4736 | ac_cv_path_GREP="$ac_path_GREP" | |
4737 | ac_path_GREP_max=$ac_count | |
4738 | fi | |
4739 | # 10*(2^10) chars as input seems more than enough | |
4740 | test $ac_count -gt 10 && break | |
4741 | done | |
4742 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4743 | esac | |
4744 | ||
4745 | $ac_path_GREP_found && break 3 | |
4746 | done | |
4747 | done | |
4748 | done | |
4749 | IFS=$as_save_IFS | |
4750 | if test -z "$ac_cv_path_GREP"; then | |
4751 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4752 | fi | |
dabbade6 | 4753 | else |
81ecdfbb | 4754 | ac_cv_path_GREP=$GREP |
7357c5b6 | 4755 | fi |
d7040cdb | 4756 | |
81ecdfbb RW |
4757 | fi |
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4759 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4760 | GREP="$ac_cv_path_GREP" | |
d7040cdb SE |
4761 | |
4762 | ||
81ecdfbb RW |
4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4764 | $as_echo_n "checking for egrep... " >&6; } | |
4765 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4766 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4767 | else |
81ecdfbb RW |
4768 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4769 | then ac_cv_path_EGREP="$GREP -E" | |
4770 | else | |
4771 | if test -z "$EGREP"; then | |
4772 | ac_path_EGREP_found=false | |
4773 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4775 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4776 | do | |
4777 | IFS=$as_save_IFS | |
4778 | test -z "$as_dir" && as_dir=. | |
4779 | for ac_prog in egrep; do | |
4780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4781 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4782 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4783 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4784 | # Check for GNU $ac_path_EGREP | |
4785 | case `"$ac_path_EGREP" --version 2>&1` in | |
4786 | *GNU*) | |
4787 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4788 | *) | |
4789 | ac_count=0 | |
4790 | $as_echo_n 0123456789 >"conftest.in" | |
4791 | while : | |
4792 | do | |
4793 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4794 | mv "conftest.tmp" "conftest.in" | |
4795 | cp "conftest.in" "conftest.nl" | |
4796 | $as_echo 'EGREP' >> "conftest.nl" | |
4797 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4798 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4799 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4800 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4801 | # Best one so far, save it but keep looking for a better one | |
4802 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4803 | ac_path_EGREP_max=$ac_count | |
7357c5b6 | 4804 | fi |
81ecdfbb RW |
4805 | # 10*(2^10) chars as input seems more than enough |
4806 | test $ac_count -gt 10 && break | |
4807 | done | |
4808 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4809 | esac | |
4810 | ||
4811 | $ac_path_EGREP_found && break 3 | |
4812 | done | |
4813 | done | |
4814 | done | |
4815 | IFS=$as_save_IFS | |
4816 | if test -z "$ac_cv_path_EGREP"; then | |
4817 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4818 | fi | |
4819 | else | |
4820 | ac_cv_path_EGREP=$EGREP | |
4821 | fi | |
4822 | ||
4823 | fi | |
7357c5b6 | 4824 | fi |
81ecdfbb RW |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4826 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4827 | EGREP="$ac_cv_path_EGREP" | |
d7040cdb SE |
4828 | |
4829 | ||
81ecdfbb RW |
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4831 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4832 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4833 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 4834 | else |
81ecdfbb | 4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4836 | /* end confdefs.h. */ |
4837 | #include <stdlib.h> | |
4838 | #include <stdarg.h> | |
4839 | #include <string.h> | |
4840 | #include <float.h> | |
d7040cdb | 4841 | |
7357c5b6 AM |
4842 | int |
4843 | main () | |
4844 | { | |
d7040cdb | 4845 | |
7357c5b6 AM |
4846 | ; |
4847 | return 0; | |
4848 | } | |
4849 | _ACEOF | |
81ecdfbb | 4850 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
4851 | ac_cv_header_stdc=yes |
4852 | else | |
81ecdfbb | 4853 | ac_cv_header_stdc=no |
7357c5b6 | 4854 | fi |
81ecdfbb | 4855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4856 | |
7357c5b6 AM |
4857 | if test $ac_cv_header_stdc = yes; then |
4858 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4860 | /* end confdefs.h. */ |
4861 | #include <string.h> | |
d7040cdb | 4862 | |
7357c5b6 AM |
4863 | _ACEOF |
4864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4865 | $EGREP "memchr" >/dev/null 2>&1; then : |
4866 | ||
7357c5b6 AM |
4867 | else |
4868 | ac_cv_header_stdc=no | |
4869 | fi | |
4870 | rm -f conftest* | |
d7040cdb | 4871 | |
7357c5b6 | 4872 | fi |
d7040cdb | 4873 | |
7357c5b6 AM |
4874 | if test $ac_cv_header_stdc = yes; then |
4875 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4877 | /* end confdefs.h. */ |
4878 | #include <stdlib.h> | |
d7040cdb | 4879 | |
7357c5b6 AM |
4880 | _ACEOF |
4881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4882 | $EGREP "free" >/dev/null 2>&1; then : |
4883 | ||
7357c5b6 AM |
4884 | else |
4885 | ac_cv_header_stdc=no | |
4886 | fi | |
4887 | rm -f conftest* | |
d7040cdb | 4888 | |
7357c5b6 | 4889 | fi |
d7040cdb | 4890 | |
7357c5b6 AM |
4891 | if test $ac_cv_header_stdc = yes; then |
4892 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4893 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4894 | : |
4895 | else | |
81ecdfbb | 4896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4897 | /* end confdefs.h. */ |
4898 | #include <ctype.h> | |
81ecdfbb | 4899 | #include <stdlib.h> |
7357c5b6 AM |
4900 | #if ((' ' & 0x0FF) == 0x020) |
4901 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4902 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4903 | #else | |
4904 | # define ISLOWER(c) \ | |
4905 | (('a' <= (c) && (c) <= 'i') \ | |
4906 | || ('j' <= (c) && (c) <= 'r') \ | |
4907 | || ('s' <= (c) && (c) <= 'z')) | |
4908 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4909 | #endif | |
d7040cdb | 4910 | |
7357c5b6 AM |
4911 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4912 | int | |
4913 | main () | |
4914 | { | |
4915 | int i; | |
4916 | for (i = 0; i < 256; i++) | |
4917 | if (XOR (islower (i), ISLOWER (i)) | |
4918 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4919 | return 2; |
4920 | return 0; | |
7357c5b6 AM |
4921 | } |
4922 | _ACEOF | |
81ecdfbb | 4923 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4924 | |
81ecdfbb RW |
4925 | else |
4926 | ac_cv_header_stdc=no | |
7357c5b6 | 4927 | fi |
81ecdfbb RW |
4928 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4929 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4930 | fi |
81ecdfbb | 4931 | |
7357c5b6 AM |
4932 | fi |
4933 | fi | |
81ecdfbb RW |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4935 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4936 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4937 | |
81ecdfbb | 4938 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4939 | |
7357c5b6 | 4940 | fi |
d7040cdb | 4941 | |
7357c5b6 | 4942 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4943 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4944 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4945 | do : |
4946 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4947 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4948 | " | |
4949 | eval as_val=\$$as_ac_Header | |
4950 | if test "x$as_val" = x""yes; then : | |
7357c5b6 | 4951 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4952 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4953 | _ACEOF |
d7040cdb | 4954 | |
7357c5b6 | 4955 | fi |
d7040cdb | 4956 | |
7357c5b6 | 4957 | done |
d7040cdb SE |
4958 | |
4959 | ||
4960 | ||
81ecdfbb RW |
4961 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
4962 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
7357c5b6 AM |
4963 | MINIX=yes |
4964 | else | |
4965 | MINIX= | |
4966 | fi | |
d7040cdb SE |
4967 | |
4968 | ||
7357c5b6 | 4969 | if test "$MINIX" = yes; then |
d7040cdb | 4970 | |
81ecdfbb | 4971 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
dabbade6 | 4972 | |
252b5132 | 4973 | |
81ecdfbb | 4974 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4975 | |
4976 | ||
81ecdfbb | 4977 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4978 | |
7357c5b6 | 4979 | fi |
d7040cdb SE |
4980 | |
4981 | ||
81ecdfbb RW |
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4983 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4984 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4985 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4986 | else |
81ecdfbb | 4987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 | 4988 | /* end confdefs.h. */ |
ac48eca1 | 4989 | |
7357c5b6 AM |
4990 | # define __EXTENSIONS__ 1 |
4991 | $ac_includes_default | |
4992 | int | |
4993 | main () | |
4994 | { | |
87e6d782 | 4995 | |
7357c5b6 AM |
4996 | ; |
4997 | return 0; | |
4998 | } | |
4999 | _ACEOF | |
81ecdfbb | 5000 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 AM |
5001 | ac_cv_safe_to_define___extensions__=yes |
5002 | else | |
81ecdfbb | 5003 | ac_cv_safe_to_define___extensions__=no |
7357c5b6 | 5004 | fi |
81ecdfbb | 5005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7357c5b6 | 5006 | fi |
81ecdfbb RW |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
5008 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 5009 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 5010 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
ac48eca1 | 5011 | |
81ecdfbb | 5012 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d7040cdb | 5013 | |
81ecdfbb RW |
5014 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
5015 | ||
5016 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
5017 | ||
5018 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
d7040cdb | 5019 | |
ac48eca1 | 5020 | |
ac48eca1 | 5021 | |
ac48eca1 | 5022 | |
87e6d782 | 5023 | |
7357c5b6 AM |
5024 | if test -n "$ac_tool_prefix"; then |
5025 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5026 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5028 | $as_echo_n "checking for $ac_word... " >&6; } | |
5029 | if test "${ac_cv_prog_AR+set}" = set; then : | |
5030 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 5031 | else |
7357c5b6 AM |
5032 | if test -n "$AR"; then |
5033 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5034 | else | |
5035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5036 | for as_dir in $PATH | |
5037 | do | |
5038 | IFS=$as_save_IFS | |
5039 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5040 | for ac_exec_ext in '' $ac_executable_extensions; do |
5041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 5042 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
5044 | break 2 |
5045 | fi | |
5046 | done | |
81ecdfbb RW |
5047 | done |
5048 | IFS=$as_save_IFS | |
ac48eca1 | 5049 | |
7357c5b6 AM |
5050 | fi |
5051 | fi | |
5052 | AR=$ac_cv_prog_AR | |
5053 | if test -n "$AR"; then | |
81ecdfbb RW |
5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5055 | $as_echo "$AR" >&6; } | |
dabbade6 | 5056 | else |
81ecdfbb RW |
5057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5058 | $as_echo "no" >&6; } | |
dabbade6 | 5059 | fi |
6be7c12c | 5060 | |
81ecdfbb | 5061 | |
7357c5b6 AM |
5062 | fi |
5063 | if test -z "$ac_cv_prog_AR"; then | |
5064 | ac_ct_AR=$AR | |
5065 | # Extract the first word of "ar", so it can be a program name with args. | |
5066 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5068 | $as_echo_n "checking for $ac_word... " >&6; } | |
5069 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
5070 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
5071 | else |
5072 | if test -n "$ac_ct_AR"; then | |
5073 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5074 | else | |
5075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5076 | for as_dir in $PATH | |
5077 | do | |
5078 | IFS=$as_save_IFS | |
5079 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5080 | for ac_exec_ext in '' $ac_executable_extensions; do |
5081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 5082 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
5084 | break 2 |
5085 | fi | |
5086 | done | |
81ecdfbb RW |
5087 | done |
5088 | IFS=$as_save_IFS | |
7357c5b6 AM |
5089 | |
5090 | fi | |
5091 | fi | |
5092 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5093 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5095 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 5096 | else |
81ecdfbb RW |
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5098 | $as_echo "no" >&6; } | |
7357c5b6 AM |
5099 | fi |
5100 | ||
81ecdfbb RW |
5101 | if test "x$ac_ct_AR" = x; then |
5102 | AR="" | |
5103 | else | |
5104 | case $cross_compiling:$ac_tool_warned in | |
5105 | yes:) | |
5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5107 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5108 | ac_tool_warned=yes ;; | |
5109 | esac | |
5110 | AR=$ac_ct_AR | |
5111 | fi | |
7357c5b6 AM |
5112 | else |
5113 | AR="$ac_cv_prog_AR" | |
5114 | fi | |
5115 | ||
5116 | if test -n "$ac_tool_prefix"; then | |
5117 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5118 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5120 | $as_echo_n "checking for $ac_word... " >&6; } | |
5121 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5122 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
5123 | else |
5124 | if test -n "$RANLIB"; then | |
5125 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5126 | else | |
5127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5128 | for as_dir in $PATH | |
5129 | do | |
5130 | IFS=$as_save_IFS | |
5131 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5132 | for ac_exec_ext in '' $ac_executable_extensions; do |
5133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 5134 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 5135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
5136 | break 2 |
5137 | fi | |
5138 | done | |
81ecdfbb RW |
5139 | done |
5140 | IFS=$as_save_IFS | |
7357c5b6 AM |
5141 | |
5142 | fi | |
5143 | fi | |
5144 | RANLIB=$ac_cv_prog_RANLIB | |
5145 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5147 | $as_echo "$RANLIB" >&6; } | |
7357c5b6 | 5148 | else |
81ecdfbb RW |
5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5150 | $as_echo "no" >&6; } | |
7357c5b6 AM |
5151 | fi |
5152 | ||
81ecdfbb | 5153 | |
7357c5b6 AM |
5154 | fi |
5155 | if test -z "$ac_cv_prog_RANLIB"; then | |
5156 | ac_ct_RANLIB=$RANLIB | |
5157 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5158 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5160 | $as_echo_n "checking for $ac_word... " >&6; } | |
5161 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5162 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
5163 | else |
5164 | if test -n "$ac_ct_RANLIB"; then | |
5165 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5166 | else | |
5167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5168 | for as_dir in $PATH | |
5169 | do | |
5170 | IFS=$as_save_IFS | |
5171 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5172 | for ac_exec_ext in '' $ac_executable_extensions; do |
5173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 5174 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 5175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
5176 | break 2 |
5177 | fi | |
5178 | done | |
81ecdfbb RW |
5179 | done |
5180 | IFS=$as_save_IFS | |
7357c5b6 | 5181 | |
7357c5b6 AM |
5182 | fi |
5183 | fi | |
5184 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5185 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5187 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7357c5b6 | 5188 | else |
81ecdfbb RW |
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5190 | $as_echo "no" >&6; } | |
7357c5b6 AM |
5191 | fi |
5192 | ||
81ecdfbb RW |
5193 | if test "x$ac_ct_RANLIB" = x; then |
5194 | RANLIB=":" | |
5195 | else | |
5196 | case $cross_compiling:$ac_tool_warned in | |
5197 | yes:) | |
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5199 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5200 | ac_tool_warned=yes ;; | |
5201 | esac | |
5202 | RANLIB=$ac_ct_RANLIB | |
5203 | fi | |
7357c5b6 AM |
5204 | else |
5205 | RANLIB="$ac_cv_prog_RANLIB" | |
5206 | fi | |
5207 | ||
5208 | ||
81ecdfbb RW |
5209 | # Check whether --enable-shared was given. |
5210 | if test "${enable_shared+set}" = set; then : | |
5211 | enableval=$enable_shared; p=${PACKAGE-default} | |
7357c5b6 AM |
5212 | case $enableval in |
5213 | yes) enable_shared=yes ;; | |
5214 | no) enable_shared=no ;; | |
5215 | *) | |
5216 | enable_shared=no | |
5217 | # Look at the argument we got. We use all the common list separators. | |
5218 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
5219 | for pkg in $enableval; do | |
5220 | IFS="$lt_save_ifs" | |
5221 | if test "X$pkg" = "X$p"; then | |
5222 | enable_shared=yes | |
5223 | fi | |
5224 | done | |
5225 | IFS="$lt_save_ifs" | |
5226 | ;; | |
5227 | esac | |
5228 | else | |
5229 | enable_shared=no | |
81ecdfbb RW |
5230 | fi |
5231 | ||
7357c5b6 AM |
5232 | |
5233 | ||
5234 | ||
5235 | ||
5236 | ||
5237 | ||
5238 | ||
5239 | ||
5240 | ||
1927a18f L |
5241 | case `pwd` in |
5242 | *\ * | *\ *) | |
81ecdfbb RW |
5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
5244 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
1927a18f | 5245 | esac |
7357c5b6 AM |
5246 | |
5247 | ||
7357c5b6 | 5248 | |
1927a18f L |
5249 | macro_version='2.2.6' |
5250 | macro_revision='1.3012' | |
7357c5b6 AM |
5251 | |
5252 | ||
5253 | ||
5254 | ||
5255 | ||
5256 | ||
7357c5b6 AM |
5257 | |
5258 | ||
5259 | ||
5260 | ||
5261 | ||
5262 | ||
5263 | ||
1927a18f | 5264 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 5265 | |
81ecdfbb RW |
5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5267 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5268 | if test "${ac_cv_path_SED+set}" = set; then : | |
5269 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5270 | else |
81ecdfbb RW |
5271 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5272 | for ac_i in 1 2 3 4 5 6 7; do | |
5273 | ac_script="$ac_script$as_nl$ac_script" | |
5274 | done | |
5275 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5276 | { ac_script=; unset ac_script;} | |
5277 | if test -z "$SED"; then | |
5278 | ac_path_SED_found=false | |
5279 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5281 | for as_dir in $PATH |
5282 | do | |
5283 | IFS=$as_save_IFS | |
5284 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5285 | for ac_prog in sed gsed; do |
7357c5b6 | 5286 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5287 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5288 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5289 | # Check for GNU ac_path_SED and select it if it is found. | |
5290 | # Check for GNU $ac_path_SED | |
5291 | case `"$ac_path_SED" --version 2>&1` in | |
5292 | *GNU*) | |
5293 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5294 | *) | |
5295 | ac_count=0 | |
5296 | $as_echo_n 0123456789 >"conftest.in" | |
5297 | while : | |
5298 | do | |
5299 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5300 | mv "conftest.tmp" "conftest.in" | |
5301 | cp "conftest.in" "conftest.nl" | |
5302 | $as_echo '' >> "conftest.nl" | |
5303 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5304 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5305 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5306 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5307 | # Best one so far, save it but keep looking for a better one | |
5308 | ac_cv_path_SED="$ac_path_SED" | |
5309 | ac_path_SED_max=$ac_count | |
5310 | fi | |
5311 | # 10*(2^10) chars as input seems more than enough | |
5312 | test $ac_count -gt 10 && break | |
5313 | done | |
5314 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5315 | esac | |
5316 | ||
5317 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5318 | done |
5319 | done | |
81ecdfbb | 5320 | done |
7357c5b6 | 5321 | IFS=$as_save_IFS |
81ecdfbb RW |
5322 | if test -z "$ac_cv_path_SED"; then |
5323 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
7357c5b6 | 5324 | fi |
81ecdfbb RW |
5325 | else |
5326 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
5327 | fi |
5328 | ||
81ecdfbb RW |
5329 | fi |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5331 | $as_echo "$ac_cv_path_SED" >&6; } | |
5332 | SED="$ac_cv_path_SED" | |
5333 | rm -f conftest.sed | |
7357c5b6 AM |
5334 | |
5335 | test -z "$SED" && SED=sed | |
5336 | Xsed="$SED -e 1s/^X//" | |
5337 | ||
5338 | ||
5339 | ||
5340 | ||
5341 | ||
5342 | ||
5343 | ||
5344 | ||
5345 | ||
5346 | ||
5347 | ||
81ecdfbb RW |
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5349 | $as_echo_n "checking for fgrep... " >&6; } | |
5350 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5351 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5352 | else |
81ecdfbb RW |
5353 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5354 | then ac_cv_path_FGREP="$GREP -F" | |
5355 | else | |
5356 | if test -z "$FGREP"; then | |
5357 | ac_path_FGREP_found=false | |
5358 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5360 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5361 | do | |
5362 | IFS=$as_save_IFS | |
5363 | test -z "$as_dir" && as_dir=. | |
5364 | for ac_prog in fgrep; do | |
5365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5366 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5367 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5368 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5369 | # Check for GNU $ac_path_FGREP | |
5370 | case `"$ac_path_FGREP" --version 2>&1` in | |
5371 | *GNU*) | |
5372 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5373 | *) | |
5374 | ac_count=0 | |
5375 | $as_echo_n 0123456789 >"conftest.in" | |
5376 | while : | |
5377 | do | |
5378 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5379 | mv "conftest.tmp" "conftest.in" | |
5380 | cp "conftest.in" "conftest.nl" | |
5381 | $as_echo 'FGREP' >> "conftest.nl" | |
5382 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5383 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5384 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5385 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5386 | # Best one so far, save it but keep looking for a better one | |
5387 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5388 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5389 | fi |
81ecdfbb RW |
5390 | # 10*(2^10) chars as input seems more than enough |
5391 | test $ac_count -gt 10 && break | |
5392 | done | |
5393 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5394 | esac | |
5395 | ||
5396 | $ac_path_FGREP_found && break 3 | |
5397 | done | |
5398 | done | |
5399 | done | |
5400 | IFS=$as_save_IFS | |
5401 | if test -z "$ac_cv_path_FGREP"; then | |
5402 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5403 | fi | |
5404 | else | |
5405 | ac_cv_path_FGREP=$FGREP | |
5406 | fi | |
5407 | ||
5408 | fi | |
7357c5b6 | 5409 | fi |
81ecdfbb RW |
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5411 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5412 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5413 | |
5414 | ||
5415 | test -z "$GREP" && GREP=grep | |
d7040cdb | 5416 | |
d7040cdb | 5417 | |
d7040cdb | 5418 | |
ac48eca1 AO |
5419 | |
5420 | ||
5421 | ||
ac48eca1 | 5422 | |
ac48eca1 | 5423 | |
ac48eca1 | 5424 | |
ac48eca1 | 5425 | |
ac48eca1 | 5426 | |
ac48eca1 | 5427 | |
ac48eca1 | 5428 | |
ac48eca1 | 5429 | |
ac48eca1 | 5430 | |
ac48eca1 | 5431 | |
dabbade6 L |
5432 | |
5433 | ||
5434 | ||
81ecdfbb RW |
5435 | # Check whether --with-gnu-ld was given. |
5436 | if test "${with_gnu_ld+set}" = set; then : | |
5437 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
dabbade6 L |
5438 | else |
5439 | with_gnu_ld=no | |
81ecdfbb RW |
5440 | fi |
5441 | ||
dabbade6 L |
5442 | ac_prog=ld |
5443 | if test "$GCC" = yes; then | |
5444 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5446 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
dabbade6 L |
5447 | case $host in |
5448 | *-*-mingw*) | |
5449 | # gcc leaves a trailing carriage return which upsets mingw | |
5450 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5451 | *) | |
5452 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5453 | esac | |
5454 | case $ac_prog in | |
5455 | # Accept absolute paths. | |
5456 | [\\/]* | ?:[\\/]*) | |
5457 | re_direlt='/[^/][^/]*/\.\./' | |
5458 | # Canonicalize the pathname of ld | |
5459 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5460 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5461 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5462 | done | |
5463 | test -z "$LD" && LD="$ac_prog" | |
5464 | ;; | |
5465 | "") | |
5466 | # If it fails, then pretend we aren't using GCC. | |
5467 | ac_prog=ld | |
5468 | ;; | |
5469 | *) | |
5470 | # If it is relative, then search for the first ld in PATH. | |
5471 | with_gnu_ld=unknown | |
5472 | ;; | |
5473 | esac | |
5474 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5476 | $as_echo_n "checking for GNU ld... " >&6; } | |
dabbade6 | 5477 | else |
81ecdfbb RW |
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5479 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
dabbade6 | 5480 | fi |
81ecdfbb RW |
5481 | if test "${lt_cv_path_LD+set}" = set; then : |
5482 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5483 | else |
dabbade6 L |
5484 | if test -z "$LD"; then |
5485 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5486 | for ac_dir in $PATH; do | |
5487 | IFS="$lt_save_ifs" | |
5488 | test -z "$ac_dir" && ac_dir=. | |
5489 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5490 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5491 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5492 | # but apparently some variants of GNU ld only accept -v. | |
5493 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5494 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5495 | *GNU* | *'with BFD'*) | |
5496 | test "$with_gnu_ld" != no && break | |
5497 | ;; | |
5498 | *) | |
5499 | test "$with_gnu_ld" != yes && break | |
5500 | ;; | |
5501 | esac | |
5502 | fi | |
5503 | done | |
5504 | IFS="$lt_save_ifs" | |
ac48eca1 | 5505 | else |
dabbade6 | 5506 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ac48eca1 AO |
5507 | fi |
5508 | fi | |
dabbade6 L |
5509 | |
5510 | LD="$lt_cv_path_LD" | |
5511 | if test -n "$LD"; then | |
81ecdfbb RW |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5513 | $as_echo "$LD" >&6; } | |
ac48eca1 | 5514 | else |
81ecdfbb RW |
5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5516 | $as_echo "no" >&6; } | |
ac48eca1 | 5517 | fi |
81ecdfbb RW |
5518 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5520 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5521 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5522 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5523 | else |
dabbade6 L |
5524 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5525 | case `$LD -v 2>&1 </dev/null` in | |
5526 | *GNU* | *'with BFD'*) | |
5527 | lt_cv_prog_gnu_ld=yes | |
5528 | ;; | |
5529 | *) | |
5530 | lt_cv_prog_gnu_ld=no | |
5531 | ;; | |
5532 | esac | |
ac48eca1 | 5533 | fi |
81ecdfbb RW |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5535 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
dabbade6 | 5536 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
5537 | |
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
81ecdfbb RW |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5547 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5548 | if test "${lt_cv_path_NM+set}" = set; then : | |
5549 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5550 | else |
dabbade6 L |
5551 | if test -n "$NM"; then |
5552 | # Let the user override the test. | |
5553 | lt_cv_path_NM="$NM" | |
ac48eca1 | 5554 | else |
dabbade6 L |
5555 | lt_nm_to_check="${ac_tool_prefix}nm" |
5556 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5557 | lt_nm_to_check="$lt_nm_to_check nm" | |
979273e3 | 5558 | fi |
dabbade6 L |
5559 | for lt_tmp_nm in $lt_nm_to_check; do |
5560 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5561 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5562 | IFS="$lt_save_ifs" | |
5563 | test -z "$ac_dir" && ac_dir=. | |
5564 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5565 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5566 | # Check to see if the nm accepts a BSD-compat flag. | |
5567 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5568 | # nm: unknown option "B" ignored | |
5569 | # Tru64's nm complains that /dev/null is an invalid object file | |
5570 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5571 | */dev/null* | *'Invalid file or object type'*) | |
5572 | lt_cv_path_NM="$tmp_nm -B" | |
5573 | break | |
5574 | ;; | |
5575 | *) | |
5576 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5577 | */dev/null*) | |
5578 | lt_cv_path_NM="$tmp_nm -p" | |
5579 | break | |
5580 | ;; | |
5581 | *) | |
5582 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5583 | continue # so that we can try to find one that supports BSD flags | |
5584 | ;; | |
5585 | esac | |
5586 | ;; | |
5587 | esac | |
5588 | fi | |
5589 | done | |
5590 | IFS="$lt_save_ifs" | |
5591 | done | |
5592 | : ${lt_cv_path_NM=no} | |
ac48eca1 AO |
5593 | fi |
5594 | fi | |
81ecdfbb RW |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5596 | $as_echo "$lt_cv_path_NM" >&6; } | |
dabbade6 L |
5597 | if test "$lt_cv_path_NM" != "no"; then |
5598 | NM="$lt_cv_path_NM" | |
ac48eca1 | 5599 | else |
dabbade6 L |
5600 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5601 | if test -n "$ac_tool_prefix"; then | |
5602 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5603 | do | |
5604 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5605 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5607 | $as_echo_n "checking for $ac_word... " >&6; } | |
5608 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5609 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5610 | else |
dabbade6 L |
5611 | if test -n "$DUMPBIN"; then |
5612 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ac48eca1 | 5613 | else |
979273e3 NN |
5614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5615 | for as_dir in $PATH | |
5616 | do | |
5617 | IFS=$as_save_IFS | |
5618 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5619 | for ac_exec_ext in '' $ac_executable_extensions; do |
5620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 5621 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
979273e3 NN |
5623 | break 2 |
5624 | fi | |
5625 | done | |
81ecdfbb RW |
5626 | done |
5627 | IFS=$as_save_IFS | |
979273e3 | 5628 | |
ac48eca1 AO |
5629 | fi |
5630 | fi | |
dabbade6 L |
5631 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5632 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5634 | $as_echo "$DUMPBIN" >&6; } | |
ac48eca1 | 5635 | else |
81ecdfbb RW |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5637 | $as_echo "no" >&6; } | |
ac48eca1 AO |
5638 | fi |
5639 | ||
81ecdfbb | 5640 | |
dabbade6 L |
5641 | test -n "$DUMPBIN" && break |
5642 | done | |
ac48eca1 | 5643 | fi |
dabbade6 L |
5644 | if test -z "$DUMPBIN"; then |
5645 | ac_ct_DUMPBIN=$DUMPBIN | |
5646 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5647 | do | |
5648 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5649 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5651 | $as_echo_n "checking for $ac_word... " >&6; } | |
5652 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5653 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5654 | else |
dabbade6 L |
5655 | if test -n "$ac_ct_DUMPBIN"; then |
5656 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
d7040cdb SE |
5657 | else |
5658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5659 | for as_dir in $PATH | |
5660 | do | |
5661 | IFS=$as_save_IFS | |
5662 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5663 | for ac_exec_ext in '' $ac_executable_extensions; do |
5664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 5665 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5667 | break 2 |
252b5132 | 5668 | fi |
d7040cdb | 5669 | done |
81ecdfbb RW |
5670 | done |
5671 | IFS=$as_save_IFS | |
252b5132 | 5672 | |
d7040cdb SE |
5673 | fi |
5674 | fi | |
dabbade6 L |
5675 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5676 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5678 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
d7040cdb | 5679 | else |
81ecdfbb RW |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5681 | $as_echo "no" >&6; } | |
d7040cdb | 5682 | fi |
4867be41 | 5683 | |
81ecdfbb | 5684 | |
dabbade6 | 5685 | test -n "$ac_ct_DUMPBIN" && break |
d7040cdb | 5686 | done |
32fba81d | 5687 | |
81ecdfbb RW |
5688 | if test "x$ac_ct_DUMPBIN" = x; then |
5689 | DUMPBIN=":" | |
5690 | else | |
5691 | case $cross_compiling:$ac_tool_warned in | |
5692 | yes:) | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5694 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5695 | ac_tool_warned=yes ;; | |
5696 | esac | |
5697 | DUMPBIN=$ac_ct_DUMPBIN | |
5698 | fi | |
d7040cdb | 5699 | fi |
979273e3 NN |
5700 | |
5701 | ||
dabbade6 L |
5702 | if test "$DUMPBIN" != ":"; then |
5703 | NM="$DUMPBIN" | |
5704 | fi | |
5705 | fi | |
5706 | test -z "$NM" && NM=nm | |
ac48eca1 | 5707 | |
252b5132 | 5708 | |
252b5132 | 5709 | |
979273e3 | 5710 | |
ac48eca1 | 5711 | |
d7040cdb | 5712 | |
81ecdfbb RW |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5714 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5715 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5716 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
5717 | else |
5718 | lt_cv_nm_interface="BSD nm" | |
5719 | echo "int some_variable = 0;" > conftest.$ac_ext | |
2eee5593 | 5720 | (eval echo "\"\$as_me:5720: $ac_compile\"" >&5) |
dabbade6 L |
5721 | (eval "$ac_compile" 2>conftest.err) |
5722 | cat conftest.err >&5 | |
2eee5593 | 5723 | (eval echo "\"\$as_me:5723: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
dabbade6 L |
5724 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5725 | cat conftest.err >&5 | |
2eee5593 | 5726 | (eval echo "\"\$as_me:5726: output\"" >&5) |
dabbade6 L |
5727 | cat conftest.out >&5 |
5728 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5729 | lt_cv_nm_interface="MS dumpbin" | |
5730 | fi | |
5731 | rm -f conftest* | |
5732 | fi | |
81ecdfbb RW |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5734 | $as_echo "$lt_cv_nm_interface" >&6; } | |
d7040cdb | 5735 | |
81ecdfbb RW |
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5737 | $as_echo_n "checking whether ln -s works... " >&6; } | |
dabbade6 L |
5738 | LN_S=$as_ln_s |
5739 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5741 | $as_echo "yes" >&6; } | |
dabbade6 | 5742 | else |
81ecdfbb RW |
5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5744 | $as_echo "no, using $LN_S" >&6; } | |
dabbade6 L |
5745 | fi |
5746 | ||
5747 | # find the maximum length of command line arguments | |
81ecdfbb RW |
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5749 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5750 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5751 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
5752 | else |
5753 | i=0 | |
5754 | teststring="ABCD" | |
5755 | ||
5756 | case $build_os in | |
5757 | msdosdjgpp*) | |
5758 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5759 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5760 | # during glob expansion). Even if it were fixed, the result of this | |
5761 | # check would be larger than it should be. | |
5762 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5763 | ;; | |
5764 | ||
5765 | gnu*) | |
5766 | # Under GNU Hurd, this test is not required because there is | |
5767 | # no limit to the length of command line arguments. | |
5768 | # Libtool will interpret -1 as no limit whatsoever | |
5769 | lt_cv_sys_max_cmd_len=-1; | |
5770 | ;; | |
5771 | ||
1927a18f | 5772 | cygwin* | mingw* | cegcc*) |
dabbade6 L |
5773 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5774 | # about 5 minutes as the teststring grows exponentially. | |
5775 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5776 | # you end up with a "frozen" computer, even though with patience | |
5777 | # the test eventually succeeds (with a max line length of 256k). | |
5778 | # Instead, let's just punt: use the minimum linelength reported by | |
5779 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5780 | lt_cv_sys_max_cmd_len=8192; | |
5781 | ;; | |
5782 | ||
5783 | amigaos*) | |
5784 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5785 | # So we just punt and use a minimum line length of 8192. | |
5786 | lt_cv_sys_max_cmd_len=8192; | |
5787 | ;; | |
5788 | ||
5789 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5790 | # This has been around since 386BSD, at least. Likely further. | |
5791 | if test -x /sbin/sysctl; then | |
5792 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5793 | elif test -x /usr/sbin/sysctl; then | |
5794 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5795 | else | |
5796 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5797 | fi | |
5798 | # And add a safety zone | |
5799 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5800 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5801 | ;; | |
5802 | ||
5803 | interix*) | |
5804 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5805 | lt_cv_sys_max_cmd_len=196608 | |
5806 | ;; | |
5807 | ||
5808 | osf*) | |
5809 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5810 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5811 | # nice to cause kernel panics so lets avoid the loop below. | |
5812 | # First set a reasonable default. | |
5813 | lt_cv_sys_max_cmd_len=16384 | |
5814 | # | |
5815 | if test -x /sbin/sysconfig; then | |
5816 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5817 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5818 | esac | |
5819 | fi | |
5820 | ;; | |
5821 | sco3.2v5*) | |
5822 | lt_cv_sys_max_cmd_len=102400 | |
5823 | ;; | |
5824 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5825 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5826 | if test -n "$kargmax"; then | |
5827 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5828 | else | |
5829 | lt_cv_sys_max_cmd_len=32768 | |
5830 | fi | |
d7040cdb SE |
5831 | ;; |
5832 | *) | |
1927a18f L |
5833 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5834 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
dabbade6 L |
5835 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5836 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5837 | else | |
5838 | # Make teststring a little bigger before we do anything with it. | |
5839 | # a 1K string should be a reasonable start. | |
5840 | for i in 1 2 3 4 5 6 7 8 ; do | |
5841 | teststring=$teststring$teststring | |
5842 | done | |
5843 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5844 | # If test is not a shell built-in, we'll probably end up computing a | |
5845 | # maximum length that is only half of the actual maximum length, but | |
5846 | # we can't tell. | |
5847 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5848 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5849 | test $i != 17 # 1/2 MB should be enough | |
5850 | do | |
5851 | i=`expr $i + 1` | |
5852 | teststring=$teststring$teststring | |
5853 | done | |
5854 | # Only check the string length outside the loop. | |
5855 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5856 | teststring= | |
5857 | # Add a significant safety factor because C++ compilers can tack on | |
5858 | # massive amounts of additional arguments before passing them to the | |
5859 | # linker. It appears as though 1/2 is a usable value. | |
5860 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5861 | fi | |
d7040cdb SE |
5862 | ;; |
5863 | esac | |
252b5132 | 5864 | |
dabbade6 | 5865 | fi |
252b5132 | 5866 | |
dabbade6 | 5867 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5869 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
dabbade6 | 5870 | else |
81ecdfbb RW |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5872 | $as_echo "none" >&6; } | |
dabbade6 L |
5873 | fi |
5874 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
252b5132 | 5875 | |
252b5132 | 5876 | |
979273e3 | 5877 | |
979273e3 | 5878 | |
252b5132 | 5879 | |
252b5132 | 5880 | |
dabbade6 L |
5881 | : ${CP="cp -f"} |
5882 | : ${MV="mv -f"} | |
5883 | : ${RM="rm -f"} | |
252b5132 | 5884 | |
81ecdfbb RW |
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5886 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
dabbade6 L |
5887 | # Try some XSI features |
5888 | xsi_shell=no | |
5889 | ( _lt_dummy="a/b/c" | |
5890 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
1927a18f L |
5891 | = c,a/b,, \ |
5892 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5893 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
dabbade6 | 5894 | && xsi_shell=yes |
81ecdfbb RW |
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5896 | $as_echo "$xsi_shell" >&6; } | |
252b5132 | 5897 | |
252b5132 | 5898 | |
81ecdfbb RW |
5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5900 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
dabbade6 L |
5901 | lt_shell_append=no |
5902 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5903 | >/dev/null 2>&1 \ | |
5904 | && lt_shell_append=yes | |
81ecdfbb RW |
5905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5906 | $as_echo "$lt_shell_append" >&6; } | |
252b5132 | 5907 | |
ac48eca1 | 5908 | |
dabbade6 L |
5909 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5910 | lt_unset=unset | |
5911 | else | |
5912 | lt_unset=false | |
5913 | fi | |
979273e3 NN |
5914 | |
5915 | ||
5916 | ||
5917 | ||
ac48eca1 | 5918 | |
dabbade6 L |
5919 | # test EBCDIC or ASCII |
5920 | case `echo X|tr X '\101'` in | |
5921 | A) # ASCII based system | |
5922 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5923 | lt_SP2NL='tr \040 \012' | |
5924 | lt_NL2SP='tr \015\012 \040\040' | |
5925 | ;; | |
5926 | *) # EBCDIC based system | |
5927 | lt_SP2NL='tr \100 \n' | |
5928 | lt_NL2SP='tr \r\n \100\100' | |
5929 | ;; | |
5930 | esac | |
9e9b66a9 | 5931 | |
1ad12f97 | 5932 | |
1ad12f97 | 5933 | |
9e9b66a9 | 5934 | |
1ad12f97 | 5935 | |
a541e3ce | 5936 | |
9e9b66a9 | 5937 | |
a2d91340 AC |
5938 | |
5939 | ||
81ecdfbb RW |
5940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5941 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5942 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5943 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
5944 | else |
5945 | lt_cv_ld_reload_flag='-r' | |
5946 | fi | |
81ecdfbb RW |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5948 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
dabbade6 L |
5949 | reload_flag=$lt_cv_ld_reload_flag |
5950 | case $reload_flag in | |
5951 | "" | " "*) ;; | |
5952 | *) reload_flag=" $reload_flag" ;; | |
5953 | esac | |
5954 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5955 | case $host_os in | |
5956 | darwin*) | |
5957 | if test "$GCC" = yes; then | |
5958 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5959 | else | |
5960 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5961 | fi | |
5962 | ;; | |
5963 | esac | |
9e9b66a9 AM |
5964 | |
5965 | ||
5966 | ||
252b5132 | 5967 | |
252b5132 | 5968 | |
252b5132 | 5969 | |
252b5132 | 5970 | |
252b5132 | 5971 | |
d7040cdb | 5972 | |
1927a18f L |
5973 | if test -n "$ac_tool_prefix"; then |
5974 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5975 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5977 | $as_echo_n "checking for $ac_word... " >&6; } | |
5978 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5979 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
5980 | else |
5981 | if test -n "$OBJDUMP"; then | |
5982 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5983 | else | |
5984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5985 | for as_dir in $PATH | |
5986 | do | |
5987 | IFS=$as_save_IFS | |
5988 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5989 | for ac_exec_ext in '' $ac_executable_extensions; do |
5990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 5991 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
5993 | break 2 |
5994 | fi | |
5995 | done | |
81ecdfbb RW |
5996 | done |
5997 | IFS=$as_save_IFS | |
1927a18f L |
5998 | |
5999 | fi | |
6000 | fi | |
6001 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6002 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6004 | $as_echo "$OBJDUMP" >&6; } | |
1927a18f | 6005 | else |
81ecdfbb RW |
6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6007 | $as_echo "no" >&6; } | |
1927a18f L |
6008 | fi |
6009 | ||
81ecdfbb | 6010 | |
1927a18f L |
6011 | fi |
6012 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6013 | ac_ct_OBJDUMP=$OBJDUMP | |
6014 | # Extract the first word of "objdump", so it can be a program name with args. | |
6015 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6017 | $as_echo_n "checking for $ac_word... " >&6; } | |
6018 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6019 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
6020 | else |
6021 | if test -n "$ac_ct_OBJDUMP"; then | |
6022 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6023 | else | |
6024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6025 | for as_dir in $PATH | |
6026 | do | |
6027 | IFS=$as_save_IFS | |
6028 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6029 | for ac_exec_ext in '' $ac_executable_extensions; do |
6030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 6031 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 6032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
6033 | break 2 |
6034 | fi | |
6035 | done | |
81ecdfbb RW |
6036 | done |
6037 | IFS=$as_save_IFS | |
1927a18f | 6038 | |
1927a18f L |
6039 | fi |
6040 | fi | |
6041 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6042 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6044 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
1927a18f | 6045 | else |
81ecdfbb RW |
6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6047 | $as_echo "no" >&6; } | |
1927a18f L |
6048 | fi |
6049 | ||
81ecdfbb RW |
6050 | if test "x$ac_ct_OBJDUMP" = x; then |
6051 | OBJDUMP="false" | |
6052 | else | |
6053 | case $cross_compiling:$ac_tool_warned in | |
6054 | yes:) | |
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6056 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6057 | ac_tool_warned=yes ;; | |
6058 | esac | |
6059 | OBJDUMP=$ac_ct_OBJDUMP | |
6060 | fi | |
1927a18f L |
6061 | else |
6062 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6063 | fi | |
6064 | ||
6065 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6066 | ||
6067 | ||
6068 | ||
6069 | ||
6070 | ||
6071 | ||
6072 | ||
6073 | ||
d7040cdb | 6074 | |
81ecdfbb RW |
6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6076 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6077 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6078 | $as_echo_n "(cached) " >&6 | |
252b5132 | 6079 | else |
dabbade6 L |
6080 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6081 | lt_cv_file_magic_test_file= | |
6082 | lt_cv_deplibs_check_method='unknown' | |
6083 | # Need to set the preceding variable on all platforms that support | |
6084 | # interlibrary dependencies. | |
6085 | # 'none' -- dependencies not supported. | |
6086 | # `unknown' -- same as none, but documents that we really don't know. | |
6087 | # 'pass_all' -- all dependencies passed with no checks. | |
6088 | # 'test_compile' -- check by making test program. | |
6089 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6090 | # which responds to the $file_magic_cmd with a given extended regex. | |
6091 | # If you have `file' or equivalent on your system and you're not sure | |
6092 | # whether `pass_all' will *always* work, you probably want this one. | |
8ae85421 | 6093 | |
dabbade6 | 6094 | case $host_os in |
50e7d84b | 6095 | aix[4-9]*) |
dabbade6 L |
6096 | lt_cv_deplibs_check_method=pass_all |
6097 | ;; | |
979273e3 | 6098 | |
dabbade6 L |
6099 | beos*) |
6100 | lt_cv_deplibs_check_method=pass_all | |
6101 | ;; | |
24443139 | 6102 | |
dabbade6 L |
6103 | bsdi[45]*) |
6104 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6105 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6106 | lt_cv_file_magic_test_file=/shlib/libc.so | |
d7040cdb | 6107 | ;; |
dabbade6 L |
6108 | |
6109 | cygwin*) | |
6110 | # func_win32_libid is a shell function defined in ltmain.sh | |
6111 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6112 | lt_cv_file_magic_cmd='func_win32_libid' | |
d7040cdb | 6113 | ;; |
dabbade6 L |
6114 | |
6115 | mingw* | pw32*) | |
6116 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6117 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6118 | # unless we find 'file', for example because we are cross-compiling. | |
6119 | if ( file / ) >/dev/null 2>&1; then | |
6120 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6121 | lt_cv_file_magic_cmd='func_win32_libid' | |
6122 | else | |
6123 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6124 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
d7040cdb SE |
6125 | fi |
6126 | ;; | |
dabbade6 | 6127 | |
1927a18f L |
6128 | cegcc) |
6129 | # use the weaker test based on 'objdump'. See mingw*. | |
6130 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6131 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6132 | ;; | |
6133 | ||
dabbade6 L |
6134 | darwin* | rhapsody*) |
6135 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6136 | ;; |
dabbade6 L |
6137 | |
6138 | freebsd* | dragonfly*) | |
6139 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6140 | case $host_cpu in | |
6141 | i*86 ) | |
6142 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6143 | # Let's accept both of them until this is cleared up. | |
6144 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6145 | lt_cv_file_magic_cmd=/usr/bin/file | |
6146 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6147 | ;; | |
6148 | esac | |
6149 | else | |
6150 | lt_cv_deplibs_check_method=pass_all | |
6151 | fi | |
d7040cdb | 6152 | ;; |
dabbade6 L |
6153 | |
6154 | gnu*) | |
6155 | lt_cv_deplibs_check_method=pass_all | |
d7040cdb | 6156 | ;; |
dabbade6 L |
6157 | |
6158 | hpux10.20* | hpux11*) | |
6159 | lt_cv_file_magic_cmd=/usr/bin/file | |
6160 | case $host_cpu in | |
6161 | ia64*) | |
6162 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6163 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6164 | ;; | |
6165 | hppa*64*) | |
6166 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
6167 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6168 | ;; | |
6169 | *) | |
6170 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6171 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6172 | ;; | |
6173 | esac | |
d7040cdb | 6174 | ;; |
24443139 | 6175 | |
dabbade6 L |
6176 | interix[3-9]*) |
6177 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6178 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6179 | ;; | |
24443139 | 6180 | |
dabbade6 L |
6181 | irix5* | irix6* | nonstopux*) |
6182 | case $LD in | |
6183 | *-32|*"-32 ") libmagic=32-bit;; | |
6184 | *-n32|*"-n32 ") libmagic=N32;; | |
6185 | *-64|*"-64 ") libmagic=64-bit;; | |
6186 | *) libmagic=never-match;; | |
6187 | esac | |
6188 | lt_cv_deplibs_check_method=pass_all | |
6189 | ;; | |
8ae85421 | 6190 | |
dabbade6 | 6191 | # This must be Linux ELF. |
58e24671 | 6192 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 L |
6193 | lt_cv_deplibs_check_method=pass_all |
6194 | ;; | |
24443139 | 6195 | |
dabbade6 L |
6196 | netbsd*) |
6197 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6198 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6199 | else | |
6200 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6201 | fi | |
d7040cdb | 6202 | ;; |
24443139 | 6203 | |
dabbade6 L |
6204 | newos6*) |
6205 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6206 | lt_cv_file_magic_cmd=/usr/bin/file | |
6207 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6208 | ;; | |
d7040cdb | 6209 | |
dabbade6 L |
6210 | *nto* | *qnx*) |
6211 | lt_cv_deplibs_check_method=pass_all | |
6212 | ;; | |
d7040cdb | 6213 | |
dabbade6 L |
6214 | openbsd*) |
6215 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6216 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
d7040cdb | 6217 | else |
dabbade6 | 6218 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
d7040cdb | 6219 | fi |
dabbade6 | 6220 | ;; |
24443139 | 6221 | |
dabbade6 L |
6222 | osf3* | osf4* | osf5*) |
6223 | lt_cv_deplibs_check_method=pass_all | |
6224 | ;; | |
24443139 | 6225 | |
dabbade6 L |
6226 | rdos*) |
6227 | lt_cv_deplibs_check_method=pass_all | |
6228 | ;; | |
81172ff2 | 6229 | |
dabbade6 L |
6230 | solaris*) |
6231 | lt_cv_deplibs_check_method=pass_all | |
6232 | ;; | |
81172ff2 | 6233 | |
dabbade6 L |
6234 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6235 | lt_cv_deplibs_check_method=pass_all | |
6236 | ;; | |
252b5132 | 6237 | |
dabbade6 L |
6238 | sysv4 | sysv4.3*) |
6239 | case $host_vendor in | |
6240 | motorola) | |
6241 | 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]' | |
6242 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6243 | ;; | |
6244 | ncr) | |
6245 | lt_cv_deplibs_check_method=pass_all | |
6246 | ;; | |
6247 | sequent) | |
6248 | lt_cv_file_magic_cmd='/bin/file' | |
6249 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6250 | ;; | |
6251 | sni) | |
6252 | lt_cv_file_magic_cmd='/bin/file' | |
6253 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6254 | lt_cv_file_magic_test_file=/lib/libc.so | |
6255 | ;; | |
6256 | siemens) | |
6257 | lt_cv_deplibs_check_method=pass_all | |
6258 | ;; | |
6259 | pc) | |
6260 | lt_cv_deplibs_check_method=pass_all | |
6261 | ;; | |
6262 | esac | |
6263 | ;; | |
252b5132 | 6264 | |
dabbade6 L |
6265 | tpf*) |
6266 | lt_cv_deplibs_check_method=pass_all | |
6267 | ;; | |
6268 | esac | |
979273e3 | 6269 | |
dabbade6 | 6270 | fi |
81ecdfbb RW |
6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6272 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
dabbade6 L |
6273 | file_magic_cmd=$lt_cv_file_magic_cmd |
6274 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6275 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb | 6276 | |
979273e3 | 6277 | |
979273e3 | 6278 | |
dabbade6 L |
6279 | |
6280 | ||
6281 | ||
6282 | ||
6283 | ||
6284 | ||
6285 | ||
6286 | ||
6287 | ||
6288 | if test -n "$ac_tool_prefix"; then | |
6289 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6290 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6292 | $as_echo_n "checking for $ac_word... " >&6; } | |
6293 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6294 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
6295 | else |
6296 | if test -n "$AR"; then | |
6297 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6298 | else | |
6299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6300 | for as_dir in $PATH | |
6301 | do | |
6302 | IFS=$as_save_IFS | |
6303 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6304 | for ac_exec_ext in '' $ac_executable_extensions; do |
6305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6306 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 | 6308 | break 2 |
252b5132 | 6309 | fi |
979273e3 | 6310 | done |
81ecdfbb RW |
6311 | done |
6312 | IFS=$as_save_IFS | |
979273e3 | 6313 | |
dabbade6 L |
6314 | fi |
6315 | fi | |
6316 | AR=$ac_cv_prog_AR | |
6317 | if test -n "$AR"; then | |
81ecdfbb RW |
6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6319 | $as_echo "$AR" >&6; } | |
dabbade6 | 6320 | else |
81ecdfbb RW |
6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6322 | $as_echo "no" >&6; } | |
979273e3 | 6323 | fi |
d7040cdb | 6324 | |
81ecdfbb | 6325 | |
252b5132 | 6326 | fi |
dabbade6 L |
6327 | if test -z "$ac_cv_prog_AR"; then |
6328 | ac_ct_AR=$AR | |
6329 | # Extract the first word of "ar", so it can be a program name with args. | |
6330 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6332 | $as_echo_n "checking for $ac_word... " >&6; } | |
6333 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6334 | $as_echo_n "(cached) " >&6 | |
979273e3 | 6335 | else |
dabbade6 L |
6336 | if test -n "$ac_ct_AR"; then |
6337 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6338 | else | |
6339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6340 | for as_dir in $PATH | |
6341 | do | |
6342 | IFS=$as_save_IFS | |
6343 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6344 | for ac_exec_ext in '' $ac_executable_extensions; do |
6345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6346 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6348 | break 2 |
6349 | fi | |
6350 | done | |
81ecdfbb RW |
6351 | done |
6352 | IFS=$as_save_IFS | |
dabbade6 | 6353 | |
dabbade6 L |
6354 | fi |
6355 | fi | |
6356 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6357 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6359 | $as_echo "$ac_ct_AR" >&6; } | |
dabbade6 | 6360 | else |
81ecdfbb RW |
6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6362 | $as_echo "no" >&6; } | |
252b5132 RH |
6363 | fi |
6364 | ||
81ecdfbb RW |
6365 | if test "x$ac_ct_AR" = x; then |
6366 | AR="false" | |
6367 | else | |
6368 | case $cross_compiling:$ac_tool_warned in | |
6369 | yes:) | |
6370 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6371 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6372 | ac_tool_warned=yes ;; | |
6373 | esac | |
6374 | AR=$ac_ct_AR | |
6375 | fi | |
dabbade6 L |
6376 | else |
6377 | AR="$ac_cv_prog_AR" | |
6378 | fi | |
252b5132 | 6379 | |
dabbade6 L |
6380 | test -z "$AR" && AR=ar |
6381 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
252b5132 | 6382 | |
979273e3 | 6383 | |
979273e3 | 6384 | |
979273e3 | 6385 | |
252b5132 | 6386 | |
979273e3 | 6387 | |
979273e3 | 6388 | |
252b5132 | 6389 | |
979273e3 | 6390 | |
979273e3 | 6391 | |
979273e3 | 6392 | |
dabbade6 L |
6393 | if test -n "$ac_tool_prefix"; then |
6394 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6395 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6397 | $as_echo_n "checking for $ac_word... " >&6; } | |
6398 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6399 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
6400 | else |
6401 | if test -n "$STRIP"; then | |
6402 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6403 | else | |
6404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6405 | for as_dir in $PATH | |
6406 | do | |
6407 | IFS=$as_save_IFS | |
6408 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6409 | for ac_exec_ext in '' $ac_executable_extensions; do |
6410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6411 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6413 | break 2 |
6414 | fi | |
6415 | done | |
81ecdfbb RW |
6416 | done |
6417 | IFS=$as_save_IFS | |
979273e3 | 6418 | |
dabbade6 L |
6419 | fi |
6420 | fi | |
6421 | STRIP=$ac_cv_prog_STRIP | |
6422 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6424 | $as_echo "$STRIP" >&6; } | |
dabbade6 | 6425 | else |
81ecdfbb RW |
6426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6427 | $as_echo "no" >&6; } | |
dabbade6 | 6428 | fi |
979273e3 | 6429 | |
81ecdfbb | 6430 | |
dabbade6 L |
6431 | fi |
6432 | if test -z "$ac_cv_prog_STRIP"; then | |
6433 | ac_ct_STRIP=$STRIP | |
6434 | # Extract the first word of "strip", so it can be a program name with args. | |
6435 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6437 | $as_echo_n "checking for $ac_word... " >&6; } | |
6438 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6439 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
6440 | else |
6441 | if test -n "$ac_ct_STRIP"; then | |
6442 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6443 | else | |
6444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6445 | for as_dir in $PATH | |
6446 | do | |
6447 | IFS=$as_save_IFS | |
6448 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6449 | for ac_exec_ext in '' $ac_executable_extensions; do |
6450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6451 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6453 | break 2 |
6454 | fi | |
6455 | done | |
81ecdfbb RW |
6456 | done |
6457 | IFS=$as_save_IFS | |
979273e3 | 6458 | |
dabbade6 L |
6459 | fi |
6460 | fi | |
6461 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6462 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6464 | $as_echo "$ac_ct_STRIP" >&6; } | |
dabbade6 | 6465 | else |
81ecdfbb RW |
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6467 | $as_echo "no" >&6; } | |
dabbade6 | 6468 | fi |
979273e3 | 6469 | |
81ecdfbb RW |
6470 | if test "x$ac_ct_STRIP" = x; then |
6471 | STRIP=":" | |
6472 | else | |
6473 | case $cross_compiling:$ac_tool_warned in | |
6474 | yes:) | |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6476 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6477 | ac_tool_warned=yes ;; | |
6478 | esac | |
6479 | STRIP=$ac_ct_STRIP | |
6480 | fi | |
dabbade6 L |
6481 | else |
6482 | STRIP="$ac_cv_prog_STRIP" | |
6483 | fi | |
979273e3 | 6484 | |
dabbade6 | 6485 | test -z "$STRIP" && STRIP=: |
979273e3 | 6486 | |
d7040cdb | 6487 | |
979273e3 | 6488 | |
d7040cdb | 6489 | |
979273e3 | 6490 | |
979273e3 | 6491 | |
dabbade6 L |
6492 | if test -n "$ac_tool_prefix"; then |
6493 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6494 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6496 | $as_echo_n "checking for $ac_word... " >&6; } | |
6497 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6498 | $as_echo_n "(cached) " >&6 | |
979273e3 | 6499 | else |
dabbade6 L |
6500 | if test -n "$RANLIB"; then |
6501 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6502 | else | |
6503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6504 | for as_dir in $PATH | |
6505 | do | |
6506 | IFS=$as_save_IFS | |
6507 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6508 | for ac_exec_ext in '' $ac_executable_extensions; do |
6509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6510 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 L |
6512 | break 2 |
6513 | fi | |
6514 | done | |
81ecdfbb RW |
6515 | done |
6516 | IFS=$as_save_IFS | |
979273e3 | 6517 | |
979273e3 | 6518 | fi |
979273e3 | 6519 | fi |
dabbade6 L |
6520 | RANLIB=$ac_cv_prog_RANLIB |
6521 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6523 | $as_echo "$RANLIB" >&6; } | |
dabbade6 | 6524 | else |
81ecdfbb RW |
6525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6526 | $as_echo "no" >&6; } | |
dabbade6 | 6527 | fi |
d7040cdb | 6528 | |
81ecdfbb | 6529 | |
d7040cdb | 6530 | fi |
dabbade6 L |
6531 | if test -z "$ac_cv_prog_RANLIB"; then |
6532 | ac_ct_RANLIB=$RANLIB | |
6533 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6534 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6536 | $as_echo_n "checking for $ac_word... " >&6; } | |
6537 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6538 | $as_echo_n "(cached) " >&6 | |
979273e3 | 6539 | else |
dabbade6 L |
6540 | if test -n "$ac_ct_RANLIB"; then |
6541 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6542 | else | |
6543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6544 | for as_dir in $PATH | |
d7040cdb | 6545 | do |
dabbade6 L |
6546 | IFS=$as_save_IFS |
6547 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6548 | for ac_exec_ext in '' $ac_executable_extensions; do |
6549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
dabbade6 | 6550 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
dabbade6 | 6552 | break 2 |
979273e3 | 6553 | fi |
dabbade6 | 6554 | done |
81ecdfbb RW |
6555 | done |
6556 | IFS=$as_save_IFS | |
dabbade6 | 6557 | |
979273e3 | 6558 | fi |
dabbade6 L |
6559 | fi |
6560 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6561 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6563 | $as_echo "$ac_ct_RANLIB" >&6; } | |
979273e3 | 6564 | else |
81ecdfbb RW |
6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6566 | $as_echo "no" >&6; } | |
d7040cdb | 6567 | fi |
d7040cdb | 6568 | |
81ecdfbb RW |
6569 | if test "x$ac_ct_RANLIB" = x; then |
6570 | RANLIB=":" | |
6571 | else | |
6572 | case $cross_compiling:$ac_tool_warned in | |
6573 | yes:) | |
6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6575 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6576 | ac_tool_warned=yes ;; | |
6577 | esac | |
6578 | RANLIB=$ac_ct_RANLIB | |
6579 | fi | |
d7040cdb | 6580 | else |
dabbade6 | 6581 | RANLIB="$ac_cv_prog_RANLIB" |
d7040cdb | 6582 | fi |
979273e3 | 6583 | |
dabbade6 | 6584 | test -z "$RANLIB" && RANLIB=: |
979273e3 | 6585 | |
252b5132 | 6586 | |
252b5132 | 6587 | |
d7040cdb | 6588 | |
d7040cdb | 6589 | |
d7040cdb | 6590 | |
dabbade6 | 6591 | # Determine commands to create old-style static archives. |
1927a18f | 6592 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
dabbade6 L |
6593 | old_postinstall_cmds='chmod 644 $oldlib' |
6594 | old_postuninstall_cmds= | |
d7040cdb | 6595 | |
dabbade6 L |
6596 | if test -n "$RANLIB"; then |
6597 | case $host_os in | |
6598 | openbsd*) | |
6599 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6600 | ;; | |
6601 | *) | |
6602 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6603 | ;; | |
6604 | esac | |
6605 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d7040cdb SE |
6606 | fi |
6607 | ||
d7040cdb SE |
6608 | |
6609 | ||
d7040cdb | 6610 | |
d7040cdb | 6611 | |
252b5132 | 6612 | |
d7040cdb | 6613 | |
d7040cdb | 6614 | |
d7040cdb SE |
6615 | |
6616 | ||
6617 | ||
d7040cdb | 6618 | |
d7040cdb | 6619 | |
d7040cdb | 6620 | |
252b5132 | 6621 | |
d7040cdb SE |
6622 | |
6623 | ||
6624 | ||
d7040cdb | 6625 | |
d7040cdb SE |
6626 | |
6627 | ||
6628 | ||
6629 | ||
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
6635 | ||
6636 | ||
6637 | ||
6638 | ||
6639 | ||
6640 | ||
dabbade6 L |
6641 | # If no C compiler was specified, use CC. |
6642 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 6643 | |
dabbade6 L |
6644 | # If no C compiler flags were specified, use CFLAGS. |
6645 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 6646 | |
dabbade6 L |
6647 | # Allow CC to be a program name with arguments. |
6648 | compiler=$CC | |
d7040cdb SE |
6649 | |
6650 | ||
dabbade6 | 6651 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6653 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6654 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6655 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 6656 | else |
d7040cdb | 6657 | |
dabbade6 L |
6658 | # These are sane defaults that work on at least a few old systems. |
6659 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 6660 | |
dabbade6 L |
6661 | # Character class describing NM global symbol codes. |
6662 | symcode='[BCDEGRST]' | |
d7040cdb | 6663 | |
dabbade6 L |
6664 | # Regexp to match symbols that can be accessed directly from C. |
6665 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d7040cdb | 6666 | |
dabbade6 L |
6667 | # Define system-specific variables. |
6668 | case $host_os in | |
6669 | aix*) | |
6670 | symcode='[BCDT]' | |
6671 | ;; | |
1927a18f | 6672 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
6673 | symcode='[ABCDGISTW]' |
6674 | ;; | |
6675 | hpux*) | |
6676 | if test "$host_cpu" = ia64; then | |
6677 | symcode='[ABCDEGRST]' | |
6678 | fi | |
6679 | ;; | |
6680 | irix* | nonstopux*) | |
6681 | symcode='[BCDEGRST]' | |
6682 | ;; | |
6683 | osf*) | |
6684 | symcode='[BCDEGQRST]' | |
6685 | ;; | |
6686 | solaris*) | |
6687 | symcode='[BDRT]' | |
6688 | ;; | |
6689 | sco3.2v5*) | |
6690 | symcode='[DT]' | |
6691 | ;; | |
6692 | sysv4.2uw2*) | |
6693 | symcode='[DT]' | |
6694 | ;; | |
6695 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6696 | symcode='[ABDT]' | |
6697 | ;; | |
6698 | sysv4) | |
6699 | symcode='[DFNSTU]' | |
6700 | ;; | |
6701 | esac | |
6702 | ||
6703 | # If we're using GNU nm, then use its standard symbol codes. | |
6704 | case `$NM -V 2>&1` in | |
6705 | *GNU* | *'with BFD'*) | |
6706 | symcode='[ABCDGIRSTW]' ;; | |
6707 | esac | |
d7040cdb | 6708 | |
dabbade6 L |
6709 | # Transform an extracted symbol line into a proper C declaration. |
6710 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6711 | # so use this general approach. | |
6712 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d7040cdb | 6713 | |
dabbade6 | 6714 | # Transform an extracted symbol line into symbol name and symbol address |
7357c5b6 | 6715 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
1927a18f | 6716 | 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 | 6717 | |
7357c5b6 AM |
6718 | # Handle CRLF in mingw tool chain |
6719 | opt_cr= | |
6720 | case $build_os in | |
6721 | mingw*) | |
6722 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6723 | ;; | |
6724 | esac | |
d7040cdb | 6725 | |
7357c5b6 AM |
6726 | # Try without a prefix underscore, then with it. |
6727 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6728 | |
7357c5b6 AM |
6729 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6730 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6731 | |
7357c5b6 AM |
6732 | # Write the raw and C identifiers. |
6733 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6734 | # Fake it for dumpbin and say T for any non-static function | |
6735 | # and D for any global variable. | |
6736 | # Also find C++ and __fastcall symbols from MSVC++, | |
6737 | # which start with @ or ?. | |
6738 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6739 | " {last_section=section; section=\$ 3};"\ | |
6740 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6741 | " \$ 0!~/External *\|/{next};"\ | |
6742 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6743 | " {if(hide[section]) next};"\ | |
6744 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6745 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6746 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6747 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6748 | " ' prfx=^$ac_symprfx" | |
6749 | else | |
6750 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6751 | fi | |
d7040cdb | 6752 | |
7357c5b6 AM |
6753 | # Check to see that the pipe works correctly. |
6754 | pipe_works=no | |
d7040cdb | 6755 | |
7357c5b6 AM |
6756 | rm -f conftest* |
6757 | cat > conftest.$ac_ext <<_LT_EOF | |
6758 | #ifdef __cplusplus | |
6759 | extern "C" { | |
6760 | #endif | |
6761 | char nm_test_var; | |
6762 | void nm_test_func(void); | |
6763 | void nm_test_func(void){} | |
6764 | #ifdef __cplusplus | |
dabbade6 | 6765 | } |
7357c5b6 AM |
6766 | #endif |
6767 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6768 | _LT_EOF | |
6769 | ||
81ecdfbb | 6770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 6771 | (eval $ac_compile) 2>&5 |
dabbade6 | 6772 | ac_status=$? |
81ecdfbb RW |
6773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6774 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6775 | # Now try to grab the symbols. |
6776 | nlist=conftest.nm | |
81ecdfbb | 6777 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
7357c5b6 | 6778 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
dabbade6 | 6779 | ac_status=$? |
81ecdfbb RW |
6780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6781 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
6782 | # Try sorting and uniquifying the output. |
6783 | if sort "$nlist" | uniq > "$nlist"T; then | |
6784 | mv -f "$nlist"T "$nlist" | |
6785 | else | |
6786 | rm -f "$nlist"T | |
6787 | fi | |
d7040cdb | 6788 | |
7357c5b6 AM |
6789 | # Make sure that we snagged all the symbols we need. |
6790 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6791 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6792 | cat <<_LT_EOF > conftest.$ac_ext | |
6793 | #ifdef __cplusplus | |
6794 | extern "C" { | |
6795 | #endif | |
d7040cdb | 6796 | |
7357c5b6 AM |
6797 | _LT_EOF |
6798 | # Now generate the symbol file. | |
6799 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d7040cdb | 6800 | |
7357c5b6 | 6801 | cat <<_LT_EOF >> conftest.$ac_ext |
d7040cdb | 6802 | |
7357c5b6 AM |
6803 | /* The mapping between symbol names and symbols. */ |
6804 | const struct { | |
6805 | const char *name; | |
6806 | void *address; | |
6807 | } | |
6808 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6809 | { | |
6810 | { "@PROGRAM@", (void *) 0 }, | |
6811 | _LT_EOF | |
6812 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6813 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6814 | {0, (void *) 0} | |
6815 | }; | |
d7040cdb | 6816 | |
7357c5b6 AM |
6817 | /* This works around a problem in FreeBSD linker */ |
6818 | #ifdef FREEBSD_WORKAROUND | |
6819 | static const void *lt_preloaded_setup() { | |
6820 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6821 | } | |
dabbade6 | 6822 | #endif |
d7040cdb | 6823 | |
7357c5b6 | 6824 | #ifdef __cplusplus |
dabbade6 | 6825 | } |
7357c5b6 AM |
6826 | #endif |
6827 | _LT_EOF | |
6828 | # Now try linking the two files. | |
6829 | mv conftest.$ac_objext conftstm.$ac_objext | |
6830 | lt_save_LIBS="$LIBS" | |
6831 | lt_save_CFLAGS="$CFLAGS" | |
6832 | LIBS="conftstm.$ac_objext" | |
6833 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6834 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
6835 | (eval $ac_link) 2>&5 |
6836 | ac_status=$? | |
81ecdfbb RW |
6837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6838 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
6839 | pipe_works=yes |
6840 | fi | |
6841 | LIBS="$lt_save_LIBS" | |
6842 | CFLAGS="$lt_save_CFLAGS" | |
6843 | else | |
6844 | echo "cannot find nm_test_func in $nlist" >&5 | |
6845 | fi | |
6846 | else | |
6847 | echo "cannot find nm_test_var in $nlist" >&5 | |
6848 | fi | |
6849 | else | |
6850 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6851 | fi | |
6852 | else | |
6853 | echo "$progname: failed program was:" >&5 | |
6854 | cat conftest.$ac_ext >&5 | |
6855 | fi | |
1927a18f | 6856 | rm -rf conftest* conftst* |
7357c5b6 AM |
6857 | |
6858 | # Do not use the global_symbol_pipe unless it works. | |
6859 | if test "$pipe_works" = yes; then | |
6860 | break | |
6861 | else | |
6862 | lt_cv_sys_global_symbol_pipe= | |
6863 | fi | |
6864 | done | |
d7040cdb | 6865 | |
dabbade6 | 6866 | fi |
7357c5b6 AM |
6867 | |
6868 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6869 | lt_cv_sys_global_symbol_to_cdecl= | |
dabbade6 | 6870 | fi |
7357c5b6 | 6871 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6873 | $as_echo "failed" >&6; } | |
7357c5b6 | 6874 | else |
81ecdfbb RW |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6876 | $as_echo "ok" >&6; } | |
dabbade6 | 6877 | fi |
d7040cdb | 6878 | |
d7040cdb | 6879 | |
d7040cdb | 6880 | |
d7040cdb | 6881 | |
d7040cdb | 6882 | |
d7040cdb | 6883 | |
d7040cdb | 6884 | |
d7040cdb | 6885 | |
d7040cdb | 6886 | |
d7040cdb | 6887 | |
d7040cdb | 6888 | |
d7040cdb | 6889 | |
7357c5b6 AM |
6890 | |
6891 | ||
6892 | ||
1927a18f L |
6893 | |
6894 | ||
6895 | ||
6896 | ||
6897 | ||
7357c5b6 AM |
6898 | |
6899 | ||
81ecdfbb RW |
6900 | # Check whether --enable-libtool-lock was given. |
6901 | if test "${enable_libtool_lock+set}" = set; then : | |
6902 | enableval=$enable_libtool_lock; | |
6903 | fi | |
7357c5b6 | 6904 | |
7357c5b6 AM |
6905 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6906 | ||
6907 | # Some flags need to be propagated to the compiler or linker for good | |
6908 | # libtool support. | |
6909 | case $host in | |
6910 | ia64-*-hpux*) | |
6911 | # Find out which ABI we are using. | |
6912 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6913 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6914 | (eval $ac_compile) 2>&5 |
6915 | ac_status=$? | |
81ecdfbb RW |
6916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6917 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6918 | case `/usr/bin/file conftest.$ac_objext` in |
6919 | *ELF-32*) | |
6920 | HPUX_IA64_MODE="32" | |
6921 | ;; | |
6922 | *ELF-64*) | |
6923 | HPUX_IA64_MODE="64" | |
6924 | ;; | |
6925 | esac | |
6926 | fi | |
6927 | rm -rf conftest* | |
6928 | ;; | |
6929 | *-*-irix6*) | |
6930 | # Find out which ABI we are using. | |
2eee5593 | 6931 | echo '#line 6931 "configure"' > conftest.$ac_ext |
81ecdfbb | 6932 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6933 | (eval $ac_compile) 2>&5 |
6934 | ac_status=$? | |
81ecdfbb RW |
6935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6936 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6937 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6938 | case `/usr/bin/file conftest.$ac_objext` in | |
6939 | *32-bit*) | |
6940 | LD="${LD-ld} -melf32bsmip" | |
6941 | ;; | |
6942 | *N32*) | |
6943 | LD="${LD-ld} -melf32bmipn32" | |
6944 | ;; | |
6945 | *64-bit*) | |
6946 | LD="${LD-ld} -melf64bmip" | |
6947 | ;; | |
6948 | esac | |
6949 | else | |
6950 | case `/usr/bin/file conftest.$ac_objext` in | |
6951 | *32-bit*) | |
6952 | LD="${LD-ld} -32" | |
6953 | ;; | |
6954 | *N32*) | |
6955 | LD="${LD-ld} -n32" | |
6956 | ;; | |
6957 | *64-bit*) | |
6958 | LD="${LD-ld} -64" | |
6959 | ;; | |
6960 | esac | |
6961 | fi | |
6962 | fi | |
6963 | rm -rf conftest* | |
6964 | ;; | |
6965 | ||
6966 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6967 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6968 | # Find out which ABI we are using. | |
6969 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6970 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6971 | (eval $ac_compile) 2>&5 |
6972 | ac_status=$? | |
81ecdfbb RW |
6973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6974 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6975 | case `/usr/bin/file conftest.o` in |
6976 | *32-bit*) | |
6977 | case $host in | |
6978 | x86_64-*kfreebsd*-gnu) | |
6979 | LD="${LD-ld} -m elf_i386_fbsd" | |
6980 | ;; | |
6981 | x86_64-*linux*) | |
6982 | LD="${LD-ld} -m elf_i386" | |
6983 | ;; | |
6984 | ppc64-*linux*|powerpc64-*linux*) | |
6985 | LD="${LD-ld} -m elf32ppclinux" | |
6986 | ;; | |
6987 | s390x-*linux*) | |
6988 | LD="${LD-ld} -m elf_s390" | |
6989 | ;; | |
6990 | sparc64-*linux*) | |
6991 | LD="${LD-ld} -m elf32_sparc" | |
6992 | ;; | |
6993 | esac | |
6994 | ;; | |
6995 | *64-bit*) | |
6996 | case $host in | |
6997 | x86_64-*kfreebsd*-gnu) | |
6998 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6999 | ;; | |
7000 | x86_64-*linux*) | |
7001 | LD="${LD-ld} -m elf_x86_64" | |
7002 | ;; | |
7003 | ppc*-*linux*|powerpc*-*linux*) | |
7004 | LD="${LD-ld} -m elf64ppc" | |
7005 | ;; | |
7006 | s390*-*linux*|s390*-*tpf*) | |
7007 | LD="${LD-ld} -m elf64_s390" | |
7008 | ;; | |
7009 | sparc*-*linux*) | |
7010 | LD="${LD-ld} -m elf64_sparc" | |
7011 | ;; | |
7012 | esac | |
7013 | ;; | |
7014 | esac | |
7015 | fi | |
7016 | rm -rf conftest* | |
7017 | ;; | |
7018 | ||
7019 | *-*-sco3.2v5*) | |
7020 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7021 | SAVE_CFLAGS="$CFLAGS" | |
7022 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7024 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7025 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7026 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 7027 | else |
7357c5b6 AM |
7028 | ac_ext=c |
7029 | ac_cpp='$CPP $CPPFLAGS' | |
7030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7033 | ||
81ecdfbb | 7034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 7035 | /* end confdefs.h. */ |
d7040cdb | 7036 | |
7357c5b6 AM |
7037 | int |
7038 | main () | |
7039 | { | |
7040 | ||
7041 | ; | |
7042 | return 0; | |
7043 | } | |
dabbade6 | 7044 | _ACEOF |
81ecdfbb | 7045 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7046 | lt_cv_cc_needs_belf=yes |
dabbade6 | 7047 | else |
81ecdfbb | 7048 | lt_cv_cc_needs_belf=no |
dabbade6 | 7049 | fi |
81ecdfbb RW |
7050 | rm -f core conftest.err conftest.$ac_objext \ |
7051 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7052 | ac_ext=c |
7053 | ac_cpp='$CPP $CPPFLAGS' | |
7054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7057 | |
dabbade6 | 7058 | fi |
81ecdfbb RW |
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7060 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
7061 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7062 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7063 | CFLAGS="$SAVE_CFLAGS" | |
7064 | fi | |
7065 | ;; | |
7066 | sparc*-*solaris*) | |
7067 | # Find out which ABI we are using. | |
7068 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7069 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7070 | (eval $ac_compile) 2>&5 |
7071 | ac_status=$? | |
81ecdfbb RW |
7072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7073 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7074 | case `/usr/bin/file conftest.o` in |
7075 | *64-bit*) | |
7076 | case $lt_cv_prog_gnu_ld in | |
7077 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
1927a18f L |
7078 | *) |
7079 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7080 | LD="${LD-ld} -64" | |
7081 | fi | |
7082 | ;; | |
7357c5b6 AM |
7083 | esac |
7084 | ;; | |
7085 | esac | |
7086 | fi | |
7087 | rm -rf conftest* | |
7088 | ;; | |
7089 | esac | |
d7040cdb | 7090 | |
7357c5b6 | 7091 | need_locks="$enable_libtool_lock" |
d7040cdb | 7092 | |
d7040cdb | 7093 | |
1927a18f L |
7094 | case $host_os in |
7095 | rhapsody* | darwin*) | |
7096 | if test -n "$ac_tool_prefix"; then | |
7097 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7098 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7100 | $as_echo_n "checking for $ac_word... " >&6; } | |
7101 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7102 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7103 | else |
7104 | if test -n "$DSYMUTIL"; then | |
7105 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7106 | else | |
7107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7108 | for as_dir in $PATH | |
7109 | do | |
7110 | IFS=$as_save_IFS | |
7111 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7112 | for ac_exec_ext in '' $ac_executable_extensions; do |
7113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7114 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7116 | break 2 |
7117 | fi | |
7118 | done | |
81ecdfbb RW |
7119 | done |
7120 | IFS=$as_save_IFS | |
1927a18f L |
7121 | |
7122 | fi | |
7123 | fi | |
7124 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7125 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7127 | $as_echo "$DSYMUTIL" >&6; } | |
1927a18f | 7128 | else |
81ecdfbb RW |
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7130 | $as_echo "no" >&6; } | |
1927a18f L |
7131 | fi |
7132 | ||
81ecdfbb | 7133 | |
1927a18f L |
7134 | fi |
7135 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7136 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7137 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7138 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7140 | $as_echo_n "checking for $ac_word... " >&6; } | |
7141 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7142 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7143 | else |
7144 | if test -n "$ac_ct_DSYMUTIL"; then | |
7145 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7146 | else | |
7147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7148 | for as_dir in $PATH | |
7149 | do | |
7150 | IFS=$as_save_IFS | |
7151 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7152 | for ac_exec_ext in '' $ac_executable_extensions; do |
7153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7154 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7156 | break 2 |
7157 | fi | |
7158 | done | |
81ecdfbb RW |
7159 | done |
7160 | IFS=$as_save_IFS | |
1927a18f | 7161 | |
1927a18f L |
7162 | fi |
7163 | fi | |
7164 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7165 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7167 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
1927a18f | 7168 | else |
81ecdfbb RW |
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7170 | $as_echo "no" >&6; } | |
1927a18f L |
7171 | fi |
7172 | ||
81ecdfbb RW |
7173 | if test "x$ac_ct_DSYMUTIL" = x; then |
7174 | DSYMUTIL=":" | |
7175 | else | |
7176 | case $cross_compiling:$ac_tool_warned in | |
7177 | yes:) | |
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7180 | ac_tool_warned=yes ;; | |
7181 | esac | |
7182 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7183 | fi | |
1927a18f L |
7184 | else |
7185 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7186 | fi | |
7187 | ||
7188 | if test -n "$ac_tool_prefix"; then | |
7189 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7190 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7192 | $as_echo_n "checking for $ac_word... " >&6; } | |
7193 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7194 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7195 | else |
7196 | if test -n "$NMEDIT"; then | |
7197 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7198 | else | |
7199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7200 | for as_dir in $PATH | |
7201 | do | |
7202 | IFS=$as_save_IFS | |
7203 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7204 | for ac_exec_ext in '' $ac_executable_extensions; do |
7205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7206 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7208 | break 2 |
7209 | fi | |
7210 | done | |
81ecdfbb RW |
7211 | done |
7212 | IFS=$as_save_IFS | |
1927a18f L |
7213 | |
7214 | fi | |
7215 | fi | |
7216 | NMEDIT=$ac_cv_prog_NMEDIT | |
7217 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7219 | $as_echo "$NMEDIT" >&6; } | |
1927a18f | 7220 | else |
81ecdfbb RW |
7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7222 | $as_echo "no" >&6; } | |
1927a18f L |
7223 | fi |
7224 | ||
81ecdfbb | 7225 | |
1927a18f L |
7226 | fi |
7227 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7228 | ac_ct_NMEDIT=$NMEDIT | |
7229 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7230 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7232 | $as_echo_n "checking for $ac_word... " >&6; } | |
7233 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7234 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7235 | else |
7236 | if test -n "$ac_ct_NMEDIT"; then | |
7237 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7238 | else | |
7239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7240 | for as_dir in $PATH | |
7241 | do | |
7242 | IFS=$as_save_IFS | |
7243 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7244 | for ac_exec_ext in '' $ac_executable_extensions; do |
7245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7246 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7248 | break 2 |
7249 | fi | |
7250 | done | |
81ecdfbb RW |
7251 | done |
7252 | IFS=$as_save_IFS | |
1927a18f | 7253 | |
1927a18f L |
7254 | fi |
7255 | fi | |
7256 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7257 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7259 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
1927a18f | 7260 | else |
81ecdfbb RW |
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7262 | $as_echo "no" >&6; } | |
1927a18f L |
7263 | fi |
7264 | ||
81ecdfbb RW |
7265 | if test "x$ac_ct_NMEDIT" = x; then |
7266 | NMEDIT=":" | |
7267 | else | |
7268 | case $cross_compiling:$ac_tool_warned in | |
7269 | yes:) | |
7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7271 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7272 | ac_tool_warned=yes ;; | |
7273 | esac | |
7274 | NMEDIT=$ac_ct_NMEDIT | |
7275 | fi | |
1927a18f L |
7276 | else |
7277 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7278 | fi | |
7279 | ||
7280 | if test -n "$ac_tool_prefix"; then | |
7281 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7282 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7284 | $as_echo_n "checking for $ac_word... " >&6; } | |
7285 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7286 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7287 | else |
7288 | if test -n "$LIPO"; then | |
7289 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7290 | else | |
7291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7292 | for as_dir in $PATH | |
7293 | do | |
7294 | IFS=$as_save_IFS | |
7295 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7296 | for ac_exec_ext in '' $ac_executable_extensions; do |
7297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7298 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7300 | break 2 |
7301 | fi | |
7302 | done | |
81ecdfbb RW |
7303 | done |
7304 | IFS=$as_save_IFS | |
1927a18f L |
7305 | |
7306 | fi | |
7307 | fi | |
7308 | LIPO=$ac_cv_prog_LIPO | |
7309 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7311 | $as_echo "$LIPO" >&6; } | |
1927a18f | 7312 | else |
81ecdfbb RW |
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7314 | $as_echo "no" >&6; } | |
1927a18f L |
7315 | fi |
7316 | ||
81ecdfbb | 7317 | |
1927a18f L |
7318 | fi |
7319 | if test -z "$ac_cv_prog_LIPO"; then | |
7320 | ac_ct_LIPO=$LIPO | |
7321 | # Extract the first word of "lipo", so it can be a program name with args. | |
7322 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7324 | $as_echo_n "checking for $ac_word... " >&6; } | |
7325 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7326 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7327 | else |
7328 | if test -n "$ac_ct_LIPO"; then | |
7329 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7330 | else | |
7331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7332 | for as_dir in $PATH | |
7333 | do | |
7334 | IFS=$as_save_IFS | |
7335 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7336 | for ac_exec_ext in '' $ac_executable_extensions; do |
7337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7338 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7340 | break 2 |
7341 | fi | |
7342 | done | |
81ecdfbb RW |
7343 | done |
7344 | IFS=$as_save_IFS | |
1927a18f | 7345 | |
1927a18f L |
7346 | fi |
7347 | fi | |
7348 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7349 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7351 | $as_echo "$ac_ct_LIPO" >&6; } | |
1927a18f | 7352 | else |
81ecdfbb RW |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7354 | $as_echo "no" >&6; } | |
1927a18f L |
7355 | fi |
7356 | ||
81ecdfbb RW |
7357 | if test "x$ac_ct_LIPO" = x; then |
7358 | LIPO=":" | |
7359 | else | |
7360 | case $cross_compiling:$ac_tool_warned in | |
7361 | yes:) | |
7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7363 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7364 | ac_tool_warned=yes ;; | |
7365 | esac | |
7366 | LIPO=$ac_ct_LIPO | |
7367 | fi | |
1927a18f L |
7368 | else |
7369 | LIPO="$ac_cv_prog_LIPO" | |
7370 | fi | |
7371 | ||
7372 | if test -n "$ac_tool_prefix"; then | |
7373 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7374 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7376 | $as_echo_n "checking for $ac_word... " >&6; } | |
7377 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7378 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7379 | else |
7380 | if test -n "$OTOOL"; then | |
7381 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7382 | else | |
7383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7384 | for as_dir in $PATH | |
7385 | do | |
7386 | IFS=$as_save_IFS | |
7387 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7388 | for ac_exec_ext in '' $ac_executable_extensions; do |
7389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7390 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7392 | break 2 |
7393 | fi | |
7394 | done | |
81ecdfbb RW |
7395 | done |
7396 | IFS=$as_save_IFS | |
1927a18f L |
7397 | |
7398 | fi | |
7399 | fi | |
7400 | OTOOL=$ac_cv_prog_OTOOL | |
7401 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7403 | $as_echo "$OTOOL" >&6; } | |
1927a18f | 7404 | else |
81ecdfbb RW |
7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7406 | $as_echo "no" >&6; } | |
1927a18f L |
7407 | fi |
7408 | ||
81ecdfbb | 7409 | |
1927a18f L |
7410 | fi |
7411 | if test -z "$ac_cv_prog_OTOOL"; then | |
7412 | ac_ct_OTOOL=$OTOOL | |
7413 | # Extract the first word of "otool", so it can be a program name with args. | |
7414 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7416 | $as_echo_n "checking for $ac_word... " >&6; } | |
7417 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7418 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7419 | else |
7420 | if test -n "$ac_ct_OTOOL"; then | |
7421 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7422 | else | |
7423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7424 | for as_dir in $PATH | |
7425 | do | |
7426 | IFS=$as_save_IFS | |
7427 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7428 | for ac_exec_ext in '' $ac_executable_extensions; do |
7429 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7430 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7432 | break 2 |
7433 | fi | |
7434 | done | |
81ecdfbb RW |
7435 | done |
7436 | IFS=$as_save_IFS | |
1927a18f | 7437 | |
1927a18f L |
7438 | fi |
7439 | fi | |
7440 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7441 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7443 | $as_echo "$ac_ct_OTOOL" >&6; } | |
1927a18f | 7444 | else |
81ecdfbb RW |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7446 | $as_echo "no" >&6; } | |
1927a18f L |
7447 | fi |
7448 | ||
81ecdfbb RW |
7449 | if test "x$ac_ct_OTOOL" = x; then |
7450 | OTOOL=":" | |
7451 | else | |
7452 | case $cross_compiling:$ac_tool_warned in | |
7453 | yes:) | |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7455 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7456 | ac_tool_warned=yes ;; | |
7457 | esac | |
7458 | OTOOL=$ac_ct_OTOOL | |
7459 | fi | |
1927a18f L |
7460 | else |
7461 | OTOOL="$ac_cv_prog_OTOOL" | |
7462 | fi | |
7463 | ||
7464 | if test -n "$ac_tool_prefix"; then | |
7465 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7466 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7468 | $as_echo_n "checking for $ac_word... " >&6; } | |
7469 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7470 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7471 | else |
7472 | if test -n "$OTOOL64"; then | |
7473 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7474 | else | |
7475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7476 | for as_dir in $PATH | |
7477 | do | |
7478 | IFS=$as_save_IFS | |
7479 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7480 | for ac_exec_ext in '' $ac_executable_extensions; do |
7481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7482 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7484 | break 2 |
7485 | fi | |
7486 | done | |
81ecdfbb RW |
7487 | done |
7488 | IFS=$as_save_IFS | |
1927a18f L |
7489 | |
7490 | fi | |
7491 | fi | |
7492 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7493 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7495 | $as_echo "$OTOOL64" >&6; } | |
1927a18f | 7496 | else |
81ecdfbb RW |
7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7498 | $as_echo "no" >&6; } | |
1927a18f L |
7499 | fi |
7500 | ||
81ecdfbb | 7501 | |
1927a18f L |
7502 | fi |
7503 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7504 | ac_ct_OTOOL64=$OTOOL64 | |
7505 | # Extract the first word of "otool64", so it can be a program name with args. | |
7506 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7508 | $as_echo_n "checking for $ac_word... " >&6; } | |
7509 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7510 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7511 | else |
7512 | if test -n "$ac_ct_OTOOL64"; then | |
7513 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7514 | else | |
7515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7516 | for as_dir in $PATH | |
7517 | do | |
7518 | IFS=$as_save_IFS | |
7519 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7520 | for ac_exec_ext in '' $ac_executable_extensions; do |
7521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1927a18f | 7522 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1927a18f L |
7524 | break 2 |
7525 | fi | |
7526 | done | |
81ecdfbb RW |
7527 | done |
7528 | IFS=$as_save_IFS | |
1927a18f | 7529 | |
1927a18f L |
7530 | fi |
7531 | fi | |
7532 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7533 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7535 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
1927a18f | 7536 | else |
81ecdfbb RW |
7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7538 | $as_echo "no" >&6; } | |
1927a18f L |
7539 | fi |
7540 | ||
81ecdfbb RW |
7541 | if test "x$ac_ct_OTOOL64" = x; then |
7542 | OTOOL64=":" | |
7543 | else | |
7544 | case $cross_compiling:$ac_tool_warned in | |
7545 | yes:) | |
7546 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7547 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7548 | ac_tool_warned=yes ;; | |
7549 | esac | |
7550 | OTOOL64=$ac_ct_OTOOL64 | |
7551 | fi | |
1927a18f L |
7552 | else |
7553 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7554 | fi | |
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | ||
7567 | ||
7568 | ||
7569 | ||
7570 | ||
7571 | ||
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | ||
7580 | ||
7581 | ||
81ecdfbb RW |
7582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7583 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7584 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7585 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7586 | else |
7587 | lt_cv_apple_cc_single_mod=no | |
7588 | if test -z "${LT_MULTI_MODULE}"; then | |
7589 | # By default we will add the -single_module flag. You can override | |
7590 | # by either setting the environment variable LT_MULTI_MODULE | |
7591 | # non-empty at configure time, or by adding -multi_module to the | |
7592 | # link flags. | |
7593 | rm -rf libconftest.dylib* | |
7594 | echo "int foo(void){return 1;}" > conftest.c | |
7595 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7596 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7597 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7598 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7599 | _lt_result=$? | |
7600 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7601 | lt_cv_apple_cc_single_mod=yes | |
7602 | else | |
7603 | cat conftest.err >&5 | |
7604 | fi | |
7605 | rm -rf libconftest.dylib* | |
7606 | rm -f conftest.* | |
7607 | fi | |
7608 | fi | |
81ecdfbb RW |
7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7610 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7612 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7613 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7614 | $as_echo_n "(cached) " >&6 | |
1927a18f L |
7615 | else |
7616 | lt_cv_ld_exported_symbols_list=no | |
7617 | save_LDFLAGS=$LDFLAGS | |
7618 | echo "_main" > conftest.sym | |
7619 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1927a18f L |
7621 | /* end confdefs.h. */ |
7622 | ||
7623 | int | |
7624 | main () | |
7625 | { | |
7626 | ||
7627 | ; | |
7628 | return 0; | |
7629 | } | |
7630 | _ACEOF | |
81ecdfbb | 7631 | if ac_fn_c_try_link "$LINENO"; then : |
1927a18f L |
7632 | lt_cv_ld_exported_symbols_list=yes |
7633 | else | |
81ecdfbb | 7634 | lt_cv_ld_exported_symbols_list=no |
1927a18f | 7635 | fi |
81ecdfbb RW |
7636 | rm -f core conftest.err conftest.$ac_objext \ |
7637 | conftest$ac_exeext conftest.$ac_ext | |
1927a18f L |
7638 | LDFLAGS="$save_LDFLAGS" |
7639 | ||
7640 | fi | |
81ecdfbb RW |
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7642 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
1927a18f L |
7643 | case $host_os in |
7644 | rhapsody* | darwin1.[012]) | |
7645 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7646 | darwin1.*) | |
7647 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7648 | darwin*) # darwin 5.x on | |
7649 | # if running on 10.5 or later, the deployment target defaults | |
7650 | # to the OS version, if on x86, and 10.4, the deployment | |
7651 | # target defaults to 10.4. Don't you love it? | |
7652 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7653 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7654 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7655 | 10.[012]*) | |
7656 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7657 | 10.*) | |
7658 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7659 | esac | |
7660 | ;; | |
7661 | esac | |
7662 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7663 | _lt_dar_single_mod='$single_module' | |
7664 | fi | |
7665 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7666 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7667 | else | |
7668 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7669 | fi | |
7670 | if test "$DSYMUTIL" != ":"; then | |
7671 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7672 | else | |
7673 | _lt_dsymutil= | |
7674 | fi | |
7675 | ;; | |
7676 | esac | |
7677 | ||
dabbade6 | 7678 | for ac_header in dlfcn.h |
81ecdfbb RW |
7679 | do : |
7680 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7681 | " | |
7682 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
dabbade6 | 7683 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7684 | #define HAVE_DLFCN_H 1 |
dabbade6 | 7685 | _ACEOF |
d7040cdb | 7686 | |
dabbade6 | 7687 | fi |
d7040cdb | 7688 | |
dabbade6 | 7689 | done |
d7040cdb | 7690 | |
d7040cdb | 7691 | |
d7040cdb | 7692 | |
1927a18f L |
7693 | # Set options |
7694 | ||
7695 | ||
7696 | ||
7697 | enable_dlopen=no | |
7698 | ||
7699 | ||
7700 | enable_win32_dll=no | |
7701 | ||
7702 | ||
7703 | ||
81ecdfbb RW |
7704 | # Check whether --enable-static was given. |
7705 | if test "${enable_static+set}" = set; then : | |
7706 | enableval=$enable_static; p=${PACKAGE-default} | |
1927a18f L |
7707 | case $enableval in |
7708 | yes) enable_static=yes ;; | |
7709 | no) enable_static=no ;; | |
7710 | *) | |
7711 | enable_static=no | |
7712 | # Look at the argument we got. We use all the common list separators. | |
7713 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7714 | for pkg in $enableval; do | |
7715 | IFS="$lt_save_ifs" | |
7716 | if test "X$pkg" = "X$p"; then | |
7717 | enable_static=yes | |
7718 | fi | |
7719 | done | |
7720 | IFS="$lt_save_ifs" | |
7721 | ;; | |
7722 | esac | |
7723 | else | |
7724 | enable_static=yes | |
81ecdfbb | 7725 | fi |
1927a18f L |
7726 | |
7727 | ||
7728 | ||
7729 | ||
7730 | ||
7731 | ||
7732 | ||
7733 | ||
7734 | ||
81ecdfbb RW |
7735 | |
7736 | # Check whether --with-pic was given. | |
7737 | if test "${with_pic+set}" = set; then : | |
7738 | withval=$with_pic; pic_mode="$withval" | |
1927a18f L |
7739 | else |
7740 | pic_mode=default | |
81ecdfbb RW |
7741 | fi |
7742 | ||
1927a18f L |
7743 | |
7744 | test -z "$pic_mode" && pic_mode=default | |
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
81ecdfbb RW |
7752 | # Check whether --enable-fast-install was given. |
7753 | if test "${enable_fast_install+set}" = set; then : | |
7754 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
1927a18f L |
7755 | case $enableval in |
7756 | yes) enable_fast_install=yes ;; | |
7757 | no) enable_fast_install=no ;; | |
7758 | *) | |
7759 | enable_fast_install=no | |
7760 | # Look at the argument we got. We use all the common list separators. | |
7761 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7762 | for pkg in $enableval; do | |
7763 | IFS="$lt_save_ifs" | |
7764 | if test "X$pkg" = "X$p"; then | |
7765 | enable_fast_install=yes | |
7766 | fi | |
7767 | done | |
7768 | IFS="$lt_save_ifs" | |
7769 | ;; | |
7770 | esac | |
7771 | else | |
7772 | enable_fast_install=yes | |
81ecdfbb RW |
7773 | fi |
7774 | ||
1927a18f L |
7775 | |
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | ||
7781 | ||
7782 | ||
7783 | ||
7784 | ||
dabbade6 L |
7785 | # This can be used to rebuild libtool when needed |
7786 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 7787 | |
dabbade6 L |
7788 | # Always use our own libtool. |
7789 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 7790 | |
d7040cdb | 7791 | |
d7040cdb | 7792 | |
d7040cdb SE |
7793 | |
7794 | ||
7795 | ||
7796 | ||
7797 | ||
7798 | ||
d7040cdb | 7799 | |
d7040cdb | 7800 | |
d7040cdb | 7801 | |
d7040cdb SE |
7802 | |
7803 | ||
7804 | ||
7805 | ||
7806 | ||
7807 | ||
d7040cdb | 7808 | |
d7040cdb | 7809 | |
d7040cdb SE |
7810 | |
7811 | ||
7812 | ||
7813 | ||
7814 | ||
dabbade6 | 7815 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
7816 | |
7817 | ||
d7040cdb | 7818 | |
d7040cdb | 7819 | |
d7040cdb SE |
7820 | |
7821 | ||
7822 | ||
7823 | ||
7824 | ||
7825 | ||
dabbade6 L |
7826 | |
7827 | ||
7828 | ||
7829 | ||
7830 | if test -n "${ZSH_VERSION+set}" ; then | |
7831 | setopt NO_GLOB_SUBST | |
7832 | fi | |
7833 | ||
81ecdfbb RW |
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7835 | $as_echo_n "checking for objdir... " >&6; } | |
7836 | if test "${lt_cv_objdir+set}" = set; then : | |
7837 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 7838 | else |
dabbade6 L |
7839 | rm -f .libs 2>/dev/null |
7840 | mkdir .libs 2>/dev/null | |
7841 | if test -d .libs; then | |
7842 | lt_cv_objdir=.libs | |
7843 | else | |
7844 | # MS-DOS does not allow filenames that begin with a dot. | |
7845 | lt_cv_objdir=_libs | |
d7040cdb | 7846 | fi |
dabbade6 L |
7847 | rmdir .libs 2>/dev/null |
7848 | fi | |
81ecdfbb RW |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7850 | $as_echo "$lt_cv_objdir" >&6; } | |
dabbade6 | 7851 | objdir=$lt_cv_objdir |
d7040cdb SE |
7852 | |
7853 | ||
7854 | ||
7855 | ||
d7040cdb | 7856 | |
dabbade6 L |
7857 | cat >>confdefs.h <<_ACEOF |
7858 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7859 | _ACEOF | |
d7040cdb SE |
7860 | |
7861 | ||
7862 | ||
7863 | ||
7864 | ||
d7040cdb | 7865 | |
d7040cdb | 7866 | |
d7040cdb | 7867 | |
d7040cdb | 7868 | |
d7040cdb | 7869 | |
d7040cdb | 7870 | |
d7040cdb | 7871 | |
d7040cdb | 7872 | |
d7040cdb | 7873 | |
d7040cdb | 7874 | |
d7040cdb | 7875 | |
d7040cdb | 7876 | |
dabbade6 L |
7877 | case $host_os in |
7878 | aix3*) | |
7879 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7880 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7881 | # vanish in a puff of smoke. | |
7882 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7883 | COLLECT_NAMES= | |
7884 | export COLLECT_NAMES | |
7885 | fi | |
7886 | ;; | |
7887 | esac | |
d7040cdb | 7888 | |
dabbade6 L |
7889 | # Sed substitution that helps us do robust quoting. It backslashifies |
7890 | # metacharacters that are still active within double-quoted strings. | |
7891 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 7892 | |
dabbade6 L |
7893 | # Same as above, but do not quote variable references. |
7894 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 7895 | |
dabbade6 L |
7896 | # Sed substitution to delay expansion of an escaped shell variable in a |
7897 | # double_quote_subst'ed string. | |
7898 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 7899 | |
dabbade6 L |
7900 | # Sed substitution to delay expansion of an escaped single quote. |
7901 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 7902 | |
dabbade6 L |
7903 | # Sed substitution to avoid accidental globbing in evaled expressions |
7904 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 7905 | |
dabbade6 L |
7906 | # Global variables: |
7907 | ofile=libtool | |
7908 | can_build_shared=yes | |
d7040cdb | 7909 | |
dabbade6 L |
7910 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7911 | # which needs '.lib'). | |
7912 | libext=a | |
d7040cdb | 7913 | |
dabbade6 | 7914 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 7915 | |
dabbade6 L |
7916 | old_CC="$CC" |
7917 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 7918 | |
dabbade6 L |
7919 | # Set sane defaults for various variables |
7920 | test -z "$CC" && CC=cc | |
7921 | test -z "$LTCC" && LTCC=$CC | |
7922 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7923 | test -z "$LD" && LD=ld | |
7924 | test -z "$ac_objext" && ac_objext=o | |
7925 | ||
7926 | for cc_temp in $compiler""; do | |
7927 | case $cc_temp in | |
7928 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7929 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7930 | \-*) ;; | |
7931 | *) break;; | |
7932 | esac | |
7933 | done | |
7934 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7935 | ||
7936 | ||
7937 | # Only perform the check for file, if the check method requires it | |
7938 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7939 | case $deplibs_check_method in | |
7940 | file_magic*) | |
7941 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7943 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7944 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7945 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
7946 | else |
7947 | case $MAGIC_CMD in | |
7948 | [\\/*] | ?:[\\/]*) | |
7949 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7950 | ;; | |
7951 | *) | |
7952 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7953 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7954 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7955 | for ac_dir in $ac_dummy; do | |
7956 | IFS="$lt_save_ifs" | |
7957 | test -z "$ac_dir" && ac_dir=. | |
7958 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7959 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7960 | if test -n "$file_magic_test_file"; then | |
7961 | case $deplibs_check_method in | |
7962 | "file_magic "*) | |
7963 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7964 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7965 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7966 | $EGREP "$file_magic_regex" > /dev/null; then | |
7967 | : | |
d7040cdb | 7968 | else |
dabbade6 | 7969 | cat <<_LT_EOF 1>&2 |
d7040cdb | 7970 | |
dabbade6 L |
7971 | *** Warning: the command libtool uses to detect shared libraries, |
7972 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7973 | *** The result is that libtool may fail to recognize shared libraries | |
7974 | *** as such. This will affect the creation of libtool libraries that | |
7975 | *** depend on shared libraries, but programs linked with such libtool | |
7976 | *** libraries will work regardless of this problem. Nevertheless, you | |
7977 | *** may want to report the problem to your system manager and/or to | |
7978 | *** bug-libtool@gnu.org | |
d7040cdb | 7979 | |
dabbade6 L |
7980 | _LT_EOF |
7981 | fi ;; | |
7982 | esac | |
d7040cdb | 7983 | fi |
dabbade6 | 7984 | break |
d7040cdb | 7985 | fi |
dabbade6 L |
7986 | done |
7987 | IFS="$lt_save_ifs" | |
7988 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7989 | ;; | |
7990 | esac | |
7991 | fi | |
d7040cdb | 7992 | |
dabbade6 L |
7993 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7994 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7996 | $as_echo "$MAGIC_CMD" >&6; } | |
dabbade6 | 7997 | else |
81ecdfbb RW |
7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7999 | $as_echo "no" >&6; } | |
dabbade6 | 8000 | fi |
d7040cdb | 8001 | |
d7040cdb | 8002 | |
d7040cdb | 8003 | |
d7040cdb | 8004 | |
d7040cdb | 8005 | |
dabbade6 L |
8006 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8007 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8009 | $as_echo_n "checking for file... " >&6; } | |
8010 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8011 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
8012 | else |
8013 | case $MAGIC_CMD in | |
8014 | [\\/*] | ?:[\\/]*) | |
8015 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8016 | ;; | |
8017 | *) | |
8018 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8019 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8020 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8021 | for ac_dir in $ac_dummy; do | |
8022 | IFS="$lt_save_ifs" | |
8023 | test -z "$ac_dir" && ac_dir=. | |
8024 | if test -f $ac_dir/file; then | |
8025 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8026 | if test -n "$file_magic_test_file"; then | |
8027 | case $deplibs_check_method in | |
8028 | "file_magic "*) | |
8029 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8030 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8031 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8032 | $EGREP "$file_magic_regex" > /dev/null; then | |
8033 | : | |
d7040cdb | 8034 | else |
dabbade6 | 8035 | cat <<_LT_EOF 1>&2 |
d7040cdb | 8036 | |
dabbade6 L |
8037 | *** Warning: the command libtool uses to detect shared libraries, |
8038 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8039 | *** The result is that libtool may fail to recognize shared libraries | |
8040 | *** as such. This will affect the creation of libtool libraries that | |
8041 | *** depend on shared libraries, but programs linked with such libtool | |
8042 | *** libraries will work regardless of this problem. Nevertheless, you | |
8043 | *** may want to report the problem to your system manager and/or to | |
8044 | *** bug-libtool@gnu.org | |
d7040cdb | 8045 | |
dabbade6 L |
8046 | _LT_EOF |
8047 | fi ;; | |
8048 | esac | |
8049 | fi | |
8050 | break | |
8051 | fi | |
8052 | done | |
8053 | IFS="$lt_save_ifs" | |
8054 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8055 | ;; | |
8056 | esac | |
d7040cdb | 8057 | fi |
dabbade6 L |
8058 | |
8059 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8060 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8062 | $as_echo "$MAGIC_CMD" >&6; } | |
d7040cdb | 8063 | else |
81ecdfbb RW |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8065 | $as_echo "no" >&6; } | |
dabbade6 L |
8066 | fi |
8067 | ||
d7040cdb | 8068 | |
dabbade6 L |
8069 | else |
8070 | MAGIC_CMD=: | |
8071 | fi | |
d7040cdb | 8072 | fi |
d7040cdb | 8073 | |
dabbade6 L |
8074 | fi |
8075 | ;; | |
8076 | esac | |
d7040cdb | 8077 | |
dabbade6 | 8078 | # Use C for the default configuration in the libtool script |
d7040cdb | 8079 | |
dabbade6 L |
8080 | lt_save_CC="$CC" |
8081 | ac_ext=c | |
8082 | ac_cpp='$CPP $CPPFLAGS' | |
8083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 8086 | |
d7040cdb | 8087 | |
dabbade6 L |
8088 | # Source file extension for C test sources. |
8089 | ac_ext=c | |
d7040cdb | 8090 | |
dabbade6 L |
8091 | # Object file extension for compiled C test sources. |
8092 | objext=o | |
8093 | objext=$objext | |
8094 | ||
8095 | # Code to be used in simple compile tests | |
8096 | lt_simple_compile_test_code="int some_variable = 0;" | |
8097 | ||
8098 | # Code to be used in simple link tests | |
8099 | lt_simple_link_test_code='int main(){return(0);}' | |
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | ||
8106 | ||
8107 | # If no C compiler was specified, use CC. | |
8108 | LTCC=${LTCC-"$CC"} | |
8109 | ||
8110 | # If no C compiler flags were specified, use CFLAGS. | |
8111 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8112 | ||
8113 | # Allow CC to be a program name with arguments. | |
8114 | compiler=$CC | |
8115 | ||
8116 | # Save the default compiler, since it gets overwritten when the other | |
8117 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8118 | compiler_DEFAULT=$CC | |
8119 | ||
8120 | # save warnings/boilerplate of simple test code | |
8121 | ac_outfile=conftest.$ac_objext | |
8122 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8123 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8124 | _lt_compiler_boilerplate=`cat conftest.err` | |
8125 | $RM conftest* | |
8126 | ||
8127 | ac_outfile=conftest.$ac_objext | |
8128 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8129 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8130 | _lt_linker_boilerplate=`cat conftest.err` | |
1927a18f | 8131 | $RM -r conftest* |
dabbade6 L |
8132 | |
8133 | ||
8134 | ## CAVEAT EMPTOR: | |
8135 | ## There is no encapsulation within the following macros, do not change | |
8136 | ## the running order or otherwise move them around unless you know exactly | |
8137 | ## what you are doing... | |
8138 | if test -n "$compiler"; then | |
8139 | ||
8140 | lt_prog_compiler_no_builtin_flag= | |
8141 | ||
8142 | if test "$GCC" = yes; then | |
8143 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8144 | ||
81ecdfbb RW |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8146 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8147 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8148 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
8149 | else |
8150 | lt_cv_prog_compiler_rtti_exceptions=no | |
8151 | ac_outfile=conftest.$ac_objext | |
8152 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8153 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8154 | # Insert the option either (1) after the last *FLAGS variable, or | |
8155 | # (2) before a word containing "conftest.", or (3) at the end. | |
8156 | # Note that $ac_compile itself does not contain backslashes and begins | |
8157 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8158 | # The option is referenced via a variable to avoid confusing sed. | |
8159 | lt_compile=`echo "$ac_compile" | $SED \ | |
8160 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8161 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8162 | -e 's:$: $lt_compiler_flag:'` | |
2eee5593 | 8163 | (eval echo "\"\$as_me:8163: $lt_compile\"" >&5) |
dabbade6 L |
8164 | (eval "$lt_compile" 2>conftest.err) |
8165 | ac_status=$? | |
8166 | cat conftest.err >&5 | |
2eee5593 | 8167 | echo "$as_me:8167: \$? = $ac_status" >&5 |
dabbade6 L |
8168 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8169 | # The compiler can only warn and ignore the option if not recognized | |
8170 | # So say no if there are warnings other than the usual output. | |
8171 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8172 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8173 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8174 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8175 | fi | |
8176 | fi | |
8177 | $RM conftest* | |
8178 | ||
8179 | fi | |
81ecdfbb RW |
8180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8181 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
dabbade6 L |
8182 | |
8183 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8184 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8185 | else | |
8186 | : | |
8187 | fi | |
8188 | ||
8189 | fi | |
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | ||
8195 | ||
8196 | lt_prog_compiler_wl= | |
8197 | lt_prog_compiler_pic= | |
8198 | lt_prog_compiler_static= | |
8199 | ||
81ecdfbb RW |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8201 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
dabbade6 L |
8202 | |
8203 | if test "$GCC" = yes; then | |
8204 | lt_prog_compiler_wl='-Wl,' | |
8205 | lt_prog_compiler_static='-static' | |
8206 | ||
8207 | case $host_os in | |
8208 | aix*) | |
8209 | # All AIX code is PIC. | |
8210 | if test "$host_cpu" = ia64; then | |
8211 | # AIX 5 now supports IA64 processor | |
8212 | lt_prog_compiler_static='-Bstatic' | |
8213 | fi | |
8214 | ;; | |
d7040cdb SE |
8215 | |
8216 | amigaos*) | |
1927a18f L |
8217 | case $host_cpu in |
8218 | powerpc) | |
8219 | # see comment about AmigaOS4 .so support | |
8220 | lt_prog_compiler_pic='-fPIC' | |
8221 | ;; | |
8222 | m68k) | |
8223 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8224 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8225 | # like `-m68040'. | |
8226 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8227 | ;; | |
8228 | esac | |
d7040cdb SE |
8229 | ;; |
8230 | ||
dabbade6 L |
8231 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8232 | # PIC is the default for these OSes. | |
d7040cdb SE |
8233 | ;; |
8234 | ||
1927a18f | 8235 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
dabbade6 L |
8236 | # This hack is so that the source file can tell whether it is being |
8237 | # built for inclusion in a dll (and should export symbols for example). | |
8238 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8239 | # (--disable-auto-import) libraries | |
8240 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8241 | ;; |
8242 | ||
8243 | darwin* | rhapsody*) | |
dabbade6 L |
8244 | # PIC is the default on this platform |
8245 | # Common symbols not allowed in MH_DYLIB files | |
8246 | lt_prog_compiler_pic='-fno-common' | |
8247 | ;; | |
8248 | ||
8249 | hpux*) | |
1927a18f L |
8250 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8251 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8252 | # sets the default TLS model and affects inlining. | |
dabbade6 | 8253 | case $host_cpu in |
1927a18f | 8254 | hppa*64*) |
dabbade6 | 8255 | # +Z the default |
d7040cdb | 8256 | ;; |
dabbade6 L |
8257 | *) |
8258 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb SE |
8259 | ;; |
8260 | esac | |
dabbade6 | 8261 | ;; |
d7040cdb | 8262 | |
dabbade6 L |
8263 | interix[3-9]*) |
8264 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8265 | # Instead, we relocate shared libraries at runtime. | |
d7040cdb SE |
8266 | ;; |
8267 | ||
dabbade6 L |
8268 | msdosdjgpp*) |
8269 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8270 | # on systems that don't support them. | |
8271 | lt_prog_compiler_can_build_shared=no | |
8272 | enable_shared=no | |
d7040cdb SE |
8273 | ;; |
8274 | ||
dabbade6 L |
8275 | *nto* | *qnx*) |
8276 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8277 | # it will coredump. | |
8278 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8279 | ;; |
8280 | ||
dabbade6 L |
8281 | sysv4*MP*) |
8282 | if test -d /usr/nec; then | |
8283 | lt_prog_compiler_pic=-Kconform_pic | |
8284 | fi | |
d7040cdb SE |
8285 | ;; |
8286 | ||
dabbade6 L |
8287 | *) |
8288 | lt_prog_compiler_pic='-fPIC' | |
d7040cdb | 8289 | ;; |
dabbade6 L |
8290 | esac |
8291 | else | |
8292 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8293 | case $host_os in | |
8294 | aix*) | |
8295 | lt_prog_compiler_wl='-Wl,' | |
8296 | if test "$host_cpu" = ia64; then | |
8297 | # AIX 5 now supports IA64 processor | |
8298 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb | 8299 | else |
dabbade6 | 8300 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d7040cdb | 8301 | fi |
dabbade6 | 8302 | ;; |
d7040cdb | 8303 | |
1927a18f | 8304 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
dabbade6 L |
8305 | # This hack is so that the source file can tell whether it is being |
8306 | # built for inclusion in a dll (and should export symbols for example). | |
8307 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d7040cdb SE |
8308 | ;; |
8309 | ||
dabbade6 L |
8310 | hpux9* | hpux10* | hpux11*) |
8311 | lt_prog_compiler_wl='-Wl,' | |
8312 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8313 | # not for PA HP-UX. | |
8314 | case $host_cpu in | |
8315 | hppa*64*|ia64*) | |
8316 | # +Z the default | |
8317 | ;; | |
8318 | *) | |
8319 | lt_prog_compiler_pic='+Z' | |
8320 | ;; | |
8321 | esac | |
8322 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8323 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
d7040cdb SE |
8324 | ;; |
8325 | ||
dabbade6 L |
8326 | irix5* | irix6* | nonstopux*) |
8327 | lt_prog_compiler_wl='-Wl,' | |
8328 | # PIC (with -KPIC) is the default. | |
8329 | lt_prog_compiler_static='-non_shared' | |
8330 | ;; | |
d7040cdb | 8331 | |
58e24671 | 8332 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 | 8333 | case $cc_basename in |
1927a18f L |
8334 | # old Intel for x86_64 which still supported -KPIC. |
8335 | ecc*) | |
dabbade6 L |
8336 | lt_prog_compiler_wl='-Wl,' |
8337 | lt_prog_compiler_pic='-KPIC' | |
8338 | lt_prog_compiler_static='-static' | |
8339 | ;; | |
1927a18f L |
8340 | # icc used to be incompatible with GCC. |
8341 | # ICC 10 doesn't accept -KPIC any more. | |
8342 | icc* | ifort*) | |
8343 | lt_prog_compiler_wl='-Wl,' | |
8344 | lt_prog_compiler_pic='-fPIC' | |
8345 | lt_prog_compiler_static='-static' | |
8346 | ;; | |
8347 | # Lahey Fortran 8.1. | |
8348 | lf95*) | |
8349 | lt_prog_compiler_wl='-Wl,' | |
8350 | lt_prog_compiler_pic='--shared' | |
8351 | lt_prog_compiler_static='--static' | |
8352 | ;; | |
dabbade6 L |
8353 | pgcc* | pgf77* | pgf90* | pgf95*) |
8354 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8355 | # which looks to be a dead project) | |
8356 | lt_prog_compiler_wl='-Wl,' | |
8357 | lt_prog_compiler_pic='-fpic' | |
8358 | lt_prog_compiler_static='-Bstatic' | |
8359 | ;; | |
8360 | ccc*) | |
8361 | lt_prog_compiler_wl='-Wl,' | |
8362 | # All Alpha code is PIC. | |
8363 | lt_prog_compiler_static='-non_shared' | |
8364 | ;; | |
1927a18f L |
8365 | xl*) |
8366 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8367 | lt_prog_compiler_wl='-Wl,' | |
8368 | lt_prog_compiler_pic='-qpic' | |
8369 | lt_prog_compiler_static='-qstaticlink' | |
8370 | ;; | |
dabbade6 L |
8371 | *) |
8372 | case `$CC -V 2>&1 | sed 5q` in | |
8373 | *Sun\ C*) | |
8374 | # Sun C 5.9 | |
8375 | lt_prog_compiler_pic='-KPIC' | |
8376 | lt_prog_compiler_static='-Bstatic' | |
8377 | lt_prog_compiler_wl='-Wl,' | |
d7040cdb | 8378 | ;; |
dabbade6 L |
8379 | *Sun\ F*) |
8380 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8381 | lt_prog_compiler_pic='-KPIC' | |
8382 | lt_prog_compiler_static='-Bstatic' | |
8383 | lt_prog_compiler_wl='' | |
d7040cdb SE |
8384 | ;; |
8385 | esac | |
dabbade6 L |
8386 | ;; |
8387 | esac | |
d7040cdb SE |
8388 | ;; |
8389 | ||
dabbade6 L |
8390 | newsos6) |
8391 | lt_prog_compiler_pic='-KPIC' | |
8392 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8393 | ;; |
8394 | ||
dabbade6 L |
8395 | *nto* | *qnx*) |
8396 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8397 | # it will coredump. | |
8398 | lt_prog_compiler_pic='-fPIC -shared' | |
d7040cdb SE |
8399 | ;; |
8400 | ||
dabbade6 L |
8401 | osf3* | osf4* | osf5*) |
8402 | lt_prog_compiler_wl='-Wl,' | |
8403 | # All OSF/1 code is PIC. | |
8404 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8405 | ;; |
8406 | ||
dabbade6 L |
8407 | rdos*) |
8408 | lt_prog_compiler_static='-non_shared' | |
d7040cdb SE |
8409 | ;; |
8410 | ||
8411 | solaris*) | |
dabbade6 L |
8412 | lt_prog_compiler_pic='-KPIC' |
8413 | lt_prog_compiler_static='-Bstatic' | |
8414 | case $cc_basename in | |
8415 | f77* | f90* | f95*) | |
8416 | lt_prog_compiler_wl='-Qoption ld ';; | |
d7040cdb | 8417 | *) |
dabbade6 | 8418 | lt_prog_compiler_wl='-Wl,';; |
d7040cdb | 8419 | esac |
d7040cdb SE |
8420 | ;; |
8421 | ||
8422 | sunos4*) | |
dabbade6 L |
8423 | lt_prog_compiler_wl='-Qoption ld ' |
8424 | lt_prog_compiler_pic='-PIC' | |
8425 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8426 | ;; |
8427 | ||
dabbade6 L |
8428 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8429 | lt_prog_compiler_wl='-Wl,' | |
8430 | lt_prog_compiler_pic='-KPIC' | |
8431 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8432 | ;; |
8433 | ||
8434 | sysv4*MP*) | |
dabbade6 L |
8435 | if test -d /usr/nec ;then |
8436 | lt_prog_compiler_pic='-Kconform_pic' | |
8437 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8438 | fi |
8439 | ;; | |
8440 | ||
dabbade6 L |
8441 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8442 | lt_prog_compiler_wl='-Wl,' | |
8443 | lt_prog_compiler_pic='-KPIC' | |
8444 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8445 | ;; |
8446 | ||
dabbade6 L |
8447 | unicos*) |
8448 | lt_prog_compiler_wl='-Wl,' | |
8449 | lt_prog_compiler_can_build_shared=no | |
d7040cdb SE |
8450 | ;; |
8451 | ||
8452 | uts4*) | |
dabbade6 L |
8453 | lt_prog_compiler_pic='-pic' |
8454 | lt_prog_compiler_static='-Bstatic' | |
d7040cdb SE |
8455 | ;; |
8456 | ||
8457 | *) | |
dabbade6 | 8458 | lt_prog_compiler_can_build_shared=no |
d7040cdb SE |
8459 | ;; |
8460 | esac | |
d7040cdb SE |
8461 | fi |
8462 | ||
dabbade6 L |
8463 | case $host_os in |
8464 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8465 | *djgpp*) | |
8466 | lt_prog_compiler_pic= | |
8467 | ;; | |
8468 | *) | |
8469 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8470 | ;; | |
8471 | esac | |
81ecdfbb RW |
8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8473 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8474 | |
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | # | |
dabbade6 | 8481 | # Check to make sure the PIC flag actually works. |
d7040cdb | 8482 | # |
dabbade6 | 8483 | if test -n "$lt_prog_compiler_pic"; then |
81ecdfbb RW |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8485 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8486 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8487 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 8488 | else |
1927a18f | 8489 | lt_cv_prog_compiler_pic_works=no |
dabbade6 L |
8490 | ac_outfile=conftest.$ac_objext |
8491 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8492 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8493 | # Insert the option either (1) after the last *FLAGS variable, or | |
8494 | # (2) before a word containing "conftest.", or (3) at the end. | |
8495 | # Note that $ac_compile itself does not contain backslashes and begins | |
8496 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8497 | # The option is referenced via a variable to avoid confusing sed. | |
8498 | lt_compile=`echo "$ac_compile" | $SED \ | |
8499 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8500 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8501 | -e 's:$: $lt_compiler_flag:'` | |
2eee5593 | 8502 | (eval echo "\"\$as_me:8502: $lt_compile\"" >&5) |
dabbade6 L |
8503 | (eval "$lt_compile" 2>conftest.err) |
8504 | ac_status=$? | |
8505 | cat conftest.err >&5 | |
2eee5593 | 8506 | echo "$as_me:8506: \$? = $ac_status" >&5 |
dabbade6 L |
8507 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8508 | # The compiler can only warn and ignore the option if not recognized | |
8509 | # So say no if there are warnings other than the usual output. | |
8510 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8511 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8512 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
1927a18f | 8513 | lt_cv_prog_compiler_pic_works=yes |
dabbade6 L |
8514 | fi |
8515 | fi | |
8516 | $RM conftest* | |
d7040cdb | 8517 | |
dabbade6 | 8518 | fi |
81ecdfbb RW |
8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8520 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8521 | |
1927a18f | 8522 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
dabbade6 L |
8523 | case $lt_prog_compiler_pic in |
8524 | "" | " "*) ;; | |
8525 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8526 | esac | |
8527 | else | |
8528 | lt_prog_compiler_pic= | |
8529 | lt_prog_compiler_can_build_shared=no | |
8530 | fi | |
d7040cdb | 8531 | |
dabbade6 | 8532 | fi |
d7040cdb SE |
8533 | |
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
dabbade6 L |
8539 | # |
8540 | # Check to make sure the static flag actually works. | |
8541 | # | |
8542 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8544 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8545 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8546 | $as_echo_n "(cached) " >&6 | |
dabbade6 | 8547 | else |
1927a18f | 8548 | lt_cv_prog_compiler_static_works=no |
dabbade6 L |
8549 | save_LDFLAGS="$LDFLAGS" |
8550 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8551 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8552 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8553 | # The linker can only warn and ignore the option if not recognized | |
8554 | # So say no if there are warnings | |
8555 | if test -s conftest.err; then | |
8556 | # Append any errors to the config.log. | |
8557 | cat conftest.err 1>&5 | |
8558 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8559 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8560 | if diff conftest.exp conftest.er2 >/dev/null; then | |
1927a18f | 8561 | lt_cv_prog_compiler_static_works=yes |
dabbade6 L |
8562 | fi |
8563 | else | |
1927a18f | 8564 | lt_cv_prog_compiler_static_works=yes |
dabbade6 L |
8565 | fi |
8566 | fi | |
1927a18f | 8567 | $RM -r conftest* |
dabbade6 | 8568 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8569 | |
dabbade6 | 8570 | fi |
81ecdfbb RW |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8572 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8573 | |
1927a18f | 8574 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
dabbade6 L |
8575 | : |
8576 | else | |
8577 | lt_prog_compiler_static= | |
8578 | fi | |
d7040cdb SE |
8579 | |
8580 | ||
8581 | ||
8582 | ||
8583 | ||
8584 | ||
8585 | ||
81ecdfbb RW |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8587 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8588 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8589 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
8590 | else |
8591 | lt_cv_prog_compiler_c_o=no | |
8592 | $RM -r conftest 2>/dev/null | |
8593 | mkdir conftest | |
8594 | cd conftest | |
8595 | mkdir out | |
8596 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8597 | |
dabbade6 L |
8598 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8599 | # Insert the option either (1) after the last *FLAGS variable, or | |
8600 | # (2) before a word containing "conftest.", or (3) at the end. | |
8601 | # Note that $ac_compile itself does not contain backslashes and begins | |
8602 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8603 | lt_compile=`echo "$ac_compile" | $SED \ | |
8604 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8605 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8606 | -e 's:$: $lt_compiler_flag:'` | |
2eee5593 | 8607 | (eval echo "\"\$as_me:8607: $lt_compile\"" >&5) |
dabbade6 L |
8608 | (eval "$lt_compile" 2>out/conftest.err) |
8609 | ac_status=$? | |
8610 | cat out/conftest.err >&5 | |
2eee5593 | 8611 | echo "$as_me:8611: \$? = $ac_status" >&5 |
dabbade6 L |
8612 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8613 | then | |
8614 | # The compiler can only warn and ignore the option if not recognized | |
8615 | # So say no if there are warnings | |
8616 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8617 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8618 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8619 | lt_cv_prog_compiler_c_o=yes | |
8620 | fi | |
8621 | fi | |
8622 | chmod u+w . 2>&5 | |
8623 | $RM conftest* | |
8624 | # SGI C++ compiler will create directory out/ii_files/ for | |
8625 | # template instantiation | |
8626 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8627 | $RM out/* && rmdir out | |
8628 | cd .. | |
8629 | $RM -r conftest | |
8630 | $RM conftest* | |
d7040cdb | 8631 | |
dabbade6 | 8632 | fi |
81ecdfbb RW |
8633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8634 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8635 | |
8636 | ||
8637 | ||
8638 | ||
8639 | ||
8640 | ||
81ecdfbb RW |
8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8642 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8643 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8644 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
8645 | else |
8646 | lt_cv_prog_compiler_c_o=no | |
8647 | $RM -r conftest 2>/dev/null | |
8648 | mkdir conftest | |
8649 | cd conftest | |
8650 | mkdir out | |
8651 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8652 | |
dabbade6 L |
8653 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8654 | # Insert the option either (1) after the last *FLAGS variable, or | |
8655 | # (2) before a word containing "conftest.", or (3) at the end. | |
8656 | # Note that $ac_compile itself does not contain backslashes and begins | |
8657 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8658 | lt_compile=`echo "$ac_compile" | $SED \ | |
8659 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8660 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8661 | -e 's:$: $lt_compiler_flag:'` | |
2eee5593 | 8662 | (eval echo "\"\$as_me:8662: $lt_compile\"" >&5) |
dabbade6 L |
8663 | (eval "$lt_compile" 2>out/conftest.err) |
8664 | ac_status=$? | |
8665 | cat out/conftest.err >&5 | |
2eee5593 | 8666 | echo "$as_me:8666: \$? = $ac_status" >&5 |
dabbade6 L |
8667 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8668 | then | |
8669 | # The compiler can only warn and ignore the option if not recognized | |
8670 | # So say no if there are warnings | |
8671 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8672 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8673 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8674 | lt_cv_prog_compiler_c_o=yes | |
8675 | fi | |
8676 | fi | |
8677 | chmod u+w . 2>&5 | |
8678 | $RM conftest* | |
8679 | # SGI C++ compiler will create directory out/ii_files/ for | |
8680 | # template instantiation | |
8681 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8682 | $RM out/* && rmdir out | |
8683 | cd .. | |
8684 | $RM -r conftest | |
8685 | $RM conftest* | |
d7040cdb | 8686 | |
dabbade6 | 8687 | fi |
81ecdfbb RW |
8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8689 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8690 | |
8691 | ||
8692 | ||
8693 | ||
dabbade6 L |
8694 | hard_links="nottested" |
8695 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8696 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8698 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
dabbade6 L |
8699 | hard_links=yes |
8700 | $RM conftest* | |
8701 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8702 | touch conftest.a | |
8703 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8704 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8706 | $as_echo "$hard_links" >&6; } | |
dabbade6 | 8707 | if test "$hard_links" = no; then |
81ecdfbb RW |
8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8709 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
dabbade6 L |
8710 | need_locks=warn |
8711 | fi | |
8712 | else | |
8713 | need_locks=no | |
8714 | fi | |
d7040cdb SE |
8715 | |
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
81ecdfbb RW |
8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8722 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 8723 | |
dabbade6 L |
8724 | runpath_var= |
8725 | allow_undefined_flag= | |
8726 | always_export_symbols=no | |
8727 | archive_cmds= | |
8728 | archive_expsym_cmds= | |
8729 | compiler_needs_object=no | |
8730 | enable_shared_with_static_runtimes=no | |
8731 | export_dynamic_flag_spec= | |
8732 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8733 | hardcode_automatic=no | |
8734 | hardcode_direct=no | |
8735 | hardcode_direct_absolute=no | |
8736 | hardcode_libdir_flag_spec= | |
8737 | hardcode_libdir_flag_spec_ld= | |
8738 | hardcode_libdir_separator= | |
8739 | hardcode_minus_L=no | |
8740 | hardcode_shlibpath_var=unsupported | |
8741 | inherit_rpath=no | |
8742 | link_all_deplibs=unknown | |
8743 | module_cmds= | |
8744 | module_expsym_cmds= | |
8745 | old_archive_from_new_cmds= | |
8746 | old_archive_from_expsyms_cmds= | |
8747 | thread_safe_flag_spec= | |
8748 | whole_archive_flag_spec= | |
8749 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8750 | # included in the symbol list | |
8751 | include_expsyms= | |
8752 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8753 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8754 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8755 | # as well as any symbol that contains `d'. | |
1927a18f | 8756 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
dabbade6 L |
8757 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8758 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8759 | # the symbol is explicitly referenced. Since portable code cannot | |
8760 | # rely on this symbol name, it's probably fine to never include it in | |
8761 | # preloaded symbol tables. | |
1927a18f | 8762 | # Exclude shared library initialization/finalization symbols. |
dabbade6 | 8763 | extract_expsyms_cmds= |
d7040cdb | 8764 | |
dabbade6 | 8765 | case $host_os in |
1927a18f | 8766 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8767 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8768 | # When not using gcc, we currently assume that we are using | |
8769 | # Microsoft Visual C++. | |
8770 | if test "$GCC" != yes; then | |
8771 | with_gnu_ld=no | |
8772 | fi | |
8773 | ;; | |
8774 | interix*) | |
8775 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8776 | with_gnu_ld=yes | |
8777 | ;; | |
8778 | openbsd*) | |
8779 | with_gnu_ld=no | |
8780 | ;; | |
8781 | esac | |
d7040cdb | 8782 | |
dabbade6 L |
8783 | ld_shlibs=yes |
8784 | if test "$with_gnu_ld" = yes; then | |
8785 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8786 | wlarc='${wl}' | |
d7040cdb | 8787 | |
dabbade6 L |
8788 | # Set some defaults for GNU ld with shared library support. These |
8789 | # are reset later if shared libraries are not supported. Putting them | |
8790 | # here allows them to be overridden if necessary. | |
8791 | runpath_var=LD_RUN_PATH | |
8792 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8793 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8794 | # ancient GNU ld didn't support --whole-archive et. al. | |
8795 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8796 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8797 | else | |
8798 | whole_archive_flag_spec= | |
8799 | fi | |
8800 | supports_anon_versioning=no | |
8801 | case `$LD -v 2>&1` in | |
8802 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8803 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8804 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8805 | *\ 2.11.*) ;; # other 2.11 versions | |
8806 | *) supports_anon_versioning=yes ;; | |
8807 | esac | |
d7040cdb | 8808 | |
dabbade6 L |
8809 | # See if GNU ld supports shared libraries. |
8810 | case $host_os in | |
50e7d84b | 8811 | aix[3-9]*) |
dabbade6 L |
8812 | # On AIX/PPC, the GNU linker is very broken |
8813 | if test "$host_cpu" != ia64; then | |
8814 | ld_shlibs=no | |
8815 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8816 | |
dabbade6 L |
8817 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8818 | *** to be unable to reliably create shared libraries on AIX. | |
8819 | *** Therefore, libtool is disabling shared libraries support. If you | |
8820 | *** really care for shared libraries, you may want to modify your PATH | |
8821 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 8822 | |
dabbade6 L |
8823 | _LT_EOF |
8824 | fi | |
8825 | ;; | |
d7040cdb | 8826 | |
dabbade6 | 8827 | amigaos*) |
1927a18f L |
8828 | case $host_cpu in |
8829 | powerpc) | |
8830 | # see comment about AmigaOS4 .so support | |
8831 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8832 | archive_expsym_cmds='' | |
8833 | ;; | |
8834 | m68k) | |
8835 | 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)' | |
8836 | hardcode_libdir_flag_spec='-L$libdir' | |
8837 | hardcode_minus_L=yes | |
8838 | ;; | |
8839 | esac | |
dabbade6 | 8840 | ;; |
d7040cdb | 8841 | |
dabbade6 L |
8842 | beos*) |
8843 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8844 | allow_undefined_flag=unsupported | |
8845 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8846 | # support --undefined. This deserves some investigation. FIXME | |
8847 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8848 | else | |
8849 | ld_shlibs=no | |
8850 | fi | |
8851 | ;; | |
d7040cdb | 8852 | |
1927a18f | 8853 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
8854 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8855 | # as there is no search path for DLLs. | |
8856 | hardcode_libdir_flag_spec='-L$libdir' | |
8857 | allow_undefined_flag=unsupported | |
8858 | always_export_symbols=no | |
8859 | enable_shared_with_static_runtimes=yes | |
8860 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
d7040cdb | 8861 | |
dabbade6 L |
8862 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8863 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8864 | # If the export-symbols file already is a .def file (1st line | |
8865 | # is EXPORTS), use it as is; otherwise, prepend... | |
8866 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8867 | cp $export_symbols $output_objdir/$soname.def; | |
8868 | else | |
8869 | echo EXPORTS > $output_objdir/$soname.def; | |
8870 | cat $export_symbols >> $output_objdir/$soname.def; | |
8871 | fi~ | |
8872 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8873 | else | |
8874 | ld_shlibs=no | |
8875 | fi | |
8876 | ;; | |
d7040cdb | 8877 | |
dabbade6 L |
8878 | interix[3-9]*) |
8879 | hardcode_direct=no | |
8880 | hardcode_shlibpath_var=no | |
8881 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8882 | export_dynamic_flag_spec='${wl}-E' | |
8883 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8884 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8885 | # default) and relocated if they conflict, which is a slow very memory | |
8886 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8887 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8888 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8889 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8890 | 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' | |
8891 | ;; | |
d7040cdb | 8892 | |
58e24671 | 8893 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 L |
8894 | tmp_diet=no |
8895 | if test "$host_os" = linux-dietlibc; then | |
8896 | case $cc_basename in | |
8897 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8898 | esac | |
8899 | fi | |
8900 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8901 | && test "$tmp_diet" = no | |
8902 | then | |
8903 | tmp_addflag= | |
1927a18f | 8904 | tmp_sharedflag='-shared' |
dabbade6 L |
8905 | case $cc_basename,$host_cpu in |
8906 | pgcc*) # Portland Group C compiler | |
8907 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8908 | tmp_addflag=' $pic_flag' | |
8909 | ;; | |
8910 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8911 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8912 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8913 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8914 | tmp_addflag=' -i_dynamic' ;; | |
8915 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8916 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8917 | ifc* | ifort*) # Intel Fortran compiler | |
8918 | tmp_addflag=' -nofor_main' ;; | |
1927a18f L |
8919 | lf95*) # Lahey Fortran 8.1 |
8920 | whole_archive_flag_spec= | |
8921 | tmp_sharedflag='--shared' ;; | |
8922 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8923 | tmp_sharedflag='-qmkshrobj' | |
8924 | tmp_addflag= ;; | |
dabbade6 L |
8925 | esac |
8926 | case `$CC -V 2>&1 | sed 5q` in | |
8927 | *Sun\ C*) # Sun C 5.9 | |
8928 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8929 | compiler_needs_object=yes | |
8930 | tmp_sharedflag='-G' ;; | |
8931 | *Sun\ F*) # Sun Fortran 8.3 | |
8932 | tmp_sharedflag='-G' ;; | |
dabbade6 L |
8933 | esac |
8934 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 8935 | |
dabbade6 L |
8936 | if test "x$supports_anon_versioning" = xyes; then |
8937 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8938 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8939 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8940 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8941 | fi | |
1927a18f L |
8942 | |
8943 | case $cc_basename in | |
8944 | xlf*) | |
8945 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8946 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8947 | hardcode_libdir_flag_spec= | |
8948 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8949 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8950 | if test "x$supports_anon_versioning" = xyes; then | |
8951 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8952 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8953 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8954 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8955 | fi | |
8956 | ;; | |
8957 | esac | |
dabbade6 L |
8958 | else |
8959 | ld_shlibs=no | |
8960 | fi | |
8961 | ;; | |
d7040cdb | 8962 | |
dabbade6 L |
8963 | netbsd*) |
8964 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8965 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8966 | wlarc= | |
8967 | else | |
8968 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8969 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8970 | fi | |
8971 | ;; | |
d7040cdb | 8972 | |
dabbade6 L |
8973 | solaris*) |
8974 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8975 | ld_shlibs=no | |
8976 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8977 | |
dabbade6 L |
8978 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8979 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8980 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8981 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8982 | *** your PATH or compiler configuration so that the native linker is | |
8983 | *** used, and then restart. | |
d7040cdb | 8984 | |
dabbade6 L |
8985 | _LT_EOF |
8986 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8987 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8988 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8989 | else | |
8990 | ld_shlibs=no | |
8991 | fi | |
8992 | ;; | |
d7040cdb | 8993 | |
dabbade6 L |
8994 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8995 | case `$LD -v 2>&1` in | |
8996 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8997 | ld_shlibs=no | |
8998 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8999 | |
dabbade6 L |
9000 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9001 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9002 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9003 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9004 | *** your PATH or compiler configuration so that the native linker is | |
9005 | *** used, and then restart. | |
d7040cdb | 9006 | |
dabbade6 L |
9007 | _LT_EOF |
9008 | ;; | |
9009 | *) | |
9010 | # For security reasons, it is highly recommended that you always | |
9011 | # use absolute paths for naming shared libraries, and exclude the | |
9012 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9013 | # requires that you compile everything twice, which is a pain. | |
9014 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9015 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9016 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9017 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9018 | else | |
9019 | ld_shlibs=no | |
9020 | fi | |
9021 | ;; | |
9022 | esac | |
9023 | ;; | |
d7040cdb | 9024 | |
dabbade6 L |
9025 | sunos4*) |
9026 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9027 | wlarc= | |
9028 | hardcode_direct=yes | |
9029 | hardcode_shlibpath_var=no | |
9030 | ;; | |
d7040cdb | 9031 | |
dabbade6 L |
9032 | *) |
9033 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9034 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9035 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9036 | else | |
9037 | ld_shlibs=no | |
9038 | fi | |
9039 | ;; | |
9040 | esac | |
d7040cdb | 9041 | |
dabbade6 L |
9042 | if test "$ld_shlibs" = no; then |
9043 | runpath_var= | |
9044 | hardcode_libdir_flag_spec= | |
9045 | export_dynamic_flag_spec= | |
9046 | whole_archive_flag_spec= | |
9047 | fi | |
9048 | else | |
9049 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9050 | case $host_os in | |
9051 | aix3*) | |
9052 | allow_undefined_flag=unsupported | |
9053 | always_export_symbols=yes | |
9054 | 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' | |
9055 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9056 | # are no directories specified by -L. | |
9057 | hardcode_minus_L=yes | |
9058 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9059 | # Neither direct hardcoding nor static linking is supported with a | |
9060 | # broken collect2. | |
9061 | hardcode_direct=unsupported | |
9062 | fi | |
9063 | ;; | |
d7040cdb | 9064 | |
50e7d84b | 9065 | aix[4-9]*) |
dabbade6 L |
9066 | if test "$host_cpu" = ia64; then |
9067 | # On IA64, the linker does run time linking by default, so we don't | |
9068 | # have to do anything special. | |
9069 | aix_use_runtimelinking=no | |
9070 | exp_sym_flag='-Bexport' | |
9071 | no_entry_flag="" | |
9072 | else | |
9073 | # If we're using GNU nm, then we don't want the "-C" option. | |
9074 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9075 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9076 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9077 | else | |
9078 | 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' | |
9079 | fi | |
9080 | aix_use_runtimelinking=no | |
d7040cdb | 9081 | |
dabbade6 L |
9082 | # Test if we are trying to use run time linking or normal |
9083 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9084 | # need to do runtime linking. | |
50e7d84b | 9085 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
dabbade6 L |
9086 | for ld_flag in $LDFLAGS; do |
9087 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9088 | aix_use_runtimelinking=yes | |
9089 | break | |
9090 | fi | |
9091 | done | |
9092 | ;; | |
9093 | esac | |
d7040cdb | 9094 | |
dabbade6 L |
9095 | exp_sym_flag='-bexport' |
9096 | no_entry_flag='-bnoentry' | |
9097 | fi | |
d7040cdb | 9098 | |
dabbade6 L |
9099 | # When large executables or shared objects are built, AIX ld can |
9100 | # have problems creating the table of contents. If linking a library | |
9101 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9102 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9103 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d7040cdb | 9104 | |
dabbade6 L |
9105 | archive_cmds='' |
9106 | hardcode_direct=yes | |
9107 | hardcode_direct_absolute=yes | |
9108 | hardcode_libdir_separator=':' | |
9109 | link_all_deplibs=yes | |
9110 | file_list_spec='${wl}-f,' | |
d7040cdb | 9111 | |
dabbade6 L |
9112 | if test "$GCC" = yes; then |
9113 | case $host_os in aix4.[012]|aix4.[012].*) | |
9114 | # We only want to do this on AIX 4.2 and lower, the check | |
9115 | # below for broken collect2 doesn't work under 4.3+ | |
9116 | collect2name=`${CC} -print-prog-name=collect2` | |
9117 | if test -f "$collect2name" && | |
9118 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9119 | then | |
9120 | # We have reworked collect2 | |
9121 | : | |
9122 | else | |
9123 | # We have old collect2 | |
9124 | hardcode_direct=unsupported | |
9125 | # It fails to find uninstalled libraries when the uninstalled | |
9126 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9127 | # to unsupported forces relinking | |
9128 | hardcode_minus_L=yes | |
9129 | hardcode_libdir_flag_spec='-L$libdir' | |
9130 | hardcode_libdir_separator= | |
9131 | fi | |
9132 | ;; | |
9133 | esac | |
9134 | shared_flag='-shared' | |
9135 | if test "$aix_use_runtimelinking" = yes; then | |
9136 | shared_flag="$shared_flag "'${wl}-G' | |
9137 | fi | |
9138 | else | |
9139 | # not using gcc | |
9140 | if test "$host_cpu" = ia64; then | |
9141 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9142 | # chokes on -Wl,-G. The following line is correct: | |
9143 | shared_flag='-G' | |
9144 | else | |
9145 | if test "$aix_use_runtimelinking" = yes; then | |
9146 | shared_flag='${wl}-G' | |
9147 | else | |
9148 | shared_flag='${wl}-bM:SRE' | |
9149 | fi | |
9150 | fi | |
9151 | fi | |
d7040cdb | 9152 | |
1927a18f | 9153 | export_dynamic_flag_spec='${wl}-bexpall' |
dabbade6 L |
9154 | # It seems that -bexpall does not export symbols beginning with |
9155 | # underscore (_), so it is better to generate a list of symbols to export. | |
9156 | always_export_symbols=yes | |
9157 | if test "$aix_use_runtimelinking" = yes; then | |
9158 | # Warning - without using the other runtime loading flags (-brtl), | |
9159 | # -berok will link without error, but may produce a broken library. | |
9160 | allow_undefined_flag='-berok' | |
9161 | # Determine the default libpath from the value encoded in an | |
9162 | # empty executable. | |
81ecdfbb | 9163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 9164 | /* end confdefs.h. */ |
d7040cdb | 9165 | |
dabbade6 L |
9166 | int |
9167 | main () | |
9168 | { | |
d7040cdb | 9169 | |
dabbade6 L |
9170 | ; |
9171 | return 0; | |
9172 | } | |
9173 | _ACEOF | |
81ecdfbb | 9174 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9175 | |
dabbade6 L |
9176 | lt_aix_libpath_sed=' |
9177 | /Import File Strings/,/^$/ { | |
9178 | /^0/ { | |
9179 | s/^0 *\(.*\)$/\1/ | |
9180 | p | |
9181 | } | |
9182 | }' | |
9183 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9184 | # Check for a 64-bit object if we didn't find anything. | |
9185 | if test -z "$aix_libpath"; then | |
9186 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9187 | fi | |
dabbade6 | 9188 | fi |
81ecdfbb RW |
9189 | rm -f core conftest.err conftest.$ac_objext \ |
9190 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 9191 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9192 | |
dabbade6 L |
9193 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9194 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9195 | else | |
9196 | if test "$host_cpu" = ia64; then | |
9197 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9198 | allow_undefined_flag="-z nodefs" | |
9199 | 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" | |
9200 | else | |
9201 | # Determine the default libpath from the value encoded in an | |
9202 | # empty executable. | |
81ecdfbb | 9203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 9204 | /* end confdefs.h. */ |
d7040cdb | 9205 | |
dabbade6 L |
9206 | int |
9207 | main () | |
9208 | { | |
d7040cdb | 9209 | |
dabbade6 L |
9210 | ; |
9211 | return 0; | |
9212 | } | |
9213 | _ACEOF | |
81ecdfbb | 9214 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9215 | |
dabbade6 L |
9216 | lt_aix_libpath_sed=' |
9217 | /Import File Strings/,/^$/ { | |
9218 | /^0/ { | |
9219 | s/^0 *\(.*\)$/\1/ | |
9220 | p | |
9221 | } | |
9222 | }' | |
9223 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9224 | # Check for a 64-bit object if we didn't find anything. | |
9225 | if test -z "$aix_libpath"; then | |
9226 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9227 | fi | |
dabbade6 | 9228 | fi |
81ecdfbb RW |
9229 | rm -f core conftest.err conftest.$ac_objext \ |
9230 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 9231 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9232 | |
dabbade6 L |
9233 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9234 | # Warning - without using the other run time loading flags, | |
9235 | # -berok will link without error, but may produce a broken library. | |
9236 | no_undefined_flag=' ${wl}-bernotok' | |
9237 | allow_undefined_flag=' ${wl}-berok' | |
9238 | # Exported symbols can be pulled into shared objects from archives | |
9239 | whole_archive_flag_spec='$convenience' | |
9240 | archive_cmds_need_lc=yes | |
9241 | # This is similar to how AIX traditionally builds its shared libraries. | |
9242 | 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' | |
9243 | fi | |
9244 | fi | |
9245 | ;; | |
d7040cdb | 9246 | |
dabbade6 | 9247 | amigaos*) |
1927a18f L |
9248 | case $host_cpu in |
9249 | powerpc) | |
9250 | # see comment about AmigaOS4 .so support | |
9251 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9252 | archive_expsym_cmds='' | |
9253 | ;; | |
9254 | m68k) | |
9255 | 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)' | |
9256 | hardcode_libdir_flag_spec='-L$libdir' | |
9257 | hardcode_minus_L=yes | |
9258 | ;; | |
9259 | esac | |
dabbade6 | 9260 | ;; |
d7040cdb | 9261 | |
dabbade6 L |
9262 | bsdi[45]*) |
9263 | export_dynamic_flag_spec=-rdynamic | |
9264 | ;; | |
d7040cdb | 9265 | |
1927a18f | 9266 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
9267 | # When not using gcc, we currently assume that we are using |
9268 | # Microsoft Visual C++. | |
9269 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9270 | # no search path for DLLs. | |
9271 | hardcode_libdir_flag_spec=' ' | |
9272 | allow_undefined_flag=unsupported | |
9273 | # Tell ltmain to make .lib files, not .a files. | |
9274 | libext=lib | |
9275 | # Tell ltmain to make .dll files, not .so files. | |
9276 | shrext_cmds=".dll" | |
9277 | # FIXME: Setting linknames here is a bad hack. | |
9278 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9279 | # The linker will automatically build a .lib file if we build a DLL. | |
9280 | old_archive_from_new_cmds='true' | |
9281 | # FIXME: Should let the user specify the lib program. | |
9282 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9283 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9284 | enable_shared_with_static_runtimes=yes | |
9285 | ;; | |
d7040cdb | 9286 | |
dabbade6 | 9287 | darwin* | rhapsody*) |
d7040cdb | 9288 | |
1927a18f L |
9289 | |
9290 | archive_cmds_need_lc=no | |
9291 | hardcode_direct=no | |
9292 | hardcode_automatic=yes | |
9293 | hardcode_shlibpath_var=unsupported | |
9294 | whole_archive_flag_spec='' | |
9295 | link_all_deplibs=yes | |
9296 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9297 | case $cc_basename in | |
9298 | ifort*) _lt_dar_can_shared=yes ;; | |
9299 | *) _lt_dar_can_shared=$GCC ;; | |
9300 | esac | |
9301 | if test "$_lt_dar_can_shared" = "yes"; then | |
9302 | output_verbose_link_cmd=echo | |
9303 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9304 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9305 | 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}" | |
9306 | 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}" | |
9307 | ||
9308 | else | |
9309 | ld_shlibs=no | |
9310 | fi | |
9311 | ||
dabbade6 | 9312 | ;; |
d7040cdb | 9313 | |
dabbade6 L |
9314 | dgux*) |
9315 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9316 | hardcode_libdir_flag_spec='-L$libdir' | |
9317 | hardcode_shlibpath_var=no | |
9318 | ;; | |
d7040cdb | 9319 | |
dabbade6 L |
9320 | freebsd1*) |
9321 | ld_shlibs=no | |
9322 | ;; | |
d7040cdb | 9323 | |
dabbade6 L |
9324 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9325 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9326 | # does not break anything, and helps significantly (at the cost of a little | |
9327 | # extra space). | |
9328 | freebsd2.2*) | |
9329 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9330 | hardcode_libdir_flag_spec='-R$libdir' | |
9331 | hardcode_direct=yes | |
9332 | hardcode_shlibpath_var=no | |
9333 | ;; | |
d7040cdb | 9334 | |
dabbade6 L |
9335 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9336 | freebsd2*) | |
9337 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9338 | hardcode_direct=yes | |
9339 | hardcode_minus_L=yes | |
9340 | hardcode_shlibpath_var=no | |
9341 | ;; | |
d7040cdb | 9342 | |
dabbade6 L |
9343 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9344 | freebsd* | dragonfly*) | |
9345 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9346 | hardcode_libdir_flag_spec='-R$libdir' | |
9347 | hardcode_direct=yes | |
9348 | hardcode_shlibpath_var=no | |
9349 | ;; | |
d7040cdb | 9350 | |
dabbade6 L |
9351 | hpux9*) |
9352 | if test "$GCC" = yes; then | |
9353 | 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' | |
9354 | else | |
9355 | 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' | |
9356 | fi | |
9357 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9358 | hardcode_libdir_separator=: | |
9359 | hardcode_direct=yes | |
d7040cdb | 9360 | |
dabbade6 L |
9361 | # hardcode_minus_L: Not really in the search PATH, |
9362 | # but as the default location of the library. | |
9363 | hardcode_minus_L=yes | |
9364 | export_dynamic_flag_spec='${wl}-E' | |
9365 | ;; | |
d7040cdb | 9366 | |
dabbade6 L |
9367 | hpux10*) |
9368 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9369 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9370 | else | |
9371 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9372 | fi | |
9373 | if test "$with_gnu_ld" = no; then | |
9374 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9375 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9376 | hardcode_libdir_separator=: | |
9377 | hardcode_direct=yes | |
9378 | hardcode_direct_absolute=yes | |
9379 | export_dynamic_flag_spec='${wl}-E' | |
9380 | # hardcode_minus_L: Not really in the search PATH, | |
9381 | # but as the default location of the library. | |
9382 | hardcode_minus_L=yes | |
9383 | fi | |
9384 | ;; | |
d7040cdb | 9385 | |
dabbade6 L |
9386 | hpux11*) |
9387 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9388 | case $host_cpu in | |
9389 | hppa*64*) | |
9390 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9391 | ;; | |
9392 | ia64*) | |
1927a18f | 9393 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
dabbade6 L |
9394 | ;; |
9395 | *) | |
9396 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9397 | ;; | |
9398 | esac | |
9399 | else | |
9400 | case $host_cpu in | |
9401 | hppa*64*) | |
9402 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9403 | ;; | |
9404 | ia64*) | |
9405 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9406 | ;; | |
9407 | *) | |
9408 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9409 | ;; | |
9410 | esac | |
9411 | fi | |
9412 | if test "$with_gnu_ld" = no; then | |
9413 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9414 | hardcode_libdir_separator=: | |
d7040cdb | 9415 | |
dabbade6 L |
9416 | case $host_cpu in |
9417 | hppa*64*|ia64*) | |
9418 | hardcode_direct=no | |
9419 | hardcode_shlibpath_var=no | |
9420 | ;; | |
9421 | *) | |
9422 | hardcode_direct=yes | |
9423 | hardcode_direct_absolute=yes | |
9424 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9425 | |
dabbade6 L |
9426 | # hardcode_minus_L: Not really in the search PATH, |
9427 | # but as the default location of the library. | |
9428 | hardcode_minus_L=yes | |
9429 | ;; | |
9430 | esac | |
9431 | fi | |
9432 | ;; | |
d7040cdb | 9433 | |
dabbade6 L |
9434 | irix5* | irix6* | nonstopux*) |
9435 | if test "$GCC" = yes; then | |
9436 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9437 | # Try to use the -exported_symbol ld option, if it does not | |
9438 | # work, assume that -exports_file does not work either and | |
9439 | # implicitly export all symbols. | |
9440 | save_LDFLAGS="$LDFLAGS" | |
9441 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9443 | /* end confdefs.h. */ | |
dabbade6 L |
9444 | int foo(void) {} |
9445 | _ACEOF | |
81ecdfbb | 9446 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 | 9447 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
d7040cdb | 9448 | |
d7040cdb | 9449 | fi |
81ecdfbb RW |
9450 | rm -f core conftest.err conftest.$ac_objext \ |
9451 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
9452 | LDFLAGS="$save_LDFLAGS" |
9453 | else | |
9454 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9455 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9456 | fi | |
9457 | archive_cmds_need_lc='no' | |
9458 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9459 | hardcode_libdir_separator=: | |
9460 | inherit_rpath=yes | |
9461 | link_all_deplibs=yes | |
9462 | ;; | |
d7040cdb | 9463 | |
dabbade6 L |
9464 | netbsd*) |
9465 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9466 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9467 | else | |
9468 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9469 | fi | |
9470 | hardcode_libdir_flag_spec='-R$libdir' | |
9471 | hardcode_direct=yes | |
9472 | hardcode_shlibpath_var=no | |
9473 | ;; | |
d7040cdb | 9474 | |
dabbade6 L |
9475 | newsos6) |
9476 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9477 | hardcode_direct=yes | |
9478 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9479 | hardcode_libdir_separator=: | |
9480 | hardcode_shlibpath_var=no | |
9481 | ;; | |
d7040cdb | 9482 | |
dabbade6 L |
9483 | *nto* | *qnx*) |
9484 | ;; | |
d7040cdb | 9485 | |
dabbade6 | 9486 | openbsd*) |
1927a18f L |
9487 | if test -f /usr/libexec/ld.so; then |
9488 | hardcode_direct=yes | |
9489 | hardcode_shlibpath_var=no | |
9490 | hardcode_direct_absolute=yes | |
9491 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
dabbade6 | 9492 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
1927a18f | 9493 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
dabbade6 | 9494 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
1927a18f L |
9495 | export_dynamic_flag_spec='${wl}-E' |
9496 | else | |
9497 | case $host_os in | |
9498 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9499 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9500 | hardcode_libdir_flag_spec='-R$libdir' | |
9501 | ;; | |
9502 | *) | |
9503 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9504 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9505 | ;; | |
9506 | esac | |
9507 | fi | |
9508 | else | |
9509 | ld_shlibs=no | |
d7040cdb SE |
9510 | fi |
9511 | ;; | |
d7040cdb | 9512 | |
dabbade6 L |
9513 | os2*) |
9514 | hardcode_libdir_flag_spec='-L$libdir' | |
9515 | hardcode_minus_L=yes | |
9516 | allow_undefined_flag=unsupported | |
9517 | 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' | |
9518 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9519 | ;; | |
d7040cdb | 9520 | |
dabbade6 L |
9521 | osf3*) |
9522 | if test "$GCC" = yes; then | |
9523 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9524 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9525 | else | |
9526 | allow_undefined_flag=' -expect_unresolved \*' | |
9527 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9528 | fi | |
9529 | archive_cmds_need_lc='no' | |
9530 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9531 | hardcode_libdir_separator=: | |
9532 | ;; | |
d7040cdb | 9533 | |
dabbade6 L |
9534 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9535 | if test "$GCC" = yes; then | |
9536 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9537 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9538 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9539 | else | |
9540 | allow_undefined_flag=' -expect_unresolved \*' | |
9541 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9542 | 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~ | |
9543 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
d7040cdb | 9544 | |
dabbade6 L |
9545 | # Both c and cxx compiler support -rpath directly |
9546 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9547 | fi | |
9548 | archive_cmds_need_lc='no' | |
9549 | hardcode_libdir_separator=: | |
9550 | ;; | |
d7040cdb | 9551 | |
dabbade6 L |
9552 | solaris*) |
9553 | no_undefined_flag=' -z defs' | |
9554 | if test "$GCC" = yes; then | |
9555 | wlarc='${wl}' | |
9556 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9557 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9558 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9559 | else | |
9560 | case `$CC -V 2>&1` in | |
9561 | *"Compilers 5.0"*) | |
9562 | wlarc='' | |
9563 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9564 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9565 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9566 | ;; | |
9567 | *) | |
9568 | wlarc='${wl}' | |
9569 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9570 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9571 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9572 | ;; | |
9573 | esac | |
9574 | fi | |
9575 | hardcode_libdir_flag_spec='-R$libdir' | |
9576 | hardcode_shlibpath_var=no | |
9577 | case $host_os in | |
9578 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9579 | *) | |
9580 | # The compiler driver will combine and reorder linker options, | |
9581 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9582 | # but is careful enough not to reorder. | |
9583 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9584 | if test "$GCC" = yes; then | |
9585 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9586 | else | |
9587 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9588 | fi | |
9589 | ;; | |
9590 | esac | |
9591 | link_all_deplibs=yes | |
d7040cdb | 9592 | ;; |
dabbade6 L |
9593 | |
9594 | sunos4*) | |
9595 | if test "x$host_vendor" = xsequent; then | |
9596 | # Use $CC to link under sequent, because it throws in some extra .o | |
9597 | # files that make .init and .fini sections work. | |
9598 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
d7040cdb | 9599 | else |
dabbade6 | 9600 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
d7040cdb | 9601 | fi |
dabbade6 L |
9602 | hardcode_libdir_flag_spec='-L$libdir' |
9603 | hardcode_direct=yes | |
9604 | hardcode_minus_L=yes | |
9605 | hardcode_shlibpath_var=no | |
d7040cdb | 9606 | ;; |
dabbade6 L |
9607 | |
9608 | sysv4) | |
9609 | case $host_vendor in | |
9610 | sni) | |
9611 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9612 | hardcode_direct=yes # is this really true??? | |
9613 | ;; | |
9614 | siemens) | |
9615 | ## LD is ld it makes a PLAMLIB | |
9616 | ## CC just makes a GrossModule. | |
9617 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9618 | reload_cmds='$CC -r -o $output$reload_objs' | |
9619 | hardcode_direct=no | |
9620 | ;; | |
9621 | motorola) | |
9622 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9623 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9624 | ;; | |
9625 | esac | |
9626 | runpath_var='LD_RUN_PATH' | |
9627 | hardcode_shlibpath_var=no | |
d7040cdb | 9628 | ;; |
d7040cdb | 9629 | |
dabbade6 L |
9630 | sysv4.3*) |
9631 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9632 | hardcode_shlibpath_var=no | |
9633 | export_dynamic_flag_spec='-Bexport' | |
9634 | ;; | |
d7040cdb | 9635 | |
dabbade6 L |
9636 | sysv4*MP*) |
9637 | if test -d /usr/nec; then | |
9638 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9639 | hardcode_shlibpath_var=no | |
9640 | runpath_var=LD_RUN_PATH | |
9641 | hardcode_runpath_var=yes | |
9642 | ld_shlibs=yes | |
9643 | fi | |
9644 | ;; | |
d7040cdb | 9645 | |
dabbade6 L |
9646 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9647 | no_undefined_flag='${wl}-z,text' | |
9648 | archive_cmds_need_lc=no | |
9649 | hardcode_shlibpath_var=no | |
9650 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9651 | |
dabbade6 L |
9652 | if test "$GCC" = yes; then |
9653 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9654 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9655 | else | |
9656 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9657 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9658 | fi | |
9659 | ;; | |
d7040cdb | 9660 | |
dabbade6 L |
9661 | sysv5* | sco3.2v5* | sco5v6*) |
9662 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9663 | # link with -lc, and that would cause any symbols used from libc to | |
9664 | # always be unresolved, which means just about no library would | |
9665 | # ever link correctly. If we're not using GNU ld we use -z text | |
9666 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9667 | # as -z defs. | |
9668 | no_undefined_flag='${wl}-z,text' | |
9669 | allow_undefined_flag='${wl}-z,nodefs' | |
9670 | archive_cmds_need_lc=no | |
9671 | hardcode_shlibpath_var=no | |
9672 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9673 | hardcode_libdir_separator=':' | |
9674 | link_all_deplibs=yes | |
9675 | export_dynamic_flag_spec='${wl}-Bexport' | |
9676 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 9677 | |
dabbade6 L |
9678 | if test "$GCC" = yes; then |
9679 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9680 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9681 | else | |
9682 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9683 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9684 | fi | |
d7040cdb | 9685 | ;; |
d7040cdb | 9686 | |
dabbade6 L |
9687 | uts4*) |
9688 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9689 | hardcode_libdir_flag_spec='-L$libdir' | |
9690 | hardcode_shlibpath_var=no | |
9691 | ;; | |
d7040cdb | 9692 | |
dabbade6 L |
9693 | *) |
9694 | ld_shlibs=no | |
9695 | ;; | |
9696 | esac | |
9697 | ||
9698 | if test x$host_vendor = xsni; then | |
9699 | case $host in | |
9700 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9701 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9702 | ;; | |
9703 | esac | |
d7040cdb | 9704 | fi |
dabbade6 | 9705 | fi |
d7040cdb | 9706 | |
81ecdfbb RW |
9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9708 | $as_echo "$ld_shlibs" >&6; } | |
dabbade6 | 9709 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 9710 | |
dabbade6 | 9711 | with_gnu_ld=$with_gnu_ld |
d7040cdb | 9712 | |
d7040cdb | 9713 | |
d7040cdb | 9714 | |
d7040cdb | 9715 | |
d7040cdb | 9716 | |
d7040cdb | 9717 | |
d7040cdb | 9718 | |
d7040cdb | 9719 | |
d7040cdb | 9720 | |
d7040cdb | 9721 | |
d7040cdb | 9722 | |
d7040cdb | 9723 | |
d7040cdb | 9724 | |
d7040cdb | 9725 | |
d7040cdb | 9726 | |
dabbade6 L |
9727 | # |
9728 | # Do we need to explicitly link libc? | |
9729 | # | |
9730 | case "x$archive_cmds_need_lc" in | |
9731 | x|xyes) | |
9732 | # Assume -lc should be added | |
9733 | archive_cmds_need_lc=yes | |
d7040cdb | 9734 | |
dabbade6 L |
9735 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9736 | case $archive_cmds in | |
9737 | *'~'*) | |
9738 | # FIXME: we may have to deal with multi-command sequences. | |
9739 | ;; | |
9740 | '$CC '*) | |
9741 | # Test whether the compiler implicitly links with -lc since on some | |
9742 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9743 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9745 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9746 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9747 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
9748 | else |
9749 | $RM conftest* | |
9750 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9751 | |
81ecdfbb | 9752 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
dabbade6 L |
9753 | (eval $ac_compile) 2>&5 |
9754 | ac_status=$? | |
81ecdfbb RW |
9755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9756 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9757 | soname=conftest |
9758 | lib=conftest | |
9759 | libobjs=conftest.$ac_objext | |
9760 | deplibs= | |
9761 | wl=$lt_prog_compiler_wl | |
9762 | pic_flag=$lt_prog_compiler_pic | |
9763 | compiler_flags=-v | |
9764 | linker_flags=-v | |
9765 | verstring= | |
9766 | output_objdir=. | |
9767 | libname=conftest | |
9768 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9769 | allow_undefined_flag= | |
81ecdfbb | 9770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
dabbade6 L |
9771 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9772 | ac_status=$? | |
81ecdfbb RW |
9773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9774 | test $ac_status = 0; } | |
39144654 RW |
9775 | then |
9776 | lt_cv_archive_cmds_need_lc=no | |
9777 | else | |
9778 | lt_cv_archive_cmds_need_lc=yes | |
9779 | fi | |
9780 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9781 | else | |
9782 | cat conftest.err 1>&5 | |
9783 | fi | |
9784 | $RM conftest* | |
9785 | ||
9786 | fi | |
81ecdfbb RW |
9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9788 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9789 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
dabbade6 L |
9790 | ;; |
9791 | esac | |
d7040cdb | 9792 | fi |
d7040cdb | 9793 | ;; |
dabbade6 | 9794 | esac |
d7040cdb | 9795 | |
d7040cdb | 9796 | |
d7040cdb | 9797 | |
d7040cdb | 9798 | |
d7040cdb | 9799 | |
d7040cdb | 9800 | |
d7040cdb | 9801 | |
d7040cdb SE |
9802 | |
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | ||
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
d7040cdb | 9889 | |
d7040cdb | 9890 | |
d7040cdb SE |
9891 | |
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
d7040cdb | 9897 | |
d7040cdb | 9898 | |
d7040cdb | 9899 | |
d7040cdb | 9900 | |
d7040cdb | 9901 | |
d7040cdb | 9902 | |
d7040cdb | 9903 | |
d7040cdb | 9904 | |
d7040cdb | 9905 | |
d7040cdb | 9906 | |
d7040cdb | 9907 | |
d7040cdb | 9908 | |
d7040cdb | 9909 | |
d7040cdb | 9910 | |
d7040cdb | 9911 | |
d7040cdb | 9912 | |
d7040cdb | 9913 | |
d7040cdb | 9914 | |
d7040cdb | 9915 | |
d7040cdb | 9916 | |
d7040cdb | 9917 | |
d7040cdb | 9918 | |
d7040cdb | 9919 | |
d7040cdb | 9920 | |
dabbade6 L |
9921 | |
9922 | ||
9923 | ||
9924 | ||
9925 | ||
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 | ||
81ecdfbb RW |
9952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9953 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
1927a18f L |
9954 | |
9955 | if test "$GCC" = yes; then | |
dabbade6 L |
9956 | case $host_os in |
9957 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9958 | *) lt_awk_arg="/^libraries:/" ;; | |
9959 | esac | |
9960 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9961 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9962 | # if the path contains ";" then we assume it to be the separator | |
9963 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9964 | # assumed that no part of a normal pathname contains ";" but that should | |
9965 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9966 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9967 | else | |
9968 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9969 | fi | |
9970 | # Ok, now we have the path, separated by spaces, we can step through it | |
9971 | # and add multilib dir if necessary. | |
9972 | lt_tmp_lt_search_path_spec= | |
9973 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9974 | for lt_sys_path in $lt_search_path_spec; do | |
9975 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9976 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9977 | else | |
9978 | test -d "$lt_sys_path" && \ | |
9979 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9980 | fi | |
9981 | done | |
9982 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9983 | BEGIN {RS=" "; FS="/|\n";} { | |
9984 | lt_foo=""; | |
9985 | lt_count=0; | |
9986 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9987 | if ($lt_i != "" && $lt_i != ".") { | |
9988 | if ($lt_i == "..") { | |
9989 | lt_count++; | |
9990 | } else { | |
9991 | if (lt_count == 0) { | |
9992 | lt_foo="/" $lt_i lt_foo; | |
9993 | } else { | |
9994 | lt_count--; | |
9995 | } | |
9996 | } | |
9997 | } | |
9998 | } | |
9999 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10000 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10001 | }'` | |
10002 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
d7040cdb | 10003 | else |
dabbade6 L |
10004 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10005 | fi | |
10006 | library_names_spec= | |
10007 | libname_spec='lib$name' | |
10008 | soname_spec= | |
10009 | shrext_cmds=".so" | |
10010 | postinstall_cmds= | |
10011 | postuninstall_cmds= | |
10012 | finish_cmds= | |
10013 | finish_eval= | |
10014 | shlibpath_var= | |
10015 | shlibpath_overrides_runpath=unknown | |
10016 | version_type=none | |
10017 | dynamic_linker="$host_os ld.so" | |
10018 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10019 | need_lib_prefix=unknown | |
10020 | hardcode_into_libs=no | |
10021 | ||
10022 | # when you set need_version to no, make sure it does not cause -set_version | |
10023 | # flags to be left without arguments | |
10024 | need_version=unknown | |
10025 | ||
10026 | case $host_os in | |
10027 | aix3*) | |
10028 | version_type=linux | |
10029 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10030 | shlibpath_var=LIBPATH | |
10031 | ||
10032 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10033 | soname_spec='${libname}${release}${shared_ext}$major' | |
10034 | ;; | |
10035 | ||
50e7d84b | 10036 | aix[4-9]*) |
dabbade6 L |
10037 | version_type=linux |
10038 | need_lib_prefix=no | |
10039 | need_version=no | |
10040 | hardcode_into_libs=yes | |
10041 | if test "$host_cpu" = ia64; then | |
10042 | # AIX 5 supports IA64 | |
10043 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10044 | shlibpath_var=LD_LIBRARY_PATH | |
10045 | else | |
10046 | # With GCC up to 2.95.x, collect2 would create an import file | |
10047 | # for dependence libraries. The import file would start with | |
10048 | # the line `#! .'. This would cause the generated library to | |
10049 | # depend on `.', always an invalid library. This was fixed in | |
10050 | # development snapshots of GCC prior to 3.0. | |
10051 | case $host_os in | |
10052 | aix4 | aix4.[01] | aix4.[01].*) | |
10053 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10054 | echo ' yes ' | |
10055 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10056 | : | |
10057 | else | |
10058 | can_build_shared=no | |
10059 | fi | |
10060 | ;; | |
10061 | esac | |
10062 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10063 | # soname into executable. Probably we can add versioning support to | |
10064 | # collect2, so additional links can be useful in future. | |
10065 | if test "$aix_use_runtimelinking" = yes; then | |
10066 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10067 | # instead of lib<name>.a to let people know that these are not | |
10068 | # typical AIX shared libraries. | |
10069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10070 | else | |
10071 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10072 | # and later when we are not doing run time linking. | |
10073 | library_names_spec='${libname}${release}.a $libname.a' | |
10074 | soname_spec='${libname}${release}${shared_ext}$major' | |
10075 | fi | |
10076 | shlibpath_var=LIBPATH | |
10077 | fi | |
10078 | ;; | |
10079 | ||
10080 | amigaos*) | |
1927a18f L |
10081 | case $host_cpu in |
10082 | powerpc) | |
10083 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10084 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10086 | ;; | |
10087 | m68k) | |
dabbade6 L |
10088 | library_names_spec='$libname.ixlibrary $libname.a' |
10089 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10090 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
1927a18f L |
10091 | ;; |
10092 | esac | |
dabbade6 L |
10093 | ;; |
10094 | ||
10095 | beos*) | |
10096 | library_names_spec='${libname}${shared_ext}' | |
10097 | dynamic_linker="$host_os ld.so" | |
10098 | shlibpath_var=LIBRARY_PATH | |
10099 | ;; | |
10100 | ||
10101 | bsdi[45]*) | |
10102 | version_type=linux | |
10103 | need_version=no | |
10104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10105 | soname_spec='${libname}${release}${shared_ext}$major' | |
10106 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10107 | shlibpath_var=LD_LIBRARY_PATH | |
10108 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10109 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10110 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10111 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10112 | # libtool to hard-code these into programs | |
10113 | ;; | |
10114 | ||
1927a18f | 10115 | cygwin* | mingw* | pw32* | cegcc*) |
dabbade6 L |
10116 | version_type=windows |
10117 | shrext_cmds=".dll" | |
10118 | need_version=no | |
10119 | need_lib_prefix=no | |
10120 | ||
1927a18f L |
10121 | case $GCC,$host_os in |
10122 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
dabbade6 L |
10123 | library_names_spec='$libname.dll.a' |
10124 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10125 | postinstall_cmds='base_file=`basename \${file}`~ | |
10126 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10127 | dldir=$destdir/`dirname \$dlpath`~ | |
10128 | test -d \$dldir || mkdir -p \$dldir~ | |
10129 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10130 | chmod a+x \$dldir/$dlname~ | |
10131 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10132 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10133 | fi' | |
10134 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10135 | dlpath=$dir/\$dldll~ | |
10136 | $RM \$dlpath' | |
10137 | shlibpath_overrides_runpath=yes | |
10138 | ||
10139 | case $host_os in | |
10140 | cygwin*) | |
10141 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10142 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10143 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10144 | ;; | |
1927a18f | 10145 | mingw* | cegcc*) |
dabbade6 L |
10146 | # MinGW DLLs use traditional 'lib' prefix |
10147 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10148 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10149 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10150 | # It is most probably a Windows format PATH printed by | |
10151 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10152 | # path with ; separators, and with drive letters. We can handle the | |
10153 | # drive letters (cygwin fileutils understands them), so leave them, | |
10154 | # especially as we might pass files found there to a mingw objdump, | |
10155 | # which wouldn't understand a cygwinified path. Ahh. | |
10156 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10157 | else | |
10158 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10159 | fi | |
10160 | ;; | |
10161 | pw32*) | |
10162 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10163 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10164 | ;; | |
10165 | esac | |
10166 | ;; | |
10167 | ||
10168 | *) | |
10169 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10170 | ;; | |
10171 | esac | |
10172 | dynamic_linker='Win32 ld.exe' | |
10173 | # FIXME: first we should search . and the directory the executable is in | |
10174 | shlibpath_var=PATH | |
10175 | ;; | |
10176 | ||
10177 | darwin* | rhapsody*) | |
10178 | dynamic_linker="$host_os dyld" | |
10179 | version_type=darwin | |
10180 | need_lib_prefix=no | |
10181 | need_version=no | |
10182 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10183 | soname_spec='${libname}${release}${major}$shared_ext' | |
10184 | shlibpath_overrides_runpath=yes | |
10185 | shlibpath_var=DYLD_LIBRARY_PATH | |
10186 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10187 | ||
10188 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10189 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10190 | ;; | |
10191 | ||
10192 | dgux*) | |
10193 | version_type=linux | |
10194 | need_lib_prefix=no | |
10195 | need_version=no | |
10196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10197 | soname_spec='${libname}${release}${shared_ext}$major' | |
10198 | shlibpath_var=LD_LIBRARY_PATH | |
10199 | ;; | |
10200 | ||
10201 | freebsd1*) | |
10202 | dynamic_linker=no | |
10203 | ;; | |
10204 | ||
10205 | freebsd* | dragonfly*) | |
10206 | # DragonFly does not have aout. When/if they implement a new | |
10207 | # versioning mechanism, adjust this. | |
10208 | if test -x /usr/bin/objformat; then | |
10209 | objformat=`/usr/bin/objformat` | |
10210 | else | |
10211 | case $host_os in | |
10212 | freebsd[123]*) objformat=aout ;; | |
10213 | *) objformat=elf ;; | |
10214 | esac | |
10215 | fi | |
10216 | version_type=freebsd-$objformat | |
10217 | case $version_type in | |
10218 | freebsd-elf*) | |
10219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10220 | need_version=no | |
10221 | need_lib_prefix=no | |
10222 | ;; | |
10223 | freebsd-*) | |
10224 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10225 | need_version=yes | |
10226 | ;; | |
10227 | esac | |
10228 | shlibpath_var=LD_LIBRARY_PATH | |
10229 | case $host_os in | |
10230 | freebsd2*) | |
10231 | shlibpath_overrides_runpath=yes | |
10232 | ;; | |
10233 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10234 | shlibpath_overrides_runpath=yes | |
10235 | hardcode_into_libs=yes | |
10236 | ;; | |
10237 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10238 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10239 | shlibpath_overrides_runpath=no | |
10240 | hardcode_into_libs=yes | |
10241 | ;; | |
10242 | *) # from 4.6 on, and DragonFly | |
10243 | shlibpath_overrides_runpath=yes | |
10244 | hardcode_into_libs=yes | |
10245 | ;; | |
10246 | esac | |
10247 | ;; | |
10248 | ||
10249 | gnu*) | |
10250 | version_type=linux | |
10251 | need_lib_prefix=no | |
10252 | need_version=no | |
10253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10254 | soname_spec='${libname}${release}${shared_ext}$major' | |
10255 | shlibpath_var=LD_LIBRARY_PATH | |
10256 | hardcode_into_libs=yes | |
10257 | ;; | |
10258 | ||
10259 | hpux9* | hpux10* | hpux11*) | |
10260 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10261 | # link against other versions. | |
10262 | version_type=sunos | |
10263 | need_lib_prefix=no | |
10264 | need_version=no | |
10265 | case $host_cpu in | |
10266 | ia64*) | |
10267 | shrext_cmds='.so' | |
10268 | hardcode_into_libs=yes | |
10269 | dynamic_linker="$host_os dld.so" | |
10270 | shlibpath_var=LD_LIBRARY_PATH | |
10271 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10273 | soname_spec='${libname}${release}${shared_ext}$major' | |
10274 | if test "X$HPUX_IA64_MODE" = X32; then | |
10275 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10276 | else | |
10277 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10278 | fi | |
10279 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10280 | ;; | |
10281 | hppa*64*) | |
10282 | shrext_cmds='.sl' | |
10283 | hardcode_into_libs=yes | |
10284 | dynamic_linker="$host_os dld.sl" | |
10285 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10286 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10288 | soname_spec='${libname}${release}${shared_ext}$major' | |
10289 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10290 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10291 | ;; | |
10292 | *) | |
10293 | shrext_cmds='.sl' | |
10294 | dynamic_linker="$host_os dld.sl" | |
10295 | shlibpath_var=SHLIB_PATH | |
10296 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10298 | soname_spec='${libname}${release}${shared_ext}$major' | |
10299 | ;; | |
10300 | esac | |
10301 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10302 | postinstall_cmds='chmod 555 $lib' | |
10303 | ;; | |
10304 | ||
10305 | interix[3-9]*) | |
10306 | version_type=linux | |
10307 | need_lib_prefix=no | |
10308 | need_version=no | |
10309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10310 | soname_spec='${libname}${release}${shared_ext}$major' | |
10311 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10312 | shlibpath_var=LD_LIBRARY_PATH | |
10313 | shlibpath_overrides_runpath=no | |
10314 | hardcode_into_libs=yes | |
10315 | ;; | |
10316 | ||
10317 | irix5* | irix6* | nonstopux*) | |
10318 | case $host_os in | |
10319 | nonstopux*) version_type=nonstopux ;; | |
10320 | *) | |
10321 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10322 | version_type=linux | |
10323 | else | |
10324 | version_type=irix | |
10325 | fi ;; | |
10326 | esac | |
10327 | need_lib_prefix=no | |
10328 | need_version=no | |
10329 | soname_spec='${libname}${release}${shared_ext}$major' | |
10330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10331 | case $host_os in | |
10332 | irix5* | nonstopux*) | |
10333 | libsuff= shlibsuff= | |
10334 | ;; | |
10335 | *) | |
10336 | case $LD in # libtool.m4 will add one of these switches to LD | |
10337 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10338 | libsuff= shlibsuff= libmagic=32-bit;; | |
10339 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10340 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10341 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10342 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10343 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10344 | esac | |
10345 | ;; | |
10346 | esac | |
10347 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10348 | shlibpath_overrides_runpath=no | |
10349 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10350 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10351 | hardcode_into_libs=yes | |
10352 | ;; | |
10353 | ||
10354 | # No shared lib support for Linux oldld, aout, or coff. | |
10355 | linux*oldld* | linux*aout* | linux*coff*) | |
10356 | dynamic_linker=no | |
10357 | ;; | |
10358 | ||
10359 | # This must be Linux ELF. | |
58e24671 | 10360 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
dabbade6 L |
10361 | version_type=linux |
10362 | need_lib_prefix=no | |
10363 | need_version=no | |
10364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10365 | soname_spec='${libname}${release}${shared_ext}$major' | |
10366 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10367 | shlibpath_var=LD_LIBRARY_PATH | |
10368 | shlibpath_overrides_runpath=no | |
39144654 | 10369 | |
dabbade6 | 10370 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
10371 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10372 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10373 | else |
10374 | lt_cv_shlibpath_overrides_runpath=no | |
10375 | save_LDFLAGS=$LDFLAGS | |
10376 | save_libdir=$libdir | |
10377 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10378 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10380 | /* end confdefs.h. */ |
10381 | ||
d7040cdb SE |
10382 | int |
10383 | main () | |
10384 | { | |
dabbade6 | 10385 | |
d7040cdb SE |
10386 | ; |
10387 | return 0; | |
10388 | } | |
10389 | _ACEOF | |
81ecdfbb RW |
10390 | if ac_fn_c_try_link "$LINENO"; then : |
10391 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10392 | lt_cv_shlibpath_overrides_runpath=yes |
dabbade6 | 10393 | fi |
d7040cdb | 10394 | fi |
81ecdfbb RW |
10395 | rm -f core conftest.err conftest.$ac_objext \ |
10396 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10397 | LDFLAGS=$save_LDFLAGS |
10398 | libdir=$save_libdir | |
10399 | ||
10400 | fi | |
10401 | ||
10402 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
dabbade6 L |
10403 | |
10404 | # This implies no fast_install, which is unacceptable. | |
10405 | # Some rework will be needed to allow for fast_install | |
10406 | # before this can be enabled. | |
10407 | hardcode_into_libs=yes | |
10408 | ||
10409 | # Append ld.so.conf contents to the search path | |
10410 | if test -f /etc/ld.so.conf; then | |
1927a18f | 10411 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
dabbade6 L |
10412 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10413 | fi | |
10414 | ||
10415 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10416 | # powerpc, because MkLinux only supported shared libraries with the | |
10417 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10418 | # most powerpc-linux boxes support dynamic linking these days and | |
10419 | # people can always --disable-shared, the test was removed, and we | |
10420 | # assume the GNU/Linux dynamic linker is in use. | |
10421 | dynamic_linker='GNU/Linux ld.so' | |
10422 | ;; | |
10423 | ||
10424 | netbsd*) | |
10425 | version_type=sunos | |
10426 | need_lib_prefix=no | |
10427 | need_version=no | |
10428 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10430 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10431 | dynamic_linker='NetBSD (a.out) ld.so' | |
10432 | else | |
10433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10434 | soname_spec='${libname}${release}${shared_ext}$major' | |
10435 | dynamic_linker='NetBSD ld.elf_so' | |
10436 | fi | |
10437 | shlibpath_var=LD_LIBRARY_PATH | |
10438 | shlibpath_overrides_runpath=yes | |
10439 | hardcode_into_libs=yes | |
10440 | ;; | |
10441 | ||
10442 | newsos6) | |
10443 | version_type=linux | |
10444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10445 | shlibpath_var=LD_LIBRARY_PATH | |
10446 | shlibpath_overrides_runpath=yes | |
10447 | ;; | |
10448 | ||
10449 | *nto* | *qnx*) | |
10450 | version_type=qnx | |
10451 | need_lib_prefix=no | |
10452 | need_version=no | |
10453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10454 | soname_spec='${libname}${release}${shared_ext}$major' | |
10455 | shlibpath_var=LD_LIBRARY_PATH | |
10456 | shlibpath_overrides_runpath=no | |
10457 | hardcode_into_libs=yes | |
10458 | dynamic_linker='ldqnx.so' | |
10459 | ;; | |
10460 | ||
10461 | openbsd*) | |
10462 | version_type=sunos | |
10463 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10464 | need_lib_prefix=no | |
10465 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10466 | case $host_os in | |
10467 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10468 | *) need_version=no ;; | |
10469 | esac | |
10470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10471 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10472 | shlibpath_var=LD_LIBRARY_PATH | |
10473 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10474 | case $host_os in | |
10475 | openbsd2.[89] | openbsd2.[89].*) | |
10476 | shlibpath_overrides_runpath=no | |
10477 | ;; | |
10478 | *) | |
10479 | shlibpath_overrides_runpath=yes | |
10480 | ;; | |
10481 | esac | |
10482 | else | |
10483 | shlibpath_overrides_runpath=yes | |
10484 | fi | |
10485 | ;; | |
10486 | ||
10487 | os2*) | |
10488 | libname_spec='$name' | |
10489 | shrext_cmds=".dll" | |
10490 | need_lib_prefix=no | |
10491 | library_names_spec='$libname${shared_ext} $libname.a' | |
10492 | dynamic_linker='OS/2 ld.exe' | |
10493 | shlibpath_var=LIBPATH | |
10494 | ;; | |
10495 | ||
10496 | osf3* | osf4* | osf5*) | |
10497 | version_type=osf | |
10498 | need_lib_prefix=no | |
10499 | need_version=no | |
10500 | soname_spec='${libname}${release}${shared_ext}$major' | |
10501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10502 | shlibpath_var=LD_LIBRARY_PATH | |
10503 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10504 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10505 | ;; | |
10506 | ||
10507 | rdos*) | |
10508 | dynamic_linker=no | |
10509 | ;; | |
10510 | ||
10511 | solaris*) | |
10512 | version_type=linux | |
10513 | need_lib_prefix=no | |
10514 | need_version=no | |
10515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10516 | soname_spec='${libname}${release}${shared_ext}$major' | |
10517 | shlibpath_var=LD_LIBRARY_PATH | |
10518 | shlibpath_overrides_runpath=yes | |
10519 | hardcode_into_libs=yes | |
10520 | # ldd complains unless libraries are executable | |
10521 | postinstall_cmds='chmod +x $lib' | |
10522 | ;; | |
10523 | ||
10524 | sunos4*) | |
10525 | version_type=sunos | |
10526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10527 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10528 | shlibpath_var=LD_LIBRARY_PATH | |
10529 | shlibpath_overrides_runpath=yes | |
10530 | if test "$with_gnu_ld" = yes; then | |
10531 | need_lib_prefix=no | |
10532 | fi | |
10533 | need_version=yes | |
10534 | ;; | |
10535 | ||
10536 | sysv4 | sysv4.3*) | |
10537 | version_type=linux | |
10538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10539 | soname_spec='${libname}${release}${shared_ext}$major' | |
10540 | shlibpath_var=LD_LIBRARY_PATH | |
10541 | case $host_vendor in | |
10542 | sni) | |
10543 | shlibpath_overrides_runpath=no | |
10544 | need_lib_prefix=no | |
10545 | runpath_var=LD_RUN_PATH | |
10546 | ;; | |
10547 | siemens) | |
10548 | need_lib_prefix=no | |
10549 | ;; | |
10550 | motorola) | |
10551 | need_lib_prefix=no | |
10552 | need_version=no | |
10553 | shlibpath_overrides_runpath=no | |
10554 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10555 | ;; | |
10556 | esac | |
10557 | ;; | |
10558 | ||
10559 | sysv4*MP*) | |
10560 | if test -d /usr/nec ;then | |
10561 | version_type=linux | |
10562 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10563 | soname_spec='$libname${shared_ext}.$major' | |
10564 | shlibpath_var=LD_LIBRARY_PATH | |
10565 | fi | |
10566 | ;; | |
10567 | ||
10568 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10569 | version_type=freebsd-elf | |
10570 | need_lib_prefix=no | |
10571 | need_version=no | |
10572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10573 | soname_spec='${libname}${release}${shared_ext}$major' | |
10574 | shlibpath_var=LD_LIBRARY_PATH | |
10575 | shlibpath_overrides_runpath=yes | |
10576 | hardcode_into_libs=yes | |
10577 | if test "$with_gnu_ld" = yes; then | |
10578 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10579 | else | |
10580 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10581 | case $host_os in | |
10582 | sco3.2v5*) | |
10583 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10584 | ;; | |
10585 | esac | |
10586 | fi | |
10587 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10588 | ;; | |
10589 | ||
10590 | tpf*) | |
10591 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10592 | version_type=linux | |
10593 | need_lib_prefix=no | |
10594 | need_version=no | |
1927a18f | 10595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
dabbade6 L |
10596 | shlibpath_var=LD_LIBRARY_PATH |
10597 | shlibpath_overrides_runpath=no | |
10598 | hardcode_into_libs=yes | |
10599 | ;; | |
10600 | ||
10601 | uts4*) | |
10602 | version_type=linux | |
10603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10604 | soname_spec='${libname}${release}${shared_ext}$major' | |
10605 | shlibpath_var=LD_LIBRARY_PATH | |
10606 | ;; | |
d7040cdb | 10607 | |
dabbade6 L |
10608 | *) |
10609 | dynamic_linker=no | |
10610 | ;; | |
10611 | esac | |
81ecdfbb RW |
10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10613 | $as_echo "$dynamic_linker" >&6; } | |
dabbade6 | 10614 | test "$dynamic_linker" = no && can_build_shared=no |
d7040cdb | 10615 | |
dabbade6 L |
10616 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10617 | if test "$GCC" = yes; then | |
10618 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb | 10619 | fi |
d7040cdb | 10620 | |
1927a18f L |
10621 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10622 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10623 | fi | |
10624 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10625 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10626 | fi | |
10627 | ||
d7040cdb | 10628 | |
d7040cdb SE |
10629 | |
10630 | ||
d7040cdb SE |
10631 | |
10632 | ||
d7040cdb SE |
10633 | |
10634 | ||
d7040cdb SE |
10635 | |
10636 | ||
d7040cdb SE |
10637 | |
10638 | ||
d7040cdb | 10639 | |
d7040cdb | 10640 | |
d7040cdb | 10641 | |
d7040cdb | 10642 | |
d7040cdb | 10643 | |
d7040cdb | 10644 | |
d7040cdb | 10645 | |
d7040cdb | 10646 | |
d7040cdb | 10647 | |
d7040cdb | 10648 | |
d7040cdb | 10649 | |
d7040cdb | 10650 | |
d7040cdb | 10651 | |
d7040cdb | 10652 | |
d7040cdb SE |
10653 | |
10654 | ||
d7040cdb | 10655 | |
d7040cdb | 10656 | |
d7040cdb | 10657 | |
d7040cdb | 10658 | |
d7040cdb | 10659 | |
d7040cdb | 10660 | |
d7040cdb | 10661 | |
d7040cdb | 10662 | |
d7040cdb | 10663 | |
d7040cdb SE |
10664 | |
10665 | ||
d7040cdb | 10666 | |
d7040cdb | 10667 | |
d7040cdb | 10668 | |
d7040cdb SE |
10669 | |
10670 | ||
10671 | ||
10672 | ||
10673 | ||
10674 | ||
10675 | ||
10676 | ||
10677 | ||
10678 | ||
10679 | ||
10680 | ||
10681 | ||
10682 | ||
10683 | ||
10684 | ||
10685 | ||
d7040cdb SE |
10686 | |
10687 | ||
10688 | ||
10689 | ||
10690 | ||
10691 | ||
10692 | ||
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
d7040cdb | 10698 | |
d7040cdb | 10699 | |
dabbade6 L |
10700 | |
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | ||
81ecdfbb RW |
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10715 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
dabbade6 L |
10716 | hardcode_action= |
10717 | if test -n "$hardcode_libdir_flag_spec" || | |
10718 | test -n "$runpath_var" || | |
10719 | test "X$hardcode_automatic" = "Xyes" ; then | |
10720 | ||
10721 | # We can hardcode non-existent directories. | |
10722 | if test "$hardcode_direct" != no && | |
10723 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10724 | # have to relink, otherwise we might link with an installed library | |
10725 | # when we should be linking with a yet-to-be-installed one | |
10726 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10727 | test "$hardcode_minus_L" != no; then | |
10728 | # Linking always hardcodes the temporary library directory. | |
10729 | hardcode_action=relink | |
10730 | else | |
10731 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10732 | hardcode_action=immediate | |
10733 | fi | |
10734 | else | |
10735 | # We cannot hardcode anything, or else we can only hardcode existing | |
10736 | # directories. | |
10737 | hardcode_action=unsupported | |
10738 | fi | |
81ecdfbb RW |
10739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10740 | $as_echo "$hardcode_action" >&6; } | |
dabbade6 L |
10741 | |
10742 | if test "$hardcode_action" = relink || | |
10743 | test "$inherit_rpath" = yes; then | |
10744 | # Fast installation is not supported | |
10745 | enable_fast_install=no | |
10746 | elif test "$shlibpath_overrides_runpath" = yes || | |
10747 | test "$enable_shared" = no; then | |
10748 | # Fast installation is not necessary | |
10749 | enable_fast_install=needless | |
10750 | fi | |
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | if test "x$enable_dlopen" != xyes; then | |
10758 | enable_dlopen=unknown | |
10759 | enable_dlopen_self=unknown | |
10760 | enable_dlopen_self_static=unknown | |
10761 | else | |
10762 | lt_cv_dlopen=no | |
10763 | lt_cv_dlopen_libs= | |
10764 | ||
d7040cdb | 10765 | case $host_os in |
dabbade6 L |
10766 | beos*) |
10767 | lt_cv_dlopen="load_add_on" | |
10768 | lt_cv_dlopen_libs= | |
10769 | lt_cv_dlopen_self=yes | |
d7040cdb SE |
10770 | ;; |
10771 | ||
1927a18f | 10772 | mingw* | pw32* | cegcc*) |
dabbade6 L |
10773 | lt_cv_dlopen="LoadLibrary" |
10774 | lt_cv_dlopen_libs= | |
d7040cdb | 10775 | ;; |
d7040cdb | 10776 | |
dabbade6 L |
10777 | cygwin*) |
10778 | lt_cv_dlopen="dlopen" | |
10779 | lt_cv_dlopen_libs= | |
10780 | ;; | |
d7040cdb | 10781 | |
dabbade6 L |
10782 | darwin*) |
10783 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10785 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10786 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10787 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
10788 | else |
10789 | ac_check_lib_save_LIBS=$LIBS | |
10790 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10792 | /* end confdefs.h. */ |
d7040cdb | 10793 | |
81ecdfbb RW |
10794 | /* Override any GCC internal prototype to avoid an error. |
10795 | Use char because int might match the return type of a GCC | |
10796 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10797 | #ifdef __cplusplus |
10798 | extern "C" | |
10799 | #endif | |
dabbade6 L |
10800 | char dlopen (); |
10801 | int | |
10802 | main () | |
10803 | { | |
81ecdfbb | 10804 | return dlopen (); |
dabbade6 L |
10805 | ; |
10806 | return 0; | |
10807 | } | |
10808 | _ACEOF | |
81ecdfbb | 10809 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10810 | ac_cv_lib_dl_dlopen=yes |
10811 | else | |
81ecdfbb | 10812 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10813 | fi |
81ecdfbb RW |
10814 | rm -f core conftest.err conftest.$ac_objext \ |
10815 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10816 | LIBS=$ac_check_lib_save_LIBS |
10817 | fi | |
81ecdfbb RW |
10818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10819 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10820 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
dabbade6 L |
10821 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10822 | else | |
d7040cdb | 10823 | |
dabbade6 L |
10824 | lt_cv_dlopen="dyld" |
10825 | lt_cv_dlopen_libs= | |
10826 | lt_cv_dlopen_self=yes | |
d7040cdb | 10827 | |
81ecdfbb | 10828 | fi |
d7040cdb | 10829 | |
81ecdfbb RW |
10830 | ;; |
10831 | ||
10832 | *) | |
10833 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10834 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
10835 | lt_cv_dlopen="shl_load" | |
10836 | else | |
10837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10838 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10839 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10840 | $as_echo_n "(cached) " >&6 | |
10841 | else | |
10842 | ac_check_lib_save_LIBS=$LIBS | |
10843 | LIBS="-ldld $LIBS" | |
10844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10845 | /* end confdefs.h. */ | |
10846 | ||
10847 | /* Override any GCC internal prototype to avoid an error. | |
10848 | Use char because int might match the return type of a GCC | |
dabbade6 | 10849 | builtin and then its argument prototype would still apply. */ |
dabbade6 | 10850 | #ifdef __cplusplus |
81ecdfbb | 10851 | extern "C" |
dabbade6 | 10852 | #endif |
81ecdfbb | 10853 | char shl_load (); |
dabbade6 L |
10854 | int |
10855 | main () | |
10856 | { | |
81ecdfbb | 10857 | return shl_load (); |
dabbade6 L |
10858 | ; |
10859 | return 0; | |
10860 | } | |
10861 | _ACEOF | |
81ecdfbb RW |
10862 | if ac_fn_c_try_link "$LINENO"; then : |
10863 | ac_cv_lib_dld_shl_load=yes | |
dabbade6 | 10864 | else |
81ecdfbb | 10865 | ac_cv_lib_dld_shl_load=no |
dabbade6 | 10866 | fi |
81ecdfbb RW |
10867 | rm -f core conftest.err conftest.$ac_objext \ |
10868 | conftest$ac_exeext conftest.$ac_ext | |
10869 | LIBS=$ac_check_lib_save_LIBS | |
dabbade6 | 10870 | fi |
81ecdfbb RW |
10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10872 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10873 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
10874 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10875 | else | |
10876 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10877 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
dabbade6 L |
10878 | lt_cv_dlopen="dlopen" |
10879 | else | |
81ecdfbb RW |
10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10881 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10882 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10883 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
10884 | else |
10885 | ac_check_lib_save_LIBS=$LIBS | |
10886 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10888 | /* end confdefs.h. */ |
d7040cdb | 10889 | |
81ecdfbb RW |
10890 | /* Override any GCC internal prototype to avoid an error. |
10891 | Use char because int might match the return type of a GCC | |
10892 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10893 | #ifdef __cplusplus |
10894 | extern "C" | |
10895 | #endif | |
dabbade6 L |
10896 | char dlopen (); |
10897 | int | |
10898 | main () | |
10899 | { | |
81ecdfbb | 10900 | return dlopen (); |
dabbade6 L |
10901 | ; |
10902 | return 0; | |
10903 | } | |
10904 | _ACEOF | |
81ecdfbb | 10905 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10906 | ac_cv_lib_dl_dlopen=yes |
10907 | else | |
81ecdfbb | 10908 | ac_cv_lib_dl_dlopen=no |
dabbade6 | 10909 | fi |
81ecdfbb RW |
10910 | rm -f core conftest.err conftest.$ac_objext \ |
10911 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10912 | LIBS=$ac_check_lib_save_LIBS |
10913 | fi | |
81ecdfbb RW |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10915 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10916 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
dabbade6 L |
10917 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10918 | else | |
81ecdfbb RW |
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10920 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10921 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10922 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
10923 | else |
10924 | ac_check_lib_save_LIBS=$LIBS | |
10925 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10927 | /* end confdefs.h. */ |
d7040cdb | 10928 | |
81ecdfbb RW |
10929 | /* Override any GCC internal prototype to avoid an error. |
10930 | Use char because int might match the return type of a GCC | |
10931 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10932 | #ifdef __cplusplus |
10933 | extern "C" | |
10934 | #endif | |
dabbade6 L |
10935 | char dlopen (); |
10936 | int | |
10937 | main () | |
10938 | { | |
81ecdfbb | 10939 | return dlopen (); |
dabbade6 L |
10940 | ; |
10941 | return 0; | |
10942 | } | |
10943 | _ACEOF | |
81ecdfbb | 10944 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10945 | ac_cv_lib_svld_dlopen=yes |
10946 | else | |
81ecdfbb | 10947 | ac_cv_lib_svld_dlopen=no |
dabbade6 | 10948 | fi |
81ecdfbb RW |
10949 | rm -f core conftest.err conftest.$ac_objext \ |
10950 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 L |
10951 | LIBS=$ac_check_lib_save_LIBS |
10952 | fi | |
81ecdfbb RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10954 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10955 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
dabbade6 L |
10956 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10957 | else | |
81ecdfbb RW |
10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10959 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10960 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
10961 | $as_echo_n "(cached) " >&6 | |
dabbade6 L |
10962 | else |
10963 | ac_check_lib_save_LIBS=$LIBS | |
10964 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dabbade6 | 10966 | /* end confdefs.h. */ |
d7040cdb | 10967 | |
81ecdfbb RW |
10968 | /* Override any GCC internal prototype to avoid an error. |
10969 | Use char because int might match the return type of a GCC | |
10970 | builtin and then its argument prototype would still apply. */ | |
dabbade6 L |
10971 | #ifdef __cplusplus |
10972 | extern "C" | |
10973 | #endif | |
dabbade6 L |
10974 | char dld_link (); |
10975 | int | |
10976 | main () | |
10977 | { | |
81ecdfbb | 10978 | return dld_link (); |
dabbade6 L |
10979 | ; |
10980 | return 0; | |
10981 | } | |
10982 | _ACEOF | |
81ecdfbb | 10983 | if ac_fn_c_try_link "$LINENO"; then : |
dabbade6 L |
10984 | ac_cv_lib_dld_dld_link=yes |
10985 | else | |
81ecdfbb | 10986 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10987 | fi |
81ecdfbb RW |
10988 | rm -f core conftest.err conftest.$ac_objext \ |
10989 | conftest$ac_exeext conftest.$ac_ext | |
dabbade6 | 10990 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 10991 | fi |
81ecdfbb RW |
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10993 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10994 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
1927a18f | 10995 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
10996 | fi |
10997 | ||
d7040cdb | 10998 | |
d7040cdb SE |
10999 | fi |
11000 | ||
11001 | ||
dabbade6 | 11002 | fi |
d7040cdb SE |
11003 | |
11004 | ||
dabbade6 | 11005 | fi |
d7040cdb SE |
11006 | |
11007 | ||
d7040cdb SE |
11008 | fi |
11009 | ||
979273e3 | 11010 | |
252b5132 | 11011 | fi |
252b5132 | 11012 | |
dabbade6 L |
11013 | ;; |
11014 | esac | |
252b5132 | 11015 | |
dabbade6 L |
11016 | if test "x$lt_cv_dlopen" != xno; then |
11017 | enable_dlopen=yes | |
11018 | else | |
11019 | enable_dlopen=no | |
11020 | fi | |
1c0d3aa6 | 11021 | |
dabbade6 L |
11022 | case $lt_cv_dlopen in |
11023 | dlopen) | |
11024 | save_CPPFLAGS="$CPPFLAGS" | |
11025 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
20e95c23 | 11026 | |
dabbade6 L |
11027 | save_LDFLAGS="$LDFLAGS" |
11028 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
20e95c23 | 11029 | |
dabbade6 L |
11030 | save_LIBS="$LIBS" |
11031 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
20e95c23 | 11032 | |
81ecdfbb RW |
11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11034 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11035 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11036 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11037 | else |
dabbade6 L |
11038 | if test "$cross_compiling" = yes; then : |
11039 | lt_cv_dlopen_self=cross | |
d7040cdb | 11040 | else |
dabbade6 L |
11041 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11042 | lt_status=$lt_dlunknown | |
11043 | cat > conftest.$ac_ext <<_LT_EOF | |
2eee5593 | 11044 | #line 11044 "configure" |
dabbade6 | 11045 | #include "confdefs.h" |
20e95c23 | 11046 | |
dabbade6 L |
11047 | #if HAVE_DLFCN_H |
11048 | #include <dlfcn.h> | |
11049 | #endif | |
20e95c23 | 11050 | |
dabbade6 | 11051 | #include <stdio.h> |
20e95c23 | 11052 | |
dabbade6 L |
11053 | #ifdef RTLD_GLOBAL |
11054 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11055 | #else | |
11056 | # ifdef DL_GLOBAL | |
11057 | # define LT_DLGLOBAL DL_GLOBAL | |
11058 | # else | |
11059 | # define LT_DLGLOBAL 0 | |
11060 | # endif | |
11061 | #endif | |
20e95c23 | 11062 | |
dabbade6 L |
11063 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11064 | find out it does not work in some platform. */ | |
11065 | #ifndef LT_DLLAZY_OR_NOW | |
11066 | # ifdef RTLD_LAZY | |
11067 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11068 | # else | |
11069 | # ifdef DL_LAZY | |
11070 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11071 | # else | |
11072 | # ifdef RTLD_NOW | |
11073 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11074 | # else | |
11075 | # ifdef DL_NOW | |
11076 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11077 | # else | |
11078 | # define LT_DLLAZY_OR_NOW 0 | |
11079 | # endif | |
11080 | # endif | |
11081 | # endif | |
11082 | # endif | |
11083 | #endif | |
20e95c23 | 11084 | |
dabbade6 L |
11085 | void fnord() { int i=42;} |
11086 | int main () | |
11087 | { | |
11088 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11089 | int status = $lt_dlunknown; | |
20e95c23 | 11090 | |
dabbade6 L |
11091 | if (self) |
11092 | { | |
11093 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11094 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11095 | /* dlclose (self); */ | |
11096 | } | |
11097 | else | |
11098 | puts (dlerror ()); | |
d7040cdb | 11099 | |
1927a18f | 11100 | return status; |
dabbade6 L |
11101 | } |
11102 | _LT_EOF | |
81ecdfbb | 11103 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
11104 | (eval $ac_link) 2>&5 |
11105 | ac_status=$? | |
81ecdfbb RW |
11106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11107 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
dabbade6 L |
11108 | (./conftest; exit; ) >&5 2>/dev/null |
11109 | lt_status=$? | |
11110 | case x$lt_status in | |
11111 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11112 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11113 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11114 | esac | |
11115 | else : | |
11116 | # compilation failed | |
11117 | lt_cv_dlopen_self=no | |
11118 | fi | |
d7040cdb | 11119 | fi |
dabbade6 L |
11120 | rm -fr conftest* |
11121 | ||
252b5132 | 11122 | |
d7040cdb | 11123 | fi |
81ecdfbb RW |
11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11125 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d7040cdb | 11126 | |
dabbade6 L |
11127 | if test "x$lt_cv_dlopen_self" = xyes; then |
11128 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11130 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11131 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11132 | $as_echo_n "(cached) " >&6 | |
252b5132 | 11133 | else |
dabbade6 L |
11134 | if test "$cross_compiling" = yes; then : |
11135 | lt_cv_dlopen_self_static=cross | |
d7040cdb | 11136 | else |
dabbade6 L |
11137 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11138 | lt_status=$lt_dlunknown | |
11139 | cat > conftest.$ac_ext <<_LT_EOF | |
2eee5593 | 11140 | #line 11140 "configure" |
dabbade6 | 11141 | #include "confdefs.h" |
252b5132 | 11142 | |
dabbade6 L |
11143 | #if HAVE_DLFCN_H |
11144 | #include <dlfcn.h> | |
11145 | #endif | |
252b5132 | 11146 | |
dabbade6 | 11147 | #include <stdio.h> |
d7040cdb | 11148 | |
dabbade6 L |
11149 | #ifdef RTLD_GLOBAL |
11150 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11151 | #else | |
11152 | # ifdef DL_GLOBAL | |
11153 | # define LT_DLGLOBAL DL_GLOBAL | |
11154 | # else | |
11155 | # define LT_DLGLOBAL 0 | |
11156 | # endif | |
11157 | #endif | |
20e95c23 | 11158 | |
dabbade6 L |
11159 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11160 | find out it does not work in some platform. */ | |
11161 | #ifndef LT_DLLAZY_OR_NOW | |
11162 | # ifdef RTLD_LAZY | |
11163 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11164 | # else | |
11165 | # ifdef DL_LAZY | |
11166 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11167 | # else | |
11168 | # ifdef RTLD_NOW | |
11169 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11170 | # else | |
11171 | # ifdef DL_NOW | |
11172 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11173 | # else | |
11174 | # define LT_DLLAZY_OR_NOW 0 | |
11175 | # endif | |
11176 | # endif | |
11177 | # endif | |
11178 | # endif | |
11179 | #endif | |
979273e3 | 11180 | |
dabbade6 L |
11181 | void fnord() { int i=42;} |
11182 | int main () | |
11183 | { | |
11184 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11185 | int status = $lt_dlunknown; | |
d7040cdb | 11186 | |
dabbade6 L |
11187 | if (self) |
11188 | { | |
11189 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11190 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11191 | /* dlclose (self); */ | |
11192 | } | |
11193 | else | |
11194 | puts (dlerror ()); | |
d7040cdb | 11195 | |
1927a18f | 11196 | return status; |
dabbade6 L |
11197 | } |
11198 | _LT_EOF | |
81ecdfbb | 11199 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
dabbade6 L |
11200 | (eval $ac_link) 2>&5 |
11201 | ac_status=$? | |
81ecdfbb RW |
11202 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11203 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
dabbade6 L |
11204 | (./conftest; exit; ) >&5 2>/dev/null |
11205 | lt_status=$? | |
11206 | case x$lt_status in | |
11207 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11208 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11209 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11210 | esac | |
11211 | else : | |
11212 | # compilation failed | |
11213 | lt_cv_dlopen_self_static=no | |
11214 | fi | |
20e95c23 | 11215 | fi |
dabbade6 | 11216 | rm -fr conftest* |
979273e3 | 11217 | |
d7040cdb SE |
11218 | |
11219 | fi | |
81ecdfbb RW |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11221 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
dabbade6 L |
11222 | fi |
11223 | ||
11224 | CPPFLAGS="$save_CPPFLAGS" | |
11225 | LDFLAGS="$save_LDFLAGS" | |
11226 | LIBS="$save_LIBS" | |
11227 | ;; | |
11228 | esac | |
11229 | ||
11230 | case $lt_cv_dlopen_self in | |
11231 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11232 | *) enable_dlopen_self=unknown ;; | |
11233 | esac | |
11234 | ||
11235 | case $lt_cv_dlopen_self_static in | |
11236 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11237 | *) enable_dlopen_self_static=unknown ;; | |
11238 | esac | |
d7040cdb | 11239 | fi |
dabbade6 L |
11240 | |
11241 | ||
11242 | ||
11243 | ||
11244 | ||
11245 | ||
11246 | ||
11247 | ||
11248 | ||
11249 | ||
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | striplib= | |
11258 | old_striplib= | |
81ecdfbb RW |
11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11260 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
dabbade6 L |
11261 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11262 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11263 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11265 | $as_echo "yes" >&6; } | |
d7040cdb | 11266 | else |
dabbade6 L |
11267 | # FIXME - insert some real tests, host_os isn't really good enough |
11268 | case $host_os in | |
11269 | darwin*) | |
11270 | if test -n "$STRIP" ; then | |
11271 | striplib="$STRIP -x" | |
11272 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11274 | $as_echo "yes" >&6; } | |
dabbade6 | 11275 | else |
81ecdfbb RW |
11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11277 | $as_echo "no" >&6; } | |
dabbade6 L |
11278 | fi |
11279 | ;; | |
11280 | *) | |
81ecdfbb RW |
11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11282 | $as_echo "no" >&6; } | |
dabbade6 L |
11283 | ;; |
11284 | esac | |
d7040cdb | 11285 | fi |
20e95c23 | 11286 | |
979273e3 | 11287 | |
dabbade6 L |
11288 | |
11289 | ||
11290 | ||
11291 | ||
11292 | ||
11293 | ||
11294 | ||
11295 | ||
11296 | ||
11297 | ||
11298 | # Report which library types will actually be built | |
81ecdfbb RW |
11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11300 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11302 | $as_echo "$can_build_shared" >&6; } | |
dabbade6 | 11303 | |
81ecdfbb RW |
11304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11305 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
dabbade6 L |
11306 | test "$can_build_shared" = "no" && enable_shared=no |
11307 | ||
11308 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11309 | # are all built from PIC. | |
11310 | case $host_os in | |
11311 | aix3*) | |
11312 | test "$enable_shared" = yes && enable_static=no | |
11313 | if test -n "$RANLIB"; then | |
11314 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11315 | postinstall_cmds='$RANLIB $lib' | |
11316 | fi | |
11317 | ;; | |
11318 | ||
50e7d84b | 11319 | aix[4-9]*) |
dabbade6 L |
11320 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11321 | test "$enable_shared" = yes && enable_static=no | |
11322 | fi | |
11323 | ;; | |
11324 | esac | |
81ecdfbb RW |
11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11326 | $as_echo "$enable_shared" >&6; } | |
dabbade6 | 11327 | |
81ecdfbb RW |
11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11329 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
dabbade6 L |
11330 | # Make sure either enable_shared or enable_static is yes. |
11331 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11333 | $as_echo "$enable_static" >&6; } | |
dabbade6 L |
11334 | |
11335 | ||
11336 | ||
d7040cdb | 11337 | |
252b5132 | 11338 | fi |
dabbade6 L |
11339 | ac_ext=c |
11340 | ac_cpp='$CPP $CPPFLAGS' | |
11341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 11344 | |
dabbade6 | 11345 | CC="$lt_save_CC" |
20e95c23 | 11346 | |
20e95c23 | 11347 | |
d7040cdb | 11348 | |
d7040cdb | 11349 | |
d7040cdb | 11350 | |
20e95c23 | 11351 | |
dabbade6 L |
11352 | |
11353 | ||
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
81ecdfbb | 11359 | ac_config_commands="$ac_config_commands libtool" |
dabbade6 L |
11360 | |
11361 | ||
11362 | ||
11363 | ||
11364 | # Only expand once: | |
11365 | ||
11366 | ||
11367 | ||
81ecdfbb RW |
11368 | # Check whether --enable-targets was given. |
11369 | if test "${enable_targets+set}" = set; then : | |
11370 | enableval=$enable_targets; case "${enableval}" in | |
11371 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
dabbade6 L |
11372 | ;; |
11373 | no) enable_targets= ;; | |
11374 | *) enable_targets=$enableval ;; | |
11375 | esac | |
81ecdfbb RW |
11376 | fi |
11377 | ||
dabbade6 L |
11378 | |
11379 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
11380 | ||
81ecdfbb RW |
11381 | # Check whether --enable-werror was given. |
11382 | if test "${enable_werror+set}" = set; then : | |
11383 | enableval=$enable_werror; case "${enableval}" in | |
dabbade6 L |
11384 | yes | y) ERROR_ON_WARNING="yes" ;; |
11385 | no | n) ERROR_ON_WARNING="no" ;; | |
81ecdfbb | 11386 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
dabbade6 | 11387 | esac |
81ecdfbb RW |
11388 | fi |
11389 | ||
dabbade6 | 11390 | |
bb8541b9 L |
11391 | # Enable -Wno-format by default when using gcc on mingw |
11392 | case "${host}" in | |
11393 | *-*-mingw32*) | |
11394 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11395 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11396 | fi | |
11397 | ;; | |
11398 | *) ;; | |
11399 | esac | |
11400 | ||
dabbade6 L |
11401 | # Enable -Werror by default when using gcc |
11402 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11403 | ERROR_ON_WARNING=yes | |
d7040cdb | 11404 | fi |
20e95c23 | 11405 | |
dabbade6 L |
11406 | NO_WERROR= |
11407 | if test "${ERROR_ON_WARNING}" = yes ; then | |
11408 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
11409 | NO_WERROR="-Wno-error" | |
20e95c23 | 11410 | fi |
d7040cdb | 11411 | |
dabbade6 L |
11412 | if test "${GCC}" = yes ; then |
11413 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11414 | fi | |
d7040cdb | 11415 | |
81ecdfbb RW |
11416 | # Check whether --enable-build-warnings was given. |
11417 | if test "${enable_build_warnings+set}" = set; then : | |
11418 | enableval=$enable_build_warnings; case "${enableval}" in | |
dabbade6 L |
11419 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
11420 | no) if test "${GCC}" = yes ; then | |
11421 | WARN_CFLAGS="-w" | |
11422 | fi;; | |
11423 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11424 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
11425 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11426 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
11427 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11428 | esac | |
81ecdfbb RW |
11429 | fi |
11430 | ||
979273e3 | 11431 | |
dabbade6 L |
11432 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
11433 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
d7040cdb | 11434 | fi |
dabbade6 L |
11435 | |
11436 | ||
11437 | ||
11438 | ||
11439 | ||
81ecdfbb | 11440 | ac_config_headers="$ac_config_headers config.h:config.in" |
dabbade6 L |
11441 | |
11442 | ||
11443 | if test -z "$target" ; then | |
81ecdfbb | 11444 | as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
d7040cdb | 11445 | fi |
dabbade6 | 11446 | |
81ecdfbb RW |
11447 | |
11448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11449 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11450 | # Check whether --enable-maintainer-mode was given. | |
11451 | if test "${enable_maintainer_mode+set}" = set; then : | |
11452 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
d7040cdb | 11453 | else |
dabbade6 | 11454 | USE_MAINTAINER_MODE=no |
81ecdfbb | 11455 | fi |
d7040cdb | 11456 | |
81ecdfbb RW |
11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
11458 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11459 | if test $USE_MAINTAINER_MODE = yes; then | |
dabbade6 L |
11460 | MAINTAINER_MODE_TRUE= |
11461 | MAINTAINER_MODE_FALSE='#' | |
252b5132 | 11462 | else |
dabbade6 L |
11463 | MAINTAINER_MODE_TRUE='#' |
11464 | MAINTAINER_MODE_FALSE= | |
252b5132 | 11465 | fi |
d7040cdb | 11466 | |
dabbade6 L |
11467 | MAINT=$MAINTAINER_MODE_TRUE |
11468 | ||
11469 | ||
11470 | case ${build_alias} in | |
11471 | "") build_noncanonical=${build} ;; | |
11472 | *) build_noncanonical=${build_alias} ;; | |
11473 | esac | |
11474 | ||
11475 | case ${host_alias} in | |
11476 | "") host_noncanonical=${build_noncanonical} ;; | |
11477 | *) host_noncanonical=${host_alias} ;; | |
11478 | esac | |
979273e3 | 11479 | |
dabbade6 L |
11480 | case ${target_alias} in |
11481 | "") target_noncanonical=${host_noncanonical} ;; | |
11482 | *) target_noncanonical=${target_alias} ;; | |
d7040cdb | 11483 | esac |
252b5132 | 11484 | |
81ecdfbb RW |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 |
11486 | $as_echo_n "checking whether to install libbfd... " >&6; } | |
11487 | # Check whether --enable-install-libbfd was given. | |
11488 | if test "${enable_install_libbfd+set}" = set; then : | |
11489 | enableval=$enable_install_libbfd; install_libbfd_p=$enableval | |
979273e3 | 11490 | else |
dabbade6 L |
11491 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
11492 | install_libbfd_p=yes | |
11493 | else | |
11494 | install_libbfd_p=no | |
11495 | fi | |
81ecdfbb | 11496 | fi |
d7040cdb | 11497 | |
81ecdfbb RW |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 |
11499 | $as_echo "$install_libbfd_p" >&6; } | |
11500 | if test $install_libbfd_p = yes; then | |
dabbade6 L |
11501 | INSTALL_LIBBFD_TRUE= |
11502 | INSTALL_LIBBFD_FALSE='#' | |
11503 | else | |
11504 | INSTALL_LIBBFD_TRUE='#' | |
11505 | INSTALL_LIBBFD_FALSE= | |
d7040cdb SE |
11506 | fi |
11507 | ||
dabbade6 | 11508 | # Need _noncanonical variables for this. |
979273e3 | 11509 | |
d7040cdb SE |
11510 | |
11511 | ||
dabbade6 L |
11512 | |
11513 | # libbfd.a is a host library containing target dependent code | |
11514 | bfdlibdir='$(libdir)' | |
11515 | bfdincludedir='$(includedir)' | |
11516 | if test "${host}" != "${target}"; then | |
11517 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' | |
11518 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
11519 | fi | |
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
573e8a1c RW |
11526 | |
11527 | ||
dabbade6 L |
11528 | # host-specific stuff: |
11529 | ||
d7040cdb SE |
11530 | ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN" |
11531 | # If we haven't got the data from the intl directory, | |
11532 | # assume NLS is disabled. | |
11533 | USE_NLS=no | |
11534 | LIBINTL= | |
11535 | LIBINTL_DEP= | |
11536 | INCINTL= | |
11537 | XGETTEXT= | |
11538 | GMSGFMT= | |
11539 | POSUB= | |
11540 | ||
11541 | if test -f ../intl/config.intl; then | |
11542 | . ../intl/config.intl | |
11543 | fi | |
81ecdfbb RW |
11544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11545 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 11546 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11548 | $as_echo "no" >&6; } | |
d7040cdb | 11549 | else |
81ecdfbb RW |
11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11551 | $as_echo "yes" >&6; } | |
d7040cdb | 11552 | |
81ecdfbb | 11553 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
11554 | |
11555 | ||
81ecdfbb RW |
11556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
11557 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
11558 | # Look for .po and .gmo files in the source directory. |
11559 | CATALOGS= | |
11560 | XLINGUAS= | |
11561 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
11562 | # If there aren't any .gmo files the shell will give us the | |
11563 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
11564 | # weeded out. | |
11565 | case "$cat" in *\**) | |
11566 | continue;; | |
11567 | esac | |
11568 | # The quadruple backslash is collapsed to a double backslash | |
11569 | # by the backticks, then collapsed again by the double quotes, | |
11570 | # leaving us with one backslash in the sed expression (right | |
11571 | # before the dot that mustn't act as a wildcard). | |
11572 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
11573 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
11574 | # The user is allowed to set LINGUAS to a list of languages to | |
11575 | # install catalogs for. If it's empty that means "all of them." | |
11576 | if test "x$LINGUAS" = x; then | |
11577 | CATALOGS="$CATALOGS $cat" | |
11578 | XLINGUAS="$XLINGUAS $lang" | |
11579 | else | |
11580 | case "$LINGUAS" in *$lang*) | |
11581 | CATALOGS="$CATALOGS $cat" | |
11582 | XLINGUAS="$XLINGUAS $lang" | |
11583 | ;; | |
11584 | esac | |
11585 | fi | |
11586 | done | |
11587 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
11589 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
11590 | |
11591 | ||
11592 | DATADIRNAME=share | |
11593 | ||
11594 | INSTOBJEXT=.mo | |
11595 | ||
11596 | GENCAT=gencat | |
11597 | ||
11598 | CATOBJEXT=.gmo | |
11599 | ||
11600 | fi | |
11601 | ||
11602 | MKINSTALLDIRS= | |
11603 | if test -n "$ac_aux_dir"; then | |
11604 | case "$ac_aux_dir" in | |
11605 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
11606 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
11607 | esac | |
11608 | fi | |
11609 | if test -z "$MKINSTALLDIRS"; then | |
11610 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
11611 | fi | |
11612 | ||
11613 | ||
11614 | ||
81ecdfbb RW |
11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11616 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
11617 | # Check whether --enable-nls was given. | |
11618 | if test "${enable_nls+set}" = set; then : | |
11619 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
11620 | else |
11621 | USE_NLS=yes | |
81ecdfbb RW |
11622 | fi |
11623 | ||
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11625 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
11626 | |
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | # Prepare PATH_SEPARATOR. | |
11633 | # The user is always right. | |
11634 | if test "${PATH_SEPARATOR+set}" != set; then | |
11635 | echo "#! /bin/sh" >conf$$.sh | |
11636 | echo "exit 0" >>conf$$.sh | |
11637 | chmod +x conf$$.sh | |
11638 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11639 | PATH_SEPARATOR=';' | |
11640 | else | |
11641 | PATH_SEPARATOR=: | |
11642 | fi | |
11643 | rm -f conf$$.sh | |
11644 | fi | |
979273e3 | 11645 | |
d7040cdb SE |
11646 | # Find out how to test for executable files. Don't use a zero-byte file, |
11647 | # as systems may use methods other than mode bits to determine executability. | |
11648 | cat >conf$$.file <<_ASEOF | |
11649 | #! /bin/sh | |
11650 | exit 0 | |
11651 | _ASEOF | |
11652 | chmod +x conf$$.file | |
11653 | if test -x conf$$.file >/dev/null 2>&1; then | |
11654 | ac_executable_p="test -x" | |
252b5132 | 11655 | else |
d7040cdb | 11656 | ac_executable_p="test -f" |
252b5132 | 11657 | fi |
d7040cdb | 11658 | rm -f conf$$.file |
252b5132 | 11659 | |
d7040cdb SE |
11660 | # Extract the first word of "msgfmt", so it can be a program name with args. |
11661 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11663 | $as_echo_n "checking for $ac_word... " >&6; } | |
11664 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
11665 | $as_echo_n "(cached) " >&6 | |
252b5132 | 11666 | else |
d7040cdb SE |
11667 | case "$MSGFMT" in |
11668 | [\\/]* | ?:[\\/]*) | |
11669 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
11670 | ;; | |
11671 | *) | |
11672 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11673 | for ac_dir in $PATH; do | |
11674 | IFS="$ac_save_IFS" | |
11675 | test -z "$ac_dir" && ac_dir=. | |
11676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11677 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11678 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
11679 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11680 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
11681 | break 2 | |
11682 | fi | |
11683 | fi | |
11684 | done | |
11685 | done | |
11686 | IFS="$ac_save_IFS" | |
11687 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
11688 | ;; | |
11689 | esac | |
11690 | fi | |
11691 | MSGFMT="$ac_cv_path_MSGFMT" | |
11692 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
11694 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 11695 | else |
81ecdfbb RW |
11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11697 | $as_echo "no" >&6; } | |
252b5132 RH |
11698 | fi |
11699 | ||
d7040cdb SE |
11700 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
11701 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11703 | $as_echo_n "checking for $ac_word... " >&6; } | |
11704 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
11705 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 11706 | else |
d7040cdb SE |
11707 | case $GMSGFMT in |
11708 | [\\/]* | ?:[\\/]*) | |
11709 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
11710 | ;; | |
11711 | *) | |
11712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11713 | for as_dir in $PATH | |
11714 | do | |
11715 | IFS=$as_save_IFS | |
11716 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11717 | for ac_exec_ext in '' $ac_executable_extensions; do |
11718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 11719 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
11721 | break 2 |
11722 | fi | |
11723 | done | |
81ecdfbb RW |
11724 | done |
11725 | IFS=$as_save_IFS | |
252b5132 | 11726 | |
d7040cdb SE |
11727 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
11728 | ;; | |
11729 | esac | |
11730 | fi | |
11731 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 11732 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
11734 | $as_echo "$GMSGFMT" >&6; } | |
252b5132 | 11735 | else |
81ecdfbb RW |
11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11737 | $as_echo "no" >&6; } | |
252b5132 RH |
11738 | fi |
11739 | ||
11740 | ||
20e95c23 | 11741 | |
81ecdfbb | 11742 | |
d7040cdb SE |
11743 | # Prepare PATH_SEPARATOR. |
11744 | # The user is always right. | |
11745 | if test "${PATH_SEPARATOR+set}" != set; then | |
11746 | echo "#! /bin/sh" >conf$$.sh | |
11747 | echo "exit 0" >>conf$$.sh | |
11748 | chmod +x conf$$.sh | |
11749 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11750 | PATH_SEPARATOR=';' | |
11751 | else | |
11752 | PATH_SEPARATOR=: | |
11753 | fi | |
11754 | rm -f conf$$.sh | |
252b5132 RH |
11755 | fi |
11756 | ||
d7040cdb SE |
11757 | # Find out how to test for executable files. Don't use a zero-byte file, |
11758 | # as systems may use methods other than mode bits to determine executability. | |
11759 | cat >conf$$.file <<_ASEOF | |
11760 | #! /bin/sh | |
11761 | exit 0 | |
11762 | _ASEOF | |
11763 | chmod +x conf$$.file | |
11764 | if test -x conf$$.file >/dev/null 2>&1; then | |
11765 | ac_executable_p="test -x" | |
11766 | else | |
11767 | ac_executable_p="test -f" | |
11768 | fi | |
11769 | rm -f conf$$.file | |
20e95c23 | 11770 | |
d7040cdb SE |
11771 | # Extract the first word of "xgettext", so it can be a program name with args. |
11772 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11774 | $as_echo_n "checking for $ac_word... " >&6; } | |
11775 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
11776 | $as_echo_n "(cached) " >&6 | |
252b5132 | 11777 | else |
d7040cdb SE |
11778 | case "$XGETTEXT" in |
11779 | [\\/]* | ?:[\\/]*) | |
11780 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
11781 | ;; | |
11782 | *) | |
11783 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11784 | for ac_dir in $PATH; do | |
11785 | IFS="$ac_save_IFS" | |
11786 | test -z "$ac_dir" && ac_dir=. | |
11787 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11788 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11789 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11790 | (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 | |
11791 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
11792 | break 2 | |
11793 | fi | |
11794 | fi | |
11795 | done | |
11796 | done | |
11797 | IFS="$ac_save_IFS" | |
11798 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
11799 | ;; | |
11800 | esac | |
20e95c23 | 11801 | fi |
d7040cdb SE |
11802 | XGETTEXT="$ac_cv_path_XGETTEXT" |
11803 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
11805 | $as_echo "$XGETTEXT" >&6; } | |
d7040cdb | 11806 | else |
81ecdfbb RW |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11808 | $as_echo "no" >&6; } | |
d7040cdb SE |
11809 | fi |
11810 | ||
11811 | rm -f messages.po | |
11812 | ||
979273e3 | 11813 | |
d7040cdb SE |
11814 | # Prepare PATH_SEPARATOR. |
11815 | # The user is always right. | |
11816 | if test "${PATH_SEPARATOR+set}" != set; then | |
11817 | echo "#! /bin/sh" >conf$$.sh | |
11818 | echo "exit 0" >>conf$$.sh | |
11819 | chmod +x conf$$.sh | |
11820 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11821 | PATH_SEPARATOR=';' | |
11822 | else | |
11823 | PATH_SEPARATOR=: | |
11824 | fi | |
11825 | rm -f conf$$.sh | |
252b5132 | 11826 | fi |
979273e3 | 11827 | |
d7040cdb SE |
11828 | # Find out how to test for executable files. Don't use a zero-byte file, |
11829 | # as systems may use methods other than mode bits to determine executability. | |
11830 | cat >conf$$.file <<_ASEOF | |
11831 | #! /bin/sh | |
11832 | exit 0 | |
11833 | _ASEOF | |
11834 | chmod +x conf$$.file | |
11835 | if test -x conf$$.file >/dev/null 2>&1; then | |
11836 | ac_executable_p="test -x" | |
252b5132 | 11837 | else |
d7040cdb SE |
11838 | ac_executable_p="test -f" |
11839 | fi | |
11840 | rm -f conf$$.file | |
252b5132 | 11841 | |
d7040cdb SE |
11842 | # Extract the first word of "msgmerge", so it can be a program name with args. |
11843 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11845 | $as_echo_n "checking for $ac_word... " >&6; } | |
11846 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
11847 | $as_echo_n "(cached) " >&6 | |
252b5132 | 11848 | else |
d7040cdb SE |
11849 | case "$MSGMERGE" in |
11850 | [\\/]* | ?:[\\/]*) | |
11851 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
11852 | ;; | |
11853 | *) | |
11854 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11855 | for ac_dir in $PATH; do | |
11856 | IFS="$ac_save_IFS" | |
11857 | test -z "$ac_dir" && ac_dir=. | |
11858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11859 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11860 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
11861 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
11862 | break 2 | |
11863 | fi | |
11864 | fi | |
11865 | done | |
11866 | done | |
11867 | IFS="$ac_save_IFS" | |
11868 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
11869 | ;; | |
11870 | esac | |
20e95c23 | 11871 | fi |
d7040cdb SE |
11872 | MSGMERGE="$ac_cv_path_MSGMERGE" |
11873 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
11875 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 11876 | else |
81ecdfbb RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11878 | $as_echo "no" >&6; } | |
20e95c23 | 11879 | fi |
252b5132 | 11880 | |
979273e3 | 11881 | |
d7040cdb SE |
11882 | if test "$GMSGFMT" != ":"; then |
11883 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
11884 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11885 | : ; | |
11886 | else | |
11887 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
11889 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
11890 | GMSGFMT=":" |
11891 | fi | |
11892 | fi | |
979273e3 | 11893 | |
d7040cdb SE |
11894 | if test "$XGETTEXT" != ":"; then |
11895 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11896 | (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 | |
11897 | : ; | |
11898 | else | |
81ecdfbb RW |
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
11900 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
11901 | XGETTEXT=":" |
11902 | fi | |
11903 | rm -f messages.po | |
11904 | fi | |
979273e3 | 11905 | |
81ecdfbb | 11906 | ac_config_commands="$ac_config_commands default-1" |
979273e3 | 11907 | |
979273e3 | 11908 | |
979273e3 | 11909 | |
81ecdfbb | 11910 | . ${srcdir}/../bfd/configure.host |
252b5132 | 11911 | |
81ecdfbb RW |
11912 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
11913 | if test -z "$CC_FOR_BUILD"; then | |
11914 | if test "x$cross_compiling" = "xno"; then | |
11915 | CC_FOR_BUILD='$(CC)' | |
11916 | else | |
11917 | CC_FOR_BUILD=gcc | |
11918 | fi | |
11919 | fi | |
252b5132 | 11920 | |
81ecdfbb RW |
11921 | # Also set EXEEXT_FOR_BUILD. |
11922 | if test "x$cross_compiling" = "xno"; then | |
11923 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
4bd60896 | 11924 | else |
81ecdfbb RW |
11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 |
11926 | $as_echo_n "checking for build system executable suffix... " >&6; } | |
11927 | if test "${bfd_cv_build_exeext+set}" = set; then : | |
11928 | $as_echo_n "(cached) " >&6 | |
4bd60896 | 11929 | else |
81ecdfbb RW |
11930 | rm -f conftest* |
11931 | echo 'int main () { return 0; }' > conftest.c | |
11932 | bfd_cv_build_exeext= | |
11933 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
11934 | for file in conftest.*; do | |
11935 | case $file in | |
11936 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
11937 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
11938 | esac | |
11939 | done | |
11940 | rm -f conftest* | |
11941 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
4bd60896 | 11942 | fi |
81ecdfbb RW |
11943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 |
11944 | $as_echo "$bfd_cv_build_exeext" >&6; } | |
11945 | EXEEXT_FOR_BUILD="" | |
11946 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
4bd60896 | 11947 | fi |
4bd60896 | 11948 | |
4bd60896 JG |
11949 | |
11950 | ||
81ecdfbb RW |
11951 | |
11952 | ||
11953 | for ac_header in string.h strings.h stdlib.h limits.h | |
11954 | do : | |
11955 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11956 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
11957 | eval as_val=\$$as_ac_Header | |
11958 | if test "x$as_val" = x""yes; then : | |
4bd60896 | 11959 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 11960 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4bd60896 JG |
11961 | _ACEOF |
11962 | ||
dabbade6 | 11963 | fi |
dabbade6 | 11964 | |
81ecdfbb | 11965 | done |
dabbade6 | 11966 | |
81ecdfbb RW |
11967 | |
11968 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
11969 | if test "x$ac_cv_have_decl_basename" = x""yes; then : | |
11970 | ac_have_decl=1 | |
11971 | else | |
11972 | ac_have_decl=0 | |
dabbade6 | 11973 | fi |
dabbade6 L |
11974 | |
11975 | cat >>confdefs.h <<_ACEOF | |
81ecdfbb | 11976 | #define HAVE_DECL_BASENAME $ac_have_decl |
dabbade6 | 11977 | _ACEOF |
81ecdfbb RW |
11978 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" |
11979 | if test "x$ac_cv_have_decl_stpcpy" = x""yes; then : | |
11980 | ac_have_decl=1 | |
dabbade6 | 11981 | else |
81ecdfbb | 11982 | ac_have_decl=0 |
4bd60896 JG |
11983 | fi |
11984 | ||
81ecdfbb RW |
11985 | cat >>confdefs.h <<_ACEOF |
11986 | #define HAVE_DECL_STPCPY $ac_have_decl | |
11987 | _ACEOF | |
4bd60896 JG |
11988 | |
11989 | ||
6e31aea3 BE |
11990 | cgen_maint=no |
11991 | cgendir='$(srcdir)/../cgen' | |
11992 | ||
81ecdfbb RW |
11993 | # Check whether --enable-cgen-maint was given. |
11994 | if test "${enable_cgen_maint+set}" = set; then : | |
11995 | enableval=$enable_cgen_maint; case "${enableval}" in | |
6e31aea3 BE |
11996 | yes) cgen_maint=yes ;; |
11997 | no) cgen_maint=no ;; | |
11998 | *) | |
11999 | # argument is cgen install directory (not implemented yet). | |
12000 | # Having a `share' directory might be more appropriate for the .scm, | |
12001 | # .cpu, etc. files. | |
12002 | cgen_maint=yes | |
12003 | cgendir=${cgen_maint}/lib/cgen | |
12004 | ;; | |
12005 | esac | |
81ecdfbb RW |
12006 | fi |
12007 | if test x${cgen_maint} = xyes; then | |
6e31aea3 BE |
12008 | CGEN_MAINT_TRUE= |
12009 | CGEN_MAINT_FALSE='#' | |
12010 | else | |
12011 | CGEN_MAINT_TRUE='#' | |
12012 | CGEN_MAINT_FALSE= | |
12013 | fi | |
12014 | ||
252b5132 | 12015 | |
8ae85421 | 12016 | |
252b5132 RH |
12017 | using_cgen=no |
12018 | ||
51dec227 | 12019 | # Check if linker supports --as-needed and --no-as-needed options |
81ecdfbb RW |
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 |
12021 | $as_echo_n "checking linker --as-needed support... " >&6; } | |
12022 | if test "${bfd_cv_ld_as_needed+set}" = set; then : | |
12023 | $as_echo_n "(cached) " >&6 | |
51dec227 AM |
12024 | else |
12025 | bfd_cv_ld_as_needed=no | |
12026 | if $LD --help 2>/dev/null | grep as-needed > /dev/null; then | |
12027 | bfd_cv_ld_as_needed=yes | |
12028 | fi | |
12029 | ||
12030 | fi | |
81ecdfbb RW |
12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 |
12032 | $as_echo "$bfd_cv_ld_as_needed" >&6; } | |
51dec227 AM |
12033 | |
12034 | LIBM= | |
12035 | case $host in | |
12036 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | |
12037 | # These system don't have libm, or don't need it | |
12038 | ;; | |
12039 | *-ncr-sysv4.3*) | |
81ecdfbb RW |
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 |
12041 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
12042 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then : | |
12043 | $as_echo_n "(cached) " >&6 | |
51dec227 AM |
12044 | else |
12045 | ac_check_lib_save_LIBS=$LIBS | |
12046 | LIBS="-lmw $LIBS" | |
81ecdfbb | 12047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
12048 | /* end confdefs.h. */ |
12049 | ||
81ecdfbb RW |
12050 | /* Override any GCC internal prototype to avoid an error. |
12051 | Use char because int might match the return type of a GCC | |
12052 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
12053 | #ifdef __cplusplus |
12054 | extern "C" | |
12055 | #endif | |
51dec227 AM |
12056 | char _mwvalidcheckl (); |
12057 | int | |
12058 | main () | |
12059 | { | |
81ecdfbb | 12060 | return _mwvalidcheckl (); |
51dec227 AM |
12061 | ; |
12062 | return 0; | |
12063 | } | |
12064 | _ACEOF | |
81ecdfbb | 12065 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
12066 | ac_cv_lib_mw__mwvalidcheckl=yes |
12067 | else | |
81ecdfbb | 12068 | ac_cv_lib_mw__mwvalidcheckl=no |
51dec227 | 12069 | fi |
81ecdfbb RW |
12070 | rm -f core conftest.err conftest.$ac_objext \ |
12071 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
12072 | LIBS=$ac_check_lib_save_LIBS |
12073 | fi | |
81ecdfbb RW |
12074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
12075 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
12076 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then : | |
51dec227 AM |
12077 | LIBM="-lmw" |
12078 | fi | |
12079 | ||
81ecdfbb RW |
12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
12081 | $as_echo_n "checking for cos in -lm... " >&6; } | |
12082 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
12083 | $as_echo_n "(cached) " >&6 | |
51dec227 AM |
12084 | else |
12085 | ac_check_lib_save_LIBS=$LIBS | |
12086 | LIBS="-lm $LIBS" | |
81ecdfbb | 12087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
12088 | /* end confdefs.h. */ |
12089 | ||
81ecdfbb RW |
12090 | /* Override any GCC internal prototype to avoid an error. |
12091 | Use char because int might match the return type of a GCC | |
12092 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
12093 | #ifdef __cplusplus |
12094 | extern "C" | |
12095 | #endif | |
51dec227 AM |
12096 | char cos (); |
12097 | int | |
12098 | main () | |
12099 | { | |
81ecdfbb | 12100 | return cos (); |
51dec227 AM |
12101 | ; |
12102 | return 0; | |
12103 | } | |
12104 | _ACEOF | |
81ecdfbb | 12105 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
12106 | ac_cv_lib_m_cos=yes |
12107 | else | |
81ecdfbb | 12108 | ac_cv_lib_m_cos=no |
51dec227 | 12109 | fi |
81ecdfbb RW |
12110 | rm -f core conftest.err conftest.$ac_objext \ |
12111 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
12112 | LIBS=$ac_check_lib_save_LIBS |
12113 | fi | |
81ecdfbb RW |
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
12115 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
12116 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
51dec227 AM |
12117 | LIBM="$LIBM -lm" |
12118 | fi | |
12119 | ||
12120 | ;; | |
12121 | *) | |
81ecdfbb RW |
12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
12123 | $as_echo_n "checking for cos in -lm... " >&6; } | |
12124 | if test "${ac_cv_lib_m_cos+set}" = set; then : | |
12125 | $as_echo_n "(cached) " >&6 | |
51dec227 AM |
12126 | else |
12127 | ac_check_lib_save_LIBS=$LIBS | |
12128 | LIBS="-lm $LIBS" | |
81ecdfbb | 12129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
51dec227 AM |
12130 | /* end confdefs.h. */ |
12131 | ||
81ecdfbb RW |
12132 | /* Override any GCC internal prototype to avoid an error. |
12133 | Use char because int might match the return type of a GCC | |
12134 | builtin and then its argument prototype would still apply. */ | |
51dec227 AM |
12135 | #ifdef __cplusplus |
12136 | extern "C" | |
12137 | #endif | |
51dec227 AM |
12138 | char cos (); |
12139 | int | |
12140 | main () | |
12141 | { | |
81ecdfbb | 12142 | return cos (); |
51dec227 AM |
12143 | ; |
12144 | return 0; | |
12145 | } | |
12146 | _ACEOF | |
81ecdfbb | 12147 | if ac_fn_c_try_link "$LINENO"; then : |
51dec227 AM |
12148 | ac_cv_lib_m_cos=yes |
12149 | else | |
81ecdfbb | 12150 | ac_cv_lib_m_cos=no |
51dec227 | 12151 | fi |
81ecdfbb RW |
12152 | rm -f core conftest.err conftest.$ac_objext \ |
12153 | conftest$ac_exeext conftest.$ac_ext | |
51dec227 AM |
12154 | LIBS=$ac_check_lib_save_LIBS |
12155 | fi | |
81ecdfbb RW |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
12157 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
12158 | if test "x$ac_cv_lib_m_cos" = x""yes; then : | |
51dec227 AM |
12159 | LIBM="-lm" |
12160 | fi | |
12161 | ||
12162 | ;; | |
12163 | esac | |
12164 | ||
12165 | ||
12166 | ||
2eee5593 AM |
12167 | #Libs for generator progs |
12168 | if test "x$cross_compiling" = "xno"; then | |
12169 | BUILD_LIBS=../libiberty/libiberty.a | |
12170 | BUILD_LIB_DEPS=$BUILD_LIBS | |
12171 | else | |
12172 | # if cross-compiling, assume that the system provides -liberty | |
12173 | # and that the version is compatible with new headers. | |
12174 | BUILD_LIBS=-liberty | |
12175 | BUILD_LIB_DEPS= | |
12176 | fi | |
12177 | BUILD_LIBS="$BUILD_LIBS $LIBINTL" | |
12178 | BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" | |
12179 | ||
12180 | ||
12181 | ||
12182 | ||
45d42143 NC |
12183 | # Horrible hacks to build DLLs on Windows and a shared library elsewhere. |
12184 | SHARED_LDFLAGS= | |
12185 | SHARED_LIBADD= | |
12186 | SHARED_DEPENDENCIES= | |
12187 | if test "$enable_shared" = "yes"; then | |
29670fb9 AM |
12188 | # When building a shared libopcodes, link against the pic version of libiberty |
12189 | # so that apps that use libopcodes won't need libiberty just to satisfy any | |
12190 | # libopcodes references. | |
12191 | # We can't do that if a pic libiberty is unavailable since including non-pic | |
12192 | # code would insert text relocations into libopcodes. | |
12193 | # Note that linking against libbfd as we do here, which is itself linked | |
12194 | # against libiberty, may not satisfy all the libopcodes libiberty references | |
12195 | # since libbfd may not pull in the entirety of libiberty. | |
12196 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | |
12197 | if test -n "$x"; then | |
12198 | SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | |
12199 | fi | |
12200 | ||
45d42143 NC |
12201 | case "${host}" in |
12202 | *-*-cygwin*) | |
12203 | SHARED_LDFLAGS="-no-undefined" | |
12204 | SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" | |
12205 | ;; | |
0e336180 | 12206 | *-*-darwin*) |
29670fb9 | 12207 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}" |
0e336180 NC |
12208 | SHARED_DEPENDENCIES="../bfd/libbfd.la" |
12209 | ;; | |
45d42143 | 12210 | *) |
0e336180 NC |
12211 | case "$host_vendor" in |
12212 | hp) | |
29670fb9 | 12213 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}" |
0e336180 NC |
12214 | ;; |
12215 | *) | |
29670fb9 | 12216 | SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}" |
0e336180 NC |
12217 | ;; |
12218 | esac | |
4267b19f | 12219 | SHARED_DEPENDENCIES="../bfd/libbfd.la" |
45d42143 NC |
12220 | ;; |
12221 | esac | |
51dec227 AM |
12222 | |
12223 | if test -n "$SHARED_LIBADD"; then | |
12224 | if test -n "$LIBM"; then | |
12225 | if test x"$bfd_cv_ld_as_needed" = xyes; then | |
12226 | # Link against libm only when needed. Put -lc, -lm inside -Wl | |
12227 | # to stop libtool reordering these options. | |
12228 | SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" | |
12229 | else | |
12230 | SHARED_LIBADD="$SHARED_LIBADD $LIBM" | |
12231 | fi | |
12232 | fi | |
12233 | fi | |
45d42143 NC |
12234 | fi |
12235 | ||
252b5132 RH |
12236 | |
12237 | ||
12238 | ||
12239 | # target-specific stuff: | |
12240 | ||
12241 | # Canonicalize the secondary target names. | |
12242 | if test -n "$enable_targets" ; then | |
12243 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
12244 | do | |
6d83c84b | 12245 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
12246 | if test -n "$result" ; then |
12247 | canon_targets="$canon_targets $result" | |
12248 | else | |
12249 | # Allow targets that config.sub doesn't recognize, like "all". | |
12250 | canon_targets="$canon_targets $targ" | |
12251 | fi | |
12252 | done | |
12253 | fi | |
12254 | ||
12255 | all_targets=false | |
12256 | selarchs= | |
12257 | for targ in $target $canon_targets | |
12258 | do | |
12259 | if test "x$targ" = "xall" ; then | |
12260 | all_targets=true | |
12261 | else | |
12262 | . $srcdir/../bfd/config.bfd | |
12263 | selarchs="$selarchs $targ_archs" | |
12264 | fi | |
979273e3 | 12265 | done |
252b5132 RH |
12266 | |
12267 | # Utility var, documents generic cgen support files. | |
12268 | ||
3609e0fe | 12269 | cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" |
252b5132 RH |
12270 | |
12271 | # We don't do any links based on the target system, just makefile config. | |
12272 | ||
12273 | if test x${all_targets} = xfalse ; then | |
12274 | ||
12275 | # Target architecture .o files. | |
12276 | ta= | |
12277 | ||
12278 | for arch in $selarchs | |
12279 | do | |
12280 | ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` | |
12281 | archdefs="$archdefs -DARCH_$ad" | |
12282 | case "$arch" in | |
252b5132 | 12283 | bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; |
0d2bcfaf | 12284 | bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; |
252b5132 | 12285 | bfd_arm_arch) ta="$ta arm-dis.lo" ;; |
adde6300 | 12286 | bfd_avr_arch) ta="$ta avr-dis.lo" ;; |
4b7f6baa | 12287 | bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; |
3d3d428f | 12288 | bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;; |
3609e0fe | 12289 | bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; |
1fe1f39c | 12290 | bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; |
252b5132 RH |
12291 | bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; |
12292 | bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; | |
d172d4ba | 12293 | bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; |
252b5132 | 12294 | bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; |
c5f5f1f4 | 12295 | bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; |
20135e4c | 12296 | bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;; |
252b5132 RH |
12297 | bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; |
12298 | bfd_h8500_arch) ta="$ta h8500-dis.lo" ;; | |
12299 | bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; | |
5b93d8bb | 12300 | bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;; |
8a9036a4 L |
12301 | bfd_i386_arch|bfd_l1om_arch) |
12302 | ta="$ta i386-dis.lo i386-opc.lo" ;; | |
9d751335 | 12303 | bfd_i860_arch) ta="$ta i860-dis.lo" ;; |
252b5132 | 12304 | bfd_i960_arch) ta="$ta i960-dis.lo" ;; |
800eeca4 | 12305 | bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; |
a40cbfa3 | 12306 | bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; |
47b1a55a | 12307 | bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; |
84e94c90 | 12308 | bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;; |
c5f5f1f4 | 12309 | bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; |
252b5132 | 12310 | bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; |
60bcf0fa NC |
12311 | bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; |
12312 | bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; | |
252b5132 RH |
12313 | bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; |
12314 | bfd_m88k_arch) ta="$ta m88k-dis.lo" ;; | |
7499d566 | 12315 | bfd_maxq_arch) ta="$ta maxq-dis.lo" ;; |
252b5132 | 12316 | bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; |
bd2f2e55 | 12317 | bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;; |
7ba29e2a | 12318 | bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;; |
252b5132 | 12319 | bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;; |
3c3bdf30 | 12320 | bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; |
252b5132 RH |
12321 | bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; |
12322 | bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; | |
d031aafb | 12323 | bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; |
2469cfa2 | 12324 | bfd_msp430_arch) ta="$ta msp430-dis.lo" ;; |
252b5132 | 12325 | bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; |
87e6d782 | 12326 | bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;; |
3b16e843 | 12327 | bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;; |
e135f41b | 12328 | bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; |
1e608f98 | 12329 | bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; |
252b5132 | 12330 | bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
a85d7ed0 | 12331 | bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; |
5dd0794d | 12332 | bfd_pyramid_arch) ;; |
252b5132 RH |
12333 | bfd_romp_arch) ;; |
12334 | bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; | |
c7927a3c | 12335 | bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; |
a85d7ed0 | 12336 | bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; |
c3b7224a | 12337 | bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; |
09919455 | 12338 | bfd_sh_arch) |
d28847ce | 12339 | # We can't decide what we want just from the CPU family. |
e8b872bb AO |
12340 | # We want SH5 support unless a specific version of sh is |
12341 | # specified, as in sh3-elf, sh3b-linux-gnu, etc. | |
ca0f2ed6 HPN |
12342 | # Include it just for ELF targets, since the SH5 bfd:s are ELF only. |
12343 | for t in $target $canon_targets; do | |
12344 | case $t in | |
5b0e55b6 | 12345 | all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \ |
942e7dd9 | 12346 | sh-*-linux* | shl-*-linux*) |
d28847ce | 12347 | ta="$ta sh64-dis.lo sh64-opc.lo" |
ca0f2ed6 HPN |
12348 | archdefs="$archdefs -DINCLUDE_SHMEDIA" |
12349 | break;; | |
12350 | esac; | |
12351 | done | |
d3f1a427 | 12352 | ta="$ta sh-dis.lo cgen-bitset.lo" ;; |
252b5132 | 12353 | bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; |
e9f53129 | 12354 | bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; |
252b5132 RH |
12355 | bfd_tahoe_arch) ;; |
12356 | bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; | |
026df7c5 | 12357 | bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; |
5c84d377 | 12358 | bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; |
252b5132 RH |
12359 | bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;; |
12360 | bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
12361 | bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
12362 | bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; | |
12363 | bfd_vax_arch) ta="$ta vax-dis.lo" ;; | |
12364 | bfd_w65_arch) ta="$ta w65-dis.lo" ;; | |
12365 | bfd_we32k_arch) ;; | |
d70c5fc7 | 12366 | bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;; |
93fbbb04 | 12367 | bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; |
e0001a05 | 12368 | bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; |
3c9b82ba | 12369 | bfd_z80_arch) ta="$ta z80-dis.lo" ;; |
252b5132 RH |
12370 | bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; |
12371 | ||
12372 | "") ;; | |
81ecdfbb | 12373 | *) as_fn_error "*** unknown target architecture $arch" "$LINENO" 5 ;; |
252b5132 RH |
12374 | esac |
12375 | done | |
12376 | ||
12377 | if test $using_cgen = yes ; then | |
12378 | ta="$ta $cgen_files" | |
12379 | fi | |
12380 | ||
12381 | # Weed out duplicate .o files. | |
12382 | f="" | |
12383 | for i in $ta ; do | |
12384 | case " $f " in | |
12385 | *" $i "*) ;; | |
12386 | *) f="$f $i" ;; | |
12387 | esac | |
12388 | done | |
12389 | ta="$f" | |
12390 | ||
12391 | # And duplicate -D flags. | |
12392 | f="" | |
12393 | for i in $archdefs ; do | |
12394 | case " $f " in | |
12395 | *" $i "*) ;; | |
12396 | *) f="$f $i" ;; | |
12397 | esac | |
12398 | done | |
12399 | archdefs="$f" | |
12400 | ||
12401 | BFD_MACHINES="$ta" | |
12402 | ||
12403 | else # all_targets is true | |
12404 | archdefs=-DARCH_all | |
12405 | BFD_MACHINES='$(ALL_MACHINES)' | |
12406 | fi | |
12407 | ||
12408 | ||
12409 | ||
12410 | ||
81ecdfbb | 12411 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
979273e3 | 12412 | |
979273e3 | 12413 | cat >confcache <<\_ACEOF |
252b5132 RH |
12414 | # This file is a shell script that caches the results of configure |
12415 | # tests run on this system so they can be shared between configure | |
979273e3 NN |
12416 | # scripts and configure runs, see configure's option --config-cache. |
12417 | # It is not useful on other systems. If it contains results you don't | |
12418 | # want to keep, you may remove or edit it. | |
252b5132 | 12419 | # |
979273e3 NN |
12420 | # config.status only pays attention to the cache file if you give it |
12421 | # the --recheck option to rerun configure. | |
252b5132 | 12422 | # |
979273e3 NN |
12423 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12424 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12425 | # following values. | |
12426 | ||
12427 | _ACEOF | |
12428 | ||
252b5132 RH |
12429 | # The following way of writing the cache mishandles newlines in values, |
12430 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 12431 | # So, we kill variables containing newlines. |
252b5132 RH |
12432 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12433 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
12434 | ( |
12435 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12436 | eval ac_val=\$$ac_var | |
12437 | case $ac_val in #( | |
12438 | *${as_nl}*) | |
12439 | case $ac_var in #( | |
12440 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
12441 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
12442 | esac | |
12443 | case $ac_var in #( | |
12444 | _ | IFS | as_nl) ;; #( | |
12445 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
12446 | *) { eval $ac_var=; unset $ac_var;} ;; | |
12447 | esac ;; | |
12448 | esac | |
12449 | done | |
12450 | ||
979273e3 | 12451 | (set) 2>&1 | |
81ecdfbb RW |
12452 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12453 | *${as_nl}ac_space=\ *) | |
12454 | # `set' does not quote correctly, so add quotes: double-quote | |
12455 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
979273e3 NN |
12456 | sed -n \ |
12457 | "s/'/'\\\\''/g; | |
12458 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 12459 | ;; #( |
979273e3 NN |
12460 | *) |
12461 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 12462 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
979273e3 | 12463 | ;; |
81ecdfbb RW |
12464 | esac | |
12465 | sort | |
12466 | ) | | |
979273e3 | 12467 | sed ' |
81ecdfbb | 12468 | /^ac_cv_env_/b end |
979273e3 | 12469 | t clear |
81ecdfbb | 12470 | :clear |
979273e3 NN |
12471 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12472 | t end | |
81ecdfbb RW |
12473 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12474 | :end' >>confcache | |
12475 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12476 | if test -w "$cache_file"; then | |
12477 | test "x$cache_file" != "x/dev/null" && | |
12478 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
12479 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
979273e3 | 12480 | cat confcache >$cache_file |
252b5132 | 12481 | else |
81ecdfbb RW |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
12483 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
252b5132 RH |
12484 | fi |
12485 | fi | |
12486 | rm -f confcache | |
12487 | ||
252b5132 RH |
12488 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12489 | # Let make expand exec_prefix. | |
12490 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12491 | ||
252b5132 RH |
12492 | DEFS=-DHAVE_CONFIG_H |
12493 | ||
979273e3 NN |
12494 | ac_libobjs= |
12495 | ac_ltlibobjs= | |
12496 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12497 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
12498 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
12499 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12500 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12501 | # will be set to the directory where LIBOBJS objects are built. | |
12502 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12503 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
979273e3 NN |
12504 | done |
12505 | LIBOBJS=$ac_libobjs | |
252b5132 | 12506 | |
979273e3 NN |
12507 | LTLIBOBJS=$ac_ltlibobjs |
12508 | ||
12509 | ||
8ae85421 | 12510 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
81ecdfbb RW |
12511 | as_fn_error "conditional \"AMDEP\" was never defined. |
12512 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8ae85421 AM |
12513 | fi |
12514 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
12515 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
12516 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
12517 | fi | |
12518 | if test -n "$EXEEXT"; then | |
12519 | am__EXEEXT_TRUE= | |
12520 | am__EXEEXT_FALSE='#' | |
12521 | else | |
12522 | am__EXEEXT_TRUE='#' | |
12523 | am__EXEEXT_FALSE= | |
8ae85421 | 12524 | fi |
81ecdfbb | 12525 | |
8ae85421 | 12526 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
12527 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
12528 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8ae85421 AM |
12529 | fi |
12530 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
81ecdfbb RW |
12531 | as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined. |
12532 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8ae85421 AM |
12533 | fi |
12534 | if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then | |
81ecdfbb RW |
12535 | as_fn_error "conditional \"CGEN_MAINT\" was never defined. |
12536 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8ae85421 | 12537 | fi |
979273e3 NN |
12538 | |
12539 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 12540 | ac_write_fail=0 |
979273e3 NN |
12541 | ac_clean_files_save=$ac_clean_files |
12542 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
12544 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12545 | as_write_fail=0 | |
12546 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
979273e3 NN |
12547 | #! $SHELL |
12548 | # Generated by $as_me. | |
252b5132 | 12549 | # Run this file to recreate the current configuration. |
252b5132 | 12550 | # Compiler output produced by configure, useful for debugging |
979273e3 | 12551 | # configure, is in config.log if it exists. |
252b5132 | 12552 | |
979273e3 NN |
12553 | debug=false |
12554 | ac_cs_recheck=false | |
12555 | ac_cs_silent=false | |
979273e3 | 12556 | |
81ecdfbb RW |
12557 | SHELL=\${CONFIG_SHELL-$SHELL} |
12558 | export SHELL | |
12559 | _ASEOF | |
12560 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12561 | ## -------------------- ## | |
12562 | ## M4sh Initialization. ## | |
12563 | ## -------------------- ## | |
979273e3 | 12564 | |
81ecdfbb RW |
12565 | # Be more Bourne compatible |
12566 | DUALCASE=1; export DUALCASE # for MKS sh | |
12567 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
979273e3 NN |
12568 | emulate sh |
12569 | NULLCMD=: | |
81ecdfbb | 12570 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
979273e3 NN |
12571 | # is contrary to our usage. Disable this feature. |
12572 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
12573 | setopt NO_GLOB_SUBST |
12574 | else | |
12575 | case `(set -o) 2>/dev/null` in #( | |
12576 | *posix*) : | |
12577 | set -o posix ;; #( | |
12578 | *) : | |
12579 | ;; | |
12580 | esac | |
979273e3 | 12581 | fi |
979273e3 | 12582 | |
81ecdfbb RW |
12583 | |
12584 | as_nl=' | |
12585 | ' | |
12586 | export as_nl | |
12587 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12588 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12589 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12590 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
12591 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
12592 | # but without wasting forks for bash or zsh. | |
12593 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12594 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12595 | as_echo='print -r --' | |
12596 | as_echo_n='print -rn --' | |
12597 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12598 | as_echo='printf %s\n' | |
12599 | as_echo_n='printf %s' | |
12600 | else | |
12601 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12602 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12603 | as_echo_n='/usr/ucb/echo -n' | |
12604 | else | |
12605 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12606 | as_echo_n_body='eval | |
12607 | arg=$1; | |
12608 | case $arg in #( | |
12609 | *"$as_nl"*) | |
12610 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12611 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12612 | esac; | |
12613 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12614 | ' | |
12615 | export as_echo_n_body | |
12616 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12617 | fi | |
12618 | export as_echo_body | |
12619 | as_echo='sh -c $as_echo_body as_echo' | |
12620 | fi | |
12621 | ||
12622 | # The user is always right. | |
12623 | if test "${PATH_SEPARATOR+set}" != set; then | |
12624 | PATH_SEPARATOR=: | |
12625 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12626 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12627 | PATH_SEPARATOR=';' | |
12628 | } | |
979273e3 NN |
12629 | fi |
12630 | ||
12631 | ||
81ecdfbb RW |
12632 | # IFS |
12633 | # We need space, tab and new line, in precisely that order. Quoting is | |
12634 | # there to prevent editors from complaining about space-tab. | |
12635 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12636 | # splitting by setting IFS to empty value.) | |
12637 | IFS=" "" $as_nl" | |
12638 | ||
12639 | # Find who we are. Look in the path if we contain no directory separator. | |
12640 | case $0 in #(( | |
12641 | *[\\/]* ) as_myself=$0 ;; | |
12642 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12643 | for as_dir in $PATH | |
12644 | do | |
12645 | IFS=$as_save_IFS | |
12646 | test -z "$as_dir" && as_dir=. | |
12647 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12648 | done | |
12649 | IFS=$as_save_IFS | |
12650 | ||
12651 | ;; | |
12652 | esac | |
12653 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12654 | # in which case we are not to be found in the path. | |
12655 | if test "x$as_myself" = x; then | |
12656 | as_myself=$0 | |
12657 | fi | |
12658 | if test ! -f "$as_myself"; then | |
12659 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12660 | exit 1 | |
12661 | fi | |
12662 | ||
12663 | # Unset variables that we do not need and which cause bugs (e.g. in | |
12664 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12665 | # suppresses any "Segmentation fault" message there. '((' could | |
12666 | # trigger a bug in pdksh 5.2.14. | |
12667 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12668 | do eval test x\${$as_var+set} = xset \ | |
12669 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
12670 | done | |
979273e3 NN |
12671 | PS1='$ ' |
12672 | PS2='> ' | |
12673 | PS4='+ ' | |
12674 | ||
12675 | # NLS nuisances. | |
81ecdfbb RW |
12676 | LC_ALL=C |
12677 | export LC_ALL | |
12678 | LANGUAGE=C | |
12679 | export LANGUAGE | |
12680 | ||
12681 | # CDPATH. | |
12682 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12683 | ||
12684 | ||
12685 | # as_fn_error ERROR [LINENO LOG_FD] | |
12686 | # --------------------------------- | |
12687 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12688 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12689 | # script with status $?, using 1 if that was 0. | |
12690 | as_fn_error () | |
12691 | { | |
12692 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
12693 | if test "$3"; then | |
12694 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12695 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
979273e3 | 12696 | fi |
81ecdfbb RW |
12697 | $as_echo "$as_me: error: $1" >&2 |
12698 | as_fn_exit $as_status | |
12699 | } # as_fn_error | |
12700 | ||
12701 | ||
12702 | # as_fn_set_status STATUS | |
12703 | # ----------------------- | |
12704 | # Set $? to STATUS, without forking. | |
12705 | as_fn_set_status () | |
12706 | { | |
12707 | return $1 | |
12708 | } # as_fn_set_status | |
12709 | ||
12710 | # as_fn_exit STATUS | |
12711 | # ----------------- | |
12712 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12713 | as_fn_exit () | |
12714 | { | |
12715 | set +e | |
12716 | as_fn_set_status $1 | |
12717 | exit $1 | |
12718 | } # as_fn_exit | |
12719 | ||
12720 | # as_fn_unset VAR | |
12721 | # --------------- | |
12722 | # Portably unset VAR. | |
12723 | as_fn_unset () | |
12724 | { | |
12725 | { eval $1=; unset $1;} | |
12726 | } | |
12727 | as_unset=as_fn_unset | |
12728 | # as_fn_append VAR VALUE | |
12729 | # ---------------------- | |
12730 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12731 | # advantage of any shell optimizations that allow amortized linear growth over | |
12732 | # repeated appends, instead of the typical quadratic growth present in naive | |
12733 | # implementations. | |
12734 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12735 | eval 'as_fn_append () | |
12736 | { | |
12737 | eval $1+=\$2 | |
12738 | }' | |
12739 | else | |
12740 | as_fn_append () | |
12741 | { | |
12742 | eval $1=\$$1\$2 | |
12743 | } | |
12744 | fi # as_fn_append | |
12745 | ||
12746 | # as_fn_arith ARG... | |
12747 | # ------------------ | |
12748 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12749 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12750 | # must be portable across $(()) and expr. | |
12751 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12752 | eval 'as_fn_arith () | |
12753 | { | |
12754 | as_val=$(( $* )) | |
12755 | }' | |
12756 | else | |
12757 | as_fn_arith () | |
12758 | { | |
12759 | as_val=`expr "$@" || test $? -eq 1` | |
12760 | } | |
12761 | fi # as_fn_arith | |
12762 | ||
252b5132 | 12763 | |
81ecdfbb RW |
12764 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12765 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
979273e3 NN |
12766 | as_expr=expr |
12767 | else | |
12768 | as_expr=false | |
12769 | fi | |
12770 | ||
81ecdfbb | 12771 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
979273e3 NN |
12772 | as_basename=basename |
12773 | else | |
12774 | as_basename=false | |
12775 | fi | |
252b5132 | 12776 | |
81ecdfbb RW |
12777 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12778 | as_dirname=dirname | |
12779 | else | |
12780 | as_dirname=false | |
12781 | fi | |
252b5132 | 12782 | |
81ecdfbb | 12783 | as_me=`$as_basename -- "$0" || |
979273e3 NN |
12784 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12785 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
12786 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
12787 | $as_echo X/"$0" | | |
12788 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12789 | s//\1/ | |
12790 | q | |
12791 | } | |
12792 | /^X\/\(\/\/\)$/{ | |
12793 | s//\1/ | |
12794 | q | |
12795 | } | |
12796 | /^X\/\(\/\).*/{ | |
12797 | s//\1/ | |
12798 | q | |
12799 | } | |
12800 | s/.*/./; q'` | |
252b5132 | 12801 | |
979273e3 NN |
12802 | # Avoid depending upon Character Ranges. |
12803 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12804 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12805 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12806 | as_cr_digits='0123456789' | |
12807 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12808 | ||
81ecdfbb RW |
12809 | ECHO_C= ECHO_N= ECHO_T= |
12810 | case `echo -n x` in #((((( | |
12811 | -n*) | |
12812 | case `echo 'xy\c'` in | |
12813 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12814 | xy) ECHO_C='\c';; | |
12815 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12816 | ECHO_T=' ';; | |
12817 | esac;; | |
12818 | *) | |
12819 | ECHO_N='-n';; | |
979273e3 NN |
12820 | esac |
12821 | ||
81ecdfbb RW |
12822 | rm -f conf$$ conf$$.exe conf$$.file |
12823 | if test -d conf$$.dir; then | |
12824 | rm -f conf$$.dir/conf$$.file | |
979273e3 | 12825 | else |
81ecdfbb RW |
12826 | rm -f conf$$.dir |
12827 | mkdir conf$$.dir 2>/dev/null | |
979273e3 | 12828 | fi |
81ecdfbb RW |
12829 | if (echo >conf$$.file) 2>/dev/null; then |
12830 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
979273e3 | 12831 | as_ln_s='ln -s' |
81ecdfbb RW |
12832 | # ... but there are two gotchas: |
12833 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12834 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12835 | # In both cases, we have to default to `cp -p'. | |
12836 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12837 | as_ln_s='cp -p' | |
12838 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12839 | as_ln_s=ln | |
12840 | else | |
12841 | as_ln_s='cp -p' | |
252b5132 | 12842 | fi |
979273e3 NN |
12843 | else |
12844 | as_ln_s='cp -p' | |
12845 | fi | |
81ecdfbb RW |
12846 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12847 | rmdir conf$$.dir 2>/dev/null | |
12848 | ||
12849 | ||
12850 | # as_fn_mkdir_p | |
12851 | # ------------- | |
12852 | # Create "$as_dir" as a directory, including parents if necessary. | |
12853 | as_fn_mkdir_p () | |
12854 | { | |
12855 | ||
12856 | case $as_dir in #( | |
12857 | -*) as_dir=./$as_dir;; | |
12858 | esac | |
12859 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12860 | as_dirs= | |
12861 | while :; do | |
12862 | case $as_dir in #( | |
12863 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12864 | *) as_qdir=$as_dir;; | |
12865 | esac | |
12866 | as_dirs="'$as_qdir' $as_dirs" | |
12867 | as_dir=`$as_dirname -- "$as_dir" || | |
12868 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12869 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12870 | X"$as_dir" : 'X\(//\)$' \| \ | |
12871 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12872 | $as_echo X"$as_dir" | | |
12873 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12874 | s//\1/ | |
12875 | q | |
12876 | } | |
12877 | /^X\(\/\/\)[^/].*/{ | |
12878 | s//\1/ | |
12879 | q | |
12880 | } | |
12881 | /^X\(\/\/\)$/{ | |
12882 | s//\1/ | |
12883 | q | |
12884 | } | |
12885 | /^X\(\/\).*/{ | |
12886 | s//\1/ | |
12887 | q | |
12888 | } | |
12889 | s/.*/./; q'` | |
12890 | test -d "$as_dir" && break | |
12891 | done | |
12892 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12893 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
979273e3 | 12894 | |
81ecdfbb RW |
12895 | |
12896 | } # as_fn_mkdir_p | |
979273e3 | 12897 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 12898 | as_mkdir_p='mkdir -p "$as_dir"' |
979273e3 NN |
12899 | else |
12900 | test -d ./-p && rmdir ./-p | |
12901 | as_mkdir_p=false | |
12902 | fi | |
12903 | ||
81ecdfbb RW |
12904 | if test -x / >/dev/null 2>&1; then |
12905 | as_test_x='test -x' | |
12906 | else | |
12907 | if ls -dL / >/dev/null 2>&1; then | |
12908 | as_ls_L_option=L | |
12909 | else | |
12910 | as_ls_L_option= | |
12911 | fi | |
12912 | as_test_x=' | |
12913 | eval sh -c '\'' | |
12914 | if test -d "$1"; then | |
12915 | test -d "$1/."; | |
12916 | else | |
12917 | case $1 in #( | |
12918 | -*)set "./$1";; | |
12919 | esac; | |
12920 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
12921 | ???[sx]*):;;*)false;;esac;fi | |
12922 | '\'' sh | |
12923 | ' | |
12924 | fi | |
12925 | as_executable_p=$as_test_x | |
979273e3 NN |
12926 | |
12927 | # Sed expression to map a string onto a valid CPP name. | |
12928 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12929 | ||
12930 | # Sed expression to map a string onto a valid variable name. | |
12931 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12932 | ||
12933 | ||
979273e3 | 12934 | exec 6>&1 |
81ecdfbb RW |
12935 | ## ----------------------------------- ## |
12936 | ## Main body of $CONFIG_STATUS script. ## | |
12937 | ## ----------------------------------- ## | |
12938 | _ASEOF | |
12939 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
979273e3 | 12940 | |
81ecdfbb RW |
12941 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12942 | # Save the log message, to keep $0 and so on meaningful, and to | |
979273e3 | 12943 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
12944 | # values after options handling. |
12945 | ac_log=" | |
979273e3 | 12946 | This file was extended by $as_me, which was |
81ecdfbb | 12947 | generated by GNU Autoconf 2.64. Invocation command line was |
979273e3 NN |
12948 | |
12949 | CONFIG_FILES = $CONFIG_FILES | |
12950 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12951 | CONFIG_LINKS = $CONFIG_LINKS | |
12952 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12953 | $ $0 $@ | |
12954 | ||
81ecdfbb RW |
12955 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12956 | " | |
12957 | ||
979273e3 NN |
12958 | _ACEOF |
12959 | ||
81ecdfbb RW |
12960 | case $ac_config_files in *" |
12961 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12962 | esac | |
979273e3 | 12963 | |
81ecdfbb RW |
12964 | case $ac_config_headers in *" |
12965 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12966 | esac | |
979273e3 | 12967 | |
979273e3 | 12968 | |
81ecdfbb RW |
12969 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12970 | # Files that config.status was made for. | |
12971 | config_files="$ac_config_files" | |
12972 | config_headers="$ac_config_headers" | |
12973 | config_commands="$ac_config_commands" | |
979273e3 | 12974 | |
81ecdfbb | 12975 | _ACEOF |
979273e3 | 12976 | |
81ecdfbb | 12977 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 | 12978 | ac_cs_usage="\ |
81ecdfbb RW |
12979 | \`$as_me' instantiates files and other configuration actions |
12980 | from templates according to the current configuration. Unless the files | |
12981 | and actions are specified as TAGs, all are instantiated by default. | |
979273e3 | 12982 | |
81ecdfbb | 12983 | Usage: $0 [OPTION]... [TAG]... |
979273e3 NN |
12984 | |
12985 | -h, --help print this help, then exit | |
81ecdfbb RW |
12986 | -V, --version print version number and configuration settings, then exit |
12987 | -q, --quiet, --silent | |
12988 | do not print progress messages | |
979273e3 NN |
12989 | -d, --debug don't remove temporary files |
12990 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
12991 | --file=FILE[:TEMPLATE] |
12992 | instantiate the configuration file FILE | |
12993 | --header=FILE[:TEMPLATE] | |
12994 | instantiate the configuration header FILE | |
979273e3 NN |
12995 | |
12996 | Configuration files: | |
12997 | $config_files | |
12998 | ||
12999 | Configuration headers: | |
13000 | $config_headers | |
13001 | ||
13002 | Configuration commands: | |
13003 | $config_commands | |
13004 | ||
81ecdfbb | 13005 | Report bugs to the package provider." |
979273e3 | 13006 | |
81ecdfbb RW |
13007 | _ACEOF |
13008 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
979273e3 NN |
13009 | ac_cs_version="\\ |
13010 | config.status | |
81ecdfbb RW |
13011 | configured by $0, generated by GNU Autoconf 2.64, |
13012 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
979273e3 | 13013 | |
81ecdfbb | 13014 | Copyright (C) 2009 Free Software Foundation, Inc. |
979273e3 NN |
13015 | This config.status script is free software; the Free Software Foundation |
13016 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
13017 | |
13018 | ac_pwd='$ac_pwd' | |
13019 | srcdir='$srcdir' | |
13020 | INSTALL='$INSTALL' | |
13021 | MKDIR_P='$MKDIR_P' | |
13022 | AWK='$AWK' | |
13023 | test -n "\$AWK" || AWK=awk | |
979273e3 NN |
13024 | _ACEOF |
13025 | ||
81ecdfbb RW |
13026 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13027 | # The default lists apply if the user does not specify any file. | |
979273e3 NN |
13028 | ac_need_defaults=: |
13029 | while test $# != 0 | |
13030 | do | |
13031 | case $1 in | |
13032 | --*=*) | |
81ecdfbb RW |
13033 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13034 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
979273e3 NN |
13035 | ac_shift=: |
13036 | ;; | |
81ecdfbb | 13037 | *) |
979273e3 NN |
13038 | ac_option=$1 |
13039 | ac_optarg=$2 | |
13040 | ac_shift=shift | |
13041 | ;; | |
979273e3 NN |
13042 | esac |
13043 | ||
13044 | case $ac_option in | |
13045 | # Handling of the options. | |
979273e3 NN |
13046 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13047 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
13048 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13049 | $as_echo "$ac_cs_version"; exit ;; | |
13050 | --debug | --debu | --deb | --de | --d | -d ) | |
979273e3 NN |
13051 | debug=: ;; |
13052 | --file | --fil | --fi | --f ) | |
13053 | $ac_shift | |
81ecdfbb RW |
13054 | case $ac_optarg in |
13055 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13056 | esac | |
13057 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
979273e3 NN |
13058 | ac_need_defaults=false;; |
13059 | --header | --heade | --head | --hea ) | |
13060 | $ac_shift | |
81ecdfbb RW |
13061 | case $ac_optarg in |
13062 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13063 | esac | |
13064 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
979273e3 | 13065 | ac_need_defaults=false;; |
81ecdfbb RW |
13066 | --he | --h) |
13067 | # Conflict between --help and --header | |
13068 | as_fn_error "ambiguous option: \`$1' | |
13069 | Try \`$0 --help' for more information.";; | |
13070 | --help | --hel | -h ) | |
13071 | $as_echo "$ac_cs_usage"; exit ;; | |
979273e3 NN |
13072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13073 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13074 | ac_cs_silent=: ;; | |
13075 | ||
13076 | # This is an error. | |
81ecdfbb RW |
13077 | -*) as_fn_error "unrecognized option: \`$1' |
13078 | Try \`$0 --help' for more information." ;; | |
979273e3 | 13079 | |
81ecdfbb RW |
13080 | *) as_fn_append ac_config_targets " $1" |
13081 | ac_need_defaults=false ;; | |
979273e3 NN |
13082 | |
13083 | esac | |
13084 | shift | |
252b5132 | 13085 | done |
979273e3 NN |
13086 | |
13087 | ac_configure_extra_args= | |
13088 | ||
13089 | if $ac_cs_silent; then | |
13090 | exec 6>/dev/null | |
13091 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
252b5132 | 13092 | fi |
252b5132 | 13093 | |
979273e3 | 13094 | _ACEOF |
81ecdfbb | 13095 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
979273e3 | 13096 | if \$ac_cs_recheck; then |
81ecdfbb RW |
13097 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13098 | shift | |
13099 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13100 | CONFIG_SHELL='$SHELL' | |
13101 | export CONFIG_SHELL | |
13102 | exec "\$@" | |
979273e3 | 13103 | fi |
252b5132 | 13104 | |
979273e3 | 13105 | _ACEOF |
81ecdfbb RW |
13106 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13107 | exec 5>>config.log | |
13108 | { | |
13109 | echo | |
13110 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13111 | ## Running $as_me. ## | |
13112 | _ASBOX | |
13113 | $as_echo "$ac_log" | |
13114 | } >&5 | |
979273e3 | 13115 | |
81ecdfbb RW |
13116 | _ACEOF |
13117 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
979273e3 | 13118 | # |
81ecdfbb | 13119 | # INIT-COMMANDS |
979273e3 | 13120 | # |
8ae85421 | 13121 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
13122 | |
13123 | ||
13124 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13125 | # if CDPATH is set. | |
13126 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13127 | ||
13128 | sed_quote_subst='$sed_quote_subst' | |
13129 | double_quote_subst='$double_quote_subst' | |
13130 | delay_variable_subst='$delay_variable_subst' | |
13131 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
13132 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13133 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
13134 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13135 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
13136 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
13137 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13138 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
13139 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13140 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13141 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
13142 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13143 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
13144 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
13145 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13146 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13147 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13148 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
13149 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
13150 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
13151 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
13152 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
13153 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
13154 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
13155 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
13156 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
13157 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13158 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
1927a18f | 13159 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
13160 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
13161 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
13162 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
13163 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13164 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
13165 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
13166 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13167 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13168 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13169 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
13170 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13171 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
13172 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
13173 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
13174 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
13175 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
1927a18f | 13176 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
13177 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
13178 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
13179 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
13180 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
13181 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13182 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
13183 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
13184 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13185 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
13186 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
1927a18f L |
13187 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
13188 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
13189 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
13190 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
13191 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
d7040cdb SE |
13192 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
13193 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13194 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13195 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
13196 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
13197 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13198 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13199 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
13200 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13201 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13202 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13203 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13204 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13205 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13206 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13207 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13208 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13209 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13210 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13211 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
13212 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
13213 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
13214 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
13215 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13216 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
13217 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13218 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
13219 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
13220 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
13221 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13222 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13223 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13224 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13225 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13226 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
13227 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
13228 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13229 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
13230 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13231 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13232 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13233 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13234 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13235 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13236 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13237 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13238 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13239 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
13240 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
13241 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13242 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13243 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
13244 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
13245 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
13246 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13247 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13248 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13249 | ||
13250 | LTCC='$LTCC' | |
13251 | LTCFLAGS='$LTCFLAGS' | |
13252 | compiler='$compiler_DEFAULT' | |
13253 | ||
13254 | # Quote evaled strings. | |
13255 | for var in SED \ | |
13256 | GREP \ | |
13257 | EGREP \ | |
13258 | FGREP \ | |
13259 | LD \ | |
13260 | NM \ | |
13261 | LN_S \ | |
13262 | lt_SP2NL \ | |
13263 | lt_NL2SP \ | |
13264 | reload_flag \ | |
1927a18f | 13265 | OBJDUMP \ |
d7040cdb SE |
13266 | deplibs_check_method \ |
13267 | file_magic_cmd \ | |
13268 | AR \ | |
13269 | AR_FLAGS \ | |
13270 | STRIP \ | |
13271 | RANLIB \ | |
13272 | CC \ | |
13273 | CFLAGS \ | |
13274 | compiler \ | |
13275 | lt_cv_sys_global_symbol_pipe \ | |
13276 | lt_cv_sys_global_symbol_to_cdecl \ | |
13277 | lt_cv_sys_global_symbol_to_c_name_address \ | |
1927a18f | 13278 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
13279 | SHELL \ |
13280 | ECHO \ | |
13281 | lt_prog_compiler_no_builtin_flag \ | |
13282 | lt_prog_compiler_wl \ | |
13283 | lt_prog_compiler_pic \ | |
13284 | lt_prog_compiler_static \ | |
13285 | lt_cv_prog_compiler_c_o \ | |
13286 | need_locks \ | |
1927a18f L |
13287 | DSYMUTIL \ |
13288 | NMEDIT \ | |
13289 | LIPO \ | |
13290 | OTOOL \ | |
13291 | OTOOL64 \ | |
d7040cdb SE |
13292 | shrext_cmds \ |
13293 | export_dynamic_flag_spec \ | |
13294 | whole_archive_flag_spec \ | |
13295 | compiler_needs_object \ | |
13296 | with_gnu_ld \ | |
13297 | allow_undefined_flag \ | |
13298 | no_undefined_flag \ | |
13299 | hardcode_libdir_flag_spec \ | |
13300 | hardcode_libdir_flag_spec_ld \ | |
13301 | hardcode_libdir_separator \ | |
13302 | fix_srcfile_path \ | |
13303 | exclude_expsyms \ | |
13304 | include_expsyms \ | |
13305 | file_list_spec \ | |
13306 | variables_saved_for_relink \ | |
13307 | libname_spec \ | |
13308 | library_names_spec \ | |
13309 | soname_spec \ | |
13310 | finish_eval \ | |
13311 | old_striplib \ | |
13312 | striplib; do | |
13313 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13314 | *[\\\\\\\`\\"\\\$]*) | |
13315 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13316 | ;; | |
13317 | *) | |
13318 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13319 | ;; | |
13320 | esac | |
13321 | done | |
13322 | ||
13323 | # Double-quote double-evaled strings. | |
13324 | for var in reload_cmds \ | |
13325 | old_postinstall_cmds \ | |
13326 | old_postuninstall_cmds \ | |
13327 | old_archive_cmds \ | |
13328 | extract_expsyms_cmds \ | |
13329 | old_archive_from_new_cmds \ | |
13330 | old_archive_from_expsyms_cmds \ | |
13331 | archive_cmds \ | |
13332 | archive_expsym_cmds \ | |
13333 | module_cmds \ | |
13334 | module_expsym_cmds \ | |
13335 | export_symbols_cmds \ | |
13336 | prelink_cmds \ | |
13337 | postinstall_cmds \ | |
13338 | postuninstall_cmds \ | |
13339 | finish_cmds \ | |
13340 | sys_lib_search_path_spec \ | |
13341 | sys_lib_dlsearch_path_spec; do | |
13342 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13343 | *[\\\\\\\`\\"\\\$]*) | |
13344 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13345 | ;; | |
13346 | *) | |
13347 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13348 | ;; | |
13349 | esac | |
13350 | done | |
13351 | ||
13352 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
13353 | case \$lt_ECHO in | |
13354 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
13355 | ;; | |
13356 | esac | |
13357 | ||
13358 | ac_aux_dir='$ac_aux_dir' | |
13359 | xsi_shell='$xsi_shell' | |
13360 | lt_shell_append='$lt_shell_append' | |
13361 | ||
13362 | # See if we are running on zsh, and set the options which allow our | |
13363 | # commands through without removal of \ escapes INIT. | |
13364 | if test -n "\${ZSH_VERSION+set}" ; then | |
13365 | setopt NO_GLOB_SUBST | |
13366 | fi | |
13367 | ||
13368 | ||
13369 | PACKAGE='$PACKAGE' | |
13370 | VERSION='$VERSION' | |
13371 | TIMESTAMP='$TIMESTAMP' | |
13372 | RM='$RM' | |
13373 | ofile='$ofile' | |
13374 | ||
13375 | ||
13376 | ||
20e95c23 DJ |
13377 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
13378 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
13379 | # from automake. | |
13380 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
13381 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
13382 | LINGUAS="${LINGUAS-%UNSET%}" | |
979273e3 NN |
13383 | |
13384 | ||
13385 | _ACEOF | |
13386 | ||
81ecdfbb | 13387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 | 13388 | |
81ecdfbb | 13389 | # Handling of arguments. |
979273e3 NN |
13390 | for ac_config_target in $ac_config_targets |
13391 | do | |
81ecdfbb RW |
13392 | case $ac_config_target in |
13393 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13394 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13395 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
13396 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
13397 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13398 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
13399 | ||
13400 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 | 13401 | esac |
979273e3 | 13402 | done |
252b5132 | 13403 | |
81ecdfbb | 13404 | |
979273e3 NN |
13405 | # If the user did not use the arguments to specify the items to instantiate, |
13406 | # then the envvar interface is used. Set only those that are not. | |
13407 | # We use the long form for the default assignment because of an extremely | |
13408 | # bizarre bug on SunOS 4.1.3. | |
13409 | if $ac_need_defaults; then | |
13410 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13411 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13412 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13413 | fi | |
13414 | ||
13415 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 13416 | # simply because there is no reason against having it here, and in addition, |
979273e3 | 13417 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
13418 | # Hook for its removal unless debugging. |
13419 | # Note that there is a small window in which the directory will not be cleaned: | |
13420 | # after its creation but before its name has been assigned to `$tmp'. | |
979273e3 NN |
13421 | $debug || |
13422 | { | |
81ecdfbb RW |
13423 | tmp= |
13424 | trap 'exit_status=$? | |
13425 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13426 | ' 0 | |
13427 | trap 'as_fn_exit 1' 1 2 13 15 | |
979273e3 | 13428 | } |
979273e3 NN |
13429 | # Create a (secure) tmp directory for tmp files. |
13430 | ||
13431 | { | |
81ecdfbb | 13432 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
979273e3 NN |
13433 | test -n "$tmp" && test -d "$tmp" |
13434 | } || | |
13435 | { | |
81ecdfbb RW |
13436 | tmp=./conf$$-$RANDOM |
13437 | (umask 077 && mkdir "$tmp") | |
13438 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
13439 | ||
13440 | # Set up the scripts for CONFIG_FILES section. | |
13441 | # No need to generate them if there are no CONFIG_FILES. | |
13442 | # This happens for instance with `./config.status config.h'. | |
13443 | if test -n "$CONFIG_FILES"; then | |
13444 | ||
13445 | ||
13446 | ac_cr=`echo X | tr X '\015'` | |
13447 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13448 | # But we know of no other shell where ac_cr would be empty at this | |
13449 | # point, so we can use a bashism as a fallback. | |
13450 | if test "x$ac_cr" = x; then | |
13451 | eval ac_cr=\$\'\\r\' | |
13452 | fi | |
13453 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
13454 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13455 | ac_cs_awk_cr='\r' | |
13456 | else | |
13457 | ac_cs_awk_cr=$ac_cr | |
13458 | fi | |
13459 | ||
13460 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
13461 | _ACEOF | |
13462 | ||
13463 | ||
13464 | { | |
13465 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
13466 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13467 | echo "_ACEOF" | |
13468 | } >conf$$subs.sh || | |
13469 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13470 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
13471 | ac_delim='%!_!# ' | |
13472 | for ac_last_try in false false false false false :; do | |
13473 | . ./conf$$subs.sh || | |
13474 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13475 | ||
13476 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
13477 | if test $ac_delim_n = $ac_delim_num; then | |
13478 | break | |
13479 | elif $ac_last_try; then | |
13480 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
13481 | else | |
13482 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13483 | fi | |
13484 | done | |
13485 | rm -f conf$$subs.sh | |
13486 | ||
13487 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13488 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
13489 | _ACEOF | |
13490 | sed -n ' | |
13491 | h | |
13492 | s/^/S["/; s/!.*/"]=/ | |
13493 | p | |
13494 | g | |
13495 | s/^[^!]*!// | |
13496 | :repl | |
13497 | t repl | |
13498 | s/'"$ac_delim"'$// | |
13499 | t delim | |
13500 | :nl | |
13501 | h | |
13502 | s/\(.\{148\}\).*/\1/ | |
13503 | t more1 | |
13504 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13505 | p | |
13506 | n | |
13507 | b repl | |
13508 | :more1 | |
13509 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13510 | p | |
13511 | g | |
13512 | s/.\{148\}// | |
13513 | t nl | |
13514 | :delim | |
13515 | h | |
13516 | s/\(.\{148\}\).*/\1/ | |
13517 | t more2 | |
13518 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13519 | p | |
13520 | b | |
13521 | :more2 | |
13522 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13523 | p | |
13524 | g | |
13525 | s/.\{148\}// | |
13526 | t delim | |
13527 | ' <conf$$subs.awk | sed ' | |
13528 | /^[^""]/{ | |
13529 | N | |
13530 | s/\n// | |
13531 | } | |
13532 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13533 | rm -f conf$$subs.awk | |
13534 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13535 | _ACAWK | |
13536 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
13537 | for (key in S) S_is_set[key] = 1 | |
13538 | FS = "\a" | |
13539 | ||
13540 | } | |
979273e3 | 13541 | { |
81ecdfbb RW |
13542 | line = $ 0 |
13543 | nfields = split(line, field, "@") | |
13544 | substed = 0 | |
13545 | len = length(field[1]) | |
13546 | for (i = 2; i < nfields; i++) { | |
13547 | key = field[i] | |
13548 | keylen = length(key) | |
13549 | if (S_is_set[key]) { | |
13550 | value = S[key] | |
13551 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13552 | len += length(value) + length(field[++i]) | |
13553 | substed = 1 | |
13554 | } else | |
13555 | len += 1 + keylen | |
13556 | } | |
13557 | ||
13558 | print line | |
979273e3 NN |
13559 | } |
13560 | ||
81ecdfbb RW |
13561 | _ACAWK |
13562 | _ACEOF | |
13563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13564 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13565 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
13566 | else | |
13567 | cat | |
13568 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
13569 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
979273e3 NN |
13570 | _ACEOF |
13571 | ||
81ecdfbb RW |
13572 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13573 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13574 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13575 | # (actually we leave an empty line to preserve line numbers). | |
13576 | if test "x$srcdir" = x.; then | |
13577 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13578 | s/:*\$(srcdir):*/:/ | |
13579 | s/:*\${srcdir}:*/:/ | |
13580 | s/:*@srcdir@:*/:/ | |
13581 | s/^\([^=]*=[ ]*\):*/\1/ | |
13582 | s/:*$// | |
13583 | s/^[^=]*=[ ]*$// | |
13584 | }' | |
13585 | fi | |
13586 | ||
13587 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13588 | fi # test -n "$CONFIG_FILES" | |
979273e3 | 13589 | |
81ecdfbb RW |
13590 | # Set up the scripts for CONFIG_HEADERS section. |
13591 | # No need to generate them if there are no CONFIG_HEADERS. | |
13592 | # This happens for instance with `./config.status Makefile'. | |
13593 | if test -n "$CONFIG_HEADERS"; then | |
13594 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
13595 | BEGIN { | |
13596 | _ACEOF | |
979273e3 | 13597 | |
81ecdfbb RW |
13598 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13599 | # here-document in config.status, that substitutes the proper values into | |
13600 | # config.h.in to produce config.h. | |
979273e3 | 13601 | |
81ecdfbb RW |
13602 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13603 | # handling of long lines. | |
13604 | ac_delim='%!_!# ' | |
13605 | for ac_last_try in false false :; do | |
13606 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13607 | if test -z "$ac_t"; then | |
13608 | break | |
13609 | elif $ac_last_try; then | |
13610 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
13611 | else | |
13612 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13613 | fi | |
13614 | done | |
13615 | ||
13616 | # For the awk script, D is an array of macro values keyed by name, | |
13617 | # likewise P contains macro parameters if any. Preserve backslash | |
13618 | # newline sequences. | |
13619 | ||
13620 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13621 | sed -n ' | |
13622 | s/.\{148\}/&'"$ac_delim"'/g | |
13623 | t rset | |
13624 | :rset | |
13625 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13626 | t def | |
13627 | d | |
13628 | :def | |
13629 | s/\\$// | |
13630 | t bsnl | |
13631 | s/["\\]/\\&/g | |
13632 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13633 | D["\1"]=" \3"/p | |
13634 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13635 | d | |
13636 | :bsnl | |
13637 | s/["\\]/\\&/g | |
13638 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13639 | D["\1"]=" \3\\\\\\n"\\/p | |
13640 | t cont | |
13641 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13642 | t cont | |
13643 | d | |
13644 | :cont | |
13645 | n | |
13646 | s/.\{148\}/&'"$ac_delim"'/g | |
13647 | t clear | |
13648 | :clear | |
13649 | s/\\$// | |
13650 | t bsnlc | |
13651 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13652 | d | |
13653 | :bsnlc | |
13654 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13655 | b cont | |
13656 | ' <confdefs.h | sed ' | |
13657 | s/'"$ac_delim"'/"\\\ | |
13658 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13659 | ||
13660 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13661 | for (key in D) D_is_set[key] = 1 | |
13662 | FS = "\a" | |
13663 | } | |
13664 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13665 | line = \$ 0 | |
13666 | split(line, arg, " ") | |
13667 | if (arg[1] == "#") { | |
13668 | defundef = arg[2] | |
13669 | mac1 = arg[3] | |
13670 | } else { | |
13671 | defundef = substr(arg[1], 2) | |
13672 | mac1 = arg[2] | |
13673 | } | |
13674 | split(mac1, mac2, "(") #) | |
13675 | macro = mac2[1] | |
13676 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13677 | if (D_is_set[macro]) { | |
13678 | # Preserve the white space surrounding the "#". | |
13679 | print prefix "define", macro P[macro] D[macro] | |
13680 | next | |
13681 | } else { | |
13682 | # Replace #undef with comments. This is necessary, for example, | |
13683 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13684 | # on some systems where configure will not decide to define it. | |
13685 | if (defundef == "undef") { | |
13686 | print "/*", prefix defundef, macro, "*/" | |
13687 | next | |
13688 | } | |
13689 | } | |
13690 | } | |
13691 | { print } | |
13692 | _ACAWK | |
979273e3 | 13693 | _ACEOF |
81ecdfbb RW |
13694 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13695 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
13696 | fi # test -n "$CONFIG_HEADERS" | |
979273e3 | 13697 | |
81ecdfbb RW |
13698 | |
13699 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
13700 | shift | |
13701 | for ac_tag | |
13702 | do | |
13703 | case $ac_tag in | |
13704 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13705 | esac | |
13706 | case $ac_mode$ac_tag in | |
13707 | :[FHL]*:*);; | |
13708 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
13709 | :[FH]-) ac_tag=-:-;; | |
13710 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13711 | esac | |
13712 | ac_save_IFS=$IFS | |
13713 | IFS=: | |
13714 | set x $ac_tag | |
13715 | IFS=$ac_save_IFS | |
13716 | shift | |
13717 | ac_file=$1 | |
13718 | shift | |
13719 | ||
13720 | case $ac_mode in | |
13721 | :L) ac_source=$1;; | |
13722 | :[FH]) | |
13723 | ac_file_inputs= | |
13724 | for ac_f | |
13725 | do | |
13726 | case $ac_f in | |
13727 | -) ac_f="$tmp/stdin";; | |
13728 | *) # Look for the file first in the build tree, then in the source tree | |
13729 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13730 | # because $ac_f cannot contain `:'. | |
13731 | test -f "$ac_f" || | |
13732 | case $ac_f in | |
13733 | [\\/$]*) false;; | |
13734 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13735 | esac || | |
13736 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
13737 | esac | |
13738 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13739 | as_fn_append ac_file_inputs " '$ac_f'" | |
13740 | done | |
13741 | ||
13742 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13743 | # use $as_me), people would be surprised to read: | |
13744 | # /* config.h. Generated by config.status. */ | |
13745 | configure_input='Generated from '` | |
13746 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13747 | `' by configure.' | |
13748 | if test x"$ac_file" != x-; then | |
13749 | configure_input="$ac_file. $configure_input" | |
13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
13751 | $as_echo "$as_me: creating $ac_file" >&6;} | |
979273e3 | 13752 | fi |
81ecdfbb RW |
13753 | # Neutralize special characters interpreted by sed in replacement strings. |
13754 | case $configure_input in #( | |
13755 | *\&* | *\|* | *\\* ) | |
13756 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13757 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13758 | *) ac_sed_conf_input=$configure_input;; | |
13759 | esac | |
252b5132 | 13760 | |
81ecdfbb RW |
13761 | case $ac_tag in |
13762 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
13763 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
13764 | esac | |
13765 | ;; | |
252b5132 RH |
13766 | esac |
13767 | ||
81ecdfbb | 13768 | ac_dir=`$as_dirname -- "$ac_file" || |
979273e3 NN |
13769 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13770 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13771 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13772 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
13773 | $as_echo X"$ac_file" | | |
13774 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13775 | s//\1/ | |
13776 | q | |
13777 | } | |
13778 | /^X\(\/\/\)[^/].*/{ | |
13779 | s//\1/ | |
13780 | q | |
13781 | } | |
13782 | /^X\(\/\/\)$/{ | |
13783 | s//\1/ | |
13784 | q | |
13785 | } | |
13786 | /^X\(\/\).*/{ | |
13787 | s//\1/ | |
13788 | q | |
13789 | } | |
13790 | s/.*/./; q'` | |
13791 | as_dir="$ac_dir"; as_fn_mkdir_p | |
979273e3 NN |
13792 | ac_builddir=. |
13793 | ||
81ecdfbb RW |
13794 | case "$ac_dir" in |
13795 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13796 | *) | |
13797 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13798 | # A ".." for each directory in $ac_dir_suffix. | |
13799 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13800 | case $ac_top_builddir_sub in | |
13801 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13802 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13803 | esac ;; | |
13804 | esac | |
13805 | ac_abs_top_builddir=$ac_pwd | |
13806 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13807 | # for backward compatibility: | |
13808 | ac_top_builddir=$ac_top_build_prefix | |
979273e3 NN |
13809 | |
13810 | case $srcdir in | |
81ecdfbb | 13811 | .) # We are building in place. |
979273e3 | 13812 | ac_srcdir=. |
81ecdfbb RW |
13813 | ac_top_srcdir=$ac_top_builddir_sub |
13814 | ac_abs_top_srcdir=$ac_pwd ;; | |
13815 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
979273e3 | 13816 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
13817 | ac_top_srcdir=$srcdir |
13818 | ac_abs_top_srcdir=$srcdir ;; | |
13819 | *) # Relative name. | |
13820 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13821 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13822 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
979273e3 | 13823 | esac |
81ecdfbb | 13824 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
979273e3 | 13825 | |
252b5132 | 13826 | |
81ecdfbb RW |
13827 | case $ac_mode in |
13828 | :F) | |
13829 | # | |
13830 | # CONFIG_FILE | |
13831 | # | |
979273e3 NN |
13832 | |
13833 | case $INSTALL in | |
13834 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
13835 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
13836 | esac | |
13837 | ac_MKDIR_P=$MKDIR_P | |
13838 | case $MKDIR_P in | |
13839 | [\\/$]* | ?:[\\/]* ) ;; | |
13840 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
252b5132 | 13841 | esac |
81ecdfbb | 13842 | _ACEOF |
252b5132 | 13843 | |
81ecdfbb RW |
13844 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13845 | # If the template does not know about datarootdir, expand it. | |
13846 | # FIXME: This hack should be removed a few years after 2.60. | |
13847 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13848 | ac_sed_dataroot=' | |
13849 | /datarootdir/ { | |
13850 | p | |
13851 | q | |
13852 | } | |
13853 | /@datadir@/p | |
13854 | /@docdir@/p | |
13855 | /@infodir@/p | |
13856 | /@localedir@/p | |
13857 | /@mandir@/p' | |
13858 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13859 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13860 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13862 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13863 | _ACEOF | |
13864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13865 | ac_datarootdir_hack=' | |
13866 | s&@datadir@&$datadir&g | |
13867 | s&@docdir@&$docdir&g | |
13868 | s&@infodir@&$infodir&g | |
13869 | s&@localedir@&$localedir&g | |
13870 | s&@mandir@&$mandir&g | |
13871 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13872 | esac | |
979273e3 | 13873 | _ACEOF |
81ecdfbb RW |
13874 | |
13875 | # Neutralize VPATH when `$srcdir' = `.'. | |
13876 | # Shell code in configure.ac might set extrasub. | |
13877 | # FIXME: do we really want to maintain this feature? | |
13878 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13879 | ac_sed_extra="$ac_vpsub | |
979273e3 NN |
13880 | $extrasub |
13881 | _ACEOF | |
81ecdfbb | 13882 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
979273e3 NN |
13883 | :t |
13884 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
13885 | s|@configure_input@|$ac_sed_conf_input|;t t |
13886 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13887 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13888 | s&@srcdir@&$ac_srcdir&;t t | |
13889 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13890 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13891 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13892 | s&@builddir@&$ac_builddir&;t t | |
13893 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13894 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13895 | s&@INSTALL@&$ac_INSTALL&;t t | |
13896 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13897 | $ac_datarootdir_hack | |
13898 | " | |
13899 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13900 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13901 | ||
13902 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13903 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13904 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13906 | which seems to be undefined. Please make sure it is defined." >&5 | |
13907 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13908 | which seems to be undefined. Please make sure it is defined." >&2;} | |
13909 | ||
13910 | rm -f "$tmp/stdin" | |
979273e3 | 13911 | case $ac_file in |
81ecdfbb RW |
13912 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
13913 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13914 | esac \ | |
13915 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13916 | ;; | |
13917 | :H) | |
13918 | # | |
13919 | # CONFIG_HEADER | |
13920 | # | |
979273e3 | 13921 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
13922 | { |
13923 | $as_echo "/* $configure_input */" \ | |
13924 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13925 | } >"$tmp/config.h" \ | |
13926 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13927 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
13929 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
979273e3 | 13930 | else |
81ecdfbb RW |
13931 | rm -f "$ac_file" |
13932 | mv "$tmp/config.h" "$ac_file" \ | |
13933 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 13934 | fi |
979273e3 | 13935 | else |
81ecdfbb RW |
13936 | $as_echo "/* $configure_input */" \ |
13937 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13938 | || as_fn_error "could not create -" "$LINENO" 5 | |
252b5132 | 13939 | fi |
81ecdfbb RW |
13940 | # Compute "$ac_file"'s index in $config_headers. |
13941 | _am_arg="$ac_file" | |
8ae85421 AM |
13942 | _am_stamp_count=1 |
13943 | for _am_header in $config_headers :; do | |
13944 | case $_am_header in | |
81ecdfbb | 13945 | $_am_arg | $_am_arg:* ) |
8ae85421 AM |
13946 | break ;; |
13947 | * ) | |
13948 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13949 | esac | |
13950 | done | |
81ecdfbb RW |
13951 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
13952 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13953 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13954 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13955 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13956 | $as_echo X"$_am_arg" | | |
13957 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13958 | s//\1/ | |
13959 | q | |
13960 | } | |
13961 | /^X\(\/\/\)[^/].*/{ | |
13962 | s//\1/ | |
13963 | q | |
13964 | } | |
13965 | /^X\(\/\/\)$/{ | |
13966 | s//\1/ | |
13967 | q | |
13968 | } | |
13969 | /^X\(\/\).*/{ | |
13970 | s//\1/ | |
13971 | q | |
13972 | } | |
13973 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13974 | ;; | |
979273e3 | 13975 | |
81ecdfbb RW |
13976 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
13977 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13978 | ;; | |
13979 | esac | |
979273e3 NN |
13980 | |
13981 | ||
81ecdfbb RW |
13982 | case $ac_file$ac_mode in |
13983 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
13984 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
13985 | # are listed without --file. Let's play safe and only enable the eval | |
13986 | # if we detect the quoting. | |
13987 | case $CONFIG_FILES in | |
13988 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13989 | *) set x $CONFIG_FILES ;; | |
13990 | esac | |
13991 | shift | |
13992 | for mf | |
13993 | do | |
13994 | # Strip MF so we end up with the name of the file. | |
13995 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13996 | # Check whether this is an Automake generated Makefile or not. | |
13997 | # We used to match only the files named `Makefile.in', but | |
13998 | # some people rename them; so instead we look at the file content. | |
13999 | # Grep'ing the first line is not enough: some people post-process | |
14000 | # each Makefile.in and add a new line on top of each file to say so. | |
14001 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14002 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14003 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14004 | dirpart=`$as_dirname -- "$mf" || | |
8ae85421 AM |
14005 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14006 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14007 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14008 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
14009 | $as_echo X"$mf" | | |
14010 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14011 | s//\1/ | |
14012 | q | |
14013 | } | |
14014 | /^X\(\/\/\)[^/].*/{ | |
14015 | s//\1/ | |
14016 | q | |
14017 | } | |
14018 | /^X\(\/\/\)$/{ | |
14019 | s//\1/ | |
14020 | q | |
14021 | } | |
14022 | /^X\(\/\).*/{ | |
14023 | s//\1/ | |
14024 | q | |
14025 | } | |
14026 | s/.*/./; q'` | |
14027 | else | |
14028 | continue | |
14029 | fi | |
14030 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14031 | # from the Makefile without running `make'. | |
14032 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14033 | test -z "$DEPDIR" && continue | |
14034 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14035 | test -z "am__include" && continue | |
14036 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14037 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14038 | U=`sed -n 's/^U = //p' < "$mf"` | |
14039 | # Find all dependency output files, they are included files with | |
14040 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14041 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14042 | # expansion. | |
14043 | for file in `sed -n " | |
14044 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14045 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14046 | # Make sure the directory exists. | |
14047 | test -f "$dirpart/$file" && continue | |
14048 | fdir=`$as_dirname -- "$file" || | |
8ae85421 AM |
14049 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14050 | X"$file" : 'X\(//\)[^/]' \| \ | |
14051 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14052 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
14053 | $as_echo X"$file" | | |
14054 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14055 | s//\1/ | |
14056 | q | |
14057 | } | |
14058 | /^X\(\/\/\)[^/].*/{ | |
14059 | s//\1/ | |
14060 | q | |
14061 | } | |
14062 | /^X\(\/\/\)$/{ | |
14063 | s//\1/ | |
14064 | q | |
14065 | } | |
14066 | /^X\(\/\).*/{ | |
14067 | s//\1/ | |
14068 | q | |
14069 | } | |
14070 | s/.*/./; q'` | |
14071 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
14072 | # echo "creating $dirpart/$file" | |
14073 | echo '# dummy' > "$dirpart/$file" | |
8ae85421 | 14074 | done |
8ae85421 | 14075 | done |
81ecdfbb | 14076 | } |
d7040cdb | 14077 | ;; |
81ecdfbb | 14078 | "libtool":C) |
d7040cdb SE |
14079 | |
14080 | # See if we are running on zsh, and set the options which allow our | |
14081 | # commands through without removal of \ escapes. | |
14082 | if test -n "${ZSH_VERSION+set}" ; then | |
14083 | setopt NO_GLOB_SUBST | |
14084 | fi | |
14085 | ||
14086 | cfgfile="${ofile}T" | |
14087 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14088 | $RM "$cfgfile" | |
14089 | ||
14090 | cat <<_LT_EOF >> "$cfgfile" | |
14091 | #! $SHELL | |
14092 | ||
14093 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
1927a18f | 14094 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
14095 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14096 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14097 | # | |
1927a18f L |
14098 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
14099 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
14100 | # Written by Gordon Matzigkeit, 1996 | |
d7040cdb | 14101 | # |
1927a18f | 14102 | # This file is part of GNU Libtool. |
d7040cdb | 14103 | # |
1927a18f L |
14104 | # GNU Libtool is free software; you can redistribute it and/or |
14105 | # modify it under the terms of the GNU General Public License as | |
14106 | # published by the Free Software Foundation; either version 2 of | |
14107 | # the License, or (at your option) any later version. | |
d7040cdb | 14108 | # |
1927a18f L |
14109 | # As a special exception to the GNU General Public License, |
14110 | # if you distribute this file as part of a program or library that | |
14111 | # is built using GNU Libtool, you may include this file under the | |
14112 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 14113 | # |
1927a18f L |
14114 | # GNU Libtool is distributed in the hope that it will be useful, |
14115 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14116 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14117 | # GNU General Public License for more details. | |
d7040cdb | 14118 | # |
1927a18f L |
14119 | # You should have received a copy of the GNU General Public License |
14120 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14121 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14122 | # obtained by writing to the Free Software Foundation, Inc., | |
14123 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
14124 | |
14125 | ||
14126 | # The names of the tagged configurations supported by this script. | |
14127 | available_tags="" | |
14128 | ||
14129 | # ### BEGIN LIBTOOL CONFIG | |
14130 | ||
14131 | # Whether or not to build shared libraries. | |
14132 | build_libtool_libs=$enable_shared | |
14133 | ||
14134 | # Which release of libtool.m4 was used? | |
14135 | macro_version=$macro_version | |
14136 | macro_revision=$macro_revision | |
14137 | ||
14138 | # Whether or not to build static libraries. | |
14139 | build_old_libs=$enable_static | |
14140 | ||
14141 | # What type of objects to build. | |
14142 | pic_mode=$pic_mode | |
14143 | ||
14144 | # Whether or not to optimize for fast installation. | |
14145 | fast_install=$enable_fast_install | |
14146 | ||
14147 | # The host system. | |
14148 | host_alias=$host_alias | |
14149 | host=$host | |
14150 | host_os=$host_os | |
14151 | ||
14152 | # The build system. | |
14153 | build_alias=$build_alias | |
14154 | build=$build | |
14155 | build_os=$build_os | |
14156 | ||
14157 | # A sed program that does not truncate output. | |
14158 | SED=$lt_SED | |
14159 | ||
14160 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14161 | Xsed="\$SED -e 1s/^X//" | |
14162 | ||
14163 | # A grep program that handles long lines. | |
14164 | GREP=$lt_GREP | |
14165 | ||
14166 | # An ERE matcher. | |
14167 | EGREP=$lt_EGREP | |
14168 | ||
14169 | # A literal string matcher. | |
14170 | FGREP=$lt_FGREP | |
14171 | ||
14172 | # A BSD- or MS-compatible name lister. | |
14173 | NM=$lt_NM | |
14174 | ||
14175 | # Whether we need soft or hard links. | |
14176 | LN_S=$lt_LN_S | |
14177 | ||
14178 | # What is the maximum length of a command? | |
14179 | max_cmd_len=$max_cmd_len | |
14180 | ||
14181 | # Object file suffix (normally "o"). | |
14182 | objext=$ac_objext | |
14183 | ||
14184 | # Executable file suffix (normally ""). | |
14185 | exeext=$exeext | |
14186 | ||
14187 | # whether the shell understands "unset". | |
14188 | lt_unset=$lt_unset | |
14189 | ||
14190 | # turn spaces into newlines. | |
14191 | SP2NL=$lt_lt_SP2NL | |
14192 | ||
14193 | # turn newlines into spaces. | |
14194 | NL2SP=$lt_lt_NL2SP | |
14195 | ||
14196 | # How to create reloadable object files. | |
14197 | reload_flag=$lt_reload_flag | |
14198 | reload_cmds=$lt_reload_cmds | |
14199 | ||
1927a18f L |
14200 | # An object symbol dumper. |
14201 | OBJDUMP=$lt_OBJDUMP | |
14202 | ||
d7040cdb SE |
14203 | # Method to check whether dependent libraries are shared objects. |
14204 | deplibs_check_method=$lt_deplibs_check_method | |
14205 | ||
14206 | # Command to use when deplibs_check_method == "file_magic". | |
14207 | file_magic_cmd=$lt_file_magic_cmd | |
14208 | ||
14209 | # The archiver. | |
14210 | AR=$lt_AR | |
14211 | AR_FLAGS=$lt_AR_FLAGS | |
14212 | ||
14213 | # A symbol stripping program. | |
14214 | STRIP=$lt_STRIP | |
14215 | ||
14216 | # Commands used to install an old-style archive. | |
14217 | RANLIB=$lt_RANLIB | |
14218 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14219 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14220 | ||
14221 | # A C compiler. | |
14222 | LTCC=$lt_CC | |
14223 | ||
14224 | # LTCC compiler flags. | |
14225 | LTCFLAGS=$lt_CFLAGS | |
14226 | ||
14227 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14228 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14229 | ||
14230 | # Transform the output of nm in a proper C declaration. | |
14231 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14232 | ||
14233 | # Transform the output of nm in a C name address pair. | |
14234 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14235 | ||
1927a18f L |
14236 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14237 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14238 | ||
d7040cdb SE |
14239 | # The name of the directory that contains temporary libtool files. |
14240 | objdir=$objdir | |
14241 | ||
14242 | # Shell to use when invoking shell scripts. | |
14243 | SHELL=$lt_SHELL | |
14244 | ||
14245 | # An echo program that does not interpret backslashes. | |
14246 | ECHO=$lt_ECHO | |
14247 | ||
14248 | # Used to examine libraries when file_magic_cmd begins with "file". | |
14249 | MAGIC_CMD=$MAGIC_CMD | |
14250 | ||
14251 | # Must we lock files when doing compilation? | |
14252 | need_locks=$lt_need_locks | |
14253 | ||
1927a18f L |
14254 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14255 | DSYMUTIL=$lt_DSYMUTIL | |
14256 | ||
14257 | # Tool to change global to local symbols on Mac OS X. | |
14258 | NMEDIT=$lt_NMEDIT | |
14259 | ||
14260 | # Tool to manipulate fat objects and archives on Mac OS X. | |
14261 | LIPO=$lt_LIPO | |
14262 | ||
14263 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14264 | OTOOL=$lt_OTOOL | |
14265 | ||
14266 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14267 | OTOOL64=$lt_OTOOL64 | |
14268 | ||
d7040cdb SE |
14269 | # Old archive suffix (normally "a"). |
14270 | libext=$libext | |
14271 | ||
14272 | # Shared library suffix (normally ".so"). | |
14273 | shrext_cmds=$lt_shrext_cmds | |
14274 | ||
14275 | # The commands to extract the exported symbol list from a shared archive. | |
14276 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14277 | ||
14278 | # Variables whose values should be saved in libtool wrapper scripts and | |
14279 | # restored at link time. | |
14280 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
14281 | ||
14282 | # Do we need the "lib" prefix for modules? | |
14283 | need_lib_prefix=$need_lib_prefix | |
14284 | ||
14285 | # Do we need a version for libraries? | |
14286 | need_version=$need_version | |
14287 | ||
14288 | # Library versioning type. | |
14289 | version_type=$version_type | |
14290 | ||
14291 | # Shared library runtime path variable. | |
14292 | runpath_var=$runpath_var | |
14293 | ||
14294 | # Shared library path variable. | |
14295 | shlibpath_var=$shlibpath_var | |
14296 | ||
14297 | # Is shlibpath searched before the hard-coded library search path? | |
14298 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14299 | ||
14300 | # Format of library name prefix. | |
14301 | libname_spec=$lt_libname_spec | |
14302 | ||
14303 | # List of archive names. First name is the real one, the rest are links. | |
14304 | # The last name is the one that the linker finds with -lNAME | |
14305 | library_names_spec=$lt_library_names_spec | |
14306 | ||
14307 | # The coded name of the library, if different from the real name. | |
14308 | soname_spec=$lt_soname_spec | |
14309 | ||
14310 | # Command to use after installation of a shared archive. | |
14311 | postinstall_cmds=$lt_postinstall_cmds | |
14312 | ||
14313 | # Command to use after uninstallation of a shared archive. | |
14314 | postuninstall_cmds=$lt_postuninstall_cmds | |
14315 | ||
14316 | # Commands used to finish a libtool library installation in a directory. | |
14317 | finish_cmds=$lt_finish_cmds | |
14318 | ||
14319 | # As "finish_cmds", except a single script fragment to be evaled but | |
14320 | # not shown. | |
14321 | finish_eval=$lt_finish_eval | |
14322 | ||
14323 | # Whether we should hardcode library paths into libraries. | |
14324 | hardcode_into_libs=$hardcode_into_libs | |
14325 | ||
14326 | # Compile-time system search path for libraries. | |
14327 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14328 | ||
14329 | # Run-time system search path for libraries. | |
14330 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14331 | ||
14332 | # Whether dlopen is supported. | |
14333 | dlopen_support=$enable_dlopen | |
14334 | ||
14335 | # Whether dlopen of programs is supported. | |
14336 | dlopen_self=$enable_dlopen_self | |
14337 | ||
14338 | # Whether dlopen of statically linked programs is supported. | |
14339 | dlopen_self_static=$enable_dlopen_self_static | |
14340 | ||
14341 | # Commands to strip libraries. | |
14342 | old_striplib=$lt_old_striplib | |
14343 | striplib=$lt_striplib | |
14344 | ||
14345 | ||
14346 | # The linker used to build libraries. | |
14347 | LD=$lt_LD | |
14348 | ||
14349 | # Commands used to build an old-style archive. | |
14350 | old_archive_cmds=$lt_old_archive_cmds | |
14351 | ||
14352 | # A language specific compiler. | |
14353 | CC=$lt_compiler | |
14354 | ||
14355 | # Is the compiler the GNU compiler? | |
14356 | with_gcc=$GCC | |
14357 | ||
14358 | # Compiler flag to turn off builtin functions. | |
14359 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14360 | ||
14361 | # How to pass a linker flag through the compiler. | |
14362 | wl=$lt_lt_prog_compiler_wl | |
14363 | ||
14364 | # Additional compiler flags for building library objects. | |
14365 | pic_flag=$lt_lt_prog_compiler_pic | |
14366 | ||
14367 | # Compiler flag to prevent dynamic linking. | |
14368 | link_static_flag=$lt_lt_prog_compiler_static | |
14369 | ||
14370 | # Does compiler simultaneously support -c and -o options? | |
14371 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14372 | ||
14373 | # Whether or not to add -lc for building shared libraries. | |
14374 | build_libtool_need_lc=$archive_cmds_need_lc | |
14375 | ||
14376 | # Whether or not to disallow shared libs when runtime libs are static. | |
14377 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14378 | ||
14379 | # Compiler flag to allow reflexive dlopens. | |
14380 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14381 | ||
14382 | # Compiler flag to generate shared objects directly from archives. | |
14383 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14384 | ||
14385 | # Whether the compiler copes with passing no objects directly. | |
14386 | compiler_needs_object=$lt_compiler_needs_object | |
14387 | ||
14388 | # Create an old-style archive from a shared archive. | |
14389 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14390 | ||
14391 | # Create a temporary old-style archive to link instead of a shared archive. | |
14392 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14393 | ||
14394 | # Commands used to build a shared archive. | |
14395 | archive_cmds=$lt_archive_cmds | |
14396 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
14397 | ||
14398 | # Commands used to build a loadable module if different from building | |
14399 | # a shared archive. | |
14400 | module_cmds=$lt_module_cmds | |
14401 | module_expsym_cmds=$lt_module_expsym_cmds | |
14402 | ||
14403 | # Whether we are building with GNU ld or not. | |
14404 | with_gnu_ld=$lt_with_gnu_ld | |
14405 | ||
14406 | # Flag that allows shared libraries with undefined symbols to be built. | |
14407 | allow_undefined_flag=$lt_allow_undefined_flag | |
14408 | ||
14409 | # Flag that enforces no undefined symbols. | |
14410 | no_undefined_flag=$lt_no_undefined_flag | |
14411 | ||
14412 | # Flag to hardcode \$libdir into a binary during linking. | |
14413 | # This must work even if \$libdir does not exist | |
14414 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
14415 | ||
14416 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
14417 | # during linking. This must work even if \$libdir does not exist. | |
14418 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
14419 | ||
14420 | # Whether we need a single "-rpath" flag with a separated argument. | |
14421 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
14422 | ||
14423 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14424 | # DIR into the resulting binary. | |
14425 | hardcode_direct=$hardcode_direct | |
14426 | ||
14427 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14428 | # DIR into the resulting binary and the resulting library dependency is | |
14429 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14430 | # library is relocated. | |
14431 | hardcode_direct_absolute=$hardcode_direct_absolute | |
14432 | ||
14433 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
14434 | # into the resulting binary. | |
14435 | hardcode_minus_L=$hardcode_minus_L | |
14436 | ||
14437 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
14438 | # into the resulting binary. | |
14439 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
14440 | ||
14441 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
14442 | # into the library and all subsequent libraries and executables linked | |
14443 | # against it. | |
14444 | hardcode_automatic=$hardcode_automatic | |
14445 | ||
14446 | # Set to yes if linker adds runtime paths of dependent libraries | |
14447 | # to runtime path list. | |
14448 | inherit_rpath=$inherit_rpath | |
14449 | ||
14450 | # Whether libtool must link a program against all its dependency libraries. | |
14451 | link_all_deplibs=$link_all_deplibs | |
14452 | ||
14453 | # Fix the shell variable \$srcfile for the compiler. | |
14454 | fix_srcfile_path=$lt_fix_srcfile_path | |
14455 | ||
14456 | # Set to "yes" if exported symbols are required. | |
14457 | always_export_symbols=$always_export_symbols | |
14458 | ||
14459 | # The commands to list exported symbols. | |
14460 | export_symbols_cmds=$lt_export_symbols_cmds | |
14461 | ||
14462 | # Symbols that should not be listed in the preloaded symbols. | |
14463 | exclude_expsyms=$lt_exclude_expsyms | |
14464 | ||
14465 | # Symbols that must always be exported. | |
14466 | include_expsyms=$lt_include_expsyms | |
14467 | ||
14468 | # Commands necessary for linking programs (against libraries) with templates. | |
14469 | prelink_cmds=$lt_prelink_cmds | |
14470 | ||
14471 | # Specify filename containing input files. | |
14472 | file_list_spec=$lt_file_list_spec | |
14473 | ||
14474 | # How to hardcode a shared library path into an executable. | |
14475 | hardcode_action=$hardcode_action | |
14476 | ||
14477 | # ### END LIBTOOL CONFIG | |
14478 | ||
14479 | _LT_EOF | |
14480 | ||
14481 | case $host_os in | |
14482 | aix3*) | |
14483 | cat <<\_LT_EOF >> "$cfgfile" | |
14484 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14485 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14486 | # vanish in a puff of smoke. | |
14487 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14488 | COLLECT_NAMES= | |
14489 | export COLLECT_NAMES | |
14490 | fi | |
14491 | _LT_EOF | |
14492 | ;; | |
14493 | esac | |
14494 | ||
14495 | ||
14496 | ltmain="$ac_aux_dir/ltmain.sh" | |
14497 | ||
14498 | ||
14499 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14500 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14501 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14502 | # is reportedly fixed, but why not run on old versions too? | |
14503 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14504 | || (rm -f "$cfgfile"; exit 1) | |
14505 | ||
14506 | case $xsi_shell in | |
14507 | yes) | |
14508 | cat << \_LT_EOF >> "$cfgfile" | |
1927a18f | 14509 | |
d7040cdb SE |
14510 | # func_dirname file append nondir_replacement |
14511 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14512 | # otherwise set result to NONDIR_REPLACEMENT. | |
14513 | func_dirname () | |
14514 | { | |
14515 | case ${1} in | |
14516 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14517 | * ) func_dirname_result="${3}" ;; | |
14518 | esac | |
14519 | } | |
14520 | ||
14521 | # func_basename file | |
14522 | func_basename () | |
14523 | { | |
14524 | func_basename_result="${1##*/}" | |
14525 | } | |
14526 | ||
1927a18f L |
14527 | # func_dirname_and_basename file append nondir_replacement |
14528 | # perform func_basename and func_dirname in a single function | |
14529 | # call: | |
14530 | # dirname: Compute the dirname of FILE. If nonempty, | |
14531 | # add APPEND to the result, otherwise set result | |
14532 | # to NONDIR_REPLACEMENT. | |
14533 | # value returned in "$func_dirname_result" | |
14534 | # basename: Compute filename of FILE. | |
14535 | # value retuned in "$func_basename_result" | |
14536 | # Implementation must be kept synchronized with func_dirname | |
14537 | # and func_basename. For efficiency, we do not delegate to | |
14538 | # those functions but instead duplicate the functionality here. | |
14539 | func_dirname_and_basename () | |
14540 | { | |
14541 | case ${1} in | |
14542 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14543 | * ) func_dirname_result="${3}" ;; | |
14544 | esac | |
14545 | func_basename_result="${1##*/}" | |
14546 | } | |
14547 | ||
d7040cdb SE |
14548 | # func_stripname prefix suffix name |
14549 | # strip PREFIX and SUFFIX off of NAME. | |
14550 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14551 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14552 | # dot (in which case that matches only a dot). | |
14553 | func_stripname () | |
14554 | { | |
14555 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
14556 | # positional parameters, so assign one to ordinary parameter first. | |
14557 | func_stripname_result=${3} | |
14558 | func_stripname_result=${func_stripname_result#"${1}"} | |
14559 | func_stripname_result=${func_stripname_result%"${2}"} | |
14560 | } | |
14561 | ||
14562 | # func_opt_split | |
14563 | func_opt_split () | |
14564 | { | |
14565 | func_opt_split_opt=${1%%=*} | |
14566 | func_opt_split_arg=${1#*=} | |
14567 | } | |
14568 | ||
14569 | # func_lo2o object | |
14570 | func_lo2o () | |
14571 | { | |
14572 | case ${1} in | |
14573 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
14574 | *) func_lo2o_result=${1} ;; | |
14575 | esac | |
14576 | } | |
1927a18f L |
14577 | |
14578 | # func_xform libobj-or-source | |
14579 | func_xform () | |
14580 | { | |
14581 | func_xform_result=${1%.*}.lo | |
14582 | } | |
14583 | ||
14584 | # func_arith arithmetic-term... | |
14585 | func_arith () | |
14586 | { | |
14587 | func_arith_result=$(( $* )) | |
14588 | } | |
14589 | ||
14590 | # func_len string | |
14591 | # STRING may not start with a hyphen. | |
14592 | func_len () | |
14593 | { | |
14594 | func_len_result=${#1} | |
14595 | } | |
14596 | ||
d7040cdb SE |
14597 | _LT_EOF |
14598 | ;; | |
14599 | *) # Bourne compatible functions. | |
14600 | cat << \_LT_EOF >> "$cfgfile" | |
1927a18f | 14601 | |
d7040cdb SE |
14602 | # func_dirname file append nondir_replacement |
14603 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14604 | # otherwise set result to NONDIR_REPLACEMENT. | |
14605 | func_dirname () | |
14606 | { | |
14607 | # Extract subdirectory from the argument. | |
14608 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
14609 | if test "X$func_dirname_result" = "X${1}"; then | |
14610 | func_dirname_result="${3}" | |
14611 | else | |
14612 | func_dirname_result="$func_dirname_result${2}" | |
14613 | fi | |
14614 | } | |
14615 | ||
14616 | # func_basename file | |
14617 | func_basename () | |
14618 | { | |
14619 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
14620 | } | |
14621 | ||
1927a18f | 14622 | |
d7040cdb SE |
14623 | # func_stripname prefix suffix name |
14624 | # strip PREFIX and SUFFIX off of NAME. | |
14625 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14626 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14627 | # dot (in which case that matches only a dot). | |
14628 | # func_strip_suffix prefix name | |
14629 | func_stripname () | |
14630 | { | |
14631 | case ${2} in | |
14632 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
14633 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
14634 | *) func_stripname_result=`$ECHO "X${3}" \ | |
14635 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
14636 | esac | |
14637 | } | |
14638 | ||
14639 | # sed scripts: | |
14640 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14641 | my_sed_long_arg='1s/^-[^=]*=//' | |
14642 | ||
14643 | # func_opt_split | |
14644 | func_opt_split () | |
14645 | { | |
14646 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
14647 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
14648 | } | |
14649 | ||
14650 | # func_lo2o object | |
14651 | func_lo2o () | |
14652 | { | |
14653 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
14654 | } | |
1927a18f L |
14655 | |
14656 | # func_xform libobj-or-source | |
14657 | func_xform () | |
14658 | { | |
14659 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
14660 | } | |
14661 | ||
14662 | # func_arith arithmetic-term... | |
14663 | func_arith () | |
14664 | { | |
14665 | func_arith_result=`expr "$@"` | |
14666 | } | |
14667 | ||
14668 | # func_len string | |
14669 | # STRING may not start with a hyphen. | |
14670 | func_len () | |
14671 | { | |
14672 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14673 | } | |
14674 | ||
d7040cdb SE |
14675 | _LT_EOF |
14676 | esac | |
14677 | ||
14678 | case $lt_shell_append in | |
14679 | yes) | |
14680 | cat << \_LT_EOF >> "$cfgfile" | |
14681 | ||
14682 | # func_append var value | |
14683 | # Append VALUE to the end of shell variable VAR. | |
14684 | func_append () | |
14685 | { | |
14686 | eval "$1+=\$2" | |
14687 | } | |
14688 | _LT_EOF | |
14689 | ;; | |
14690 | *) | |
14691 | cat << \_LT_EOF >> "$cfgfile" | |
14692 | ||
14693 | # func_append var value | |
14694 | # Append VALUE to the end of shell variable VAR. | |
14695 | func_append () | |
14696 | { | |
14697 | eval "$1=\$$1\$2" | |
14698 | } | |
1927a18f | 14699 | |
d7040cdb SE |
14700 | _LT_EOF |
14701 | ;; | |
14702 | esac | |
14703 | ||
14704 | ||
14705 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14706 | || (rm -f "$cfgfile"; exit 1) | |
14707 | ||
14708 | mv -f "$cfgfile" "$ofile" || | |
14709 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14710 | chmod +x "$ofile" | |
14711 | ||
8ae85421 | 14712 | ;; |
81ecdfbb | 14713 | "default-1":C) |
20e95c23 DJ |
14714 | for ac_file in $CONFIG_FILES; do |
14715 | # Support "outfile[:infile[:infile...]]" | |
14716 | case "$ac_file" in | |
14717 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14718 | esac | |
14719 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
14720 | case "$ac_file" in */Makefile.in) | |
14721 | # Adjust a relative srcdir. | |
14722 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
14723 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
14724 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
14725 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
14726 | # In autoconf-2.50 it is called $srcdir. | |
14727 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
14728 | case "$ac_given_srcdir" in | |
14729 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
14730 | /*) top_srcdir="$ac_given_srcdir" ;; | |
14731 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
14732 | esac | |
14733 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
14734 | rm -f "$ac_dir/POTFILES" | |
14735 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
14736 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
14737 | POMAKEFILEDEPS="POTFILES.in" | |
14738 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
14739 | # on $ac_dir but don't depend on user-specified configuration | |
14740 | # parameters. | |
14741 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
14742 | # The LINGUAS file contains the set of available languages. | |
14743 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
14744 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
14745 | fi | |
14746 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
14747 | # Hide the ALL_LINGUAS assigment from automake. | |
14748 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
14749 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
14750 | else | |
14751 | # The set of available languages was given in configure.in. | |
14752 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
14753 | fi | |
14754 | case "$ac_given_srcdir" in | |
14755 | .) srcdirpre= ;; | |
14756 | *) srcdirpre='$(srcdir)/' ;; | |
14757 | esac | |
14758 | POFILES= | |
14759 | GMOFILES= | |
14760 | UPDATEPOFILES= | |
14761 | DUMMYPOFILES= | |
14762 | for lang in $ALL_LINGUAS; do | |
14763 | POFILES="$POFILES $srcdirpre$lang.po" | |
14764 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
14765 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
14766 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
14767 | done | |
14768 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
14769 | # environment variable. | |
14770 | INST_LINGUAS= | |
14771 | if test -n "$ALL_LINGUAS"; then | |
14772 | for presentlang in $ALL_LINGUAS; do | |
14773 | useit=no | |
14774 | if test "%UNSET%" != "$LINGUAS"; then | |
14775 | desiredlanguages="$LINGUAS" | |
14776 | else | |
14777 | desiredlanguages="$ALL_LINGUAS" | |
14778 | fi | |
14779 | for desiredlang in $desiredlanguages; do | |
14780 | # Use the presentlang catalog if desiredlang is | |
14781 | # a. equal to presentlang, or | |
14782 | # b. a variant of presentlang (because in this case, | |
14783 | # presentlang can be used as a fallback for messages | |
14784 | # which are not translated in the desiredlang catalog). | |
14785 | case "$desiredlang" in | |
14786 | "$presentlang"*) useit=yes;; | |
14787 | esac | |
14788 | done | |
14789 | if test $useit = yes; then | |
14790 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
14791 | fi | |
14792 | done | |
14793 | fi | |
14794 | CATALOGS= | |
14795 | if test -n "$INST_LINGUAS"; then | |
14796 | for lang in $INST_LINGUAS; do | |
14797 | CATALOGS="$CATALOGS $lang.gmo" | |
14798 | done | |
14799 | fi | |
14800 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
14801 | 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" | |
14802 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
14803 | if test -f "$f"; then | |
14804 | case "$f" in | |
14805 | *.orig | *.bak | *~) ;; | |
14806 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
14807 | esac | |
14808 | fi | |
14809 | done | |
14810 | fi | |
14811 | ;; | |
14812 | esac | |
14813 | done ;; | |
81ecdfbb | 14814 | |
979273e3 | 14815 | esac |
81ecdfbb | 14816 | done # for ac_tag |
979273e3 | 14817 | |
979273e3 | 14818 | |
81ecdfbb | 14819 | as_fn_exit 0 |
979273e3 | 14820 | _ACEOF |
979273e3 NN |
14821 | ac_clean_files=$ac_clean_files_save |
14822 | ||
81ecdfbb RW |
14823 | test $ac_write_fail = 0 || |
14824 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
14825 | ||
979273e3 NN |
14826 | |
14827 | # configure is writing to config.log, and then calls config.status. | |
14828 | # config.status does its own redirection, appending to config.log. | |
14829 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14830 | # by configure, so config.status won't be able to write to it; its | |
14831 | # output is simply discarded. So we exec the FD to /dev/null, | |
14832 | # effectively closing config.log, so it can be properly (re)opened and | |
14833 | # appended to by config.status. When coming back to configure, we | |
14834 | # need to make the FD available again. | |
14835 | if test "$no_create" != yes; then | |
14836 | ac_cs_success=: | |
14837 | ac_config_status_args= | |
14838 | test "$silent" = yes && | |
14839 | ac_config_status_args="$ac_config_status_args --quiet" | |
14840 | exec 5>/dev/null | |
14841 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14842 | exec 5>>config.log | |
14843 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14844 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
14845 | $ac_cs_success || as_fn_exit $? |
14846 | fi | |
14847 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14849 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
979273e3 | 14850 | fi |
252b5132 | 14851 |