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 | ## -------------------- ## | |
42ecbf5e | 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 : | |
42ecbf5e DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
42ecbf5e | 31 | fi |
42ecbf5e | 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 | } | |
42ecbf5e DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
42ecbf5e DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
42ecbf5e | 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." | |
42ecbf5e | 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." | |
42ecbf5e | 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 | |
42ecbf5e | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
42ecbf5e | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
42ecbf5e | 410 | |
42ecbf5e DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
42ecbf5e | 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 | | |
42ecbf5e | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
42ecbf5e | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
42ecbf5e | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
42ecbf5e | 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; } | |
42ecbf5e DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
42ecbf5e DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
42ecbf5e DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 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' | |
42ecbf5e | 483 | fi |
42ecbf5e DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
42ecbf5e DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
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 | |
42ecbf5e DJ |
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 | ||
42ecbf5e DJ |
678 | # Name of the host. |
679 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
680 | # so uname gets run too. | |
681 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 682 | |
42ecbf5e DJ |
683 | # |
684 | # Initializations. | |
685 | # | |
252b5132 | 686 | ac_default_prefix=/usr/local |
81ecdfbb | 687 | ac_clean_files= |
42ecbf5e | 688 | ac_config_libobj_dir=. |
81ecdfbb | 689 | LIBOBJS= |
42ecbf5e DJ |
690 | cross_compiling=no |
691 | subdirs= | |
692 | MFLAGS= | |
693 | MAKEFLAGS= | |
42ecbf5e DJ |
694 | |
695 | # Identity of this package. | |
696 | PACKAGE_NAME= | |
697 | PACKAGE_TARNAME= | |
698 | PACKAGE_VERSION= | |
699 | PACKAGE_STRING= | |
700 | PACKAGE_BUGREPORT= | |
81ecdfbb | 701 | PACKAGE_URL= |
42ecbf5e DJ |
702 | |
703 | ac_unique_file="ldmain.c" | |
704 | # Factoring default headers for most tests. | |
705 | ac_includes_default="\ | |
706 | #include <stdio.h> | |
81ecdfbb | 707 | #ifdef HAVE_SYS_TYPES_H |
42ecbf5e DJ |
708 | # include <sys/types.h> |
709 | #endif | |
81ecdfbb | 710 | #ifdef HAVE_SYS_STAT_H |
42ecbf5e DJ |
711 | # include <sys/stat.h> |
712 | #endif | |
81ecdfbb | 713 | #ifdef STDC_HEADERS |
42ecbf5e DJ |
714 | # include <stdlib.h> |
715 | # include <stddef.h> | |
716 | #else | |
81ecdfbb | 717 | # ifdef HAVE_STDLIB_H |
42ecbf5e DJ |
718 | # include <stdlib.h> |
719 | # endif | |
720 | #endif | |
81ecdfbb RW |
721 | #ifdef HAVE_STRING_H |
722 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
42ecbf5e DJ |
723 | # include <memory.h> |
724 | # endif | |
725 | # include <string.h> | |
726 | #endif | |
81ecdfbb | 727 | #ifdef HAVE_STRINGS_H |
42ecbf5e DJ |
728 | # include <strings.h> |
729 | #endif | |
81ecdfbb | 730 | #ifdef HAVE_INTTYPES_H |
42ecbf5e | 731 | # include <inttypes.h> |
42ecbf5e | 732 | #endif |
81ecdfbb RW |
733 | #ifdef HAVE_STDINT_H |
734 | # include <stdint.h> | |
735 | #endif | |
736 | #ifdef HAVE_UNISTD_H | |
42ecbf5e DJ |
737 | # include <unistd.h> |
738 | #endif" | |
739 | ||
81ecdfbb RW |
740 | ac_subst_vars='am__EXEEXT_FALSE |
741 | am__EXEEXT_TRUE | |
742 | LTLIBOBJS | |
743 | LIBOBJS | |
744 | TESTBFDLIB | |
745 | EMULATION_LIBPATH | |
746 | LIB_PATH | |
747 | EMUL_EXTRA_OFILES | |
748 | EMULATION_OFILES | |
749 | EMUL | |
750 | STRINGIFY | |
751 | NATIVE_LIB_DIRS | |
752 | HOSTING_LIBS | |
753 | HOSTING_CRT0 | |
754 | HDEFINES | |
755 | do_compare | |
756 | GENINSRC_NEVER_FALSE | |
757 | GENINSRC_NEVER_TRUE | |
81ecdfbb RW |
758 | LEXLIB |
759 | LEX_OUTPUT_ROOT | |
760 | LEX | |
761 | YFLAGS | |
762 | YACC | |
763 | MSGMERGE | |
764 | MSGFMT | |
765 | MKINSTALLDIRS | |
766 | CATOBJEXT | |
767 | GENCAT | |
768 | INSTOBJEXT | |
769 | DATADIRNAME | |
770 | CATALOGS | |
771 | POSUB | |
772 | GMSGFMT | |
773 | XGETTEXT | |
774 | INCINTL | |
775 | LIBINTL_DEP | |
776 | LIBINTL | |
777 | USE_NLS | |
778 | OTOOL64 | |
779 | OTOOL | |
780 | LIPO | |
781 | NMEDIT | |
782 | DSYMUTIL | |
783 | lt_ECHO | |
784 | RANLIB | |
785 | AR | |
786 | OBJDUMP | |
787 | LN_S | |
788 | NM | |
789 | ac_ct_DUMPBIN | |
790 | DUMPBIN | |
791 | LD | |
792 | FGREP | |
793 | SED | |
794 | LIBTOOL | |
795 | EGREP | |
796 | GREP | |
797 | CPP | |
798 | NO_WERROR | |
799 | WARN_CFLAGS | |
800 | TARGET_SYSTEM_ROOT_DEFINE | |
801 | TARGET_SYSTEM_ROOT | |
802 | use_sysroot | |
64ac50ac RW |
803 | MAINT |
804 | MAINTAINER_MODE_FALSE | |
805 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
806 | am__fastdepCC_FALSE |
807 | am__fastdepCC_TRUE | |
808 | CCDEPMODE | |
809 | AMDEPBACKSLASH | |
810 | AMDEP_FALSE | |
811 | AMDEP_TRUE | |
812 | am__quote | |
813 | am__include | |
814 | DEPDIR | |
815 | am__untar | |
816 | am__tar | |
817 | AMTAR | |
818 | am__leading_dot | |
819 | SET_MAKE | |
820 | AWK | |
821 | mkdir_p | |
822 | MKDIR_P | |
823 | INSTALL_STRIP_PROGRAM | |
824 | STRIP | |
825 | install_sh | |
826 | MAKEINFO | |
827 | AUTOHEADER | |
828 | AUTOMAKE | |
829 | AUTOCONF | |
830 | ACLOCAL | |
831 | VERSION | |
832 | PACKAGE | |
833 | CYGPATH_W | |
834 | am__isrc | |
835 | INSTALL_DATA | |
836 | INSTALL_SCRIPT | |
837 | INSTALL_PROGRAM | |
838 | OBJEXT | |
839 | EXEEXT | |
840 | ac_ct_CC | |
841 | CPPFLAGS | |
842 | LDFLAGS | |
843 | CFLAGS | |
844 | CC | |
845 | target_os | |
846 | target_vendor | |
847 | target_cpu | |
848 | target | |
849 | host_os | |
850 | host_vendor | |
851 | host_cpu | |
852 | host | |
853 | build_os | |
854 | build_vendor | |
855 | build_cpu | |
856 | build | |
857 | target_alias | |
858 | host_alias | |
859 | build_alias | |
860 | LIBS | |
861 | ECHO_T | |
862 | ECHO_N | |
863 | ECHO_C | |
864 | DEFS | |
865 | mandir | |
866 | localedir | |
867 | libdir | |
868 | psdir | |
869 | pdfdir | |
870 | dvidir | |
871 | htmldir | |
872 | infodir | |
873 | docdir | |
874 | oldincludedir | |
875 | includedir | |
876 | localstatedir | |
877 | sharedstatedir | |
878 | sysconfdir | |
879 | datadir | |
880 | datarootdir | |
881 | libexecdir | |
882 | sbindir | |
883 | bindir | |
884 | program_transform_name | |
885 | prefix | |
886 | exec_prefix | |
887 | PACKAGE_URL | |
888 | PACKAGE_BUGREPORT | |
889 | PACKAGE_STRING | |
890 | PACKAGE_VERSION | |
891 | PACKAGE_TARNAME | |
892 | PACKAGE_NAME | |
893 | PATH_SEPARATOR | |
894 | SHELL' | |
42ecbf5e | 895 | ac_subst_files='TDIRS' |
81ecdfbb RW |
896 | ac_user_opts=' |
897 | enable_option_checking | |
898 | enable_dependency_tracking | |
64ac50ac | 899 | enable_maintainer_mode |
81ecdfbb RW |
900 | with_lib_path |
901 | enable_targets | |
902 | enable_64_bit_bfd | |
903 | with_sysroot | |
904 | enable_got | |
905 | enable_werror | |
906 | enable_build_warnings | |
907 | enable_largefile | |
908 | enable_shared | |
909 | enable_static | |
910 | with_pic | |
911 | enable_fast_install | |
912 | with_gnu_ld | |
913 | enable_libtool_lock | |
914 | enable_nls | |
81ecdfbb RW |
915 | ' |
916 | ac_precious_vars='build_alias | |
917 | host_alias | |
918 | target_alias | |
919 | CC | |
920 | CFLAGS | |
921 | LDFLAGS | |
922 | LIBS | |
923 | CPPFLAGS | |
924 | CPP | |
925 | YACC | |
926 | YFLAGS' | |
927 | ||
252b5132 RH |
928 | |
929 | # Initialize some variables set by options. | |
42ecbf5e DJ |
930 | ac_init_help= |
931 | ac_init_version=false | |
81ecdfbb RW |
932 | ac_unrecognized_opts= |
933 | ac_unrecognized_sep= | |
252b5132 RH |
934 | # The variables have the same names as the options, with |
935 | # dashes changed to underlines. | |
42ecbf5e | 936 | cache_file=/dev/null |
252b5132 | 937 | exec_prefix=NONE |
252b5132 | 938 | no_create= |
252b5132 RH |
939 | no_recursion= |
940 | prefix=NONE | |
941 | program_prefix=NONE | |
942 | program_suffix=NONE | |
943 | program_transform_name=s,x,x, | |
944 | silent= | |
945 | site= | |
946 | srcdir= | |
252b5132 RH |
947 | verbose= |
948 | x_includes=NONE | |
949 | x_libraries=NONE | |
42ecbf5e DJ |
950 | |
951 | # Installation directory options. | |
952 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
953 | # and all the variables that are supposed to be based on exec_prefix | |
954 | # by default will actually change. | |
955 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 956 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
957 | bindir='${exec_prefix}/bin' |
958 | sbindir='${exec_prefix}/sbin' | |
959 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
960 | datarootdir='${prefix}/share' |
961 | datadir='${datarootdir}' | |
252b5132 RH |
962 | sysconfdir='${prefix}/etc' |
963 | sharedstatedir='${prefix}/com' | |
964 | localstatedir='${prefix}/var' | |
252b5132 RH |
965 | includedir='${prefix}/include' |
966 | oldincludedir='/usr/include' | |
81ecdfbb RW |
967 | docdir='${datarootdir}/doc/${PACKAGE}' |
968 | infodir='${datarootdir}/info' | |
969 | htmldir='${docdir}' | |
970 | dvidir='${docdir}' | |
971 | pdfdir='${docdir}' | |
972 | psdir='${docdir}' | |
973 | libdir='${exec_prefix}/lib' | |
974 | localedir='${datarootdir}/locale' | |
975 | mandir='${datarootdir}/man' | |
252b5132 | 976 | |
252b5132 | 977 | ac_prev= |
81ecdfbb | 978 | ac_dashdash= |
252b5132 RH |
979 | for ac_option |
980 | do | |
252b5132 RH |
981 | # If the previous option needs an argument, assign it. |
982 | if test -n "$ac_prev"; then | |
81ecdfbb | 983 | eval $ac_prev=\$ac_option |
252b5132 RH |
984 | ac_prev= |
985 | continue | |
986 | fi | |
987 | ||
81ecdfbb RW |
988 | case $ac_option in |
989 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
990 | *) ac_optarg=yes ;; | |
991 | esac | |
252b5132 RH |
992 | |
993 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
994 | ||
81ecdfbb RW |
995 | case $ac_dashdash$ac_option in |
996 | --) | |
997 | ac_dashdash=yes ;; | |
252b5132 RH |
998 | |
999 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1000 | ac_prev=bindir ;; | |
1001 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 1002 | bindir=$ac_optarg ;; |
252b5132 RH |
1003 | |
1004 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 1005 | ac_prev=build_alias ;; |
252b5132 | 1006 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 1007 | build_alias=$ac_optarg ;; |
252b5132 RH |
1008 | |
1009 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1010 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1011 | ac_prev=cache_file ;; | |
1012 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1013 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
1014 | cache_file=$ac_optarg ;; |
1015 | ||
1016 | --config-cache | -C) | |
1017 | cache_file=config.cache ;; | |
252b5132 | 1018 | |
81ecdfbb | 1019 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 1020 | ac_prev=datadir ;; |
81ecdfbb | 1021 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
42ecbf5e | 1022 | datadir=$ac_optarg ;; |
252b5132 | 1023 | |
81ecdfbb RW |
1024 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1025 | | --dataroo | --dataro | --datar) | |
1026 | ac_prev=datarootdir ;; | |
1027 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1028 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1029 | datarootdir=$ac_optarg ;; | |
1030 | ||
252b5132 | 1031 | -disable-* | --disable-*) |
81ecdfbb | 1032 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 1033 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1034 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1035 | as_fn_error "invalid feature name: $ac_useropt" | |
1036 | ac_useropt_orig=$ac_useropt | |
1037 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1038 | case $ac_user_opts in | |
1039 | *" | |
1040 | "enable_$ac_useropt" | |
1041 | "*) ;; | |
1042 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1043 | ac_unrecognized_sep=', ';; | |
1044 | esac | |
1045 | eval enable_$ac_useropt=no ;; | |
1046 | ||
1047 | -docdir | --docdir | --docdi | --doc | --do) | |
1048 | ac_prev=docdir ;; | |
1049 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1050 | docdir=$ac_optarg ;; | |
1051 | ||
1052 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1053 | ac_prev=dvidir ;; | |
1054 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1055 | dvidir=$ac_optarg ;; | |
252b5132 RH |
1056 | |
1057 | -enable-* | --enable-*) | |
81ecdfbb | 1058 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 1059 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1060 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1061 | as_fn_error "invalid feature name: $ac_useropt" | |
1062 | ac_useropt_orig=$ac_useropt | |
1063 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1064 | case $ac_user_opts in | |
1065 | *" | |
1066 | "enable_$ac_useropt" | |
1067 | "*) ;; | |
1068 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1069 | ac_unrecognized_sep=', ';; | |
252b5132 | 1070 | esac |
81ecdfbb | 1071 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1072 | |
1073 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1074 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1075 | | --exec | --exe | --ex) | |
1076 | ac_prev=exec_prefix ;; | |
1077 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1078 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1079 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 1080 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1081 | |
1082 | -gas | --gas | --ga | --g) | |
1083 | # Obsolete; use --with-gas. | |
1084 | with_gas=yes ;; | |
1085 | ||
42ecbf5e DJ |
1086 | -help | --help | --hel | --he | -h) |
1087 | ac_init_help=long ;; | |
1088 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1089 | ac_init_help=recursive ;; | |
1090 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1091 | ac_init_help=short ;; | |
252b5132 RH |
1092 | |
1093 | -host | --host | --hos | --ho) | |
42ecbf5e | 1094 | ac_prev=host_alias ;; |
252b5132 | 1095 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 1096 | host_alias=$ac_optarg ;; |
252b5132 | 1097 | |
81ecdfbb RW |
1098 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1099 | ac_prev=htmldir ;; | |
1100 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1101 | | --ht=*) | |
1102 | htmldir=$ac_optarg ;; | |
1103 | ||
252b5132 RH |
1104 | -includedir | --includedir | --includedi | --included | --include \ |
1105 | | --includ | --inclu | --incl | --inc) | |
1106 | ac_prev=includedir ;; | |
1107 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1108 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 1109 | includedir=$ac_optarg ;; |
252b5132 RH |
1110 | |
1111 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1112 | ac_prev=infodir ;; | |
1113 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 1114 | infodir=$ac_optarg ;; |
252b5132 RH |
1115 | |
1116 | -libdir | --libdir | --libdi | --libd) | |
1117 | ac_prev=libdir ;; | |
1118 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 1119 | libdir=$ac_optarg ;; |
252b5132 RH |
1120 | |
1121 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1122 | | --libexe | --libex | --libe) | |
1123 | ac_prev=libexecdir ;; | |
1124 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1125 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 1126 | libexecdir=$ac_optarg ;; |
252b5132 | 1127 | |
81ecdfbb RW |
1128 | -localedir | --localedir | --localedi | --localed | --locale) |
1129 | ac_prev=localedir ;; | |
1130 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1131 | localedir=$ac_optarg ;; | |
1132 | ||
252b5132 | 1133 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1134 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1135 | ac_prev=localstatedir ;; |
1136 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1137 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
42ecbf5e | 1138 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1139 | |
1140 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1141 | ac_prev=mandir ;; | |
1142 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 1143 | mandir=$ac_optarg ;; |
252b5132 RH |
1144 | |
1145 | -nfp | --nfp | --nf) | |
1146 | # Obsolete; use --without-fp. | |
1147 | with_fp=no ;; | |
1148 | ||
1149 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 1150 | | --no-cr | --no-c | -n) |
252b5132 RH |
1151 | no_create=yes ;; |
1152 | ||
1153 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1154 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1155 | no_recursion=yes ;; | |
1156 | ||
1157 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1158 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1159 | | --oldin | --oldi | --old | --ol | --o) | |
1160 | ac_prev=oldincludedir ;; | |
1161 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1162 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1163 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 1164 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1165 | |
1166 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1167 | ac_prev=prefix ;; | |
1168 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 1169 | prefix=$ac_optarg ;; |
252b5132 RH |
1170 | |
1171 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1172 | | --program-pre | --program-pr | --program-p) | |
1173 | ac_prev=program_prefix ;; | |
1174 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1175 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 1176 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1177 | |
1178 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1179 | | --program-suf | --program-su | --program-s) | |
1180 | ac_prev=program_suffix ;; | |
1181 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1182 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 1183 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1184 | |
1185 | -program-transform-name | --program-transform-name \ | |
1186 | | --program-transform-nam | --program-transform-na \ | |
1187 | | --program-transform-n | --program-transform- \ | |
1188 | | --program-transform | --program-transfor \ | |
1189 | | --program-transfo | --program-transf \ | |
1190 | | --program-trans | --program-tran \ | |
1191 | | --progr-tra | --program-tr | --program-t) | |
1192 | ac_prev=program_transform_name ;; | |
1193 | -program-transform-name=* | --program-transform-name=* \ | |
1194 | | --program-transform-nam=* | --program-transform-na=* \ | |
1195 | | --program-transform-n=* | --program-transform-=* \ | |
1196 | | --program-transform=* | --program-transfor=* \ | |
1197 | | --program-transfo=* | --program-transf=* \ | |
1198 | | --program-trans=* | --program-tran=* \ | |
1199 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 1200 | program_transform_name=$ac_optarg ;; |
252b5132 | 1201 | |
81ecdfbb RW |
1202 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1203 | ac_prev=pdfdir ;; | |
1204 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1205 | pdfdir=$ac_optarg ;; | |
1206 | ||
1207 | -psdir | --psdir | --psdi | --psd | --ps) | |
1208 | ac_prev=psdir ;; | |
1209 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1210 | psdir=$ac_optarg ;; | |
1211 | ||
252b5132 RH |
1212 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1213 | | -silent | --silent | --silen | --sile | --sil) | |
1214 | silent=yes ;; | |
1215 | ||
1216 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1217 | ac_prev=sbindir ;; | |
1218 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1219 | | --sbi=* | --sb=*) | |
42ecbf5e | 1220 | sbindir=$ac_optarg ;; |
252b5132 RH |
1221 | |
1222 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1223 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1224 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1225 | | --sha | --sh) | |
1226 | ac_prev=sharedstatedir ;; | |
1227 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1228 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1229 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1230 | | --sha=* | --sh=*) | |
42ecbf5e | 1231 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1232 | |
1233 | -site | --site | --sit) | |
1234 | ac_prev=site ;; | |
1235 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 1236 | site=$ac_optarg ;; |
85fbca6a | 1237 | |
252b5132 RH |
1238 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1239 | ac_prev=srcdir ;; | |
1240 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 1241 | srcdir=$ac_optarg ;; |
252b5132 RH |
1242 | |
1243 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1244 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1245 | ac_prev=sysconfdir ;; | |
1246 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1247 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 1248 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1249 | |
1250 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 1251 | ac_prev=target_alias ;; |
252b5132 | 1252 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 1253 | target_alias=$ac_optarg ;; |
252b5132 RH |
1254 | |
1255 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1256 | verbose=yes ;; | |
1257 | ||
42ecbf5e DJ |
1258 | -version | --version | --versio | --versi | --vers | -V) |
1259 | ac_init_version=: ;; | |
252b5132 RH |
1260 | |
1261 | -with-* | --with-*) | |
81ecdfbb | 1262 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1263 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1264 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1265 | as_fn_error "invalid package name: $ac_useropt" | |
1266 | ac_useropt_orig=$ac_useropt | |
1267 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1268 | case $ac_user_opts in | |
1269 | *" | |
1270 | "with_$ac_useropt" | |
1271 | "*) ;; | |
1272 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1273 | ac_unrecognized_sep=', ';; | |
252b5132 | 1274 | esac |
81ecdfbb | 1275 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1276 | |
1277 | -without-* | --without-*) | |
81ecdfbb | 1278 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1279 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1280 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1281 | as_fn_error "invalid package name: $ac_useropt" | |
1282 | ac_useropt_orig=$ac_useropt | |
1283 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1284 | case $ac_user_opts in | |
1285 | *" | |
1286 | "with_$ac_useropt" | |
1287 | "*) ;; | |
1288 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1289 | ac_unrecognized_sep=', ';; | |
1290 | esac | |
1291 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1292 | |
1293 | --x) | |
1294 | # Obsolete; use --with-x. | |
1295 | with_x=yes ;; | |
1296 | ||
1297 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1298 | | --x-incl | --x-inc | --x-in | --x-i) | |
1299 | ac_prev=x_includes ;; | |
1300 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1301 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 1302 | x_includes=$ac_optarg ;; |
252b5132 RH |
1303 | |
1304 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1305 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1306 | ac_prev=x_libraries ;; | |
1307 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1308 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 1309 | x_libraries=$ac_optarg ;; |
252b5132 | 1310 | |
81ecdfbb RW |
1311 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1312 | Try \`$0 --help' for more information." | |
252b5132 RH |
1313 | ;; |
1314 | ||
42ecbf5e DJ |
1315 | *=*) |
1316 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1317 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1318 | case $ac_envvar in #( |
1319 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1320 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1321 | esac | |
1322 | eval $ac_envvar=\$ac_optarg | |
42ecbf5e DJ |
1323 | export $ac_envvar ;; |
1324 | ||
252b5132 | 1325 | *) |
42ecbf5e | 1326 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1327 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
42ecbf5e | 1328 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1329 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
42ecbf5e | 1330 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
252b5132 RH |
1331 | ;; |
1332 | ||
1333 | esac | |
1334 | done | |
1335 | ||
1336 | if test -n "$ac_prev"; then | |
42ecbf5e | 1337 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1338 | as_fn_error "missing argument to $ac_option" |
252b5132 | 1339 | fi |
252b5132 | 1340 | |
81ecdfbb RW |
1341 | if test -n "$ac_unrecognized_opts"; then |
1342 | case $enable_option_checking in | |
1343 | no) ;; | |
1344 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1345 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
42ecbf5e | 1346 | esac |
81ecdfbb | 1347 | fi |
252b5132 | 1348 | |
81ecdfbb RW |
1349 | # Check all directory arguments for consistency. |
1350 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1351 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1352 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1353 | libdir localedir mandir | |
252b5132 | 1354 | do |
81ecdfbb RW |
1355 | eval ac_val=\$$ac_var |
1356 | # Remove trailing slashes. | |
1357 | case $ac_val in | |
1358 | */ ) | |
1359 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1360 | eval $ac_var=\$ac_val;; | |
1361 | esac | |
1362 | # Be sure to have absolute directory names. | |
42ecbf5e | 1363 | case $ac_val in |
81ecdfbb RW |
1364 | [\\/$]* | ?:[\\/]* ) continue;; |
1365 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
252b5132 | 1366 | esac |
81ecdfbb | 1367 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1368 | done |
1369 | ||
42ecbf5e DJ |
1370 | # There might be people who depend on the old broken behavior: `$host' |
1371 | # used to hold the argument of --host etc. | |
1372 | # FIXME: To remove some day. | |
1373 | build=$build_alias | |
1374 | host=$host_alias | |
1375 | target=$target_alias | |
1376 | ||
1377 | # FIXME: To remove some day. | |
1378 | if test "x$host_alias" != x; then | |
1379 | if test "x$build_alias" = x; then | |
1380 | cross_compiling=maybe | |
81ecdfbb | 1381 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
42ecbf5e DJ |
1382 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1383 | elif test "x$build_alias" != "x$host_alias"; then | |
1384 | cross_compiling=yes | |
1385 | fi | |
1386 | fi | |
e5a52504 | 1387 | |
42ecbf5e DJ |
1388 | ac_tool_prefix= |
1389 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1390 | ||
1391 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1392 | |
252b5132 | 1393 | |
81ecdfbb RW |
1394 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1395 | ac_ls_di=`ls -di .` && | |
1396 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1397 | as_fn_error "working directory cannot be determined" | |
1398 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1399 | as_fn_error "pwd does not report name of working directory" | |
1400 | ||
1401 | ||
252b5132 RH |
1402 | # Find the source files, if location was not specified. |
1403 | if test -z "$srcdir"; then | |
1404 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1405 | # Try the directory containing this script, then the parent directory. |
1406 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1407 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1408 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1409 | X"$as_myself" : 'X\(//\)$' \| \ | |
1410 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1411 | $as_echo X"$as_myself" | | |
1412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1413 | s//\1/ | |
1414 | q | |
1415 | } | |
1416 | /^X\(\/\/\)[^/].*/{ | |
1417 | s//\1/ | |
1418 | q | |
1419 | } | |
1420 | /^X\(\/\/\)$/{ | |
1421 | s//\1/ | |
1422 | q | |
1423 | } | |
1424 | /^X\(\/\).*/{ | |
1425 | s//\1/ | |
1426 | q | |
1427 | } | |
1428 | s/.*/./; q'` | |
252b5132 | 1429 | srcdir=$ac_confdir |
81ecdfbb | 1430 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1431 | srcdir=.. |
1432 | fi | |
1433 | else | |
1434 | ac_srcdir_defaulted=no | |
1435 | fi | |
81ecdfbb RW |
1436 | if test ! -r "$srcdir/$ac_unique_file"; then |
1437 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1438 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1439 | fi | |
1440 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1441 | ac_abs_confdir=`( | |
1442 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1443 | pwd)` | |
1444 | # When building in place, set srcdir=. | |
1445 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1446 | srcdir=. | |
1447 | fi | |
1448 | # Remove unnecessary trailing slashes from srcdir. | |
1449 | # Double slashes in file names in object file debugging info | |
1450 | # mess up M-x gdb in Emacs. | |
1451 | case $srcdir in | |
1452 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1453 | esac | |
1454 | for ac_var in $ac_precious_vars; do | |
1455 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1456 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1457 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1458 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1459 | done | |
252b5132 | 1460 | |
42ecbf5e DJ |
1461 | # |
1462 | # Report the --help message. | |
1463 | # | |
1464 | if test "$ac_init_help" = "long"; then | |
1465 | # Omit some internal or obsolete options to make the list less imposing. | |
1466 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1467 | cat <<_ACEOF | |
1468 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 1469 | |
42ecbf5e | 1470 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1471 | |
42ecbf5e DJ |
1472 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1473 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 1474 | |
42ecbf5e | 1475 | Defaults for the options are specified in brackets. |
ac48eca1 | 1476 | |
42ecbf5e DJ |
1477 | Configuration: |
1478 | -h, --help display this help and exit | |
1479 | --help=short display options specific to this package | |
1480 | --help=recursive display the short help of all the included packages | |
1481 | -V, --version display version information and exit | |
1482 | -q, --quiet, --silent do not print \`checking...' messages | |
1483 | --cache-file=FILE cache test results in FILE [disabled] | |
1484 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1485 | -n, --no-create do not create output files | |
1486 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1487 | ||
42ecbf5e DJ |
1488 | Installation directories: |
1489 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1490 | [$ac_default_prefix] |
42ecbf5e | 1491 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1492 | [PREFIX] |
ac48eca1 | 1493 | |
42ecbf5e DJ |
1494 | By default, \`make install' will install all the files in |
1495 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1496 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1497 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 1498 | |
42ecbf5e | 1499 | For better control, use the options below. |
ac48eca1 | 1500 | |
42ecbf5e | 1501 | Fine tuning of the installation directories: |
81ecdfbb RW |
1502 | --bindir=DIR user executables [EPREFIX/bin] |
1503 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1504 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1505 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1506 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1507 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1508 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1509 | --includedir=DIR C header files [PREFIX/include] | |
1510 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1511 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1512 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1513 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1514 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1515 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1516 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1517 | --htmldir=DIR html documentation [DOCDIR] | |
1518 | --dvidir=DIR dvi documentation [DOCDIR] | |
1519 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1520 | --psdir=DIR ps documentation [DOCDIR] | |
42ecbf5e | 1521 | _ACEOF |
ac48eca1 | 1522 | |
42ecbf5e | 1523 | cat <<\_ACEOF |
252b5132 | 1524 | |
42ecbf5e DJ |
1525 | Program names: |
1526 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1527 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1528 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1529 | |
42ecbf5e DJ |
1530 | System types: |
1531 | --build=BUILD configure for building on BUILD [guessed] | |
1532 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1533 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1534 | _ACEOF | |
252b5132 | 1535 | fi |
252b5132 | 1536 | |
42ecbf5e | 1537 | if test -n "$ac_init_help"; then |
252b5132 | 1538 | |
42ecbf5e | 1539 | cat <<\_ACEOF |
e5a52504 | 1540 | |
42ecbf5e | 1541 | Optional Features: |
81ecdfbb | 1542 | --disable-option-checking ignore unrecognized --enable/--with options |
42ecbf5e DJ |
1543 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1544 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1545 | --disable-dependency-tracking speeds up one-time build | |
1546 | --enable-dependency-tracking do not reject slow dependency extractors | |
64ac50ac RW |
1547 | --enable-maintainer-mode enable make rules and dependencies not useful |
1548 | (and sometimes confusing) to the casual installer | |
ce2cded5 L |
1549 | --enable-targets alternative target configurations |
1550 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
7fb9f789 NC |
1551 | --enable-got=<type> GOT handling scheme (target, single, negative, |
1552 | multigot) | |
ce2cded5 L |
1553 | --enable-werror treat compile warnings as errors |
1554 | --enable-build-warnings enable build-time compiler warnings | |
d053aef8 | 1555 | --disable-largefile omit support for large files |
81ecdfbb RW |
1556 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1557 | --enable-static[=PKGS] build static libraries [default=yes] | |
d7040cdb SE |
1558 | --enable-fast-install[=PKGS] |
1559 | optimize for fast installation [default=yes] | |
42ecbf5e | 1560 | --disable-libtool-lock avoid locking (might break parallel builds) |
42ecbf5e | 1561 | --disable-nls do not use Native Language Support |
42ecbf5e DJ |
1562 | |
1563 | Optional Packages: | |
1564 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1565 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
ce2cded5 L |
1566 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1567 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
d7040cdb SE |
1568 | --with-pic try to use only PIC/non-PIC objects [default=use |
1569 | both] | |
1570 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
42ecbf5e DJ |
1571 | |
1572 | Some influential environment variables: | |
1573 | CC C compiler command | |
1574 | CFLAGS C compiler flags | |
1575 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1576 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1577 | LIBS libraries to pass to the linker, e.g. -l<library> |
1578 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1579 | you have headers in a nonstandard directory <include dir> | |
42ecbf5e | 1580 | CPP C preprocessor |
81ecdfbb RW |
1581 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1582 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1583 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1584 | This script will default YFLAGS to the empty string to avoid a | |
1585 | default value of `-d' given by some make applications. | |
42ecbf5e DJ |
1586 | |
1587 | Use these variables to override the choices made by `configure' or to help | |
1588 | it to find libraries and programs with nonstandard names/locations. | |
1589 | ||
81ecdfbb | 1590 | Report bugs to the package provider. |
42ecbf5e | 1591 | _ACEOF |
81ecdfbb | 1592 | ac_status=$? |
42ecbf5e DJ |
1593 | fi |
1594 | ||
1595 | if test "$ac_init_help" = "recursive"; then | |
1596 | # If there are subdirs, report their specific --help. | |
42ecbf5e | 1597 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1598 | test -d "$ac_dir" || |
1599 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1600 | continue | |
42ecbf5e DJ |
1601 | ac_builddir=. |
1602 | ||
81ecdfbb RW |
1603 | case "$ac_dir" in |
1604 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1605 | *) | |
1606 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1607 | # A ".." for each directory in $ac_dir_suffix. | |
1608 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1609 | case $ac_top_builddir_sub in | |
1610 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1611 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1612 | esac ;; | |
1613 | esac | |
1614 | ac_abs_top_builddir=$ac_pwd | |
1615 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1616 | # for backward compatibility: | |
1617 | ac_top_builddir=$ac_top_build_prefix | |
42ecbf5e DJ |
1618 | |
1619 | case $srcdir in | |
81ecdfbb | 1620 | .) # We are building in place. |
42ecbf5e | 1621 | ac_srcdir=. |
81ecdfbb RW |
1622 | ac_top_srcdir=$ac_top_builddir_sub |
1623 | ac_abs_top_srcdir=$ac_pwd ;; | |
1624 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 1625 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1626 | ac_top_srcdir=$srcdir |
1627 | ac_abs_top_srcdir=$srcdir ;; | |
1628 | *) # Relative name. | |
1629 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1630 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1631 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 1632 | esac |
81ecdfbb RW |
1633 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1634 | ||
1635 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1636 | # Check for guested configure. | |
1637 | if test -f "$ac_srcdir/configure.gnu"; then | |
1638 | echo && | |
1639 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1640 | elif test -f "$ac_srcdir/configure"; then | |
1641 | echo && | |
1642 | $SHELL "$ac_srcdir/configure" --help=recursive | |
42ecbf5e | 1643 | else |
81ecdfbb RW |
1644 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1645 | fi || ac_status=$? | |
1646 | cd "$ac_pwd" || { ac_status=$?; break; } | |
42ecbf5e | 1647 | done |
a2d91340 AC |
1648 | fi |
1649 | ||
81ecdfbb | 1650 | test -n "$ac_init_help" && exit $ac_status |
42ecbf5e DJ |
1651 | if $ac_init_version; then |
1652 | cat <<\_ACEOF | |
81ecdfbb RW |
1653 | configure |
1654 | generated by GNU Autoconf 2.64 | |
a2d91340 | 1655 | |
81ecdfbb | 1656 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
1657 | This configure script is free software; the Free Software Foundation |
1658 | gives unlimited permission to copy, distribute and modify it. | |
1659 | _ACEOF | |
81ecdfbb | 1660 | exit |
42ecbf5e | 1661 | fi |
a2d91340 | 1662 | |
81ecdfbb RW |
1663 | ## ------------------------ ## |
1664 | ## Autoconf initialization. ## | |
1665 | ## ------------------------ ## | |
a2d91340 | 1666 | |
81ecdfbb RW |
1667 | # ac_fn_c_try_compile LINENO |
1668 | # -------------------------- | |
1669 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1670 | ac_fn_c_try_compile () | |
1671 | { | |
1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1673 | rm -f conftest.$ac_objext | |
1674 | if { { ac_try="$ac_compile" | |
1675 | case "(($ac_try" in | |
1676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1677 | *) ac_try_echo=$ac_try;; | |
1678 | esac | |
1679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1680 | $as_echo "$ac_try_echo"; } >&5 | |
1681 | (eval "$ac_compile") 2>conftest.err | |
1682 | ac_status=$? | |
1683 | if test -s conftest.err; then | |
1684 | grep -v '^ *+' conftest.err >conftest.er1 | |
1685 | cat conftest.er1 >&5 | |
1686 | mv -f conftest.er1 conftest.err | |
1687 | fi | |
1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1689 | test $ac_status = 0; } && { | |
1690 | test -z "$ac_c_werror_flag" || | |
1691 | test ! -s conftest.err | |
1692 | } && test -s conftest.$ac_objext; then : | |
1693 | ac_retval=0 | |
1694 | else | |
1695 | $as_echo "$as_me: failed program was:" >&5 | |
1696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a2d91340 | 1697 | |
81ecdfbb RW |
1698 | ac_retval=1 |
1699 | fi | |
1700 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1701 | return $ac_retval | |
1702 | ||
1703 | } # ac_fn_c_try_compile | |
1704 | ||
1705 | # ac_fn_c_try_link LINENO | |
1706 | # ----------------------- | |
1707 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1708 | ac_fn_c_try_link () | |
42ecbf5e | 1709 | { |
81ecdfbb RW |
1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1712 | if { { ac_try="$ac_link" | |
1713 | case "(($ac_try" in | |
1714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1715 | *) ac_try_echo=$ac_try;; | |
1716 | esac | |
1717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1718 | $as_echo "$ac_try_echo"; } >&5 | |
1719 | (eval "$ac_link") 2>conftest.err | |
1720 | ac_status=$? | |
1721 | if test -s conftest.err; then | |
1722 | grep -v '^ *+' conftest.err >conftest.er1 | |
1723 | cat conftest.er1 >&5 | |
1724 | mv -f conftest.er1 conftest.err | |
1725 | fi | |
1726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1727 | test $ac_status = 0; } && { | |
1728 | test -z "$ac_c_werror_flag" || | |
1729 | test ! -s conftest.err | |
1730 | } && test -s conftest$ac_exeext && { | |
1731 | test "$cross_compiling" = yes || | |
1732 | $as_test_x conftest$ac_exeext | |
1733 | }; then : | |
1734 | ac_retval=0 | |
1735 | else | |
1736 | $as_echo "$as_me: failed program was:" >&5 | |
1737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 1738 | |
81ecdfbb RW |
1739 | ac_retval=1 |
1740 | fi | |
1741 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1742 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1743 | # interfere with the next link command; also delete a directory that is | |
1744 | # left behind by Apple's compiler. We do this before executing the actions. | |
1745 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1746 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1747 | return $ac_retval | |
42ecbf5e | 1748 | |
81ecdfbb | 1749 | } # ac_fn_c_try_link |
42ecbf5e | 1750 | |
81ecdfbb RW |
1751 | # ac_fn_c_try_cpp LINENO |
1752 | # ---------------------- | |
1753 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1754 | ac_fn_c_try_cpp () | |
1755 | { | |
1756 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1757 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1758 | case "(($ac_try" in | |
1759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1760 | *) ac_try_echo=$ac_try;; | |
1761 | esac | |
1762 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1763 | $as_echo "$ac_try_echo"; } >&5 | |
1764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1765 | ac_status=$? | |
1766 | if test -s conftest.err; then | |
1767 | grep -v '^ *+' conftest.err >conftest.er1 | |
1768 | cat conftest.er1 >&5 | |
1769 | mv -f conftest.er1 conftest.err | |
1770 | fi | |
1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1772 | test $ac_status = 0; } >/dev/null && { | |
1773 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1774 | test ! -s conftest.err | |
1775 | }; then : | |
1776 | ac_retval=0 | |
1777 | else | |
1778 | $as_echo "$as_me: failed program was:" >&5 | |
1779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1780 | ||
1781 | ac_retval=1 | |
1782 | fi | |
1783 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1784 | return $ac_retval | |
1785 | ||
1786 | } # ac_fn_c_try_cpp | |
1787 | ||
1788 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1789 | # ------------------------------------------------------- | |
1790 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1791 | # the include files in INCLUDES and setting the cache variable VAR | |
1792 | # accordingly. | |
1793 | ac_fn_c_check_header_mongrel () | |
1794 | { | |
1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1796 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1798 | $as_echo_n "checking for $2... " >&6; } | |
1799 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1800 | $as_echo_n "(cached) " >&6 | |
1801 | fi | |
1802 | eval ac_res=\$$3 | |
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1804 | $as_echo "$ac_res" >&6; } | |
1805 | else | |
1806 | # Is the header compilable? | |
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1808 | $as_echo_n "checking $2 usability... " >&6; } | |
1809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1810 | /* end confdefs.h. */ | |
1811 | $4 | |
1812 | #include <$2> | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_compile "$LINENO"; then : | |
1815 | ac_header_compiler=yes | |
1816 | else | |
1817 | ac_header_compiler=no | |
1818 | fi | |
1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1821 | $as_echo "$ac_header_compiler" >&6; } | |
1822 | ||
1823 | # Is the header present? | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1825 | $as_echo_n "checking $2 presence... " >&6; } | |
1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1827 | /* end confdefs.h. */ | |
1828 | #include <$2> | |
1829 | _ACEOF | |
1830 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1831 | ac_header_preproc=yes | |
1832 | else | |
1833 | ac_header_preproc=no | |
1834 | fi | |
1835 | rm -f conftest.err conftest.$ac_ext | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1837 | $as_echo "$ac_header_preproc" >&6; } | |
1838 | ||
1839 | # So? What about this header? | |
1840 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1841 | yes:no: ) | |
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1843 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1845 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1846 | ;; | |
1847 | no:yes:* ) | |
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1849 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1851 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1853 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1855 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1857 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1858 | ;; | |
1859 | esac | |
1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1861 | $as_echo_n "checking for $2... " >&6; } | |
1862 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1863 | $as_echo_n "(cached) " >&6 | |
1864 | else | |
1865 | eval "$3=\$ac_header_compiler" | |
1866 | fi | |
1867 | eval ac_res=\$$3 | |
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1869 | $as_echo "$ac_res" >&6; } | |
1870 | fi | |
1871 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1872 | ||
1873 | } # ac_fn_c_check_header_mongrel | |
1874 | ||
1875 | # ac_fn_c_try_run LINENO | |
1876 | # ---------------------- | |
1877 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1878 | # that executables *can* be run. | |
1879 | ac_fn_c_try_run () | |
1880 | { | |
1881 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1882 | if { { ac_try="$ac_link" | |
1883 | case "(($ac_try" in | |
1884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1885 | *) ac_try_echo=$ac_try;; | |
1886 | esac | |
1887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1888 | $as_echo "$ac_try_echo"; } >&5 | |
1889 | (eval "$ac_link") 2>&5 | |
1890 | ac_status=$? | |
1891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1892 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1893 | { { case "(($ac_try" in | |
1894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1895 | *) ac_try_echo=$ac_try;; | |
1896 | esac | |
1897 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1898 | $as_echo "$ac_try_echo"; } >&5 | |
1899 | (eval "$ac_try") 2>&5 | |
1900 | ac_status=$? | |
1901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1902 | test $ac_status = 0; }; }; then : | |
1903 | ac_retval=0 | |
1904 | else | |
1905 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1906 | $as_echo "$as_me: failed program was:" >&5 | |
1907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1908 | ||
1909 | ac_retval=$ac_status | |
1910 | fi | |
1911 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1912 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1913 | return $ac_retval | |
1914 | ||
1915 | } # ac_fn_c_try_run | |
1916 | ||
1917 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1918 | # ------------------------------------------------------- | |
1919 | # Tests whether HEADER exists and can be compiled using the include files in | |
1920 | # INCLUDES, setting the cache variable VAR accordingly. | |
1921 | ac_fn_c_check_header_compile () | |
1922 | { | |
1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1925 | $as_echo_n "checking for $2... " >&6; } | |
1926 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1927 | $as_echo_n "(cached) " >&6 | |
1928 | else | |
1929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1930 | /* end confdefs.h. */ | |
1931 | $4 | |
1932 | #include <$2> | |
1933 | _ACEOF | |
1934 | if ac_fn_c_try_compile "$LINENO"; then : | |
1935 | eval "$3=yes" | |
1936 | else | |
1937 | eval "$3=no" | |
1938 | fi | |
1939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1940 | fi | |
1941 | eval ac_res=\$$3 | |
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1943 | $as_echo "$ac_res" >&6; } | |
1944 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1945 | ||
1946 | } # ac_fn_c_check_header_compile | |
1947 | ||
1948 | # ac_fn_c_check_func LINENO FUNC VAR | |
1949 | # ---------------------------------- | |
1950 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1951 | ac_fn_c_check_func () | |
1952 | { | |
1953 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1955 | $as_echo_n "checking for $2... " >&6; } | |
1956 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1957 | $as_echo_n "(cached) " >&6 | |
1958 | else | |
1959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1960 | /* end confdefs.h. */ | |
1961 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1962 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1963 | #define $2 innocuous_$2 | |
1964 | ||
1965 | /* System header to define __stub macros and hopefully few prototypes, | |
1966 | which can conflict with char $2 (); below. | |
1967 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1968 | <limits.h> exists even on freestanding compilers. */ | |
1969 | ||
1970 | #ifdef __STDC__ | |
1971 | # include <limits.h> | |
1972 | #else | |
1973 | # include <assert.h> | |
1974 | #endif | |
1975 | ||
1976 | #undef $2 | |
1977 | ||
1978 | /* Override any GCC internal prototype to avoid an error. | |
1979 | Use char because int might match the return type of a GCC | |
1980 | builtin and then its argument prototype would still apply. */ | |
1981 | #ifdef __cplusplus | |
1982 | extern "C" | |
1983 | #endif | |
1984 | char $2 (); | |
1985 | /* The GNU C library defines this for functions which it implements | |
1986 | to always fail with ENOSYS. Some functions are actually named | |
1987 | something starting with __ and the normal name is an alias. */ | |
1988 | #if defined __stub_$2 || defined __stub___$2 | |
1989 | choke me | |
1990 | #endif | |
1991 | ||
1992 | int | |
1993 | main () | |
1994 | { | |
1995 | return $2 (); | |
1996 | ; | |
1997 | return 0; | |
1998 | } | |
1999 | _ACEOF | |
2000 | if ac_fn_c_try_link "$LINENO"; then : | |
2001 | eval "$3=yes" | |
2002 | else | |
2003 | eval "$3=no" | |
2004 | fi | |
2005 | rm -f core conftest.err conftest.$ac_objext \ | |
2006 | conftest$ac_exeext conftest.$ac_ext | |
2007 | fi | |
2008 | eval ac_res=\$$3 | |
2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2010 | $as_echo "$ac_res" >&6; } | |
2011 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2012 | ||
2013 | } # ac_fn_c_check_func | |
2014 | ||
2015 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
2016 | # ------------------------------------ | |
2017 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2018 | ac_fn_c_check_decl () | |
2019 | { | |
2020 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 | |
2022 | $as_echo_n "checking whether $2 is declared... " >&6; } | |
2023 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2024 | $as_echo_n "(cached) " >&6 | |
2025 | else | |
2026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2027 | /* end confdefs.h. */ | |
2028 | $4 | |
2029 | int | |
2030 | main () | |
2031 | { | |
2032 | #ifndef $2 | |
2033 | (void) $2; | |
2034 | #endif | |
2035 | ||
2036 | ; | |
2037 | return 0; | |
2038 | } | |
2039 | _ACEOF | |
2040 | if ac_fn_c_try_compile "$LINENO"; then : | |
2041 | eval "$3=yes" | |
2042 | else | |
2043 | eval "$3=no" | |
2044 | fi | |
2045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2046 | fi | |
2047 | eval ac_res=\$$3 | |
2048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2049 | $as_echo "$ac_res" >&6; } | |
2050 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2051 | ||
2052 | } # ac_fn_c_check_decl | |
2053 | ||
2054 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2055 | # -------------------------------------------- | |
2056 | # Tries to find the compile-time value of EXPR in a program that includes | |
2057 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2058 | # computed | |
2059 | ac_fn_c_compute_int () | |
2060 | { | |
2061 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2062 | if test "$cross_compiling" = yes; then | |
2063 | # Depending upon the size, compute the lo and hi bounds. | |
2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2065 | /* end confdefs.h. */ | |
2066 | $4 | |
2067 | int | |
2068 | main () | |
2069 | { | |
2070 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2071 | test_array [0] = 0 | |
2072 | ||
2073 | ; | |
2074 | return 0; | |
2075 | } | |
2076 | _ACEOF | |
2077 | if ac_fn_c_try_compile "$LINENO"; then : | |
2078 | ac_lo=0 ac_mid=0 | |
2079 | while :; do | |
2080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2081 | /* end confdefs.h. */ | |
2082 | $4 | |
2083 | int | |
2084 | main () | |
2085 | { | |
2086 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2087 | test_array [0] = 0 | |
2088 | ||
2089 | ; | |
2090 | return 0; | |
2091 | } | |
2092 | _ACEOF | |
2093 | if ac_fn_c_try_compile "$LINENO"; then : | |
2094 | ac_hi=$ac_mid; break | |
2095 | else | |
2096 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2097 | if test $ac_lo -le $ac_mid; then | |
2098 | ac_lo= ac_hi= | |
2099 | break | |
2100 | fi | |
2101 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2102 | fi | |
2103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2104 | done | |
2105 | else | |
2106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2107 | /* end confdefs.h. */ | |
2108 | $4 | |
2109 | int | |
2110 | main () | |
2111 | { | |
2112 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2113 | test_array [0] = 0 | |
2114 | ||
2115 | ; | |
2116 | return 0; | |
2117 | } | |
2118 | _ACEOF | |
2119 | if ac_fn_c_try_compile "$LINENO"; then : | |
2120 | ac_hi=-1 ac_mid=-1 | |
2121 | while :; do | |
2122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2123 | /* end confdefs.h. */ | |
2124 | $4 | |
2125 | int | |
2126 | main () | |
2127 | { | |
2128 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2129 | test_array [0] = 0 | |
2130 | ||
2131 | ; | |
2132 | return 0; | |
2133 | } | |
2134 | _ACEOF | |
2135 | if ac_fn_c_try_compile "$LINENO"; then : | |
2136 | ac_lo=$ac_mid; break | |
2137 | else | |
2138 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2139 | if test $ac_mid -le $ac_hi; then | |
2140 | ac_lo= ac_hi= | |
2141 | break | |
2142 | fi | |
2143 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2144 | fi | |
2145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2146 | done | |
2147 | else | |
2148 | ac_lo= ac_hi= | |
2149 | fi | |
2150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2151 | fi | |
2152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2153 | # Binary search between lo and hi bounds. | |
2154 | while test "x$ac_lo" != "x$ac_hi"; do | |
2155 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2157 | /* end confdefs.h. */ | |
2158 | $4 | |
2159 | int | |
2160 | main () | |
2161 | { | |
2162 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2163 | test_array [0] = 0 | |
2164 | ||
2165 | ; | |
2166 | return 0; | |
2167 | } | |
2168 | _ACEOF | |
2169 | if ac_fn_c_try_compile "$LINENO"; then : | |
2170 | ac_hi=$ac_mid | |
2171 | else | |
2172 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2173 | fi | |
2174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2175 | done | |
2176 | case $ac_lo in #(( | |
2177 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2178 | '') ac_retval=1 ;; | |
2179 | esac | |
2180 | else | |
2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2182 | /* end confdefs.h. */ | |
2183 | $4 | |
2184 | static long int longval () { return $2; } | |
2185 | static unsigned long int ulongval () { return $2; } | |
2186 | #include <stdio.h> | |
2187 | #include <stdlib.h> | |
2188 | int | |
2189 | main () | |
2190 | { | |
2191 | ||
2192 | FILE *f = fopen ("conftest.val", "w"); | |
2193 | if (! f) | |
2194 | return 1; | |
2195 | if (($2) < 0) | |
2196 | { | |
2197 | long int i = longval (); | |
2198 | if (i != ($2)) | |
2199 | return 1; | |
2200 | fprintf (f, "%ld", i); | |
2201 | } | |
2202 | else | |
2203 | { | |
2204 | unsigned long int i = ulongval (); | |
2205 | if (i != ($2)) | |
2206 | return 1; | |
2207 | fprintf (f, "%lu", i); | |
2208 | } | |
2209 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2210 | on some platforms. */ | |
2211 | return ferror (f) || fclose (f) != 0; | |
2212 | ||
2213 | ; | |
2214 | return 0; | |
2215 | } | |
2216 | _ACEOF | |
2217 | if ac_fn_c_try_run "$LINENO"; then : | |
2218 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2219 | else | |
2220 | ac_retval=1 | |
2221 | fi | |
2222 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2223 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2224 | rm -f conftest.val | |
2225 | ||
2226 | fi | |
2227 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2228 | return $ac_retval | |
2229 | ||
2230 | } # ac_fn_c_compute_int | |
2231 | cat >config.log <<_ACEOF | |
2232 | This file contains any messages produced by compilers while | |
2233 | running configure, to aid debugging if configure makes a mistake. | |
2234 | ||
2235 | It was created by $as_me, which was | |
2236 | generated by GNU Autoconf 2.64. Invocation command line was | |
2237 | ||
2238 | $ $0 $@ | |
2239 | ||
2240 | _ACEOF | |
2241 | exec 5>>config.log | |
2242 | { | |
2243 | cat <<_ASUNAME | |
2244 | ## --------- ## | |
2245 | ## Platform. ## | |
2246 | ## --------- ## | |
2247 | ||
2248 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2249 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2250 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2251 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2252 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2253 | ||
2254 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2255 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2256 | ||
2257 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2258 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2259 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2260 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
42ecbf5e DJ |
2261 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2262 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2263 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2264 | ||
2265 | _ASUNAME | |
2266 | ||
2267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2268 | for as_dir in $PATH | |
2269 | do | |
2270 | IFS=$as_save_IFS | |
2271 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2272 | $as_echo "PATH: $as_dir" |
2273 | done | |
2274 | IFS=$as_save_IFS | |
252b5132 | 2275 | |
42ecbf5e | 2276 | } >&5 |
5d64ca4e | 2277 | |
42ecbf5e | 2278 | cat >&5 <<_ACEOF |
5d64ca4e | 2279 | |
5d64ca4e | 2280 | |
42ecbf5e DJ |
2281 | ## ----------- ## |
2282 | ## Core tests. ## | |
2283 | ## ----------- ## | |
5d64ca4e | 2284 | |
42ecbf5e | 2285 | _ACEOF |
2469cfa2 | 2286 | |
42ecbf5e DJ |
2287 | |
2288 | # Keep a trace of the command line. | |
2289 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2290 | # Strip out --silent because we don't want to record it for future runs. | |
2291 | # Also quote any args containing shell meta-characters. | |
2292 | # Make two passes to allow for proper duplicate-argument suppression. | |
2293 | ac_configure_args= | |
2294 | ac_configure_args0= | |
2295 | ac_configure_args1= | |
42ecbf5e DJ |
2296 | ac_must_keep_next=false |
2297 | for ac_pass in 1 2 | |
2298 | do | |
2299 | for ac_arg | |
2300 | do | |
2301 | case $ac_arg in | |
2302 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2303 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2304 | | -silent | --silent | --silen | --sile | --sil) | |
2305 | continue ;; | |
81ecdfbb RW |
2306 | *\'*) |
2307 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42ecbf5e DJ |
2308 | esac |
2309 | case $ac_pass in | |
81ecdfbb | 2310 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
42ecbf5e | 2311 | 2) |
81ecdfbb | 2312 | as_fn_append ac_configure_args1 " '$ac_arg'" |
42ecbf5e DJ |
2313 | if test $ac_must_keep_next = true; then |
2314 | ac_must_keep_next=false # Got value, back to normal. | |
2315 | else | |
2316 | case $ac_arg in | |
2317 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2318 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2319 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2320 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2321 | case "$ac_configure_args0 " in | |
2322 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2323 | esac | |
2324 | ;; | |
2325 | -* ) ac_must_keep_next=true ;; | |
2326 | esac | |
2327 | fi | |
81ecdfbb | 2328 | as_fn_append ac_configure_args " '$ac_arg'" |
42ecbf5e DJ |
2329 | ;; |
2330 | esac | |
2331 | done | |
2332 | done | |
81ecdfbb RW |
2333 | { ac_configure_args0=; unset ac_configure_args0;} |
2334 | { ac_configure_args1=; unset ac_configure_args1;} | |
42ecbf5e DJ |
2335 | |
2336 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2337 | # config.log. We remove comments because anyway the quotes in there | |
2338 | # would cause problems or look ugly. | |
81ecdfbb RW |
2339 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2340 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
42ecbf5e DJ |
2341 | trap 'exit_status=$? |
2342 | # Save into config.log some information that might help in debugging. | |
2343 | { | |
2344 | echo | |
2345 | ||
2346 | cat <<\_ASBOX | |
2347 | ## ---------------- ## | |
2348 | ## Cache variables. ## | |
2349 | ## ---------------- ## | |
2350 | _ASBOX | |
2351 | echo | |
2352 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2353 | ( |
2354 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2355 | eval ac_val=\$$ac_var | |
2356 | case $ac_val in #( | |
2357 | *${as_nl}*) | |
2358 | case $ac_var in #( | |
2359 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2360 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2361 | esac | |
2362 | case $ac_var in #( | |
2363 | _ | IFS | as_nl) ;; #( | |
2364 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2365 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2366 | esac ;; | |
2367 | esac | |
2368 | done | |
42ecbf5e | 2369 | (set) 2>&1 | |
81ecdfbb RW |
2370 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2371 | *${as_nl}ac_space=\ *) | |
42ecbf5e | 2372 | sed -n \ |
81ecdfbb RW |
2373 | "s/'\''/'\''\\\\'\'''\''/g; |
2374 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2375 | ;; #( | |
42ecbf5e | 2376 | *) |
81ecdfbb | 2377 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 2378 | ;; |
81ecdfbb RW |
2379 | esac | |
2380 | sort | |
2381 | ) | |
42ecbf5e DJ |
2382 | echo |
2383 | ||
2384 | cat <<\_ASBOX | |
2385 | ## ----------------- ## | |
2386 | ## Output variables. ## | |
2387 | ## ----------------- ## | |
2388 | _ASBOX | |
2389 | echo | |
2390 | for ac_var in $ac_subst_vars | |
2391 | do | |
81ecdfbb RW |
2392 | eval ac_val=\$$ac_var |
2393 | case $ac_val in | |
2394 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2395 | esac | |
2396 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2397 | done | sort |
2398 | echo | |
2399 | ||
2400 | if test -n "$ac_subst_files"; then | |
2401 | cat <<\_ASBOX | |
81ecdfbb RW |
2402 | ## ------------------- ## |
2403 | ## File substitutions. ## | |
2404 | ## ------------------- ## | |
42ecbf5e DJ |
2405 | _ASBOX |
2406 | echo | |
2407 | for ac_var in $ac_subst_files | |
2408 | do | |
81ecdfbb RW |
2409 | eval ac_val=\$$ac_var |
2410 | case $ac_val in | |
2411 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2412 | esac | |
2413 | $as_echo "$ac_var='\''$ac_val'\''" | |
42ecbf5e DJ |
2414 | done | sort |
2415 | echo | |
2416 | fi | |
2417 | ||
2418 | if test -s confdefs.h; then | |
2419 | cat <<\_ASBOX | |
2420 | ## ----------- ## | |
2421 | ## confdefs.h. ## | |
2422 | ## ----------- ## | |
2423 | _ASBOX | |
2424 | echo | |
81ecdfbb | 2425 | cat confdefs.h |
42ecbf5e DJ |
2426 | echo |
2427 | fi | |
2428 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2429 | $as_echo "$as_me: caught signal $ac_signal" |
2430 | $as_echo "$as_me: exit $exit_status" | |
42ecbf5e | 2431 | } >&5 |
81ecdfbb RW |
2432 | rm -f core *.core core.conftest.* && |
2433 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
42ecbf5e | 2434 | exit $exit_status |
81ecdfbb | 2435 | ' 0 |
42ecbf5e | 2436 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2437 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
42ecbf5e DJ |
2438 | done |
2439 | ac_signal=0 | |
2440 | ||
2441 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2442 | rm -f -r conftest* confdefs.h |
2443 | ||
2444 | $as_echo "/* confdefs.h */" > confdefs.h | |
42ecbf5e DJ |
2445 | |
2446 | # Predefined preprocessor variables. | |
2447 | ||
2448 | cat >>confdefs.h <<_ACEOF | |
2449 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2450 | _ACEOF | |
2451 | ||
42ecbf5e DJ |
2452 | cat >>confdefs.h <<_ACEOF |
2453 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2454 | _ACEOF | |
2455 | ||
42ecbf5e DJ |
2456 | cat >>confdefs.h <<_ACEOF |
2457 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2458 | _ACEOF | |
2459 | ||
42ecbf5e DJ |
2460 | cat >>confdefs.h <<_ACEOF |
2461 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2462 | _ACEOF | |
2463 | ||
42ecbf5e DJ |
2464 | cat >>confdefs.h <<_ACEOF |
2465 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2466 | _ACEOF | |
2467 | ||
81ecdfbb RW |
2468 | cat >>confdefs.h <<_ACEOF |
2469 | #define PACKAGE_URL "$PACKAGE_URL" | |
2470 | _ACEOF | |
2471 | ||
42ecbf5e DJ |
2472 | |
2473 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2474 | # Prefer an explicitly selected file to automatically selected ones. |
2475 | ac_site_file1=NONE | |
2476 | ac_site_file2=NONE | |
2477 | if test -n "$CONFIG_SITE"; then | |
2478 | ac_site_file1=$CONFIG_SITE | |
2479 | elif test "x$prefix" != xNONE; then | |
2480 | ac_site_file1=$prefix/share/config.site | |
2481 | ac_site_file2=$prefix/etc/config.site | |
2482 | else | |
2483 | ac_site_file1=$ac_default_prefix/share/config.site | |
2484 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2485 | fi | |
2486 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2487 | do | |
2488 | test "x$ac_site_file" = xNONE && continue | |
42ecbf5e | 2489 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2491 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
42ecbf5e DJ |
2492 | sed 's/^/| /' "$ac_site_file" >&5 |
2493 | . "$ac_site_file" | |
2494 | fi | |
2495 | done | |
2496 | ||
2497 | if test -r "$cache_file"; then | |
2498 | # Some versions of bash will fail to source /dev/null (special | |
2499 | # files actually), so we avoid doing that. | |
2500 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2502 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
42ecbf5e | 2503 | case $cache_file in |
81ecdfbb RW |
2504 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2505 | *) . "./$cache_file";; | |
42ecbf5e DJ |
2506 | esac |
2507 | fi | |
2508 | else | |
81ecdfbb RW |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2510 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
42ecbf5e DJ |
2511 | >$cache_file |
2512 | fi | |
2513 | ||
2514 | # Check that the precious variables saved in the cache have kept the same | |
2515 | # value. | |
2516 | ac_cache_corrupted=false | |
81ecdfbb | 2517 | for ac_var in $ac_precious_vars; do |
42ecbf5e DJ |
2518 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2519 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2520 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2521 | eval ac_new_val=\$ac_env_${ac_var}_value | |
42ecbf5e DJ |
2522 | case $ac_old_set,$ac_new_set in |
2523 | set,) | |
81ecdfbb RW |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2525 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
42ecbf5e DJ |
2526 | ac_cache_corrupted=: ;; |
2527 | ,set) | |
81ecdfbb RW |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2529 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
42ecbf5e DJ |
2530 | ac_cache_corrupted=: ;; |
2531 | ,);; | |
2532 | *) | |
2533 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2534 | # differences in whitespace do not lead to failure. |
2535 | ac_old_val_w=`echo x $ac_old_val` | |
2536 | ac_new_val_w=`echo x $ac_new_val` | |
2537 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2538 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2539 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2540 | ac_cache_corrupted=: | |
2541 | else | |
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2543 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2544 | eval $ac_var=\$ac_old_val | |
2545 | fi | |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2547 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2549 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
2550 | fi;; |
2551 | esac | |
2552 | # Pass precious variables to config.status. | |
2553 | if test "$ac_new_set" = set; then | |
2554 | case $ac_new_val in | |
81ecdfbb | 2555 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
42ecbf5e DJ |
2556 | *) ac_arg=$ac_var=$ac_new_val ;; |
2557 | esac | |
2558 | case " $ac_configure_args " in | |
2559 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2560 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
42ecbf5e DJ |
2561 | esac |
2562 | fi | |
2563 | done | |
2564 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2566 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2568 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2569 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
42ecbf5e | 2570 | fi |
81ecdfbb RW |
2571 | ## -------------------- ## |
2572 | ## Main body of script. ## | |
2573 | ## -------------------- ## | |
42ecbf5e DJ |
2574 | |
2575 | ac_ext=c | |
2576 | ac_cpp='$CPP $CPPFLAGS' | |
2577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2580 | ||
2581 | ||
2582 | ||
42ecbf5e | 2583 | |
da594c4a | 2584 | |
42ecbf5e DJ |
2585 | |
2586 | ||
2587 | ac_aux_dir= | |
81ecdfbb RW |
2588 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2589 | for ac_t in install-sh install.sh shtool; do | |
2590 | if test -f "$ac_dir/$ac_t"; then | |
2591 | ac_aux_dir=$ac_dir | |
2592 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2593 | break 2 | |
2594 | fi | |
2595 | done | |
42ecbf5e DJ |
2596 | done |
2597 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2598 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
42ecbf5e | 2599 | fi |
81ecdfbb RW |
2600 | |
2601 | # These three variables are undocumented and unsupported, | |
2602 | # and are intended to be withdrawn in a future Autoconf release. | |
2603 | # They can cause serious problems if a builder's source tree is in a directory | |
2604 | # whose full name contains unusual characters. | |
2605 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2606 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2607 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2608 | ||
42ecbf5e DJ |
2609 | |
2610 | # Make sure we can run config.sub. | |
81ecdfbb RW |
2611 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2612 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2613 | ||
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2615 | $as_echo_n "checking build system type... " >&6; } | |
2616 | if test "${ac_cv_build+set}" = set; then : | |
2617 | $as_echo_n "(cached) " >&6 | |
2618 | else | |
2619 | ac_build_alias=$build_alias | |
2620 | test "x$ac_build_alias" = x && | |
2621 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2622 | test "x$ac_build_alias" = x && | |
2623 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2624 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2625 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2626 | ||
2627 | fi | |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2629 | $as_echo "$ac_cv_build" >&6; } | |
2630 | case $ac_cv_build in | |
2631 | *-*-*) ;; | |
2632 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2633 | esac | |
42ecbf5e | 2634 | build=$ac_cv_build |
81ecdfbb RW |
2635 | ac_save_IFS=$IFS; IFS='-' |
2636 | set x $ac_cv_build | |
2637 | shift | |
2638 | build_cpu=$1 | |
2639 | build_vendor=$2 | |
2640 | shift; shift | |
2641 | # Remember, the first character of IFS is used to create $*, | |
2642 | # except with old shells: | |
2643 | build_os=$* | |
2644 | IFS=$ac_save_IFS | |
2645 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2646 | |
2647 | ||
81ecdfbb RW |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2649 | $as_echo_n "checking host system type... " >&6; } | |
2650 | if test "${ac_cv_host+set}" = set; then : | |
2651 | $as_echo_n "(cached) " >&6 | |
2652 | else | |
2653 | if test "x$host_alias" = x; then | |
2654 | ac_cv_host=$ac_cv_build | |
42ecbf5e | 2655 | else |
81ecdfbb RW |
2656 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2657 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2658 | fi | |
42ecbf5e DJ |
2659 | |
2660 | fi | |
81ecdfbb RW |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2662 | $as_echo "$ac_cv_host" >&6; } | |
2663 | case $ac_cv_host in | |
2664 | *-*-*) ;; | |
2665 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2666 | esac | |
42ecbf5e | 2667 | host=$ac_cv_host |
81ecdfbb RW |
2668 | ac_save_IFS=$IFS; IFS='-' |
2669 | set x $ac_cv_host | |
2670 | shift | |
2671 | host_cpu=$1 | |
2672 | host_vendor=$2 | |
2673 | shift; shift | |
2674 | # Remember, the first character of IFS is used to create $*, | |
2675 | # except with old shells: | |
2676 | host_os=$* | |
2677 | IFS=$ac_save_IFS | |
2678 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2679 | |
2680 | ||
81ecdfbb RW |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2682 | $as_echo_n "checking target system type... " >&6; } | |
2683 | if test "${ac_cv_target+set}" = set; then : | |
2684 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 2685 | else |
81ecdfbb RW |
2686 | if test "x$target_alias" = x; then |
2687 | ac_cv_target=$ac_cv_host | |
2688 | else | |
2689 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2690 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2691 | fi | |
42ecbf5e DJ |
2692 | |
2693 | fi | |
81ecdfbb RW |
2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2695 | $as_echo "$ac_cv_target" >&6; } | |
2696 | case $ac_cv_target in | |
2697 | *-*-*) ;; | |
2698 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2699 | esac | |
42ecbf5e | 2700 | target=$ac_cv_target |
81ecdfbb RW |
2701 | ac_save_IFS=$IFS; IFS='-' |
2702 | set x $ac_cv_target | |
2703 | shift | |
2704 | target_cpu=$1 | |
2705 | target_vendor=$2 | |
2706 | shift; shift | |
2707 | # Remember, the first character of IFS is used to create $*, | |
2708 | # except with old shells: | |
2709 | target_os=$* | |
2710 | IFS=$ac_save_IFS | |
2711 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
42ecbf5e DJ |
2712 | |
2713 | ||
2714 | # The aliases save the names the user supplied, while $host etc. | |
2715 | # will get canonicalized. | |
2716 | test -n "$target_alias" && | |
2717 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2718 | NONENONEs,x,x, && | |
2719 | program_prefix=${target_alias}- | |
2720 | ac_ext=c | |
2721 | ac_cpp='$CPP $CPPFLAGS' | |
2722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2725 | if test -n "$ac_tool_prefix"; then | |
2726 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2727 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2729 | $as_echo_n "checking for $ac_word... " >&6; } | |
2730 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2731 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2732 | else |
2733 | if test -n "$CC"; then | |
2734 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2735 | else | |
2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2737 | for as_dir in $PATH | |
2738 | do | |
2739 | IFS=$as_save_IFS | |
2740 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2741 | for ac_exec_ext in '' $ac_executable_extensions; do |
2742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2743 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2745 | break 2 |
2746 | fi | |
2747 | done | |
81ecdfbb RW |
2748 | done |
2749 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2750 | |
2751 | fi | |
2752 | fi | |
2753 | CC=$ac_cv_prog_CC | |
2754 | if test -n "$CC"; then | |
81ecdfbb RW |
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2756 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2757 | else |
81ecdfbb RW |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2759 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2760 | fi |
2761 | ||
81ecdfbb | 2762 | |
42ecbf5e DJ |
2763 | fi |
2764 | if test -z "$ac_cv_prog_CC"; then | |
2765 | ac_ct_CC=$CC | |
2766 | # Extract the first word of "gcc", so it can be a program name with args. | |
2767 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2769 | $as_echo_n "checking for $ac_word... " >&6; } | |
2770 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2771 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2772 | else |
2773 | if test -n "$ac_ct_CC"; then | |
2774 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2775 | else | |
2776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2777 | for as_dir in $PATH | |
2778 | do | |
2779 | IFS=$as_save_IFS | |
2780 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2781 | for ac_exec_ext in '' $ac_executable_extensions; do |
2782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2783 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2785 | break 2 |
2786 | fi | |
2787 | done | |
81ecdfbb RW |
2788 | done |
2789 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2790 | |
2791 | fi | |
2792 | fi | |
2793 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2794 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2796 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 2797 | else |
81ecdfbb RW |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2799 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2800 | fi |
2801 | ||
81ecdfbb RW |
2802 | if test "x$ac_ct_CC" = x; then |
2803 | CC="" | |
2804 | else | |
2805 | case $cross_compiling:$ac_tool_warned in | |
2806 | yes:) | |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2808 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2809 | ac_tool_warned=yes ;; | |
2810 | esac | |
2811 | CC=$ac_ct_CC | |
2812 | fi | |
42ecbf5e DJ |
2813 | else |
2814 | CC="$ac_cv_prog_CC" | |
2815 | fi | |
2816 | ||
2817 | if test -z "$CC"; then | |
81ecdfbb RW |
2818 | if test -n "$ac_tool_prefix"; then |
2819 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
42ecbf5e | 2820 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2822 | $as_echo_n "checking for $ac_word... " >&6; } | |
2823 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2824 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2825 | else |
2826 | if test -n "$CC"; then | |
2827 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2828 | else | |
2829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2830 | for as_dir in $PATH | |
2831 | do | |
2832 | IFS=$as_save_IFS | |
2833 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2834 | for ac_exec_ext in '' $ac_executable_extensions; do |
2835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2836 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2838 | break 2 |
2839 | fi | |
2840 | done | |
81ecdfbb RW |
2841 | done |
2842 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2843 | |
2844 | fi | |
2845 | fi | |
2846 | CC=$ac_cv_prog_CC | |
2847 | if test -n "$CC"; then | |
81ecdfbb RW |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2849 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2850 | else |
81ecdfbb RW |
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2852 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2853 | fi |
2854 | ||
42ecbf5e | 2855 | |
81ecdfbb | 2856 | fi |
42ecbf5e DJ |
2857 | fi |
2858 | if test -z "$CC"; then | |
2859 | # Extract the first word of "cc", so it can be a program name with args. | |
2860 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2862 | $as_echo_n "checking for $ac_word... " >&6; } | |
2863 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2864 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2865 | else |
2866 | if test -n "$CC"; then | |
2867 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2868 | else | |
2869 | ac_prog_rejected=no | |
2870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2871 | for as_dir in $PATH | |
2872 | do | |
2873 | IFS=$as_save_IFS | |
2874 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2875 | for ac_exec_ext in '' $ac_executable_extensions; do |
2876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e DJ |
2877 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2878 | ac_prog_rejected=yes | |
2879 | continue | |
2880 | fi | |
2881 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2883 | break 2 |
2884 | fi | |
2885 | done | |
81ecdfbb RW |
2886 | done |
2887 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2888 | |
2889 | if test $ac_prog_rejected = yes; then | |
2890 | # We found a bogon in the path, so make sure we never use it. | |
2891 | set dummy $ac_cv_prog_CC | |
2892 | shift | |
2893 | if test $# != 0; then | |
2894 | # We chose a different compiler from the bogus one. | |
2895 | # However, it has the same basename, so the bogon will be chosen | |
2896 | # first if we set CC to just the basename; use the full file name. | |
2897 | shift | |
2898 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2899 | fi | |
2900 | fi | |
2901 | fi | |
2902 | fi | |
2903 | CC=$ac_cv_prog_CC | |
2904 | if test -n "$CC"; then | |
81ecdfbb RW |
2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2906 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2907 | else |
81ecdfbb RW |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2909 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2910 | fi |
2911 | ||
81ecdfbb | 2912 | |
42ecbf5e DJ |
2913 | fi |
2914 | if test -z "$CC"; then | |
2915 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2916 | for ac_prog in cl.exe |
42ecbf5e DJ |
2917 | do |
2918 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2919 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2921 | $as_echo_n "checking for $ac_word... " >&6; } | |
2922 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2923 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2924 | else |
2925 | if test -n "$CC"; then | |
2926 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2927 | else | |
2928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2929 | for as_dir in $PATH | |
2930 | do | |
2931 | IFS=$as_save_IFS | |
2932 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2933 | for ac_exec_ext in '' $ac_executable_extensions; do |
2934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2935 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2937 | break 2 |
2938 | fi | |
2939 | done | |
81ecdfbb RW |
2940 | done |
2941 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2942 | |
2943 | fi | |
2944 | fi | |
2945 | CC=$ac_cv_prog_CC | |
2946 | if test -n "$CC"; then | |
81ecdfbb RW |
2947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2948 | $as_echo "$CC" >&6; } | |
42ecbf5e | 2949 | else |
81ecdfbb RW |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2951 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2952 | fi |
2953 | ||
81ecdfbb | 2954 | |
42ecbf5e DJ |
2955 | test -n "$CC" && break |
2956 | done | |
2957 | fi | |
2958 | if test -z "$CC"; then | |
2959 | ac_ct_CC=$CC | |
81ecdfbb | 2960 | for ac_prog in cl.exe |
42ecbf5e DJ |
2961 | do |
2962 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2963 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2965 | $as_echo_n "checking for $ac_word... " >&6; } | |
2966 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2967 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
2968 | else |
2969 | if test -n "$ac_ct_CC"; then | |
2970 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2971 | else | |
2972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2973 | for as_dir in $PATH | |
2974 | do | |
2975 | IFS=$as_save_IFS | |
2976 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2977 | for ac_exec_ext in '' $ac_executable_extensions; do |
2978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 2979 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
2981 | break 2 |
2982 | fi | |
2983 | done | |
81ecdfbb RW |
2984 | done |
2985 | IFS=$as_save_IFS | |
42ecbf5e DJ |
2986 | |
2987 | fi | |
2988 | fi | |
2989 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2990 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2992 | $as_echo "$ac_ct_CC" >&6; } | |
42ecbf5e | 2993 | else |
81ecdfbb RW |
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2995 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
2996 | fi |
2997 | ||
81ecdfbb | 2998 | |
42ecbf5e DJ |
2999 | test -n "$ac_ct_CC" && break |
3000 | done | |
3001 | ||
81ecdfbb RW |
3002 | if test "x$ac_ct_CC" = x; then |
3003 | CC="" | |
3004 | else | |
3005 | case $cross_compiling:$ac_tool_warned in | |
3006 | yes:) | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3009 | ac_tool_warned=yes ;; | |
3010 | esac | |
3011 | CC=$ac_ct_CC | |
3012 | fi | |
42ecbf5e DJ |
3013 | fi |
3014 | ||
3015 | fi | |
3016 | ||
3017 | ||
81ecdfbb RW |
3018 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3020 | as_fn_error "no acceptable C compiler found in \$PATH | |
3021 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e DJ |
3022 | |
3023 | # Provide some information about the compiler. | |
81ecdfbb RW |
3024 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3025 | set X $ac_compile | |
3026 | ac_compiler=$2 | |
3027 | for ac_option in --version -v -V -qversion; do | |
3028 | { { ac_try="$ac_compiler $ac_option >&5" | |
3029 | case "(($ac_try" in | |
3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3031 | *) ac_try_echo=$ac_try;; | |
3032 | esac | |
3033 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3034 | $as_echo "$ac_try_echo"; } >&5 | |
3035 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
42ecbf5e | 3036 | ac_status=$? |
81ecdfbb RW |
3037 | if test -s conftest.err; then |
3038 | sed '10a\ | |
3039 | ... rest of stderr output deleted ... | |
3040 | 10q' conftest.err >conftest.er1 | |
3041 | cat conftest.er1 >&5 | |
3042 | rm -f conftest.er1 conftest.err | |
3043 | fi | |
3044 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3045 | test $ac_status = 0; } | |
3046 | done | |
42ecbf5e | 3047 | |
81ecdfbb | 3048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3049 | /* end confdefs.h. */ |
3050 | ||
3051 | int | |
3052 | main () | |
3053 | { | |
3054 | ||
3055 | ; | |
3056 | return 0; | |
3057 | } | |
3058 | _ACEOF | |
3059 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 3060 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
42ecbf5e DJ |
3061 | # Try to create an executable without -o first, disregard a.out. |
3062 | # It will help us diagnose broken compilers, and finding out an intuition | |
3063 | # of exeext. | |
81ecdfbb RW |
3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3065 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3066 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3067 | ||
3068 | # The possible output files: | |
3069 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3070 | ||
3071 | ac_rmfiles= | |
3072 | for ac_file in $ac_files | |
3073 | do | |
3074 | case $ac_file in | |
3075 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3076 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3077 | esac | |
3078 | done | |
3079 | rm -f $ac_rmfiles | |
3080 | ||
3081 | if { { ac_try="$ac_link_default" | |
3082 | case "(($ac_try" in | |
3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3084 | *) ac_try_echo=$ac_try;; | |
3085 | esac | |
3086 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3087 | $as_echo "$ac_try_echo"; } >&5 | |
3088 | (eval "$ac_link_default") 2>&5 | |
3089 | ac_status=$? | |
3090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3091 | test $ac_status = 0; }; then : | |
3092 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3093 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3094 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3095 | # so that the user can short-circuit this test for compilers unknown to | |
3096 | # Autoconf. | |
3097 | for ac_file in $ac_files '' | |
42ecbf5e DJ |
3098 | do |
3099 | test -f "$ac_file" || continue | |
3100 | case $ac_file in | |
81ecdfbb | 3101 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
42ecbf5e DJ |
3102 | ;; |
3103 | [ab].out ) | |
3104 | # We found the default executable, but exeext='' is most | |
3105 | # certainly right. | |
3106 | break;; | |
3107 | *.* ) | |
81ecdfbb RW |
3108 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3109 | then :; else | |
3110 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3111 | fi | |
3112 | # We set ac_cv_exeext here because the later test for it is not | |
3113 | # safe: cross compilers may not add the suffix if given an `-o' | |
3114 | # argument, so we may need to know it at that point already. | |
3115 | # Even if this section looks crufty: it has the advantage of | |
3116 | # actually working. | |
42ecbf5e DJ |
3117 | break;; |
3118 | * ) | |
3119 | break;; | |
3120 | esac | |
3121 | done | |
81ecdfbb RW |
3122 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3123 | ||
42ecbf5e | 3124 | else |
81ecdfbb RW |
3125 | ac_file='' |
3126 | fi | |
3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3128 | $as_echo "$ac_file" >&6; } | |
3129 | if test -z "$ac_file"; then : | |
3130 | $as_echo "$as_me: failed program was:" >&5 | |
42ecbf5e DJ |
3131 | sed 's/^/| /' conftest.$ac_ext >&5 |
3132 | ||
81ecdfbb RW |
3133 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3134 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3135 | { as_fn_set_status 77 | |
3136 | as_fn_error "C compiler cannot create executables | |
3137 | See \`config.log' for more details." "$LINENO" 5; }; } | |
42ecbf5e | 3138 | fi |
42ecbf5e | 3139 | ac_exeext=$ac_cv_exeext |
42ecbf5e | 3140 | |
81ecdfbb | 3141 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3142 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3144 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
42ecbf5e DJ |
3145 | # If not cross compiling, check that we can run a simple program. |
3146 | if test "$cross_compiling" != yes; then | |
3147 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
3148 | { { case "(($ac_try" in |
3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3150 | *) ac_try_echo=$ac_try;; | |
3151 | esac | |
3152 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3153 | $as_echo "$ac_try_echo"; } >&5 | |
3154 | (eval "$ac_try") 2>&5 | |
42ecbf5e | 3155 | ac_status=$? |
81ecdfbb RW |
3156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3157 | test $ac_status = 0; }; }; then | |
42ecbf5e DJ |
3158 | cross_compiling=no |
3159 | else | |
3160 | if test "$cross_compiling" = maybe; then | |
3161 | cross_compiling=yes | |
3162 | else | |
81ecdfbb RW |
3163 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3165 | as_fn_error "cannot run C compiled programs. | |
42ecbf5e | 3166 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 3167 | See \`config.log' for more details." "$LINENO" 5; } |
42ecbf5e DJ |
3168 | fi |
3169 | fi | |
3170 | fi | |
81ecdfbb RW |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3172 | $as_echo "yes" >&6; } | |
42ecbf5e | 3173 | |
81ecdfbb | 3174 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
42ecbf5e | 3175 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 3176 | # Check that the compiler produces executables we can run. If not, either |
42ecbf5e | 3177 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3179 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3181 | $as_echo "$cross_compiling" >&6; } | |
3182 | ||
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3184 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3185 | if { { ac_try="$ac_link" | |
3186 | case "(($ac_try" in | |
3187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3188 | *) ac_try_echo=$ac_try;; | |
3189 | esac | |
3190 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3191 | $as_echo "$ac_try_echo"; } >&5 | |
3192 | (eval "$ac_link") 2>&5 | |
42ecbf5e | 3193 | ac_status=$? |
81ecdfbb RW |
3194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3195 | test $ac_status = 0; }; then : | |
42ecbf5e DJ |
3196 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3197 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3198 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3199 | # `rm'. | |
3200 | for ac_file in conftest.exe conftest conftest.*; do | |
3201 | test -f "$ac_file" || continue | |
3202 | case $ac_file in | |
81ecdfbb | 3203 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
42ecbf5e | 3204 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
42ecbf5e DJ |
3205 | break;; |
3206 | * ) break;; | |
3207 | esac | |
3208 | done | |
3209 | else | |
81ecdfbb RW |
3210 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3211 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3212 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3213 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3214 | fi |
42ecbf5e | 3215 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3217 | $as_echo "$ac_cv_exeext" >&6; } | |
42ecbf5e DJ |
3218 | |
3219 | rm -f conftest.$ac_ext | |
3220 | EXEEXT=$ac_cv_exeext | |
3221 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3223 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3224 | if test "${ac_cv_objext+set}" = set; then : | |
3225 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3226 | else |
81ecdfbb | 3227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3228 | /* end confdefs.h. */ |
3229 | ||
3230 | int | |
3231 | main () | |
3232 | { | |
3233 | ||
3234 | ; | |
3235 | return 0; | |
3236 | } | |
3237 | _ACEOF | |
3238 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3239 | if { { ac_try="$ac_compile" |
3240 | case "(($ac_try" in | |
3241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3242 | *) ac_try_echo=$ac_try;; | |
3243 | esac | |
3244 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3245 | $as_echo "$ac_try_echo"; } >&5 | |
3246 | (eval "$ac_compile") 2>&5 | |
3247 | ac_status=$? | |
3248 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3249 | test $ac_status = 0; }; then : | |
3250 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3251 | test -f "$ac_file" || continue; | |
42ecbf5e | 3252 | case $ac_file in |
81ecdfbb | 3253 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
42ecbf5e DJ |
3254 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3255 | break;; | |
3256 | esac | |
3257 | done | |
3258 | else | |
81ecdfbb | 3259 | $as_echo "$as_me: failed program was:" >&5 |
42ecbf5e DJ |
3260 | sed 's/^/| /' conftest.$ac_ext >&5 |
3261 | ||
81ecdfbb RW |
3262 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3264 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3265 | See \`config.log' for more details." "$LINENO" 5; } | |
42ecbf5e | 3266 | fi |
42ecbf5e DJ |
3267 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3268 | fi | |
81ecdfbb RW |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3270 | $as_echo "$ac_cv_objext" >&6; } | |
42ecbf5e DJ |
3271 | OBJEXT=$ac_cv_objext |
3272 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3274 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3275 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3276 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3277 | else |
81ecdfbb | 3278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3279 | /* end confdefs.h. */ |
3280 | ||
3281 | int | |
3282 | main () | |
3283 | { | |
3284 | #ifndef __GNUC__ | |
3285 | choke me | |
3286 | #endif | |
3287 | ||
3288 | ; | |
3289 | return 0; | |
3290 | } | |
3291 | _ACEOF | |
81ecdfbb | 3292 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3293 | ac_compiler_gnu=yes |
3294 | else | |
81ecdfbb | 3295 | ac_compiler_gnu=no |
42ecbf5e | 3296 | fi |
81ecdfbb | 3297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e DJ |
3298 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3299 | ||
3300 | fi | |
81ecdfbb RW |
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3302 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3303 | if test $ac_compiler_gnu = yes; then | |
3304 | GCC=yes | |
3305 | else | |
3306 | GCC= | |
3307 | fi | |
42ecbf5e DJ |
3308 | ac_test_CFLAGS=${CFLAGS+set} |
3309 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3311 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3312 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3313 | $as_echo_n "(cached) " >&6 | |
3314 | else | |
3315 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3316 | ac_c_werror_flag=yes | |
3317 | ac_cv_prog_cc_g=no | |
3318 | CFLAGS="-g" | |
3319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e DJ |
3320 | /* end confdefs.h. */ |
3321 | ||
3322 | int | |
3323 | main () | |
3324 | { | |
3325 | ||
3326 | ; | |
3327 | return 0; | |
3328 | } | |
3329 | _ACEOF | |
81ecdfbb | 3330 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
3331 | ac_cv_prog_cc_g=yes |
3332 | else | |
81ecdfbb RW |
3333 | CFLAGS="" |
3334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3335 | /* end confdefs.h. */ | |
3336 | ||
3337 | int | |
3338 | main () | |
3339 | { | |
3340 | ||
3341 | ; | |
3342 | return 0; | |
3343 | } | |
3344 | _ACEOF | |
3345 | if ac_fn_c_try_compile "$LINENO"; then : | |
3346 | ||
3347 | else | |
3348 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3349 | CFLAGS="-g" | |
3350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3351 | /* end confdefs.h. */ | |
3352 | ||
3353 | int | |
3354 | main () | |
3355 | { | |
42ecbf5e | 3356 | |
81ecdfbb RW |
3357 | ; |
3358 | return 0; | |
3359 | } | |
3360 | _ACEOF | |
3361 | if ac_fn_c_try_compile "$LINENO"; then : | |
3362 | ac_cv_prog_cc_g=yes | |
3363 | fi | |
3364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3365 | fi | |
3366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
42ecbf5e | 3367 | fi |
81ecdfbb RW |
3368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3369 | ac_c_werror_flag=$ac_save_c_werror_flag | |
42ecbf5e | 3370 | fi |
81ecdfbb RW |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3372 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
42ecbf5e DJ |
3373 | if test "$ac_test_CFLAGS" = set; then |
3374 | CFLAGS=$ac_save_CFLAGS | |
3375 | elif test $ac_cv_prog_cc_g = yes; then | |
3376 | if test "$GCC" = yes; then | |
3377 | CFLAGS="-g -O2" | |
3378 | else | |
3379 | CFLAGS="-g" | |
3380 | fi | |
3381 | else | |
3382 | if test "$GCC" = yes; then | |
3383 | CFLAGS="-O2" | |
3384 | else | |
3385 | CFLAGS= | |
3386 | fi | |
3387 | fi | |
81ecdfbb RW |
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3389 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3390 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3391 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 3392 | else |
81ecdfbb | 3393 | ac_cv_prog_cc_c89=no |
42ecbf5e | 3394 | ac_save_CC=$CC |
81ecdfbb | 3395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3396 | /* end confdefs.h. */ |
3397 | #include <stdarg.h> | |
3398 | #include <stdio.h> | |
3399 | #include <sys/types.h> | |
3400 | #include <sys/stat.h> | |
3401 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3402 | struct buf { int x; }; | |
3403 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3404 | static char *e (p, i) | |
3405 | char **p; | |
3406 | int i; | |
3407 | { | |
3408 | return p[i]; | |
3409 | } | |
3410 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3411 | { | |
3412 | char *s; | |
3413 | va_list v; | |
3414 | va_start (v,p); | |
3415 | s = g (p, va_arg (v,int)); | |
3416 | va_end (v); | |
3417 | return s; | |
3418 | } | |
3419 | ||
3420 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3421 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3422 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3423 | as 'x'. The following induces an error, until -std is added to get |
42ecbf5e DJ |
3424 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3425 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3426 | that's true only with -std. */ |
42ecbf5e DJ |
3427 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3428 | ||
81ecdfbb RW |
3429 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3430 | inside strings and character constants. */ | |
3431 | #define FOO(x) 'x' | |
3432 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3433 | ||
42ecbf5e DJ |
3434 | int test (int i, double x); |
3435 | struct s1 {int (*f) (int a);}; | |
3436 | struct s2 {int (*f) (double a);}; | |
3437 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3438 | int argc; | |
3439 | char **argv; | |
3440 | int | |
3441 | main () | |
3442 | { | |
3443 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3444 | ; | |
3445 | return 0; | |
3446 | } | |
3447 | _ACEOF | |
81ecdfbb RW |
3448 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3449 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
42ecbf5e DJ |
3450 | do |
3451 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3452 | if ac_fn_c_try_compile "$LINENO"; then : |
3453 | ac_cv_prog_cc_c89=$ac_arg | |
42ecbf5e | 3454 | fi |
81ecdfbb RW |
3455 | rm -f core conftest.err conftest.$ac_objext |
3456 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
42ecbf5e | 3457 | done |
81ecdfbb | 3458 | rm -f conftest.$ac_ext |
42ecbf5e DJ |
3459 | CC=$ac_save_CC |
3460 | ||
3461 | fi | |
81ecdfbb RW |
3462 | # AC_CACHE_VAL |
3463 | case "x$ac_cv_prog_cc_c89" in | |
3464 | x) | |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3466 | $as_echo "none needed" >&6; } ;; | |
3467 | xno) | |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3469 | $as_echo "unsupported" >&6; } ;; | |
42ecbf5e | 3470 | *) |
81ecdfbb RW |
3471 | CC="$CC $ac_cv_prog_cc_c89" |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3473 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
42ecbf5e | 3474 | esac |
81ecdfbb | 3475 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
42ecbf5e | 3476 | |
42ecbf5e DJ |
3477 | fi |
3478 | ||
42ecbf5e DJ |
3479 | ac_ext=c |
3480 | ac_cpp='$CPP $CPPFLAGS' | |
3481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3484 | ||
3485 | ||
81ecdfbb RW |
3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3487 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3488 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3489 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3490 | else |
3491 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 3492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
3493 | /* end confdefs.h. */ |
3494 | ||
81ecdfbb RW |
3495 | /* Override any GCC internal prototype to avoid an error. |
3496 | Use char because int might match the return type of a GCC | |
3497 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
3498 | #ifdef __cplusplus |
3499 | extern "C" | |
3500 | #endif | |
42ecbf5e DJ |
3501 | char strerror (); |
3502 | int | |
3503 | main () | |
3504 | { | |
81ecdfbb | 3505 | return strerror (); |
42ecbf5e DJ |
3506 | ; |
3507 | return 0; | |
3508 | } | |
3509 | _ACEOF | |
81ecdfbb RW |
3510 | for ac_lib in '' cposix; do |
3511 | if test -z "$ac_lib"; then | |
3512 | ac_res="none required" | |
3513 | else | |
3514 | ac_res=-l$ac_lib | |
42ecbf5e | 3515 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
3516 | fi |
3517 | if ac_fn_c_try_link "$LINENO"; then : | |
3518 | ac_cv_search_strerror=$ac_res | |
3519 | fi | |
3520 | rm -f core conftest.err conftest.$ac_objext \ | |
3521 | conftest$ac_exeext | |
3522 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3523 | break | |
3524 | fi | |
3525 | done | |
3526 | if test "${ac_cv_search_strerror+set}" = set; then : | |
42ecbf5e | 3527 | |
42ecbf5e | 3528 | else |
81ecdfbb | 3529 | ac_cv_search_strerror=no |
42ecbf5e | 3530 | fi |
81ecdfbb | 3531 | rm conftest.$ac_ext |
42ecbf5e DJ |
3532 | LIBS=$ac_func_search_save_LIBS |
3533 | fi | |
81ecdfbb RW |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 |
3535 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3536 | ac_res=$ac_cv_search_strerror | |
3537 | if test "$ac_res" != no; then : | |
3538 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e DJ |
3539 | |
3540 | fi | |
e5a52504 MM |
3541 | |
3542 | ||
3543 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
81ecdfbb RW |
3544 | am__api_version='1.11' |
3545 | ||
e5a52504 MM |
3546 | # Find a good install program. We prefer a C program (faster), |
3547 | # so one script is as good as another. But avoid the broken or | |
3548 | # incompatible versions: | |
3549 | # SysV /etc/install, /usr/sbin/install | |
3550 | # SunOS /usr/etc/install | |
3551 | # IRIX /sbin/install | |
3552 | # AIX /bin/install | |
42ecbf5e | 3553 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
3554 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3555 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3556 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 3557 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 3558 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 3559 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3561 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5a52504 | 3562 | if test -z "$INSTALL"; then |
81ecdfbb RW |
3563 | if test "${ac_cv_path_install+set}" = set; then : |
3564 | $as_echo_n "(cached) " >&6 | |
e5a52504 | 3565 | else |
42ecbf5e DJ |
3566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3567 | for as_dir in $PATH | |
3568 | do | |
3569 | IFS=$as_save_IFS | |
3570 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3571 | # Account for people who put trailing slashes in PATH elements. |
3572 | case $as_dir/ in #(( | |
3573 | ./ | .// | /[cC]/* | \ | |
42ecbf5e | 3574 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 3575 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
42ecbf5e DJ |
3576 | /usr/ucb/* ) ;; |
3577 | *) | |
3578 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3579 | # Don't use installbsd from OSF since it installs stuff as root | |
3580 | # by default. | |
3581 | for ac_prog in ginstall scoinst install; do | |
3582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 3583 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
252b5132 | 3584 | if test $ac_prog = install && |
42ecbf5e | 3585 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
3586 | # AIX install. It has an incompatible calling convention. |
3587 | : | |
42ecbf5e DJ |
3588 | elif test $ac_prog = install && |
3589 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3590 | # program-specific install script used by HP pwplus--don't use. | |
3591 | : | |
252b5132 | 3592 | else |
58c85be7 RW |
3593 | rm -rf conftest.one conftest.two conftest.dir |
3594 | echo one > conftest.one | |
3595 | echo two > conftest.two | |
3596 | mkdir conftest.dir | |
3597 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3598 | test -s conftest.one && test -s conftest.two && | |
3599 | test -s conftest.dir/conftest.one && | |
3600 | test -s conftest.dir/conftest.two | |
3601 | then | |
3602 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3603 | break 3 | |
3604 | fi | |
252b5132 RH |
3605 | fi |
3606 | fi | |
3607 | done | |
42ecbf5e DJ |
3608 | done |
3609 | ;; | |
3610 | esac | |
81ecdfbb RW |
3611 | |
3612 | done | |
3613 | IFS=$as_save_IFS | |
42ecbf5e | 3614 | |
58c85be7 | 3615 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
3616 | |
3617 | fi | |
3618 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 3619 | INSTALL=$ac_cv_path_install |
252b5132 | 3620 | else |
58c85be7 RW |
3621 | # As a last resort, use the slow shell script. Don't cache a |
3622 | # value for INSTALL within a source directory, because that will | |
252b5132 | 3623 | # break other packages using the cache if that directory is |
58c85be7 | 3624 | # removed, or if the value is a relative name. |
42ecbf5e | 3625 | INSTALL=$ac_install_sh |
252b5132 RH |
3626 | fi |
3627 | fi | |
81ecdfbb RW |
3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3629 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
3630 | |
3631 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3632 | # It thinks the first close brace ends the variable substitution. | |
3633 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3634 | ||
42ecbf5e | 3635 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
3636 | |
3637 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3638 | ||
81ecdfbb RW |
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
3640 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
252b5132 RH |
3641 | # Just in case |
3642 | sleep 1 | |
42ecbf5e | 3643 | echo timestamp > conftest.file |
81ecdfbb RW |
3644 | # Reject unsafe characters in $srcdir or the absolute working directory |
3645 | # name. Accept space and tab only in the latter. | |
3646 | am_lf=' | |
3647 | ' | |
3648 | case `pwd` in | |
3649 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3650 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3651 | esac | |
3652 | case $srcdir in | |
3653 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3654 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3655 | esac | |
3656 | ||
252b5132 RH |
3657 | # Do `set' in a subshell so we don't clobber the current shell's |
3658 | # arguments. Must try -L first in case configure is actually a | |
3659 | # symlink; some systems play weird games with the mod time of symlinks | |
3660 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3661 | # directory). | |
3662 | if ( | |
81ecdfbb | 3663 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
252b5132 RH |
3664 | if test "$*" = "X"; then |
3665 | # -L didn't work. | |
81ecdfbb | 3666 | set X `ls -t "$srcdir/configure" conftest.file` |
252b5132 | 3667 | fi |
42ecbf5e DJ |
3668 | rm -f conftest.file |
3669 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3670 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
3671 | |
3672 | # If neither matched, then we have a broken ls. This can happen | |
3673 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3674 | # broken ls alias from the environment. This has actually | |
3675 | # happened. Such a system could not be considered "sane". | |
81ecdfbb RW |
3676 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
3677 | alias in your environment" "$LINENO" 5 | |
252b5132 RH |
3678 | fi |
3679 | ||
42ecbf5e | 3680 | test "$2" = conftest.file |
252b5132 RH |
3681 | ) |
3682 | then | |
3683 | # Ok. | |
3684 | : | |
3685 | else | |
81ecdfbb RW |
3686 | as_fn_error "newly created file is older than distributed files! |
3687 | Check your system clock" "$LINENO" 5 | |
252b5132 | 3688 | fi |
81ecdfbb RW |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3690 | $as_echo "yes" >&6; } | |
252b5132 | 3691 | test "$program_prefix" != NONE && |
81ecdfbb | 3692 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
3693 | # Use a double $ so make ignores it. |
3694 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
3695 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
3696 | # Double any \ or $. | |
42ecbf5e | 3697 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
3698 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
3699 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
42ecbf5e DJ |
3700 | |
3701 | # expand $ac_aux_dir to an absolute path | |
3702 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3703 | ||
81ecdfbb RW |
3704 | if test x"${MISSING+set}" != xset; then |
3705 | case $am_aux_dir in | |
3706 | *\ * | *\ *) | |
3707 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3708 | *) | |
3709 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3710 | esac | |
3711 | fi | |
42ecbf5e DJ |
3712 | # Use eval to expand $SHELL |
3713 | if eval "$MISSING --run true"; then | |
3714 | am_missing_run="$MISSING --run " | |
3715 | else | |
3716 | am_missing_run= | |
81ecdfbb RW |
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
3718 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3719 | fi | |
3720 | ||
3721 | if test x"${install_sh}" != xset; then | |
3722 | case $am_aux_dir in | |
3723 | *\ * | *\ *) | |
3724 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3725 | *) | |
3726 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3727 | esac | |
3728 | fi | |
3729 | ||
3730 | # Installed binaries are usually stripped using `strip' when the user | |
3731 | # run `make install-strip'. However `strip' might not be the right | |
3732 | # tool to use in cross-compilation environments, therefore Automake | |
3733 | # will honor the `STRIP' environment variable to overrule this program. | |
3734 | if test "$cross_compiling" != no; then | |
3735 | if test -n "$ac_tool_prefix"; then | |
3736 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3737 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3739 | $as_echo_n "checking for $ac_word... " >&6; } | |
3740 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3741 | $as_echo_n "(cached) " >&6 | |
3742 | else | |
3743 | if test -n "$STRIP"; then | |
3744 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3745 | else | |
3746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3747 | for as_dir in $PATH | |
3748 | do | |
3749 | IFS=$as_save_IFS | |
3750 | test -z "$as_dir" && as_dir=. | |
3751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3753 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3755 | break 2 | |
3756 | fi | |
3757 | done | |
3758 | done | |
3759 | IFS=$as_save_IFS | |
3760 | ||
3761 | fi | |
3762 | fi | |
3763 | STRIP=$ac_cv_prog_STRIP | |
3764 | if test -n "$STRIP"; then | |
3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3766 | $as_echo "$STRIP" >&6; } | |
3767 | else | |
3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3769 | $as_echo "no" >&6; } | |
3770 | fi | |
3771 | ||
3772 | ||
3773 | fi | |
3774 | if test -z "$ac_cv_prog_STRIP"; then | |
3775 | ac_ct_STRIP=$STRIP | |
3776 | # Extract the first word of "strip", so it can be a program name with args. | |
3777 | set dummy strip; ac_word=$2 | |
3778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3779 | $as_echo_n "checking for $ac_word... " >&6; } | |
3780 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3781 | $as_echo_n "(cached) " >&6 | |
3782 | else | |
3783 | if test -n "$ac_ct_STRIP"; then | |
3784 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3785 | else | |
3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3787 | for as_dir in $PATH | |
3788 | do | |
3789 | IFS=$as_save_IFS | |
3790 | test -z "$as_dir" && as_dir=. | |
3791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3793 | ac_cv_prog_ac_ct_STRIP="strip" | |
3794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3795 | break 2 | |
3796 | fi | |
3797 | done | |
3798 | done | |
3799 | IFS=$as_save_IFS | |
3800 | ||
3801 | fi | |
3802 | fi | |
3803 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3804 | if test -n "$ac_ct_STRIP"; then | |
3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3806 | $as_echo "$ac_ct_STRIP" >&6; } | |
3807 | else | |
3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3809 | $as_echo "no" >&6; } | |
3810 | fi | |
3811 | ||
3812 | if test "x$ac_ct_STRIP" = x; then | |
3813 | STRIP=":" | |
3814 | else | |
3815 | case $cross_compiling:$ac_tool_warned in | |
3816 | yes:) | |
3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3818 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3819 | ac_tool_warned=yes ;; | |
3820 | esac | |
3821 | STRIP=$ac_ct_STRIP | |
3822 | fi | |
3823 | else | |
3824 | STRIP="$ac_cv_prog_STRIP" | |
3825 | fi | |
3826 | ||
3827 | fi | |
3828 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3829 | ||
3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3831 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3832 | if test -z "$MKDIR_P"; then | |
3833 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3834 | $as_echo_n "(cached) " >&6 | |
3835 | else | |
3836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3837 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3838 | do | |
3839 | IFS=$as_save_IFS | |
3840 | test -z "$as_dir" && as_dir=. | |
3841 | for ac_prog in mkdir gmkdir; do | |
3842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3843 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3844 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3845 | 'mkdir (GNU coreutils) '* | \ | |
3846 | 'mkdir (coreutils) '* | \ | |
3847 | 'mkdir (fileutils) '4.1*) | |
3848 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3849 | break 3;; | |
3850 | esac | |
3851 | done | |
3852 | done | |
42ecbf5e | 3853 | done |
81ecdfbb RW |
3854 | IFS=$as_save_IFS |
3855 | ||
3856 | fi | |
3857 | ||
3858 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3859 | MKDIR_P="$ac_cv_path_mkdir -p" | |
42ecbf5e | 3860 | else |
81ecdfbb RW |
3861 | # As a last resort, use the slow shell script. Don't cache a |
3862 | # value for MKDIR_P within a source directory, because that will | |
3863 | # break other packages using the cache if that directory is | |
3864 | # removed, or if the value is a relative name. | |
3865 | test -d ./--version && rmdir ./--version | |
3866 | MKDIR_P="$ac_install_sh -d" | |
42ecbf5e DJ |
3867 | fi |
3868 | fi | |
81ecdfbb RW |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3870 | $as_echo "$MKDIR_P" >&6; } | |
3871 | ||
3872 | mkdir_p="$MKDIR_P" | |
3873 | case $mkdir_p in | |
3874 | [\\/$]* | ?:[\\/]*) ;; | |
3875 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3876 | esac | |
42ecbf5e DJ |
3877 | |
3878 | for ac_prog in gawk mawk nawk awk | |
3879 | do | |
3880 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3881 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3883 | $as_echo_n "checking for $ac_word... " >&6; } | |
3884 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3885 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
3886 | else |
3887 | if test -n "$AWK"; then | |
3888 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3889 | else | |
3890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3891 | for as_dir in $PATH | |
3892 | do | |
3893 | IFS=$as_save_IFS | |
3894 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3895 | for ac_exec_ext in '' $ac_executable_extensions; do |
3896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
42ecbf5e | 3897 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
42ecbf5e DJ |
3899 | break 2 |
3900 | fi | |
3901 | done | |
81ecdfbb RW |
3902 | done |
3903 | IFS=$as_save_IFS | |
42ecbf5e DJ |
3904 | |
3905 | fi | |
3906 | fi | |
3907 | AWK=$ac_cv_prog_AWK | |
3908 | if test -n "$AWK"; then | |
81ecdfbb RW |
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3910 | $as_echo "$AWK" >&6; } | |
42ecbf5e | 3911 | else |
81ecdfbb RW |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3913 | $as_echo "no" >&6; } | |
42ecbf5e | 3914 | fi |
252b5132 | 3915 | |
81ecdfbb | 3916 | |
42ecbf5e DJ |
3917 | test -n "$AWK" && break |
3918 | done | |
252b5132 | 3919 | |
81ecdfbb RW |
3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3921 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3922 | set x ${MAKE-make} | |
3923 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3924 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3925 | $as_echo_n "(cached) " >&6 | |
252b5132 | 3926 | else |
42ecbf5e | 3927 | cat >conftest.make <<\_ACEOF |
81ecdfbb | 3928 | SHELL = /bin/sh |
252b5132 | 3929 | all: |
81ecdfbb | 3930 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
42ecbf5e | 3931 | _ACEOF |
252b5132 | 3932 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
3933 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3934 | *@@@%%%=?*=@@@%%%*) | |
3935 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3936 | *) | |
3937 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3938 | esac | |
42ecbf5e | 3939 | rm -f conftest.make |
252b5132 | 3940 | fi |
81ecdfbb RW |
3941 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3943 | $as_echo "yes" >&6; } | |
252b5132 RH |
3944 | SET_MAKE= |
3945 | else | |
81ecdfbb RW |
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3947 | $as_echo "no" >&6; } | |
252b5132 RH |
3948 | SET_MAKE="MAKE=${MAKE-make}" |
3949 | fi | |
3950 | ||
42ecbf5e DJ |
3951 | rm -rf .tst 2>/dev/null |
3952 | mkdir .tst 2>/dev/null | |
3953 | if test -d .tst; then | |
3954 | am__leading_dot=. | |
3955 | else | |
3956 | am__leading_dot=_ | |
3957 | fi | |
3958 | rmdir .tst 2>/dev/null | |
3959 | ||
3960 | DEPDIR="${am__leading_dot}deps" | |
3961 | ||
81ecdfbb | 3962 | ac_config_commands="$ac_config_commands depfiles" |
42ecbf5e DJ |
3963 | |
3964 | ||
3965 | am_make=${MAKE-make} | |
3966 | cat > confinc << 'END' | |
3967 | am__doit: | |
81ecdfbb | 3968 | @echo this is the am__doit target |
42ecbf5e DJ |
3969 | .PHONY: am__doit |
3970 | END | |
3971 | # If we don't find an include directive, just comment out the code. | |
81ecdfbb RW |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3973 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
42ecbf5e DJ |
3974 | am__include="#" |
3975 | am__quote= | |
3976 | _am_result=none | |
3977 | # First try GNU make style include. | |
3978 | echo "include confinc" > confmf | |
81ecdfbb RW |
3979 | # Ignore all kinds of additional output from `make'. |
3980 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3981 | *the\ am__doit\ target*) | |
3982 | am__include=include | |
3983 | am__quote= | |
3984 | _am_result=GNU | |
3985 | ;; | |
3986 | esac | |
42ecbf5e DJ |
3987 | # Now try BSD make style include. |
3988 | if test "$am__include" = "#"; then | |
3989 | echo '.include "confinc"' > confmf | |
81ecdfbb RW |
3990 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3991 | *the\ am__doit\ target*) | |
3992 | am__include=.include | |
3993 | am__quote="\"" | |
3994 | _am_result=BSD | |
3995 | ;; | |
3996 | esac | |
42ecbf5e DJ |
3997 | fi |
3998 | ||
3999 | ||
81ecdfbb RW |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4001 | $as_echo "$_am_result" >&6; } | |
42ecbf5e DJ |
4002 | rm -f confinc confmf |
4003 | ||
81ecdfbb RW |
4004 | # Check whether --enable-dependency-tracking was given. |
4005 | if test "${enable_dependency_tracking+set}" = set; then : | |
4006 | enableval=$enable_dependency_tracking; | |
4007 | fi | |
42ecbf5e | 4008 | |
42ecbf5e DJ |
4009 | if test "x$enable_dependency_tracking" != xno; then |
4010 | am_depcomp="$ac_aux_dir/depcomp" | |
4011 | AMDEPBACKSLASH='\' | |
4012 | fi | |
81ecdfbb | 4013 | if test "x$enable_dependency_tracking" != xno; then |
42ecbf5e DJ |
4014 | AMDEP_TRUE= |
4015 | AMDEP_FALSE='#' | |
4016 | else | |
4017 | AMDEP_TRUE='#' | |
4018 | AMDEP_FALSE= | |
4019 | fi | |
4020 | ||
e5a52504 | 4021 | |
81ecdfbb RW |
4022 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4023 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4024 | # is not polluted with repeated "-I." | |
4025 | am__isrc=' -I$(srcdir)' | |
4026 | # test to see if srcdir already configured | |
4027 | if test -f $srcdir/config.status; then | |
4028 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4029 | fi | |
42ecbf5e | 4030 | fi |
252b5132 | 4031 | |
42ecbf5e DJ |
4032 | # test whether we have cygpath |
4033 | if test -z "$CYGPATH_W"; then | |
4034 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4035 | CYGPATH_W='cygpath -w' | |
4036 | else | |
4037 | CYGPATH_W=echo | |
4038 | fi | |
252b5132 | 4039 | fi |
42ecbf5e DJ |
4040 | |
4041 | ||
4042 | # Define the identity of the package. | |
4043 | PACKAGE=ld | |
4044 | VERSION=${BFD_VERSION} | |
4045 | ||
4046 | ||
4047 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 4048 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
4049 | _ACEOF |
4050 | ||
252b5132 | 4051 | |
42ecbf5e | 4052 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 4053 | #define VERSION "$VERSION" |
42ecbf5e DJ |
4054 | _ACEOF |
4055 | ||
4056 | # Some tools Automake needs. | |
4057 | ||
4058 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4059 | ||
4060 | ||
4061 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4062 | ||
4063 | ||
4064 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4065 | ||
4066 | ||
4067 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4068 | ||
e5a52504 | 4069 | |
42ecbf5e | 4070 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 4071 | |
42ecbf5e DJ |
4072 | # We need awk for the "check" target. The system "awk" is bad on |
4073 | # some platforms. | |
4074 | # Always define AMTAR for backward compatibility. | |
4075 | ||
4076 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4077 | ||
4078 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4079 | ||
4080 | ||
4081 | ||
4082 | ||
4083 | depcc="$CC" am_compiler_list= | |
4084 | ||
81ecdfbb RW |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4086 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4087 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4088 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
4089 | else |
4090 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4091 | # We make a subdir and do the tests there. Otherwise we can end up | |
4092 | # making bogus files that we don't know about and never remove. For | |
4093 | # instance it was reported that on HP-UX the gcc test will end up | |
4094 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4095 | # in D'. | |
4096 | mkdir conftest.dir | |
4097 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4098 | # using a relative directory. | |
4099 | cp "$am_depcomp" conftest.dir | |
4100 | cd conftest.dir | |
4101 | # We will build objects and dependencies in a subdirectory because | |
4102 | # it helps to detect inapplicable dependency modes. For instance | |
4103 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4104 | # side effect of compilation, but ICC will put the dependencies in | |
4105 | # the current directory while Tru64 will put them in the object | |
4106 | # directory. | |
4107 | mkdir sub | |
4108 | ||
4109 | am_cv_CC_dependencies_compiler_type=none | |
4110 | if test "$am_compiler_list" = ""; then | |
4111 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4112 | fi | |
81ecdfbb RW |
4113 | am__universal=false |
4114 | case " $depcc " in #( | |
4115 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4116 | esac | |
4117 | ||
42ecbf5e DJ |
4118 | for depmode in $am_compiler_list; do |
4119 | # Setup a source with many dependencies, because some compilers | |
4120 | # like to wrap large dependency lists on column 80 (with \), and | |
4121 | # we should not choose a depcomp mode which is confused by this. | |
4122 | # | |
4123 | # We need to recreate these files for each test, as the compiler may | |
4124 | # overwrite some of them when testing with obscure command lines. | |
4125 | # This happens at least with the AIX C compiler. | |
4126 | : > sub/conftest.c | |
4127 | for i in 1 2 3 4 5 6; do | |
4128 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4129 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4130 | # Solaris 8's {/usr,}/bin/sh. | |
4131 | touch sub/conftst$i.h | |
4132 | done | |
4133 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4134 | ||
81ecdfbb RW |
4135 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4136 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4137 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4138 | # versions had trouble with output in subdirs | |
4139 | am__obj=sub/conftest.${OBJEXT-o} | |
4140 | am__minus_obj="-o $am__obj" | |
42ecbf5e | 4141 | case $depmode in |
81ecdfbb RW |
4142 | gcc) |
4143 | # This depmode causes a compiler race in universal mode. | |
4144 | test "$am__universal" = false || continue | |
4145 | ;; | |
42ecbf5e DJ |
4146 | nosideeffect) |
4147 | # after this tag, mechanisms are not by side-effect, so they'll | |
4148 | # only be used when explicitly requested | |
4149 | if test "x$enable_dependency_tracking" = xyes; then | |
4150 | continue | |
4151 | else | |
4152 | break | |
4153 | fi | |
4154 | ;; | |
81ecdfbb RW |
4155 | msvisualcpp | msvcmsys) |
4156 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4157 | # not run yet. These depmodes are late enough in the game, and | |
4158 | # so weak that their functioning should not be impacted. | |
4159 | am__obj=conftest.${OBJEXT-o} | |
4160 | am__minus_obj= | |
4161 | ;; | |
42ecbf5e DJ |
4162 | none) break ;; |
4163 | esac | |
42ecbf5e | 4164 | if depmode=$depmode \ |
81ecdfbb | 4165 | source=sub/conftest.c object=$am__obj \ |
42ecbf5e | 4166 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
81ecdfbb | 4167 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
42ecbf5e | 4168 | >/dev/null 2>conftest.err && |
81ecdfbb | 4169 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e | 4170 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
81ecdfbb | 4171 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
42ecbf5e DJ |
4172 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4173 | # icc doesn't choke on unknown options, it will just issue warnings | |
4174 | # or remarks (even with -Werror). So we grep stderr for any message | |
4175 | # that says an option was ignored or not supported. | |
4176 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4177 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4178 | # The diagnosis changed in icc 8.0: | |
4179 | # icc: Command line remark: option '-MP' not supported | |
4180 | if (grep 'ignoring option' conftest.err || | |
4181 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4182 | am_cv_CC_dependencies_compiler_type=$depmode | |
4183 | break | |
4184 | fi | |
4185 | fi | |
4186 | done | |
2469cfa2 | 4187 | |
42ecbf5e DJ |
4188 | cd .. |
4189 | rm -rf conftest.dir | |
2469cfa2 | 4190 | else |
42ecbf5e DJ |
4191 | am_cv_CC_dependencies_compiler_type=none |
4192 | fi | |
4193 | ||
2469cfa2 | 4194 | fi |
81ecdfbb RW |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4196 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
42ecbf5e DJ |
4197 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4198 | ||
81ecdfbb | 4199 | if |
42ecbf5e DJ |
4200 | test "x$enable_dependency_tracking" != xno \ |
4201 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4202 | am__fastdepCC_TRUE= | |
4203 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 4204 | else |
42ecbf5e DJ |
4205 | am__fastdepCC_TRUE='#' |
4206 | am__fastdepCC_FALSE= | |
2469cfa2 | 4207 | fi |
2469cfa2 | 4208 | |
2469cfa2 | 4209 | |
e5a52504 | 4210 | |
42ecbf5e | 4211 | |
64ac50ac RW |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4213 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4214 | # Check whether --enable-maintainer-mode was given. | |
4215 | if test "${enable_maintainer_mode+set}" = set; then : | |
4216 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4217 | else | |
4218 | USE_MAINTAINER_MODE=no | |
4219 | fi | |
4220 | ||
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4222 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4223 | if test $USE_MAINTAINER_MODE = yes; then | |
4224 | MAINTAINER_MODE_TRUE= | |
4225 | MAINTAINER_MODE_FALSE='#' | |
4226 | else | |
4227 | MAINTAINER_MODE_TRUE='#' | |
4228 | MAINTAINER_MODE_FALSE= | |
4229 | fi | |
4230 | ||
4231 | MAINT=$MAINTAINER_MODE_TRUE | |
4232 | ||
4233 | ||
4234 | ||
d7040cdb | 4235 | |
81ecdfbb RW |
4236 | # Check whether --with-lib-path was given. |
4237 | if test "${with_lib_path+set}" = set; then : | |
4238 | withval=$with_lib_path; LIB_PATH=$withval | |
4239 | fi | |
4240 | ||
4241 | # Check whether --enable-targets was given. | |
4242 | if test "${enable_targets+set}" = set; then : | |
4243 | enableval=$enable_targets; case "${enableval}" in | |
4244 | yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
ce2cded5 L |
4245 | ;; |
4246 | no) enable_targets= ;; | |
4247 | *) enable_targets=$enableval ;; | |
4248 | esac | |
81ecdfbb RW |
4249 | fi |
4250 | # Check whether --enable-64-bit-bfd was given. | |
4251 | if test "${enable_64_bit_bfd+set}" = set; then : | |
4252 | enableval=$enable_64_bit_bfd; case "${enableval}" in | |
ce2cded5 L |
4253 | yes) want64=true ;; |
4254 | no) want64=false ;; | |
81ecdfbb | 4255 | *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; |
ce2cded5 | 4256 | esac |
2469cfa2 | 4257 | else |
ce2cded5 | 4258 | want64=false |
81ecdfbb | 4259 | fi |
d7040cdb SE |
4260 | |
4261 | ||
81ecdfbb RW |
4262 | # Check whether --with-sysroot was given. |
4263 | if test "${with_sysroot+set}" = set; then : | |
4264 | withval=$with_sysroot; | |
ce2cded5 L |
4265 | case ${with_sysroot} in |
4266 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
4267 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
4268 | esac | |
d7040cdb | 4269 | |
ce2cded5 L |
4270 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
4271 | use_sysroot=yes | |
d7040cdb | 4272 | |
ce2cded5 L |
4273 | if test "x$prefix" = xNONE; then |
4274 | test_prefix=/usr/local | |
4275 | else | |
4276 | test_prefix=$prefix | |
4277 | fi | |
4278 | if test "x$exec_prefix" = xNONE; then | |
4279 | test_exec_prefix=$test_prefix | |
4280 | else | |
4281 | test_exec_prefix=$exec_prefix | |
4282 | fi | |
4283 | case ${TARGET_SYSTEM_ROOT} in | |
4284 | "${test_prefix}"|"${test_prefix}/"*|\ | |
4285 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
4286 | '${prefix}'|'${prefix}/'*|\ | |
4287 | '${exec_prefix}'|'${exec_prefix}/'*) | |
4288 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
4289 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
4290 | ;; | |
4291 | esac | |
d7040cdb | 4292 | |
e5a52504 | 4293 | else |
d7040cdb | 4294 | |
ce2cded5 L |
4295 | use_sysroot=no |
4296 | TARGET_SYSTEM_ROOT= | |
4297 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
d7040cdb | 4298 | |
81ecdfbb RW |
4299 | fi |
4300 | ||
d7040cdb SE |
4301 | |
4302 | ||
4303 | ||
4304 | ||
81ecdfbb RW |
4305 | # Check whether --enable-got was given. |
4306 | if test "${enable_got+set}" = set; then : | |
4307 | enableval=$enable_got; case "${enableval}" in | |
7fb9f789 | 4308 | target | single | negative | multigot) got_handling=$enableval ;; |
81ecdfbb | 4309 | *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; |
7fb9f789 NC |
4310 | esac |
4311 | else | |
4312 | got_handling=target | |
81ecdfbb RW |
4313 | fi |
4314 | ||
7fb9f789 NC |
4315 | |
4316 | case "${got_handling}" in | |
4317 | target) | |
4318 | ||
81ecdfbb | 4319 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h |
7fb9f789 NC |
4320 | ;; |
4321 | single) | |
4322 | ||
81ecdfbb | 4323 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h |
7fb9f789 NC |
4324 | ;; |
4325 | negative) | |
4326 | ||
81ecdfbb | 4327 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h |
7fb9f789 NC |
4328 | ;; |
4329 | multigot) | |
4330 | ||
81ecdfbb | 4331 | $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h |
7fb9f789 | 4332 | ;; |
81ecdfbb | 4333 | *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; |
7fb9f789 NC |
4334 | esac |
4335 | ||
d7040cdb | 4336 | |
ce2cded5 | 4337 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
d7040cdb | 4338 | |
81ecdfbb RW |
4339 | # Check whether --enable-werror was given. |
4340 | if test "${enable_werror+set}" = set; then : | |
4341 | enableval=$enable_werror; case "${enableval}" in | |
ce2cded5 L |
4342 | yes | y) ERROR_ON_WARNING="yes" ;; |
4343 | no | n) ERROR_ON_WARNING="no" ;; | |
81ecdfbb | 4344 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
ce2cded5 | 4345 | esac |
81ecdfbb RW |
4346 | fi |
4347 | ||
d7040cdb | 4348 | |
bb8541b9 L |
4349 | # Enable -Wno-format by default when using gcc on mingw |
4350 | case "${host}" in | |
4351 | *-*-mingw32*) | |
4352 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4353 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
4354 | fi | |
4355 | ;; | |
4356 | *) ;; | |
4357 | esac | |
4358 | ||
ce2cded5 L |
4359 | # Enable -Werror by default when using gcc |
4360 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4361 | ERROR_ON_WARNING=yes | |
4362 | fi | |
d7040cdb | 4363 | |
ce2cded5 L |
4364 | NO_WERROR= |
4365 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4366 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
4367 | NO_WERROR="-Wno-error" | |
4368 | fi | |
d7040cdb | 4369 | |
ce2cded5 L |
4370 | if test "${GCC}" = yes ; then |
4371 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
4372 | fi | |
d7040cdb | 4373 | |
81ecdfbb RW |
4374 | # Check whether --enable-build-warnings was given. |
4375 | if test "${enable_build_warnings+set}" = set; then : | |
4376 | enableval=$enable_build_warnings; case "${enableval}" in | |
ce2cded5 L |
4377 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
4378 | no) if test "${GCC}" = yes ; then | |
4379 | WARN_CFLAGS="-w" | |
4380 | fi;; | |
4381 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4382 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
4383 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4384 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
4385 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4386 | esac | |
81ecdfbb RW |
4387 | fi |
4388 | ||
d7040cdb | 4389 | |
ce2cded5 L |
4390 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
4391 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
4392 | fi | |
d7040cdb | 4393 | |
2469cfa2 | 4394 | |
d7040cdb SE |
4395 | |
4396 | ||
4397 | ||
81ecdfbb | 4398 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb SE |
4399 | |
4400 | ||
ce2cded5 | 4401 | if test -z "$target" ; then |
81ecdfbb | 4402 | as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
ce2cded5 L |
4403 | fi |
4404 | if test -z "$host" ; then | |
81ecdfbb | 4405 | as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5 |
ce2cded5 | 4406 | fi |
d7040cdb | 4407 | |
ce2cded5 | 4408 | # host-specific stuff: |
d7040cdb | 4409 | |
ce2cded5 L |
4410 | ac_ext=c |
4411 | ac_cpp='$CPP $CPPFLAGS' | |
4412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4415 | if test -n "$ac_tool_prefix"; then | |
4416 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4417 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4419 | $as_echo_n "checking for $ac_word... " >&6; } | |
4420 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4421 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4422 | else |
ce2cded5 L |
4423 | if test -n "$CC"; then |
4424 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4425 | else | |
d7040cdb SE |
4426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4427 | for as_dir in $PATH | |
4428 | do | |
4429 | IFS=$as_save_IFS | |
4430 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4431 | for ac_exec_ext in '' $ac_executable_extensions; do |
4432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4433 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 | 4435 | break 2 |
d7040cdb | 4436 | fi |
ce2cded5 | 4437 | done |
81ecdfbb RW |
4438 | done |
4439 | IFS=$as_save_IFS | |
d7040cdb SE |
4440 | |
4441 | fi | |
d7040cdb | 4442 | fi |
ce2cded5 L |
4443 | CC=$ac_cv_prog_CC |
4444 | if test -n "$CC"; then | |
81ecdfbb RW |
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4446 | $as_echo "$CC" >&6; } | |
d7040cdb | 4447 | else |
81ecdfbb RW |
4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4449 | $as_echo "no" >&6; } | |
d7040cdb | 4450 | fi |
d7040cdb | 4451 | |
81ecdfbb | 4452 | |
252b5132 | 4453 | fi |
ce2cded5 L |
4454 | if test -z "$ac_cv_prog_CC"; then |
4455 | ac_ct_CC=$CC | |
4456 | # Extract the first word of "gcc", so it can be a program name with args. | |
4457 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4459 | $as_echo_n "checking for $ac_word... " >&6; } | |
4460 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4461 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4462 | else |
ce2cded5 L |
4463 | if test -n "$ac_ct_CC"; then |
4464 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 4465 | else |
ce2cded5 L |
4466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4467 | for as_dir in $PATH | |
4468 | do | |
4469 | IFS=$as_save_IFS | |
4470 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4471 | for ac_exec_ext in '' $ac_executable_extensions; do |
4472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4473 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4475 | break 2 |
4476 | fi | |
4477 | done | |
81ecdfbb RW |
4478 | done |
4479 | IFS=$as_save_IFS | |
4480 | ||
252b5132 RH |
4481 | fi |
4482 | fi | |
ce2cded5 L |
4483 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4484 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4486 | $as_echo "$ac_ct_CC" >&6; } | |
252b5132 | 4487 | else |
81ecdfbb RW |
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4489 | $as_echo "no" >&6; } | |
252b5132 | 4490 | fi |
ce2cded5 | 4491 | |
81ecdfbb RW |
4492 | if test "x$ac_ct_CC" = x; then |
4493 | CC="" | |
4494 | else | |
4495 | case $cross_compiling:$ac_tool_warned in | |
4496 | yes:) | |
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4498 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4499 | ac_tool_warned=yes ;; | |
4500 | esac | |
4501 | CC=$ac_ct_CC | |
4502 | fi | |
252b5132 | 4503 | else |
ce2cded5 | 4504 | CC="$ac_cv_prog_CC" |
252b5132 | 4505 | fi |
d7040cdb | 4506 | |
ce2cded5 | 4507 | if test -z "$CC"; then |
81ecdfbb RW |
4508 | if test -n "$ac_tool_prefix"; then |
4509 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ce2cded5 | 4510 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4512 | $as_echo_n "checking for $ac_word... " >&6; } | |
4513 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4514 | $as_echo_n "(cached) " >&6 | |
252b5132 | 4515 | else |
ce2cded5 L |
4516 | if test -n "$CC"; then |
4517 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4518 | else |
ce2cded5 L |
4519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4520 | for as_dir in $PATH | |
4521 | do | |
4522 | IFS=$as_save_IFS | |
4523 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4524 | for ac_exec_ext in '' $ac_executable_extensions; do |
4525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4526 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4528 | break 2 |
4529 | fi | |
4530 | done | |
81ecdfbb RW |
4531 | done |
4532 | IFS=$as_save_IFS | |
ce2cded5 | 4533 | |
252b5132 RH |
4534 | fi |
4535 | fi | |
ce2cded5 L |
4536 | CC=$ac_cv_prog_CC |
4537 | if test -n "$CC"; then | |
81ecdfbb RW |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4539 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4540 | else |
81ecdfbb RW |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4542 | $as_echo "no" >&6; } | |
ce2cded5 L |
4543 | fi |
4544 | ||
ce2cded5 | 4545 | |
81ecdfbb | 4546 | fi |
ce2cded5 L |
4547 | fi |
4548 | if test -z "$CC"; then | |
4549 | # Extract the first word of "cc", so it can be a program name with args. | |
4550 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4552 | $as_echo_n "checking for $ac_word... " >&6; } | |
4553 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4554 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
4555 | else |
4556 | if test -n "$CC"; then | |
4557 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4558 | else | |
4559 | ac_prog_rejected=no | |
4560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4561 | for as_dir in $PATH | |
4562 | do | |
4563 | IFS=$as_save_IFS | |
4564 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4565 | for ac_exec_ext in '' $ac_executable_extensions; do |
4566 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 L |
4567 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4568 | ac_prog_rejected=yes | |
4569 | continue | |
4570 | fi | |
4571 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
4573 | break 2 |
4574 | fi | |
4575 | done | |
81ecdfbb RW |
4576 | done |
4577 | IFS=$as_save_IFS | |
ce2cded5 L |
4578 | |
4579 | if test $ac_prog_rejected = yes; then | |
4580 | # We found a bogon in the path, so make sure we never use it. | |
4581 | set dummy $ac_cv_prog_CC | |
4582 | shift | |
4583 | if test $# != 0; then | |
4584 | # We chose a different compiler from the bogus one. | |
4585 | # However, it has the same basename, so the bogon will be chosen | |
4586 | # first if we set CC to just the basename; use the full file name. | |
4587 | shift | |
4588 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4589 | fi | |
4590 | fi | |
4591 | fi | |
4592 | fi | |
4593 | CC=$ac_cv_prog_CC | |
4594 | if test -n "$CC"; then | |
81ecdfbb RW |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4596 | $as_echo "$CC" >&6; } | |
ce2cded5 | 4597 | else |
81ecdfbb RW |
4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4599 | $as_echo "no" >&6; } | |
ce2cded5 L |
4600 | fi |
4601 | ||
81ecdfbb | 4602 | |
ce2cded5 L |
4603 | fi |
4604 | if test -z "$CC"; then | |
d7040cdb | 4605 | if test -n "$ac_tool_prefix"; then |
81ecdfbb | 4606 | for ac_prog in cl.exe |
d7040cdb SE |
4607 | do |
4608 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4609 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4611 | $as_echo_n "checking for $ac_word... " >&6; } | |
4612 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4613 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4614 | else |
ce2cded5 L |
4615 | if test -n "$CC"; then |
4616 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb SE |
4617 | else |
4618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4619 | for as_dir in $PATH | |
4620 | do | |
4621 | IFS=$as_save_IFS | |
4622 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4623 | for ac_exec_ext in '' $ac_executable_extensions; do |
4624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4625 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
4627 | break 2 |
4628 | fi | |
4629 | done | |
81ecdfbb RW |
4630 | done |
4631 | IFS=$as_save_IFS | |
d7040cdb SE |
4632 | |
4633 | fi | |
4634 | fi | |
ce2cded5 L |
4635 | CC=$ac_cv_prog_CC |
4636 | if test -n "$CC"; then | |
81ecdfbb RW |
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4638 | $as_echo "$CC" >&6; } | |
d7040cdb | 4639 | else |
81ecdfbb RW |
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4641 | $as_echo "no" >&6; } | |
d7040cdb SE |
4642 | fi |
4643 | ||
81ecdfbb | 4644 | |
ce2cded5 | 4645 | test -n "$CC" && break |
d7040cdb SE |
4646 | done |
4647 | fi | |
ce2cded5 L |
4648 | if test -z "$CC"; then |
4649 | ac_ct_CC=$CC | |
81ecdfbb | 4650 | for ac_prog in cl.exe |
d7040cdb SE |
4651 | do |
4652 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4653 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4655 | $as_echo_n "checking for $ac_word... " >&6; } | |
4656 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4657 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4658 | else |
ce2cded5 L |
4659 | if test -n "$ac_ct_CC"; then |
4660 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
4661 | else |
4662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4663 | for as_dir in $PATH | |
4664 | do | |
4665 | IFS=$as_save_IFS | |
4666 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4667 | for ac_exec_ext in '' $ac_executable_extensions; do |
4668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ce2cded5 | 4669 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
4671 | break 2 |
4672 | fi | |
4673 | done | |
81ecdfbb RW |
4674 | done |
4675 | IFS=$as_save_IFS | |
d7040cdb SE |
4676 | |
4677 | fi | |
4678 | fi | |
ce2cded5 L |
4679 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4680 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4682 | $as_echo "$ac_ct_CC" >&6; } | |
d7040cdb | 4683 | else |
81ecdfbb RW |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4685 | $as_echo "no" >&6; } | |
d7040cdb SE |
4686 | fi |
4687 | ||
81ecdfbb | 4688 | |
ce2cded5 | 4689 | test -n "$ac_ct_CC" && break |
d7040cdb | 4690 | done |
d7040cdb | 4691 | |
81ecdfbb RW |
4692 | if test "x$ac_ct_CC" = x; then |
4693 | CC="" | |
4694 | else | |
4695 | case $cross_compiling:$ac_tool_warned in | |
4696 | yes:) | |
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4698 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4699 | ac_tool_warned=yes ;; | |
4700 | esac | |
4701 | CC=$ac_ct_CC | |
4702 | fi | |
d7040cdb SE |
4703 | fi |
4704 | ||
d7040cdb | 4705 | fi |
d7040cdb SE |
4706 | |
4707 | ||
81ecdfbb RW |
4708 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4709 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4710 | as_fn_error "no acceptable C compiler found in \$PATH | |
4711 | See \`config.log' for more details." "$LINENO" 5; } | |
d7040cdb | 4712 | |
ce2cded5 | 4713 | # Provide some information about the compiler. |
81ecdfbb RW |
4714 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4715 | set X $ac_compile | |
4716 | ac_compiler=$2 | |
4717 | for ac_option in --version -v -V -qversion; do | |
4718 | { { ac_try="$ac_compiler $ac_option >&5" | |
4719 | case "(($ac_try" in | |
4720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4721 | *) ac_try_echo=$ac_try;; | |
4722 | esac | |
4723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4724 | $as_echo "$ac_try_echo"; } >&5 | |
4725 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ce2cded5 | 4726 | ac_status=$? |
81ecdfbb RW |
4727 | if test -s conftest.err; then |
4728 | sed '10a\ | |
4729 | ... rest of stderr output deleted ... | |
4730 | 10q' conftest.err >conftest.er1 | |
4731 | cat conftest.er1 >&5 | |
4732 | rm -f conftest.er1 conftest.err | |
4733 | fi | |
4734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4735 | test $ac_status = 0; } | |
4736 | done | |
d7040cdb | 4737 | |
81ecdfbb RW |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4739 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4740 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4741 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4742 | else |
81ecdfbb | 4743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 4744 | /* end confdefs.h. */ |
d7040cdb | 4745 | |
ce2cded5 L |
4746 | int |
4747 | main () | |
4748 | { | |
4749 | #ifndef __GNUC__ | |
4750 | choke me | |
4751 | #endif | |
4752 | ||
4753 | ; | |
4754 | return 0; | |
4755 | } | |
4756 | _ACEOF | |
81ecdfbb | 4757 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 | 4758 | ac_compiler_gnu=yes |
d7040cdb | 4759 | else |
81ecdfbb | 4760 | ac_compiler_gnu=no |
d7040cdb | 4761 | fi |
81ecdfbb | 4762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 4763 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
d7040cdb | 4764 | |
ce2cded5 | 4765 | fi |
81ecdfbb RW |
4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4767 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4768 | if test $ac_compiler_gnu = yes; then | |
4769 | GCC=yes | |
4770 | else | |
4771 | GCC= | |
4772 | fi | |
ce2cded5 L |
4773 | ac_test_CFLAGS=${CFLAGS+set} |
4774 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4776 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4777 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4778 | $as_echo_n "(cached) " >&6 | |
4779 | else | |
4780 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4781 | ac_c_werror_flag=yes | |
4782 | ac_cv_prog_cc_g=no | |
4783 | CFLAGS="-g" | |
4784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce2cded5 | 4785 | /* end confdefs.h. */ |
d7040cdb | 4786 | |
ce2cded5 L |
4787 | int |
4788 | main () | |
4789 | { | |
d7040cdb | 4790 | |
ce2cded5 L |
4791 | ; |
4792 | return 0; | |
4793 | } | |
4794 | _ACEOF | |
81ecdfbb | 4795 | if ac_fn_c_try_compile "$LINENO"; then : |
ce2cded5 L |
4796 | ac_cv_prog_cc_g=yes |
4797 | else | |
81ecdfbb RW |
4798 | CFLAGS="" |
4799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4800 | /* end confdefs.h. */ | |
4801 | ||
4802 | int | |
4803 | main () | |
4804 | { | |
4805 | ||
4806 | ; | |
4807 | return 0; | |
4808 | } | |
4809 | _ACEOF | |
4810 | if ac_fn_c_try_compile "$LINENO"; then : | |
4811 | ||
4812 | else | |
4813 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4814 | CFLAGS="-g" | |
4815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4816 | /* end confdefs.h. */ | |
4817 | ||
4818 | int | |
4819 | main () | |
4820 | { | |
d7040cdb | 4821 | |
81ecdfbb RW |
4822 | ; |
4823 | return 0; | |
4824 | } | |
4825 | _ACEOF | |
4826 | if ac_fn_c_try_compile "$LINENO"; then : | |
4827 | ac_cv_prog_cc_g=yes | |
4828 | fi | |
4829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4830 | fi | |
4831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 4832 | fi |
81ecdfbb RW |
4833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4834 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ce2cded5 | 4835 | fi |
81ecdfbb RW |
4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4837 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ce2cded5 L |
4838 | if test "$ac_test_CFLAGS" = set; then |
4839 | CFLAGS=$ac_save_CFLAGS | |
4840 | elif test $ac_cv_prog_cc_g = yes; then | |
4841 | if test "$GCC" = yes; then | |
4842 | CFLAGS="-g -O2" | |
4843 | else | |
4844 | CFLAGS="-g" | |
4845 | fi | |
d7040cdb | 4846 | else |
ce2cded5 L |
4847 | if test "$GCC" = yes; then |
4848 | CFLAGS="-O2" | |
4849 | else | |
4850 | CFLAGS= | |
4851 | fi | |
d7040cdb | 4852 | fi |
81ecdfbb RW |
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4854 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4855 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4856 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 4857 | else |
81ecdfbb | 4858 | ac_cv_prog_cc_c89=no |
ce2cded5 | 4859 | ac_save_CC=$CC |
81ecdfbb | 4860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
4861 | /* end confdefs.h. */ |
4862 | #include <stdarg.h> | |
4863 | #include <stdio.h> | |
4864 | #include <sys/types.h> | |
4865 | #include <sys/stat.h> | |
4866 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4867 | struct buf { int x; }; | |
4868 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4869 | static char *e (p, i) | |
4870 | char **p; | |
4871 | int i; | |
4872 | { | |
4873 | return p[i]; | |
4874 | } | |
4875 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4876 | { | |
4877 | char *s; | |
4878 | va_list v; | |
4879 | va_start (v,p); | |
4880 | s = g (p, va_arg (v,int)); | |
4881 | va_end (v); | |
4882 | return s; | |
4883 | } | |
d7040cdb | 4884 | |
ce2cded5 L |
4885 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4886 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4887 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4888 | as 'x'. The following induces an error, until -std is added to get |
ce2cded5 L |
4889 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4890 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4891 | that's true only with -std. */ |
ce2cded5 | 4892 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
d7040cdb | 4893 | |
81ecdfbb RW |
4894 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4895 | inside strings and character constants. */ | |
4896 | #define FOO(x) 'x' | |
4897 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4898 | ||
ce2cded5 L |
4899 | int test (int i, double x); |
4900 | struct s1 {int (*f) (int a);}; | |
4901 | struct s2 {int (*f) (double a);}; | |
4902 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4903 | int argc; | |
4904 | char **argv; | |
4905 | int | |
4906 | main () | |
4907 | { | |
4908 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4909 | ; | |
4910 | return 0; | |
4911 | } | |
4912 | _ACEOF | |
81ecdfbb RW |
4913 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4914 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ce2cded5 L |
4915 | do |
4916 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4917 | if ac_fn_c_try_compile "$LINENO"; then : |
4918 | ac_cv_prog_cc_c89=$ac_arg | |
ce2cded5 | 4919 | fi |
81ecdfbb RW |
4920 | rm -f core conftest.err conftest.$ac_objext |
4921 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ce2cded5 | 4922 | done |
81ecdfbb | 4923 | rm -f conftest.$ac_ext |
ce2cded5 | 4924 | CC=$ac_save_CC |
d7040cdb | 4925 | |
ce2cded5 | 4926 | fi |
81ecdfbb RW |
4927 | # AC_CACHE_VAL |
4928 | case "x$ac_cv_prog_cc_c89" in | |
4929 | x) | |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4931 | $as_echo "none needed" >&6; } ;; | |
4932 | xno) | |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4934 | $as_echo "unsupported" >&6; } ;; | |
ce2cded5 | 4935 | *) |
81ecdfbb RW |
4936 | CC="$CC $ac_cv_prog_cc_c89" |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4938 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d7040cdb | 4939 | esac |
81ecdfbb | 4940 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d7040cdb | 4941 | |
ce2cded5 | 4942 | fi |
d7040cdb | 4943 | |
ce2cded5 L |
4944 | ac_ext=c |
4945 | ac_cpp='$CPP $CPPFLAGS' | |
4946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4949 | |
7357c5b6 AM |
4950 | ac_ext=c |
4951 | ac_cpp='$CPP $CPPFLAGS' | |
4952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4956 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4957 | # On Suns, sometimes $CPP names a directory. |
4958 | if test -n "$CPP" && test -d "$CPP"; then | |
4959 | CPP= | |
4960 | fi | |
4961 | if test -z "$CPP"; then | |
81ecdfbb RW |
4962 | if test "${ac_cv_prog_CPP+set}" = set; then : |
4963 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 4964 | else |
7357c5b6 AM |
4965 | # Double quotes because CPP needs to be expanded |
4966 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4967 | do | |
4968 | ac_preproc_ok=false | |
4969 | for ac_c_preproc_warn_flag in '' yes | |
ce2cded5 | 4970 | do |
7357c5b6 AM |
4971 | # Use a header file that comes with gcc, so configuring glibc |
4972 | # with a fresh cross-compiler works. | |
4973 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4974 | # <limits.h> exists even on freestanding compilers. | |
4975 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4976 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4978 | /* end confdefs.h. */ |
4979 | #ifdef __STDC__ | |
4980 | # include <limits.h> | |
4981 | #else | |
4982 | # include <assert.h> | |
4983 | #endif | |
4984 | Syntax error | |
4985 | _ACEOF | |
81ecdfbb | 4986 | if ac_fn_c_try_cpp "$LINENO"; then : |
ac48eca1 | 4987 | |
81ecdfbb | 4988 | else |
7357c5b6 AM |
4989 | # Broken: fails on valid input. |
4990 | continue | |
4991 | fi | |
4992 | rm -f conftest.err conftest.$ac_ext | |
ac48eca1 | 4993 | |
81ecdfbb | 4994 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4995 | # can be detected and how. |
81ecdfbb | 4996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4997 | /* end confdefs.h. */ |
4998 | #include <ac_nonexistent.h> | |
4999 | _ACEOF | |
81ecdfbb | 5000 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
5001 | # Broken: success on invalid input. |
5002 | continue | |
5003 | else | |
7357c5b6 AM |
5004 | # Passes both tests. |
5005 | ac_preproc_ok=: | |
5006 | break | |
5007 | fi | |
5008 | rm -f conftest.err conftest.$ac_ext | |
ac48eca1 | 5009 | |
7357c5b6 AM |
5010 | done |
5011 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5012 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 5013 | if $ac_preproc_ok; then : |
7357c5b6 AM |
5014 | break |
5015 | fi | |
252b5132 | 5016 | |
7357c5b6 AM |
5017 | done |
5018 | ac_cv_prog_CPP=$CPP | |
252b5132 | 5019 | |
7357c5b6 AM |
5020 | fi |
5021 | CPP=$ac_cv_prog_CPP | |
5022 | else | |
5023 | ac_cv_prog_CPP=$CPP | |
5024 | fi | |
81ecdfbb RW |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5026 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
5027 | ac_preproc_ok=false |
5028 | for ac_c_preproc_warn_flag in '' yes | |
5029 | do | |
5030 | # Use a header file that comes with gcc, so configuring glibc | |
5031 | # with a fresh cross-compiler works. | |
5032 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5033 | # <limits.h> exists even on freestanding compilers. | |
5034 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5035 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 5036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5037 | /* end confdefs.h. */ |
5038 | #ifdef __STDC__ | |
5039 | # include <limits.h> | |
5040 | #else | |
5041 | # include <assert.h> | |
5042 | #endif | |
5043 | Syntax error | |
5044 | _ACEOF | |
81ecdfbb | 5045 | if ac_fn_c_try_cpp "$LINENO"; then : |
ce2cded5 | 5046 | |
81ecdfbb | 5047 | else |
7357c5b6 AM |
5048 | # Broken: fails on valid input. |
5049 | continue | |
5050 | fi | |
5051 | rm -f conftest.err conftest.$ac_ext | |
ce2cded5 | 5052 | |
81ecdfbb | 5053 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 5054 | # can be detected and how. |
81ecdfbb | 5055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5056 | /* end confdefs.h. */ |
5057 | #include <ac_nonexistent.h> | |
5058 | _ACEOF | |
81ecdfbb | 5059 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
5060 | # Broken: success on invalid input. |
5061 | continue | |
ce2cded5 | 5062 | else |
7357c5b6 AM |
5063 | # Passes both tests. |
5064 | ac_preproc_ok=: | |
5065 | break | |
5066 | fi | |
5067 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 5068 | |
7357c5b6 AM |
5069 | done |
5070 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5071 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
5072 | if $ac_preproc_ok; then : |
5073 | ||
7357c5b6 | 5074 | else |
81ecdfbb RW |
5075 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5076 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5077 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
5078 | See \`config.log' for more details." "$LINENO" 5; } | |
7357c5b6 | 5079 | fi |
ce2cded5 | 5080 | |
7357c5b6 AM |
5081 | ac_ext=c |
5082 | ac_cpp='$CPP $CPPFLAGS' | |
5083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ce2cded5 L |
5086 | |
5087 | ||
81ecdfbb RW |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5089 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5090 | if test "${ac_cv_path_GREP+set}" = set; then : | |
5091 | $as_echo_n "(cached) " >&6 | |
ac48eca1 | 5092 | else |
81ecdfbb RW |
5093 | if test -z "$GREP"; then |
5094 | ac_path_GREP_found=false | |
5095 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5097 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5098 | do | |
5099 | IFS=$as_save_IFS | |
5100 | test -z "$as_dir" && as_dir=. | |
5101 | for ac_prog in grep ggrep; do | |
5102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5103 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5104 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
5105 | # Check for GNU ac_path_GREP and select it if it is found. | |
5106 | # Check for GNU $ac_path_GREP | |
5107 | case `"$ac_path_GREP" --version 2>&1` in | |
5108 | *GNU*) | |
5109 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5110 | *) | |
5111 | ac_count=0 | |
5112 | $as_echo_n 0123456789 >"conftest.in" | |
5113 | while : | |
5114 | do | |
5115 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5116 | mv "conftest.tmp" "conftest.in" | |
5117 | cp "conftest.in" "conftest.nl" | |
5118 | $as_echo 'GREP' >> "conftest.nl" | |
5119 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5120 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5121 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5122 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5123 | # Best one so far, save it but keep looking for a better one | |
5124 | ac_cv_path_GREP="$ac_path_GREP" | |
5125 | ac_path_GREP_max=$ac_count | |
ce2cded5 | 5126 | fi |
81ecdfbb RW |
5127 | # 10*(2^10) chars as input seems more than enough |
5128 | test $ac_count -gt 10 && break | |
5129 | done | |
5130 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5131 | esac | |
252b5132 | 5132 | |
81ecdfbb RW |
5133 | $ac_path_GREP_found && break 3 |
5134 | done | |
5135 | done | |
5136 | done | |
5137 | IFS=$as_save_IFS | |
5138 | if test -z "$ac_cv_path_GREP"; then | |
5139 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5140 | fi | |
7357c5b6 | 5141 | else |
81ecdfbb RW |
5142 | ac_cv_path_GREP=$GREP |
5143 | fi | |
4867be41 | 5144 | |
81ecdfbb RW |
5145 | fi |
5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5147 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5148 | GREP="$ac_cv_path_GREP" | |
32fba81d | 5149 | |
42ecbf5e | 5150 | |
81ecdfbb RW |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5152 | $as_echo_n "checking for egrep... " >&6; } | |
5153 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
5154 | $as_echo_n "(cached) " >&6 | |
5155 | else | |
5156 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5157 | then ac_cv_path_EGREP="$GREP -E" | |
5158 | else | |
5159 | if test -z "$EGREP"; then | |
5160 | ac_path_EGREP_found=false | |
5161 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5163 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5164 | do | |
5165 | IFS=$as_save_IFS | |
5166 | test -z "$as_dir" && as_dir=. | |
5167 | for ac_prog in egrep; do | |
5168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5169 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5170 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
5171 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5172 | # Check for GNU $ac_path_EGREP | |
5173 | case `"$ac_path_EGREP" --version 2>&1` in | |
5174 | *GNU*) | |
5175 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5176 | *) | |
5177 | ac_count=0 | |
5178 | $as_echo_n 0123456789 >"conftest.in" | |
5179 | while : | |
5180 | do | |
5181 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5182 | mv "conftest.tmp" "conftest.in" | |
5183 | cp "conftest.in" "conftest.nl" | |
5184 | $as_echo 'EGREP' >> "conftest.nl" | |
5185 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5186 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5187 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5188 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5189 | # Best one so far, save it but keep looking for a better one | |
5190 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5191 | ac_path_EGREP_max=$ac_count | |
5192 | fi | |
5193 | # 10*(2^10) chars as input seems more than enough | |
5194 | test $ac_count -gt 10 && break | |
5195 | done | |
5196 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5197 | esac | |
5198 | ||
5199 | $ac_path_EGREP_found && break 3 | |
5200 | done | |
5201 | done | |
5202 | done | |
5203 | IFS=$as_save_IFS | |
5204 | if test -z "$ac_cv_path_EGREP"; then | |
5205 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5206 | fi | |
5207 | else | |
5208 | ac_cv_path_EGREP=$EGREP | |
5209 | fi | |
5210 | ||
5211 | fi | |
5212 | fi | |
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5214 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5215 | EGREP="$ac_cv_path_EGREP" | |
5216 | ||
5217 | ||
5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5219 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5220 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5221 | $as_echo_n "(cached) " >&6 | |
5222 | else | |
5223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5224 | /* end confdefs.h. */ | |
5225 | #include <stdlib.h> | |
5226 | #include <stdarg.h> | |
5227 | #include <string.h> | |
5228 | #include <float.h> | |
5229 | ||
5230 | int | |
5231 | main () | |
5232 | { | |
5233 | ||
5234 | ; | |
5235 | return 0; | |
5236 | } | |
5237 | _ACEOF | |
5238 | if ac_fn_c_try_compile "$LINENO"; then : | |
5239 | ac_cv_header_stdc=yes | |
5240 | else | |
5241 | ac_cv_header_stdc=no | |
7357c5b6 | 5242 | fi |
81ecdfbb | 5243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 5244 | |
7357c5b6 AM |
5245 | if test $ac_cv_header_stdc = yes; then |
5246 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 5247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5248 | /* end confdefs.h. */ |
5249 | #include <string.h> | |
ac48eca1 | 5250 | |
7357c5b6 AM |
5251 | _ACEOF |
5252 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5253 | $EGREP "memchr" >/dev/null 2>&1; then : |
5254 | ||
7357c5b6 AM |
5255 | else |
5256 | ac_cv_header_stdc=no | |
5257 | fi | |
5258 | rm -f conftest* | |
252b5132 | 5259 | |
7357c5b6 | 5260 | fi |
252b5132 | 5261 | |
7357c5b6 AM |
5262 | if test $ac_cv_header_stdc = yes; then |
5263 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 5264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5265 | /* end confdefs.h. */ |
5266 | #include <stdlib.h> | |
42ecbf5e | 5267 | |
7357c5b6 AM |
5268 | _ACEOF |
5269 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
5270 | $EGREP "free" >/dev/null 2>&1; then : |
5271 | ||
7357c5b6 AM |
5272 | else |
5273 | ac_cv_header_stdc=no | |
5274 | fi | |
5275 | rm -f conftest* | |
ac48eca1 | 5276 | |
7357c5b6 | 5277 | fi |
d7040cdb | 5278 | |
7357c5b6 AM |
5279 | if test $ac_cv_header_stdc = yes; then |
5280 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 5281 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
5282 | : |
5283 | else | |
81ecdfbb | 5284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5285 | /* end confdefs.h. */ |
5286 | #include <ctype.h> | |
81ecdfbb | 5287 | #include <stdlib.h> |
7357c5b6 AM |
5288 | #if ((' ' & 0x0FF) == 0x020) |
5289 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5290 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5291 | #else | |
5292 | # define ISLOWER(c) \ | |
5293 | (('a' <= (c) && (c) <= 'i') \ | |
5294 | || ('j' <= (c) && (c) <= 'r') \ | |
5295 | || ('s' <= (c) && (c) <= 'z')) | |
5296 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5297 | #endif | |
d7040cdb | 5298 | |
7357c5b6 AM |
5299 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5300 | int | |
5301 | main () | |
5302 | { | |
5303 | int i; | |
5304 | for (i = 0; i < 256; i++) | |
5305 | if (XOR (islower (i), ISLOWER (i)) | |
5306 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
5307 | return 2; |
5308 | return 0; | |
7357c5b6 AM |
5309 | } |
5310 | _ACEOF | |
81ecdfbb | 5311 | if ac_fn_c_try_run "$LINENO"; then : |
7357c5b6 | 5312 | |
81ecdfbb RW |
5313 | else |
5314 | ac_cv_header_stdc=no | |
252b5132 | 5315 | fi |
81ecdfbb RW |
5316 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5317 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 5318 | fi |
81ecdfbb | 5319 | |
7357c5b6 AM |
5320 | fi |
5321 | fi | |
81ecdfbb RW |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
5323 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 5324 | if test $ac_cv_header_stdc = yes; then |
252b5132 | 5325 | |
81ecdfbb | 5326 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
252b5132 | 5327 | |
ce2cded5 | 5328 | fi |
252b5132 | 5329 | |
7357c5b6 | 5330 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
5331 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5332 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
5333 | do : |
5334 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5335 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5336 | " | |
5337 | eval as_val=\$$as_ac_Header | |
5338 | if test "x$as_val" = x""yes; then : | |
7357c5b6 | 5339 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 5340 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 5341 | _ACEOF |
42ecbf5e | 5342 | |
7357c5b6 | 5343 | fi |
42ecbf5e | 5344 | |
7357c5b6 | 5345 | done |
42ecbf5e DJ |
5346 | |
5347 | ||
5348 | ||
81ecdfbb RW |
5349 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
5350 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
7357c5b6 | 5351 | MINIX=yes |
ce2cded5 | 5352 | else |
7357c5b6 | 5353 | MINIX= |
ce2cded5 | 5354 | fi |
42ecbf5e | 5355 | |
e5a52504 | 5356 | |
7357c5b6 AM |
5357 | if test "$MINIX" = yes; then |
5358 | ||
81ecdfbb | 5359 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb | 5360 | |
d7040cdb | 5361 | |
81ecdfbb | 5362 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb | 5363 | |
d7040cdb | 5364 | |
81ecdfbb | 5365 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 5366 | |
7357c5b6 | 5367 | fi |
d7040cdb | 5368 | |
d7040cdb | 5369 | |
81ecdfbb RW |
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
5371 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
5372 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
5373 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5374 | else |
81ecdfbb | 5375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
5376 | /* end confdefs.h. */ |
5377 | ||
5378 | # define __EXTENSIONS__ 1 | |
5379 | $ac_includes_default | |
5380 | int | |
5381 | main () | |
5382 | { | |
5383 | ||
5384 | ; | |
5385 | return 0; | |
5386 | } | |
5387 | _ACEOF | |
81ecdfbb | 5388 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 5389 | ac_cv_safe_to_define___extensions__=yes |
ce2cded5 | 5390 | else |
81ecdfbb | 5391 | ac_cv_safe_to_define___extensions__=no |
ce2cded5 | 5392 | fi |
81ecdfbb | 5393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce2cded5 | 5394 | fi |
81ecdfbb RW |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
5396 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
7357c5b6 | 5397 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 5398 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
7357c5b6 | 5399 | |
81ecdfbb | 5400 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
7357c5b6 | 5401 | |
81ecdfbb | 5402 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
7357c5b6 | 5403 | |
81ecdfbb RW |
5404 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
5405 | ||
5406 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
7357c5b6 | 5407 | |
7357c5b6 AM |
5408 | |
5409 | ||
d053aef8 | 5410 | |
81ecdfbb RW |
5411 | # Check whether --enable-largefile was given. |
5412 | if test "${enable_largefile+set}" = set; then : | |
5413 | enableval=$enable_largefile; | |
5414 | fi | |
5415 | ||
d053aef8 JK |
5416 | if test "$enable_largefile" != no; then |
5417 | ||
81ecdfbb RW |
5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
5419 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
5420 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
5421 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5422 | else |
5423 | ac_cv_sys_largefile_CC=no | |
5424 | if test "$GCC" != yes; then | |
5425 | ac_save_CC=$CC | |
5426 | while :; do | |
81ecdfbb RW |
5427 | # IRIX 6.2 and later do not support large files by default, |
5428 | # so use the C compiler's -n32 option if that helps. | |
5429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5430 | /* end confdefs.h. */ |
5431 | #include <sys/types.h> | |
5432 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5433 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5434 | since some C++ compilers masquerading as C compilers | |
5435 | incorrectly reject 9223372036854775807. */ | |
5436 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5437 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5438 | && LARGE_OFF_T % 2147483647 == 1) | |
5439 | ? 1 : -1]; | |
5440 | int | |
5441 | main () | |
5442 | { | |
5443 | ||
5444 | ; | |
5445 | return 0; | |
5446 | } | |
5447 | _ACEOF | |
81ecdfbb | 5448 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5449 | break |
d053aef8 | 5450 | fi |
81ecdfbb RW |
5451 | rm -f core conftest.err conftest.$ac_objext |
5452 | CC="$CC -n32" | |
5453 | if ac_fn_c_try_compile "$LINENO"; then : | |
d053aef8 | 5454 | ac_cv_sys_largefile_CC=' -n32'; break |
d053aef8 | 5455 | fi |
81ecdfbb | 5456 | rm -f core conftest.err conftest.$ac_objext |
d053aef8 JK |
5457 | break |
5458 | done | |
5459 | CC=$ac_save_CC | |
5460 | rm -f conftest.$ac_ext | |
5461 | fi | |
5462 | fi | |
81ecdfbb RW |
5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
5464 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
d053aef8 JK |
5465 | if test "$ac_cv_sys_largefile_CC" != no; then |
5466 | CC=$CC$ac_cv_sys_largefile_CC | |
5467 | fi | |
5468 | ||
81ecdfbb RW |
5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5470 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
5471 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
5472 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5473 | else |
5474 | while :; do | |
81ecdfbb | 5475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5476 | /* end confdefs.h. */ |
5477 | #include <sys/types.h> | |
5478 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5479 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5480 | since some C++ compilers masquerading as C compilers | |
5481 | incorrectly reject 9223372036854775807. */ | |
5482 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5483 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5484 | && LARGE_OFF_T % 2147483647 == 1) | |
5485 | ? 1 : -1]; | |
5486 | int | |
5487 | main () | |
5488 | { | |
5489 | ||
5490 | ; | |
5491 | return 0; | |
5492 | } | |
5493 | _ACEOF | |
81ecdfbb RW |
5494 | if ac_fn_c_try_compile "$LINENO"; then : |
5495 | ac_cv_sys_file_offset_bits=no; break | |
d053aef8 | 5496 | fi |
81ecdfbb RW |
5497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5499 | /* end confdefs.h. */ |
5500 | #define _FILE_OFFSET_BITS 64 | |
5501 | #include <sys/types.h> | |
5502 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5503 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5504 | since some C++ compilers masquerading as C compilers | |
5505 | incorrectly reject 9223372036854775807. */ | |
5506 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5507 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5508 | && LARGE_OFF_T % 2147483647 == 1) | |
5509 | ? 1 : -1]; | |
5510 | int | |
5511 | main () | |
5512 | { | |
5513 | ||
5514 | ; | |
5515 | return 0; | |
5516 | } | |
5517 | _ACEOF | |
81ecdfbb | 5518 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5519 | ac_cv_sys_file_offset_bits=64; break |
d053aef8 | 5520 | fi |
81ecdfbb RW |
5521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5522 | ac_cv_sys_file_offset_bits=unknown | |
d053aef8 JK |
5523 | break |
5524 | done | |
5525 | fi | |
81ecdfbb RW |
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
5527 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
5528 | case $ac_cv_sys_file_offset_bits in #( | |
5529 | no | unknown) ;; | |
5530 | *) | |
d053aef8 JK |
5531 | cat >>confdefs.h <<_ACEOF |
5532 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5533 | _ACEOF | |
81ecdfbb RW |
5534 | ;; |
5535 | esac | |
5536 | rm -rf conftest* | |
5537 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
5539 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
5540 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
5541 | $as_echo_n "(cached) " >&6 | |
d053aef8 JK |
5542 | else |
5543 | while :; do | |
81ecdfbb | 5544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 JK |
5545 | /* end confdefs.h. */ |
5546 | #include <sys/types.h> | |
5547 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5548 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5549 | since some C++ compilers masquerading as C compilers | |
5550 | incorrectly reject 9223372036854775807. */ | |
5551 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5552 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5553 | && LARGE_OFF_T % 2147483647 == 1) | |
5554 | ? 1 : -1]; | |
5555 | int | |
5556 | main () | |
5557 | { | |
5558 | ||
5559 | ; | |
5560 | return 0; | |
5561 | } | |
5562 | _ACEOF | |
81ecdfbb RW |
5563 | if ac_fn_c_try_compile "$LINENO"; then : |
5564 | ac_cv_sys_large_files=no; break | |
d053aef8 | 5565 | fi |
81ecdfbb RW |
5566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d053aef8 JK |
5568 | /* end confdefs.h. */ |
5569 | #define _LARGE_FILES 1 | |
5570 | #include <sys/types.h> | |
5571 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5572 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5573 | since some C++ compilers masquerading as C compilers | |
5574 | incorrectly reject 9223372036854775807. */ | |
5575 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5576 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5577 | && LARGE_OFF_T % 2147483647 == 1) | |
5578 | ? 1 : -1]; | |
5579 | int | |
5580 | main () | |
5581 | { | |
5582 | ||
5583 | ; | |
5584 | return 0; | |
5585 | } | |
5586 | _ACEOF | |
81ecdfbb | 5587 | if ac_fn_c_try_compile "$LINENO"; then : |
d053aef8 | 5588 | ac_cv_sys_large_files=1; break |
d053aef8 | 5589 | fi |
81ecdfbb RW |
5590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5591 | ac_cv_sys_large_files=unknown | |
d053aef8 JK |
5592 | break |
5593 | done | |
5594 | fi | |
81ecdfbb RW |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
5596 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
5597 | case $ac_cv_sys_large_files in #( | |
5598 | no | unknown) ;; | |
5599 | *) | |
d053aef8 JK |
5600 | cat >>confdefs.h <<_ACEOF |
5601 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5602 | _ACEOF | |
81ecdfbb RW |
5603 | ;; |
5604 | esac | |
5605 | rm -rf conftest* | |
5606 | fi | |
d053aef8 JK |
5607 | fi |
5608 | ||
42ecbf5e | 5609 | |
42ecbf5e | 5610 | |
b214d478 SE |
5611 | case `pwd` in |
5612 | *\ * | *\ *) | |
81ecdfbb RW |
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
5614 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
b214d478 | 5615 | esac |
252b5132 | 5616 | |
42ecbf5e | 5617 | |
d7040cdb | 5618 | |
b214d478 SE |
5619 | macro_version='2.2.6' |
5620 | macro_revision='1.3012' | |
d7040cdb | 5621 | |
d7040cdb SE |
5622 | |
5623 | ||
d7040cdb | 5624 | |
d7040cdb | 5625 | |
42ecbf5e | 5626 | |
d7040cdb | 5627 | |
252b5132 | 5628 | |
252b5132 | 5629 | |
252b5132 | 5630 | |
252b5132 RH |
5631 | |
5632 | ||
ce2cded5 | 5633 | |
b214d478 | 5634 | ltmain="$ac_aux_dir/ltmain.sh" |
ce2cded5 | 5635 | |
81ecdfbb RW |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5637 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5638 | if test "${ac_cv_path_SED+set}" = set; then : | |
5639 | $as_echo_n "(cached) " >&6 | |
5640 | else | |
5641 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5642 | for ac_i in 1 2 3 4 5 6 7; do | |
5643 | ac_script="$ac_script$as_nl$ac_script" | |
5644 | done | |
5645 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5646 | { ac_script=; unset ac_script;} | |
5647 | if test -z "$SED"; then | |
5648 | ac_path_SED_found=false | |
5649 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5651 | for as_dir in $PATH |
5652 | do | |
5653 | IFS=$as_save_IFS | |
5654 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5655 | for ac_prog in sed gsed; do |
7357c5b6 | 5656 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb RW |
5657 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5658 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5659 | # Check for GNU ac_path_SED and select it if it is found. | |
5660 | # Check for GNU $ac_path_SED | |
5661 | case `"$ac_path_SED" --version 2>&1` in | |
5662 | *GNU*) | |
5663 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5664 | *) | |
5665 | ac_count=0 | |
5666 | $as_echo_n 0123456789 >"conftest.in" | |
5667 | while : | |
5668 | do | |
5669 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5670 | mv "conftest.tmp" "conftest.in" | |
5671 | cp "conftest.in" "conftest.nl" | |
5672 | $as_echo '' >> "conftest.nl" | |
5673 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5674 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5675 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5676 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5677 | # Best one so far, save it but keep looking for a better one | |
5678 | ac_cv_path_SED="$ac_path_SED" | |
5679 | ac_path_SED_max=$ac_count | |
5680 | fi | |
5681 | # 10*(2^10) chars as input seems more than enough | |
5682 | test $ac_count -gt 10 && break | |
5683 | done | |
5684 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5685 | esac | |
5686 | ||
5687 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5688 | done |
5689 | done | |
81ecdfbb | 5690 | done |
7357c5b6 | 5691 | IFS=$as_save_IFS |
81ecdfbb RW |
5692 | if test -z "$ac_cv_path_SED"; then |
5693 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
ce2cded5 | 5694 | fi |
81ecdfbb RW |
5695 | else |
5696 | ac_cv_path_SED=$SED | |
7357c5b6 | 5697 | fi |
20e95c23 | 5698 | |
81ecdfbb RW |
5699 | fi |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5701 | $as_echo "$ac_cv_path_SED" >&6; } | |
5702 | SED="$ac_cv_path_SED" | |
5703 | rm -f conftest.sed | |
20e95c23 | 5704 | |
7357c5b6 AM |
5705 | test -z "$SED" && SED=sed |
5706 | Xsed="$SED -e 1s/^X//" | |
20e95c23 DJ |
5707 | |
5708 | ||
5709 | ||
5710 | ||
5711 | ||
5712 | ||
20e95c23 | 5713 | |
20e95c23 | 5714 | |
d7040cdb | 5715 | |
d7040cdb | 5716 | |
7357c5b6 | 5717 | |
81ecdfbb RW |
5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5719 | $as_echo_n "checking for fgrep... " >&6; } | |
5720 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5721 | $as_echo_n "(cached) " >&6 | |
7357c5b6 | 5722 | else |
81ecdfbb RW |
5723 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5724 | then ac_cv_path_FGREP="$GREP -F" | |
5725 | else | |
5726 | if test -z "$FGREP"; then | |
5727 | ac_path_FGREP_found=false | |
5728 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5730 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5731 | do | |
5732 | IFS=$as_save_IFS | |
5733 | test -z "$as_dir" && as_dir=. | |
5734 | for ac_prog in fgrep; do | |
5735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5736 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5737 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5738 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5739 | # Check for GNU $ac_path_FGREP | |
5740 | case `"$ac_path_FGREP" --version 2>&1` in | |
5741 | *GNU*) | |
5742 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5743 | *) | |
5744 | ac_count=0 | |
5745 | $as_echo_n 0123456789 >"conftest.in" | |
5746 | while : | |
5747 | do | |
5748 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5749 | mv "conftest.tmp" "conftest.in" | |
5750 | cp "conftest.in" "conftest.nl" | |
5751 | $as_echo 'FGREP' >> "conftest.nl" | |
5752 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5753 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5754 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5755 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5756 | # Best one so far, save it but keep looking for a better one | |
5757 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5758 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5759 | fi |
81ecdfbb RW |
5760 | # 10*(2^10) chars as input seems more than enough |
5761 | test $ac_count -gt 10 && break | |
5762 | done | |
5763 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5764 | esac | |
5765 | ||
5766 | $ac_path_FGREP_found && break 3 | |
5767 | done | |
5768 | done | |
5769 | done | |
5770 | IFS=$as_save_IFS | |
5771 | if test -z "$ac_cv_path_FGREP"; then | |
5772 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5773 | fi | |
5774 | else | |
5775 | ac_cv_path_FGREP=$FGREP | |
5776 | fi | |
5777 | ||
5778 | fi | |
20e95c23 | 5779 | fi |
81ecdfbb RW |
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5781 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5782 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5783 | |
5784 | ||
5785 | test -z "$GREP" && GREP=grep | |
5786 | ||
d7040cdb SE |
5787 | |
5788 | ||
5789 | ||
5790 | ||
5791 | ||
5792 | ||
5793 | ||
5794 | ||
5795 | ||
5796 | ||
5797 | ||
20e95c23 | 5798 | |
ce2cded5 | 5799 | |
d7040cdb | 5800 | |
7357c5b6 AM |
5801 | |
5802 | ||
5803 | ||
5804 | ||
81ecdfbb RW |
5805 | # Check whether --with-gnu-ld was given. |
5806 | if test "${with_gnu_ld+set}" = set; then : | |
5807 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5808 | else |
5809 | with_gnu_ld=no | |
81ecdfbb RW |
5810 | fi |
5811 | ||
7357c5b6 AM |
5812 | ac_prog=ld |
5813 | if test "$GCC" = yes; then | |
5814 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5816 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
5817 | case $host in |
5818 | *-*-mingw*) | |
5819 | # gcc leaves a trailing carriage return which upsets mingw | |
5820 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5821 | *) | |
5822 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5823 | esac | |
5824 | case $ac_prog in | |
5825 | # Accept absolute paths. | |
5826 | [\\/]* | ?:[\\/]*) | |
5827 | re_direlt='/[^/][^/]*/\.\./' | |
5828 | # Canonicalize the pathname of ld | |
5829 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5830 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5831 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5832 | done | |
5833 | test -z "$LD" && LD="$ac_prog" | |
5834 | ;; | |
5835 | "") | |
5836 | # If it fails, then pretend we aren't using GCC. | |
5837 | ac_prog=ld | |
5838 | ;; | |
5839 | *) | |
5840 | # If it is relative, then search for the first ld in PATH. | |
5841 | with_gnu_ld=unknown | |
5842 | ;; | |
5843 | esac | |
5844 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5846 | $as_echo_n "checking for GNU ld... " >&6; } | |
7357c5b6 | 5847 | else |
81ecdfbb RW |
5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5849 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
ce2cded5 | 5850 | fi |
81ecdfbb RW |
5851 | if test "${lt_cv_path_LD+set}" = set; then : |
5852 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5853 | else |
7357c5b6 AM |
5854 | if test -z "$LD"; then |
5855 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5856 | for ac_dir in $PATH; do | |
5857 | IFS="$lt_save_ifs" | |
5858 | test -z "$ac_dir" && ac_dir=. | |
5859 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5860 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5861 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5862 | # but apparently some variants of GNU ld only accept -v. | |
5863 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5864 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5865 | *GNU* | *'with BFD'*) | |
5866 | test "$with_gnu_ld" != no && break | |
5867 | ;; | |
5868 | *) | |
5869 | test "$with_gnu_ld" != yes && break | |
5870 | ;; | |
5871 | esac | |
5872 | fi | |
5873 | done | |
5874 | IFS="$lt_save_ifs" | |
ce2cded5 | 5875 | else |
7357c5b6 | 5876 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
ce2cded5 L |
5877 | fi |
5878 | fi | |
7357c5b6 AM |
5879 | |
5880 | LD="$lt_cv_path_LD" | |
5881 | if test -n "$LD"; then | |
81ecdfbb RW |
5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5883 | $as_echo "$LD" >&6; } | |
ce2cded5 | 5884 | else |
81ecdfbb RW |
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5886 | $as_echo "no" >&6; } | |
ce2cded5 | 5887 | fi |
81ecdfbb RW |
5888 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5890 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5891 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5892 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5893 | else |
7357c5b6 AM |
5894 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5895 | case `$LD -v 2>&1 </dev/null` in | |
5896 | *GNU* | *'with BFD'*) | |
5897 | lt_cv_prog_gnu_ld=yes | |
5898 | ;; | |
5899 | *) | |
5900 | lt_cv_prog_gnu_ld=no | |
5901 | ;; | |
5902 | esac | |
ce2cded5 | 5903 | fi |
81ecdfbb RW |
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5905 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
7357c5b6 | 5906 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d7040cdb SE |
5907 | |
5908 | ||
5909 | ||
5910 | ||
5911 | ||
5912 | ||
5913 | ||
5914 | ||
5915 | ||
81ecdfbb RW |
5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5917 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5918 | if test "${lt_cv_path_NM+set}" = set; then : | |
5919 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 5920 | else |
7357c5b6 AM |
5921 | if test -n "$NM"; then |
5922 | # Let the user override the test. | |
5923 | lt_cv_path_NM="$NM" | |
ce2cded5 | 5924 | else |
7357c5b6 AM |
5925 | lt_nm_to_check="${ac_tool_prefix}nm" |
5926 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5927 | lt_nm_to_check="$lt_nm_to_check nm" | |
20e95c23 | 5928 | fi |
7357c5b6 AM |
5929 | for lt_tmp_nm in $lt_nm_to_check; do |
5930 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5931 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5932 | IFS="$lt_save_ifs" | |
5933 | test -z "$ac_dir" && ac_dir=. | |
5934 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5935 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5936 | # Check to see if the nm accepts a BSD-compat flag. | |
5937 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5938 | # nm: unknown option "B" ignored | |
5939 | # Tru64's nm complains that /dev/null is an invalid object file | |
5940 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5941 | */dev/null* | *'Invalid file or object type'*) | |
5942 | lt_cv_path_NM="$tmp_nm -B" | |
5943 | break | |
5944 | ;; | |
5945 | *) | |
5946 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5947 | */dev/null*) | |
5948 | lt_cv_path_NM="$tmp_nm -p" | |
5949 | break | |
5950 | ;; | |
5951 | *) | |
5952 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5953 | continue # so that we can try to find one that supports BSD flags | |
5954 | ;; | |
5955 | esac | |
5956 | ;; | |
5957 | esac | |
5958 | fi | |
5959 | done | |
5960 | IFS="$lt_save_ifs" | |
5961 | done | |
5962 | : ${lt_cv_path_NM=no} | |
ce2cded5 L |
5963 | fi |
5964 | fi | |
81ecdfbb RW |
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5966 | $as_echo "$lt_cv_path_NM" >&6; } | |
7357c5b6 AM |
5967 | if test "$lt_cv_path_NM" != "no"; then |
5968 | NM="$lt_cv_path_NM" | |
ce2cded5 | 5969 | else |
7357c5b6 AM |
5970 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5971 | if test -n "$ac_tool_prefix"; then | |
5972 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5973 | do | |
5974 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5975 | set dummy $ac_tool_prefix$ac_prog; 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_DUMPBIN+set}" = set; then : | |
5979 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 5980 | else |
7357c5b6 AM |
5981 | if test -n "$DUMPBIN"; then |
5982 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
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 | |
7357c5b6 | 5991 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
5993 | break 2 |
5994 | fi | |
5995 | done | |
81ecdfbb RW |
5996 | done |
5997 | IFS=$as_save_IFS | |
d7040cdb | 5998 | |
20e95c23 | 5999 | fi |
ce2cded5 | 6000 | fi |
7357c5b6 AM |
6001 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6002 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
6004 | $as_echo "$DUMPBIN" >&6; } | |
42ecbf5e | 6005 | else |
81ecdfbb RW |
6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6007 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6008 | fi |
6009 | ||
81ecdfbb | 6010 | |
7357c5b6 AM |
6011 | test -n "$DUMPBIN" && break |
6012 | done | |
ce2cded5 | 6013 | fi |
7357c5b6 AM |
6014 | if test -z "$DUMPBIN"; then |
6015 | ac_ct_DUMPBIN=$DUMPBIN | |
6016 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
6017 | do | |
6018 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6019 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6021 | $as_echo_n "checking for $ac_word... " >&6; } | |
6022 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
6023 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 6024 | else |
7357c5b6 AM |
6025 | if test -n "$ac_ct_DUMPBIN"; then |
6026 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
ce2cded5 L |
6027 | else |
6028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6029 | for as_dir in $PATH | |
6030 | do | |
6031 | IFS=$as_save_IFS | |
6032 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6033 | for ac_exec_ext in '' $ac_executable_extensions; do |
6034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6035 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 6036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ce2cded5 L |
6037 | break 2 |
6038 | fi | |
6039 | done | |
81ecdfbb RW |
6040 | done |
6041 | IFS=$as_save_IFS | |
d7040cdb | 6042 | |
ce2cded5 L |
6043 | fi |
6044 | fi | |
7357c5b6 AM |
6045 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6046 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
6048 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
ce2cded5 | 6049 | else |
81ecdfbb RW |
6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6051 | $as_echo "no" >&6; } | |
ce2cded5 | 6052 | fi |
d7040cdb | 6053 | |
81ecdfbb | 6054 | |
7357c5b6 | 6055 | test -n "$ac_ct_DUMPBIN" && break |
ce2cded5 | 6056 | done |
d7040cdb | 6057 | |
81ecdfbb RW |
6058 | if test "x$ac_ct_DUMPBIN" = x; then |
6059 | DUMPBIN=":" | |
6060 | else | |
6061 | case $cross_compiling:$ac_tool_warned in | |
6062 | yes:) | |
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6065 | ac_tool_warned=yes ;; | |
6066 | esac | |
6067 | DUMPBIN=$ac_ct_DUMPBIN | |
6068 | fi | |
ce2cded5 | 6069 | fi |
7357c5b6 AM |
6070 | |
6071 | ||
6072 | if test "$DUMPBIN" != ":"; then | |
6073 | NM="$DUMPBIN" | |
6074 | fi | |
ce2cded5 | 6075 | fi |
7357c5b6 AM |
6076 | test -z "$NM" && NM=nm |
6077 | ||
6078 | ||
6079 | ||
6080 | ||
6081 | ||
6082 | ||
81ecdfbb RW |
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
6084 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6085 | if test "${lt_cv_nm_interface+set}" = set; then : | |
6086 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 6087 | else |
7357c5b6 AM |
6088 | lt_cv_nm_interface="BSD nm" |
6089 | echo "int some_variable = 0;" > conftest.$ac_ext | |
64ac50ac | 6090 | (eval echo "\"\$as_me:6090: $ac_compile\"" >&5) |
7357c5b6 AM |
6091 | (eval "$ac_compile" 2>conftest.err) |
6092 | cat conftest.err >&5 | |
64ac50ac | 6093 | (eval echo "\"\$as_me:6093: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
7357c5b6 AM |
6094 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6095 | cat conftest.err >&5 | |
64ac50ac | 6096 | (eval echo "\"\$as_me:6096: output\"" >&5) |
7357c5b6 AM |
6097 | cat conftest.out >&5 |
6098 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6099 | lt_cv_nm_interface="MS dumpbin" | |
6100 | fi | |
6101 | rm -f conftest* | |
20e95c23 | 6102 | fi |
81ecdfbb RW |
6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6104 | $as_echo "$lt_cv_nm_interface" >&6; } | |
20e95c23 | 6105 | |
81ecdfbb RW |
6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
6107 | $as_echo_n "checking whether ln -s works... " >&6; } | |
7357c5b6 AM |
6108 | LN_S=$as_ln_s |
6109 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6111 | $as_echo "yes" >&6; } | |
ce2cded5 | 6112 | else |
81ecdfbb RW |
6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6114 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 6115 | fi |
20e95c23 | 6116 | |
7357c5b6 | 6117 | # find the maximum length of command line arguments |
81ecdfbb RW |
6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
6119 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6120 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
6121 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6122 | else |
6123 | i=0 | |
6124 | teststring="ABCD" | |
20e95c23 | 6125 | |
7357c5b6 AM |
6126 | case $build_os in |
6127 | msdosdjgpp*) | |
6128 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6129 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6130 | # during glob expansion). Even if it were fixed, the result of this | |
6131 | # check would be larger than it should be. | |
6132 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6133 | ;; | |
20e95c23 | 6134 | |
7357c5b6 AM |
6135 | gnu*) |
6136 | # Under GNU Hurd, this test is not required because there is | |
6137 | # no limit to the length of command line arguments. | |
6138 | # Libtool will interpret -1 as no limit whatsoever | |
6139 | lt_cv_sys_max_cmd_len=-1; | |
6140 | ;; | |
20e95c23 | 6141 | |
b214d478 | 6142 | cygwin* | mingw* | cegcc*) |
7357c5b6 AM |
6143 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6144 | # about 5 minutes as the teststring grows exponentially. | |
6145 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6146 | # you end up with a "frozen" computer, even though with patience | |
6147 | # the test eventually succeeds (with a max line length of 256k). | |
6148 | # Instead, let's just punt: use the minimum linelength reported by | |
6149 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6150 | lt_cv_sys_max_cmd_len=8192; | |
6151 | ;; | |
20e95c23 | 6152 | |
7357c5b6 AM |
6153 | amigaos*) |
6154 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6155 | # So we just punt and use a minimum line length of 8192. | |
6156 | lt_cv_sys_max_cmd_len=8192; | |
6157 | ;; | |
20e95c23 | 6158 | |
7357c5b6 AM |
6159 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6160 | # This has been around since 386BSD, at least. Likely further. | |
6161 | if test -x /sbin/sysctl; then | |
6162 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6163 | elif test -x /usr/sbin/sysctl; then | |
6164 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6165 | else | |
6166 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6167 | fi | |
6168 | # And add a safety zone | |
6169 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6170 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6171 | ;; | |
d7040cdb | 6172 | |
7357c5b6 AM |
6173 | interix*) |
6174 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6175 | lt_cv_sys_max_cmd_len=196608 | |
6176 | ;; | |
d7040cdb | 6177 | |
7357c5b6 AM |
6178 | osf*) |
6179 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6180 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6181 | # nice to cause kernel panics so lets avoid the loop below. | |
6182 | # First set a reasonable default. | |
6183 | lt_cv_sys_max_cmd_len=16384 | |
6184 | # | |
6185 | if test -x /sbin/sysconfig; then | |
6186 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6187 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6188 | esac | |
6189 | fi | |
6190 | ;; | |
6191 | sco3.2v5*) | |
6192 | lt_cv_sys_max_cmd_len=102400 | |
6193 | ;; | |
6194 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6195 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6196 | if test -n "$kargmax"; then | |
6197 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6198 | else | |
6199 | lt_cv_sys_max_cmd_len=32768 | |
6200 | fi | |
ce2cded5 L |
6201 | ;; |
6202 | *) | |
b214d478 SE |
6203 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6204 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
7357c5b6 AM |
6205 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6206 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6207 | else | |
6208 | # Make teststring a little bigger before we do anything with it. | |
6209 | # a 1K string should be a reasonable start. | |
6210 | for i in 1 2 3 4 5 6 7 8 ; do | |
6211 | teststring=$teststring$teststring | |
6212 | done | |
6213 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6214 | # If test is not a shell built-in, we'll probably end up computing a | |
6215 | # maximum length that is only half of the actual maximum length, but | |
6216 | # we can't tell. | |
6217 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
6218 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
6219 | test $i != 17 # 1/2 MB should be enough | |
6220 | do | |
6221 | i=`expr $i + 1` | |
6222 | teststring=$teststring$teststring | |
6223 | done | |
6224 | # Only check the string length outside the loop. | |
6225 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6226 | teststring= | |
6227 | # Add a significant safety factor because C++ compilers can tack on | |
6228 | # massive amounts of additional arguments before passing them to the | |
6229 | # linker. It appears as though 1/2 is a usable value. | |
6230 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6231 | fi | |
ce2cded5 L |
6232 | ;; |
6233 | esac | |
d7040cdb | 6234 | |
7357c5b6 | 6235 | fi |
d7040cdb | 6236 | |
7357c5b6 | 6237 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
6238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
6239 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7357c5b6 | 6240 | else |
81ecdfbb RW |
6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
6242 | $as_echo "none" >&6; } | |
7357c5b6 AM |
6243 | fi |
6244 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb SE |
6245 | |
6246 | ||
6247 | ||
6248 | ||
6249 | ||
d7040cdb | 6250 | |
7357c5b6 AM |
6251 | : ${CP="cp -f"} |
6252 | : ${MV="mv -f"} | |
6253 | : ${RM="rm -f"} | |
d7040cdb | 6254 | |
81ecdfbb RW |
6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
6256 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7357c5b6 AM |
6257 | # Try some XSI features |
6258 | xsi_shell=no | |
6259 | ( _lt_dummy="a/b/c" | |
6260 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
b214d478 SE |
6261 | = c,a/b,, \ |
6262 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6263 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7357c5b6 | 6264 | && xsi_shell=yes |
81ecdfbb RW |
6265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
6266 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb | 6267 | |
d7040cdb | 6268 | |
81ecdfbb RW |
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
6270 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7357c5b6 AM |
6271 | lt_shell_append=no |
6272 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6273 | >/dev/null 2>&1 \ | |
6274 | && lt_shell_append=yes | |
81ecdfbb RW |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
6276 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
6277 | |
6278 | ||
7357c5b6 AM |
6279 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6280 | lt_unset=unset | |
6281 | else | |
6282 | lt_unset=false | |
6283 | fi | |
d7040cdb | 6284 | |
d7040cdb | 6285 | |
d7040cdb | 6286 | |
d7040cdb | 6287 | |
d7040cdb | 6288 | |
7357c5b6 AM |
6289 | # test EBCDIC or ASCII |
6290 | case `echo X|tr X '\101'` in | |
6291 | A) # ASCII based system | |
6292 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6293 | lt_SP2NL='tr \040 \012' | |
6294 | lt_NL2SP='tr \015\012 \040\040' | |
6295 | ;; | |
6296 | *) # EBCDIC based system | |
6297 | lt_SP2NL='tr \100 \n' | |
6298 | lt_NL2SP='tr \r\n \100\100' | |
6299 | ;; | |
6300 | esac | |
42ecbf5e | 6301 | |
d7040cdb SE |
6302 | |
6303 | ||
6304 | ||
6305 | ||
6306 | ||
6307 | ||
d7040cdb | 6308 | |
d7040cdb | 6309 | |
81ecdfbb RW |
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6311 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6312 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
6313 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6314 | else |
6315 | lt_cv_ld_reload_flag='-r' | |
6316 | fi | |
81ecdfbb RW |
6317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6318 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7357c5b6 AM |
6319 | reload_flag=$lt_cv_ld_reload_flag |
6320 | case $reload_flag in | |
6321 | "" | " "*) ;; | |
6322 | *) reload_flag=" $reload_flag" ;; | |
6323 | esac | |
6324 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6325 | case $host_os in | |
6326 | darwin*) | |
6327 | if test "$GCC" = yes; then | |
6328 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6329 | else | |
6330 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6331 | fi | |
6332 | ;; | |
6333 | esac | |
d7040cdb | 6334 | |
d7040cdb | 6335 | |
d7040cdb | 6336 | |
d7040cdb | 6337 | |
d7040cdb | 6338 | |
d7040cdb | 6339 | |
d7040cdb | 6340 | |
d7040cdb | 6341 | |
d7040cdb | 6342 | |
b214d478 SE |
6343 | if test -n "$ac_tool_prefix"; then |
6344 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6345 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6347 | $as_echo_n "checking for $ac_word... " >&6; } | |
6348 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
6349 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6350 | else |
6351 | if test -n "$OBJDUMP"; then | |
6352 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6353 | else | |
6354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6355 | for as_dir in $PATH | |
6356 | do | |
6357 | IFS=$as_save_IFS | |
6358 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6359 | for ac_exec_ext in '' $ac_executable_extensions; do |
6360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6361 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 6362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6363 | break 2 |
6364 | fi | |
6365 | done | |
81ecdfbb RW |
6366 | done |
6367 | IFS=$as_save_IFS | |
b214d478 SE |
6368 | |
6369 | fi | |
6370 | fi | |
6371 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6372 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
6374 | $as_echo "$OBJDUMP" >&6; } | |
b214d478 | 6375 | else |
81ecdfbb RW |
6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6377 | $as_echo "no" >&6; } | |
b214d478 SE |
6378 | fi |
6379 | ||
81ecdfbb | 6380 | |
b214d478 SE |
6381 | fi |
6382 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6383 | ac_ct_OBJDUMP=$OBJDUMP | |
6384 | # Extract the first word of "objdump", so it can be a program name with args. | |
6385 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6387 | $as_echo_n "checking for $ac_word... " >&6; } | |
6388 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
6389 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
6390 | else |
6391 | if test -n "$ac_ct_OBJDUMP"; then | |
6392 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6393 | else | |
6394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6395 | for as_dir in $PATH | |
6396 | do | |
6397 | IFS=$as_save_IFS | |
6398 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6399 | for ac_exec_ext in '' $ac_executable_extensions; do |
6400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 6401 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 6402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
6403 | break 2 |
6404 | fi | |
6405 | done | |
81ecdfbb RW |
6406 | done |
6407 | IFS=$as_save_IFS | |
b214d478 | 6408 | |
b214d478 SE |
6409 | fi |
6410 | fi | |
6411 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6412 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
6414 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
b214d478 | 6415 | else |
81ecdfbb RW |
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6417 | $as_echo "no" >&6; } | |
b214d478 SE |
6418 | fi |
6419 | ||
81ecdfbb RW |
6420 | if test "x$ac_ct_OBJDUMP" = x; then |
6421 | OBJDUMP="false" | |
6422 | else | |
6423 | case $cross_compiling:$ac_tool_warned in | |
6424 | yes:) | |
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6426 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6427 | ac_tool_warned=yes ;; | |
6428 | esac | |
6429 | OBJDUMP=$ac_ct_OBJDUMP | |
6430 | fi | |
b214d478 SE |
6431 | else |
6432 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6433 | fi | |
6434 | ||
6435 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
d7040cdb | 6444 | |
81ecdfbb RW |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6446 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6447 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6448 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6449 | else |
7357c5b6 AM |
6450 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6451 | lt_cv_file_magic_test_file= | |
6452 | lt_cv_deplibs_check_method='unknown' | |
6453 | # Need to set the preceding variable on all platforms that support | |
6454 | # interlibrary dependencies. | |
6455 | # 'none' -- dependencies not supported. | |
6456 | # `unknown' -- same as none, but documents that we really don't know. | |
6457 | # 'pass_all' -- all dependencies passed with no checks. | |
6458 | # 'test_compile' -- check by making test program. | |
6459 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6460 | # which responds to the $file_magic_cmd with a given extended regex. | |
6461 | # If you have `file' or equivalent on your system and you're not sure | |
6462 | # whether `pass_all' will *always* work, you probably want this one. | |
d7040cdb | 6463 | |
ce2cded5 | 6464 | case $host_os in |
7357c5b6 AM |
6465 | aix[4-9]*) |
6466 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6467 | ;; |
7357c5b6 AM |
6468 | |
6469 | beos*) | |
6470 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6471 | ;; |
7357c5b6 AM |
6472 | |
6473 | bsdi[45]*) | |
6474 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6475 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6476 | lt_cv_file_magic_test_file=/shlib/libc.so | |
ce2cded5 | 6477 | ;; |
7357c5b6 AM |
6478 | |
6479 | cygwin*) | |
6480 | # func_win32_libid is a shell function defined in ltmain.sh | |
6481 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6482 | lt_cv_file_magic_cmd='func_win32_libid' | |
ce2cded5 | 6483 | ;; |
7357c5b6 AM |
6484 | |
6485 | mingw* | pw32*) | |
6486 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6487 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6488 | # unless we find 'file', for example because we are cross-compiling. | |
6489 | if ( file / ) >/dev/null 2>&1; then | |
6490 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6491 | lt_cv_file_magic_cmd='func_win32_libid' | |
6492 | else | |
6493 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6494 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6495 | fi | |
ce2cded5 | 6496 | ;; |
7357c5b6 | 6497 | |
b214d478 SE |
6498 | cegcc) |
6499 | # use the weaker test based on 'objdump'. See mingw*. | |
6500 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6501 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6502 | ;; | |
6503 | ||
7357c5b6 AM |
6504 | darwin* | rhapsody*) |
6505 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6506 | ;; |
7357c5b6 AM |
6507 | |
6508 | freebsd* | dragonfly*) | |
6509 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6510 | case $host_cpu in | |
6511 | i*86 ) | |
6512 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6513 | # Let's accept both of them until this is cleared up. | |
6514 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6515 | lt_cv_file_magic_cmd=/usr/bin/file | |
6516 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6517 | ;; | |
6518 | esac | |
6519 | else | |
6520 | lt_cv_deplibs_check_method=pass_all | |
6521 | fi | |
ce2cded5 | 6522 | ;; |
7357c5b6 AM |
6523 | |
6524 | gnu*) | |
6525 | lt_cv_deplibs_check_method=pass_all | |
ce2cded5 | 6526 | ;; |
7357c5b6 AM |
6527 | |
6528 | hpux10.20* | hpux11*) | |
6529 | lt_cv_file_magic_cmd=/usr/bin/file | |
6530 | case $host_cpu in | |
6531 | ia64*) | |
6532 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6533 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6534 | ;; | |
6535 | hppa*64*) | |
6536 | 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]' | |
6537 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6538 | ;; | |
6539 | *) | |
6540 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6541 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6542 | ;; | |
6543 | esac | |
ce2cded5 | 6544 | ;; |
d7040cdb | 6545 | |
7357c5b6 AM |
6546 | interix[3-9]*) |
6547 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6548 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6549 | ;; | |
d7040cdb | 6550 | |
7357c5b6 AM |
6551 | irix5* | irix6* | nonstopux*) |
6552 | case $LD in | |
6553 | *-32|*"-32 ") libmagic=32-bit;; | |
6554 | *-n32|*"-n32 ") libmagic=N32;; | |
6555 | *-64|*"-64 ") libmagic=64-bit;; | |
6556 | *) libmagic=never-match;; | |
6557 | esac | |
6558 | lt_cv_deplibs_check_method=pass_all | |
6559 | ;; | |
d7040cdb | 6560 | |
7357c5b6 | 6561 | # This must be Linux ELF. |
58e24671 | 6562 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7357c5b6 AM |
6563 | lt_cv_deplibs_check_method=pass_all |
6564 | ;; | |
d7040cdb | 6565 | |
7357c5b6 AM |
6566 | netbsd*) |
6567 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6568 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6569 | else | |
6570 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6571 | fi | |
ce2cded5 | 6572 | ;; |
d7040cdb | 6573 | |
7357c5b6 AM |
6574 | newos6*) |
6575 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6576 | lt_cv_file_magic_cmd=/usr/bin/file | |
6577 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6578 | ;; | |
d7040cdb | 6579 | |
7357c5b6 AM |
6580 | *nto* | *qnx*) |
6581 | lt_cv_deplibs_check_method=pass_all | |
6582 | ;; | |
d7040cdb | 6583 | |
7357c5b6 AM |
6584 | openbsd*) |
6585 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6586 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
ce2cded5 | 6587 | else |
7357c5b6 | 6588 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
ce2cded5 | 6589 | fi |
7357c5b6 | 6590 | ;; |
d7040cdb | 6591 | |
7357c5b6 AM |
6592 | osf3* | osf4* | osf5*) |
6593 | lt_cv_deplibs_check_method=pass_all | |
6594 | ;; | |
d7040cdb | 6595 | |
7357c5b6 AM |
6596 | rdos*) |
6597 | lt_cv_deplibs_check_method=pass_all | |
6598 | ;; | |
d7040cdb | 6599 | |
7357c5b6 AM |
6600 | solaris*) |
6601 | lt_cv_deplibs_check_method=pass_all | |
6602 | ;; | |
d7040cdb | 6603 | |
7357c5b6 AM |
6604 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6605 | lt_cv_deplibs_check_method=pass_all | |
6606 | ;; | |
d7040cdb | 6607 | |
7357c5b6 AM |
6608 | sysv4 | sysv4.3*) |
6609 | case $host_vendor in | |
6610 | motorola) | |
6611 | 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]' | |
6612 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6613 | ;; | |
6614 | ncr) | |
6615 | lt_cv_deplibs_check_method=pass_all | |
6616 | ;; | |
6617 | sequent) | |
6618 | lt_cv_file_magic_cmd='/bin/file' | |
6619 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6620 | ;; | |
6621 | sni) | |
6622 | lt_cv_file_magic_cmd='/bin/file' | |
6623 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6624 | lt_cv_file_magic_test_file=/lib/libc.so | |
6625 | ;; | |
6626 | siemens) | |
6627 | lt_cv_deplibs_check_method=pass_all | |
6628 | ;; | |
6629 | pc) | |
6630 | lt_cv_deplibs_check_method=pass_all | |
6631 | ;; | |
6632 | esac | |
6633 | ;; | |
d7040cdb | 6634 | |
7357c5b6 AM |
6635 | tpf*) |
6636 | lt_cv_deplibs_check_method=pass_all | |
6637 | ;; | |
6638 | esac | |
d7040cdb | 6639 | |
7357c5b6 | 6640 | fi |
81ecdfbb RW |
6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6642 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7357c5b6 AM |
6643 | file_magic_cmd=$lt_cv_file_magic_cmd |
6644 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6645 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
6646 | |
6647 | ||
6648 | ||
7357c5b6 AM |
6649 | |
6650 | ||
6651 | ||
6652 | ||
6653 | ||
6654 | ||
6655 | ||
6656 | ||
6657 | ||
6658 | if test -n "$ac_tool_prefix"; then | |
6659 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6660 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6662 | $as_echo_n "checking for $ac_word... " >&6; } | |
6663 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6664 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6665 | else |
6666 | if test -n "$AR"; then | |
6667 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6668 | else | |
6669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6670 | for as_dir in $PATH | |
6671 | do | |
6672 | IFS=$as_save_IFS | |
6673 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6674 | for ac_exec_ext in '' $ac_executable_extensions; do |
6675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6676 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6678 | break 2 |
ce2cded5 L |
6679 | fi |
6680 | done | |
81ecdfbb RW |
6681 | done |
6682 | IFS=$as_save_IFS | |
d7040cdb | 6683 | |
42ecbf5e | 6684 | fi |
ce2cded5 | 6685 | fi |
7357c5b6 AM |
6686 | AR=$ac_cv_prog_AR |
6687 | if test -n "$AR"; then | |
81ecdfbb RW |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6689 | $as_echo "$AR" >&6; } | |
42ecbf5e | 6690 | else |
81ecdfbb RW |
6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6692 | $as_echo "no" >&6; } | |
42ecbf5e DJ |
6693 | fi |
6694 | ||
81ecdfbb | 6695 | |
7357c5b6 AM |
6696 | fi |
6697 | if test -z "$ac_cv_prog_AR"; then | |
6698 | ac_ct_AR=$AR | |
6699 | # Extract the first word of "ar", so it can be a program name with args. | |
6700 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6702 | $as_echo_n "checking for $ac_word... " >&6; } | |
6703 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6704 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6705 | else |
6706 | if test -n "$ac_ct_AR"; then | |
6707 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6708 | else | |
6709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6710 | for as_dir in $PATH | |
6711 | do | |
6712 | IFS=$as_save_IFS | |
6713 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6714 | for ac_exec_ext in '' $ac_executable_extensions; do |
6715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6716 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6718 | break 2 |
6719 | fi | |
6720 | done | |
81ecdfbb RW |
6721 | done |
6722 | IFS=$as_save_IFS | |
42ecbf5e | 6723 | |
7357c5b6 AM |
6724 | fi |
6725 | fi | |
6726 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6727 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6729 | $as_echo "$ac_ct_AR" >&6; } | |
7357c5b6 | 6730 | else |
81ecdfbb RW |
6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6732 | $as_echo "no" >&6; } | |
7357c5b6 | 6733 | fi |
d7040cdb | 6734 | |
81ecdfbb RW |
6735 | if test "x$ac_ct_AR" = x; then |
6736 | AR="false" | |
6737 | else | |
6738 | case $cross_compiling:$ac_tool_warned in | |
6739 | yes:) | |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6741 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6742 | ac_tool_warned=yes ;; | |
6743 | esac | |
6744 | AR=$ac_ct_AR | |
6745 | fi | |
7357c5b6 AM |
6746 | else |
6747 | AR="$ac_cv_prog_AR" | |
6748 | fi | |
d7040cdb | 6749 | |
7357c5b6 AM |
6750 | test -z "$AR" && AR=ar |
6751 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
6752 | |
6753 | ||
6754 | ||
20e95c23 | 6755 | |
d7040cdb | 6756 | |
d7040cdb SE |
6757 | |
6758 | ||
6759 | ||
6760 | ||
6761 | ||
6762 | ||
7357c5b6 AM |
6763 | if test -n "$ac_tool_prefix"; then |
6764 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6765 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6767 | $as_echo_n "checking for $ac_word... " >&6; } | |
6768 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6769 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6770 | else |
6771 | if test -n "$STRIP"; then | |
6772 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6773 | else | |
6774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6775 | for as_dir in $PATH | |
6776 | do | |
6777 | IFS=$as_save_IFS | |
6778 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6779 | for ac_exec_ext in '' $ac_executable_extensions; do |
6780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6781 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6783 | break 2 |
ce2cded5 | 6784 | fi |
7357c5b6 | 6785 | done |
81ecdfbb RW |
6786 | done |
6787 | IFS=$as_save_IFS | |
d7040cdb | 6788 | |
7357c5b6 AM |
6789 | fi |
6790 | fi | |
6791 | STRIP=$ac_cv_prog_STRIP | |
6792 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6794 | $as_echo "$STRIP" >&6; } | |
7357c5b6 | 6795 | else |
81ecdfbb RW |
6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6797 | $as_echo "no" >&6; } | |
7357c5b6 AM |
6798 | fi |
6799 | ||
81ecdfbb | 6800 | |
7357c5b6 AM |
6801 | fi |
6802 | if test -z "$ac_cv_prog_STRIP"; then | |
6803 | ac_ct_STRIP=$STRIP | |
6804 | # Extract the first word of "strip", so it can be a program name with args. | |
6805 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6807 | $as_echo_n "checking for $ac_word... " >&6; } | |
6808 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6809 | $as_echo_n "(cached) " >&6 | |
7357c5b6 AM |
6810 | else |
6811 | if test -n "$ac_ct_STRIP"; then | |
6812 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6813 | else | |
6814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6815 | for as_dir in $PATH | |
6816 | do | |
6817 | IFS=$as_save_IFS | |
6818 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6819 | for ac_exec_ext in '' $ac_executable_extensions; do |
6820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6821 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6823 | break 2 |
ce2cded5 | 6824 | fi |
7357c5b6 | 6825 | done |
81ecdfbb RW |
6826 | done |
6827 | IFS=$as_save_IFS | |
d7040cdb | 6828 | |
7357c5b6 AM |
6829 | fi |
6830 | fi | |
6831 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6832 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6834 | $as_echo "$ac_ct_STRIP" >&6; } | |
20e95c23 | 6835 | else |
81ecdfbb RW |
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6837 | $as_echo "no" >&6; } | |
7357c5b6 | 6838 | fi |
d7040cdb | 6839 | |
81ecdfbb RW |
6840 | if test "x$ac_ct_STRIP" = x; then |
6841 | STRIP=":" | |
6842 | else | |
6843 | case $cross_compiling:$ac_tool_warned in | |
6844 | yes:) | |
6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6846 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6847 | ac_tool_warned=yes ;; | |
6848 | esac | |
6849 | STRIP=$ac_ct_STRIP | |
6850 | fi | |
7357c5b6 AM |
6851 | else |
6852 | STRIP="$ac_cv_prog_STRIP" | |
6853 | fi | |
d7040cdb | 6854 | |
7357c5b6 | 6855 | test -z "$STRIP" && STRIP=: |
d7040cdb | 6856 | |
d7040cdb SE |
6857 | |
6858 | ||
6859 | ||
d7040cdb | 6860 | |
7357c5b6 AM |
6861 | |
6862 | if test -n "$ac_tool_prefix"; then | |
6863 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6864 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6866 | $as_echo_n "checking for $ac_word... " >&6; } | |
6867 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6868 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6869 | else |
7357c5b6 AM |
6870 | if test -n "$RANLIB"; then |
6871 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6872 | else | |
6873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6874 | for as_dir in $PATH | |
ce2cded5 | 6875 | do |
7357c5b6 AM |
6876 | IFS=$as_save_IFS |
6877 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6878 | for ac_exec_ext in '' $ac_executable_extensions; do |
6879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6880 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 | 6882 | break 2 |
ce2cded5 | 6883 | fi |
7357c5b6 | 6884 | done |
81ecdfbb RW |
6885 | done |
6886 | IFS=$as_save_IFS | |
7357c5b6 | 6887 | |
ce2cded5 | 6888 | fi |
7357c5b6 AM |
6889 | fi |
6890 | RANLIB=$ac_cv_prog_RANLIB | |
6891 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6893 | $as_echo "$RANLIB" >&6; } | |
ce2cded5 | 6894 | else |
81ecdfbb RW |
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6896 | $as_echo "no" >&6; } | |
ce2cded5 | 6897 | fi |
d7040cdb | 6898 | |
81ecdfbb | 6899 | |
7357c5b6 AM |
6900 | fi |
6901 | if test -z "$ac_cv_prog_RANLIB"; then | |
6902 | ac_ct_RANLIB=$RANLIB | |
6903 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6904 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6906 | $as_echo_n "checking for $ac_word... " >&6; } | |
6907 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6908 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 6909 | else |
7357c5b6 AM |
6910 | if test -n "$ac_ct_RANLIB"; then |
6911 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6912 | else | |
6913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6914 | for as_dir in $PATH | |
6915 | do | |
6916 | IFS=$as_save_IFS | |
6917 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
6918 | for ac_exec_ext in '' $ac_executable_extensions; do |
6919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7357c5b6 | 6920 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7357c5b6 AM |
6922 | break 2 |
6923 | fi | |
6924 | done | |
81ecdfbb RW |
6925 | done |
6926 | IFS=$as_save_IFS | |
7357c5b6 | 6927 | |
ce2cded5 | 6928 | fi |
7357c5b6 AM |
6929 | fi |
6930 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6931 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6933 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ce2cded5 | 6934 | else |
81ecdfbb RW |
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6936 | $as_echo "no" >&6; } | |
ce2cded5 | 6937 | fi |
d7040cdb | 6938 | |
81ecdfbb RW |
6939 | if test "x$ac_ct_RANLIB" = x; then |
6940 | RANLIB=":" | |
6941 | else | |
6942 | case $cross_compiling:$ac_tool_warned in | |
6943 | yes:) | |
6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6945 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6946 | ac_tool_warned=yes ;; | |
6947 | esac | |
6948 | RANLIB=$ac_ct_RANLIB | |
6949 | fi | |
7357c5b6 AM |
6950 | else |
6951 | RANLIB="$ac_cv_prog_RANLIB" | |
ce2cded5 | 6952 | fi |
d7040cdb | 6953 | |
7357c5b6 | 6954 | test -z "$RANLIB" && RANLIB=: |
d7040cdb | 6955 | |
7357c5b6 AM |
6956 | |
6957 | ||
6958 | ||
6959 | ||
6960 | ||
6961 | # Determine commands to create old-style static archives. | |
b214d478 | 6962 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7357c5b6 AM |
6963 | old_postinstall_cmds='chmod 644 $oldlib' |
6964 | old_postuninstall_cmds= | |
6965 | ||
6966 | if test -n "$RANLIB"; then | |
6967 | case $host_os in | |
6968 | openbsd*) | |
6969 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6970 | ;; | |
6971 | *) | |
6972 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6973 | ;; | |
6974 | esac | |
6975 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
ce2cded5 | 6976 | fi |
7357c5b6 AM |
6977 | |
6978 | ||
6979 | ||
6980 | ||
6981 | ||
6982 | ||
6983 | ||
6984 | ||
6985 | ||
6986 | ||
6987 | ||
6988 | ||
6989 | ||
6990 | ||
6991 | ||
6992 | ||
6993 | ||
6994 | ||
6995 | ||
6996 | ||
6997 | ||
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | ||
7004 | ||
7005 | ||
7006 | ||
7007 | ||
7008 | ||
7009 | ||
7010 | ||
7011 | # If no C compiler was specified, use CC. | |
7012 | LTCC=${LTCC-"$CC"} | |
7013 | ||
7014 | # If no C compiler flags were specified, use CFLAGS. | |
7015 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7016 | ||
7017 | # Allow CC to be a program name with arguments. | |
7018 | compiler=$CC | |
7019 | ||
7020 | ||
7021 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
81ecdfbb RW |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
7023 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7024 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7025 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7026 | else |
d7040cdb | 7027 | |
7357c5b6 AM |
7028 | # These are sane defaults that work on at least a few old systems. |
7029 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 7030 | |
7357c5b6 AM |
7031 | # Character class describing NM global symbol codes. |
7032 | symcode='[BCDEGRST]' | |
7033 | ||
7034 | # Regexp to match symbols that can be accessed directly from C. | |
7035 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7036 | ||
7037 | # Define system-specific variables. | |
7038 | case $host_os in | |
7039 | aix*) | |
7040 | symcode='[BCDT]' | |
7041 | ;; | |
b214d478 | 7042 | cygwin* | mingw* | pw32* | cegcc*) |
7357c5b6 AM |
7043 | symcode='[ABCDGISTW]' |
7044 | ;; | |
7045 | hpux*) | |
7046 | if test "$host_cpu" = ia64; then | |
7047 | symcode='[ABCDEGRST]' | |
ce2cded5 | 7048 | fi |
7357c5b6 AM |
7049 | ;; |
7050 | irix* | nonstopux*) | |
7051 | symcode='[BCDEGRST]' | |
7052 | ;; | |
7053 | osf*) | |
7054 | symcode='[BCDEGQRST]' | |
7055 | ;; | |
7056 | solaris*) | |
7057 | symcode='[BDRT]' | |
7058 | ;; | |
7059 | sco3.2v5*) | |
7060 | symcode='[DT]' | |
7061 | ;; | |
7062 | sysv4.2uw2*) | |
7063 | symcode='[DT]' | |
7064 | ;; | |
7065 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7066 | symcode='[ABDT]' | |
7067 | ;; | |
7068 | sysv4) | |
7069 | symcode='[DFNSTU]' | |
7070 | ;; | |
7071 | esac | |
d7040cdb | 7072 | |
7357c5b6 AM |
7073 | # If we're using GNU nm, then use its standard symbol codes. |
7074 | case `$NM -V 2>&1` in | |
7075 | *GNU* | *'with BFD'*) | |
7076 | symcode='[ABCDGIRSTW]' ;; | |
7077 | esac | |
d7040cdb | 7078 | |
7357c5b6 AM |
7079 | # Transform an extracted symbol line into a proper C declaration. |
7080 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7081 | # so use this general approach. | |
7082 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7083 | ||
7084 | # Transform an extracted symbol line into symbol name and symbol address | |
7085 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
b214d478 | 7086 | 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'" |
7357c5b6 AM |
7087 | |
7088 | # Handle CRLF in mingw tool chain | |
7089 | opt_cr= | |
7090 | case $build_os in | |
7091 | mingw*) | |
7092 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7093 | ;; | |
7094 | esac | |
d7040cdb | 7095 | |
7357c5b6 AM |
7096 | # Try without a prefix underscore, then with it. |
7097 | for ac_symprfx in "" "_"; do | |
d7040cdb | 7098 | |
7357c5b6 AM |
7099 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7100 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 7101 | |
7357c5b6 AM |
7102 | # Write the raw and C identifiers. |
7103 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7104 | # Fake it for dumpbin and say T for any non-static function | |
7105 | # and D for any global variable. | |
7106 | # Also find C++ and __fastcall symbols from MSVC++, | |
7107 | # which start with @ or ?. | |
7108 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7109 | " {last_section=section; section=\$ 3};"\ | |
7110 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7111 | " \$ 0!~/External *\|/{next};"\ | |
7112 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7113 | " {if(hide[section]) next};"\ | |
7114 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7115 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7116 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7117 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7118 | " ' prfx=^$ac_symprfx" | |
7119 | else | |
7120 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7121 | fi | |
d7040cdb | 7122 | |
7357c5b6 AM |
7123 | # Check to see that the pipe works correctly. |
7124 | pipe_works=no | |
d7040cdb | 7125 | |
7357c5b6 AM |
7126 | rm -f conftest* |
7127 | cat > conftest.$ac_ext <<_LT_EOF | |
7128 | #ifdef __cplusplus | |
7129 | extern "C" { | |
7130 | #endif | |
7131 | char nm_test_var; | |
7132 | void nm_test_func(void); | |
7133 | void nm_test_func(void){} | |
7134 | #ifdef __cplusplus | |
20e95c23 | 7135 | } |
7357c5b6 AM |
7136 | #endif |
7137 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7138 | _LT_EOF | |
7139 | ||
81ecdfbb | 7140 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 | 7141 | (eval $ac_compile) 2>&5 |
20e95c23 | 7142 | ac_status=$? |
81ecdfbb RW |
7143 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7144 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7145 | # Now try to grab the symbols. |
7146 | nlist=conftest.nm | |
81ecdfbb | 7147 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
7357c5b6 | 7148 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
20e95c23 | 7149 | ac_status=$? |
81ecdfbb RW |
7150 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7151 | test $ac_status = 0; } && test -s "$nlist"; then | |
7357c5b6 AM |
7152 | # Try sorting and uniquifying the output. |
7153 | if sort "$nlist" | uniq > "$nlist"T; then | |
7154 | mv -f "$nlist"T "$nlist" | |
7155 | else | |
7156 | rm -f "$nlist"T | |
7157 | fi | |
d7040cdb | 7158 | |
7357c5b6 AM |
7159 | # Make sure that we snagged all the symbols we need. |
7160 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7161 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7162 | cat <<_LT_EOF > conftest.$ac_ext | |
7163 | #ifdef __cplusplus | |
7164 | extern "C" { | |
7165 | #endif | |
ce2cded5 | 7166 | |
7357c5b6 AM |
7167 | _LT_EOF |
7168 | # Now generate the symbol file. | |
7169 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
ce2cded5 | 7170 | |
7357c5b6 | 7171 | cat <<_LT_EOF >> conftest.$ac_ext |
42ecbf5e | 7172 | |
7357c5b6 AM |
7173 | /* The mapping between symbol names and symbols. */ |
7174 | const struct { | |
7175 | const char *name; | |
7176 | void *address; | |
7177 | } | |
7178 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7179 | { | |
7180 | { "@PROGRAM@", (void *) 0 }, | |
7181 | _LT_EOF | |
7182 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7183 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7184 | {0, (void *) 0} | |
7185 | }; | |
d7040cdb | 7186 | |
7357c5b6 AM |
7187 | /* This works around a problem in FreeBSD linker */ |
7188 | #ifdef FREEBSD_WORKAROUND | |
7189 | static const void *lt_preloaded_setup() { | |
7190 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7191 | } | |
ce2cded5 | 7192 | #endif |
42ecbf5e | 7193 | |
7357c5b6 | 7194 | #ifdef __cplusplus |
ce2cded5 | 7195 | } |
7357c5b6 AM |
7196 | #endif |
7197 | _LT_EOF | |
7198 | # Now try linking the two files. | |
7199 | mv conftest.$ac_objext conftstm.$ac_objext | |
7200 | lt_save_LIBS="$LIBS" | |
7201 | lt_save_CFLAGS="$CFLAGS" | |
7202 | LIBS="conftstm.$ac_objext" | |
7203 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 7204 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 L |
7205 | (eval $ac_link) 2>&5 |
7206 | ac_status=$? | |
81ecdfbb RW |
7207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7208 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7357c5b6 AM |
7209 | pipe_works=yes |
7210 | fi | |
7211 | LIBS="$lt_save_LIBS" | |
7212 | CFLAGS="$lt_save_CFLAGS" | |
7213 | else | |
7214 | echo "cannot find nm_test_func in $nlist" >&5 | |
7215 | fi | |
7216 | else | |
7217 | echo "cannot find nm_test_var in $nlist" >&5 | |
7218 | fi | |
7219 | else | |
7220 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7221 | fi | |
7222 | else | |
7223 | echo "$progname: failed program was:" >&5 | |
7224 | cat conftest.$ac_ext >&5 | |
7225 | fi | |
b214d478 | 7226 | rm -rf conftest* conftst* |
7357c5b6 AM |
7227 | |
7228 | # Do not use the global_symbol_pipe unless it works. | |
7229 | if test "$pipe_works" = yes; then | |
7230 | break | |
7231 | else | |
7232 | lt_cv_sys_global_symbol_pipe= | |
7233 | fi | |
7234 | done | |
42ecbf5e | 7235 | |
ce2cded5 | 7236 | fi |
7357c5b6 AM |
7237 | |
7238 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7239 | lt_cv_sys_global_symbol_to_cdecl= | |
ce2cded5 | 7240 | fi |
7357c5b6 | 7241 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
81ecdfbb RW |
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
7243 | $as_echo "failed" >&6; } | |
7357c5b6 | 7244 | else |
81ecdfbb RW |
7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7246 | $as_echo "ok" >&6; } | |
ce2cded5 | 7247 | fi |
e5a52504 | 7248 | |
d7040cdb | 7249 | |
e5a52504 | 7250 | |
d7040cdb | 7251 | |
d7040cdb | 7252 | |
d7040cdb | 7253 | |
d7040cdb | 7254 | |
d7040cdb | 7255 | |
d7040cdb | 7256 | |
d7040cdb | 7257 | |
d7040cdb | 7258 | |
d7040cdb | 7259 | |
7357c5b6 AM |
7260 | |
7261 | ||
7262 | ||
b214d478 SE |
7263 | |
7264 | ||
7265 | ||
7266 | ||
7267 | ||
7357c5b6 AM |
7268 | |
7269 | ||
81ecdfbb RW |
7270 | # Check whether --enable-libtool-lock was given. |
7271 | if test "${enable_libtool_lock+set}" = set; then : | |
7272 | enableval=$enable_libtool_lock; | |
7273 | fi | |
7357c5b6 | 7274 | |
7357c5b6 AM |
7275 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7276 | ||
7277 | # Some flags need to be propagated to the compiler or linker for good | |
7278 | # libtool support. | |
7279 | case $host in | |
7280 | ia64-*-hpux*) | |
7281 | # Find out which ABI we are using. | |
7282 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7283 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7284 | (eval $ac_compile) 2>&5 |
7285 | ac_status=$? | |
81ecdfbb RW |
7286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7287 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7288 | case `/usr/bin/file conftest.$ac_objext` in |
7289 | *ELF-32*) | |
7290 | HPUX_IA64_MODE="32" | |
7291 | ;; | |
7292 | *ELF-64*) | |
7293 | HPUX_IA64_MODE="64" | |
7294 | ;; | |
7295 | esac | |
7296 | fi | |
7297 | rm -rf conftest* | |
7298 | ;; | |
7299 | *-*-irix6*) | |
7300 | # Find out which ABI we are using. | |
64ac50ac | 7301 | echo '#line 7301 "configure"' > conftest.$ac_ext |
81ecdfbb | 7302 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7303 | (eval $ac_compile) 2>&5 |
7304 | ac_status=$? | |
81ecdfbb RW |
7305 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7306 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7307 | if test "$lt_cv_prog_gnu_ld" = yes; then |
7308 | case `/usr/bin/file conftest.$ac_objext` in | |
7309 | *32-bit*) | |
7310 | LD="${LD-ld} -melf32bsmip" | |
7311 | ;; | |
7312 | *N32*) | |
7313 | LD="${LD-ld} -melf32bmipn32" | |
7314 | ;; | |
7315 | *64-bit*) | |
7316 | LD="${LD-ld} -melf64bmip" | |
7317 | ;; | |
7318 | esac | |
7319 | else | |
7320 | case `/usr/bin/file conftest.$ac_objext` in | |
7321 | *32-bit*) | |
7322 | LD="${LD-ld} -32" | |
7323 | ;; | |
7324 | *N32*) | |
7325 | LD="${LD-ld} -n32" | |
7326 | ;; | |
7327 | *64-bit*) | |
7328 | LD="${LD-ld} -64" | |
7329 | ;; | |
7330 | esac | |
7331 | fi | |
7332 | fi | |
7333 | rm -rf conftest* | |
7334 | ;; | |
7335 | ||
7336 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
7337 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7338 | # Find out which ABI we are using. | |
7339 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7340 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
7341 | (eval $ac_compile) 2>&5 |
7342 | ac_status=$? | |
81ecdfbb RW |
7343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7344 | test $ac_status = 0; }; then | |
7357c5b6 AM |
7345 | case `/usr/bin/file conftest.o` in |
7346 | *32-bit*) | |
7347 | case $host in | |
7348 | x86_64-*kfreebsd*-gnu) | |
7349 | LD="${LD-ld} -m elf_i386_fbsd" | |
7350 | ;; | |
7351 | x86_64-*linux*) | |
7352 | LD="${LD-ld} -m elf_i386" | |
7353 | ;; | |
7354 | ppc64-*linux*|powerpc64-*linux*) | |
7355 | LD="${LD-ld} -m elf32ppclinux" | |
7356 | ;; | |
7357 | s390x-*linux*) | |
7358 | LD="${LD-ld} -m elf_s390" | |
7359 | ;; | |
7360 | sparc64-*linux*) | |
7361 | LD="${LD-ld} -m elf32_sparc" | |
7362 | ;; | |
7363 | esac | |
7364 | ;; | |
7365 | *64-bit*) | |
7366 | case $host in | |
7367 | x86_64-*kfreebsd*-gnu) | |
7368 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7369 | ;; | |
7370 | x86_64-*linux*) | |
7371 | LD="${LD-ld} -m elf_x86_64" | |
7372 | ;; | |
7373 | ppc*-*linux*|powerpc*-*linux*) | |
7374 | LD="${LD-ld} -m elf64ppc" | |
7375 | ;; | |
7376 | s390*-*linux*|s390*-*tpf*) | |
7377 | LD="${LD-ld} -m elf64_s390" | |
7378 | ;; | |
7379 | sparc*-*linux*) | |
7380 | LD="${LD-ld} -m elf64_sparc" | |
7381 | ;; | |
7382 | esac | |
7383 | ;; | |
7384 | esac | |
7385 | fi | |
7386 | rm -rf conftest* | |
7387 | ;; | |
7388 | ||
7389 | *-*-sco3.2v5*) | |
7390 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7391 | SAVE_CFLAGS="$CFLAGS" | |
7392 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
7394 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7395 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7396 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 7397 | else |
7357c5b6 AM |
7398 | ac_ext=c |
7399 | ac_cpp='$CPP $CPPFLAGS' | |
7400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7403 | ||
81ecdfbb | 7404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 7405 | /* end confdefs.h. */ |
d7040cdb | 7406 | |
7357c5b6 AM |
7407 | int |
7408 | main () | |
7409 | { | |
7410 | ||
7411 | ; | |
7412 | return 0; | |
7413 | } | |
ce2cded5 | 7414 | _ACEOF |
81ecdfbb | 7415 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 7416 | lt_cv_cc_needs_belf=yes |
ce2cded5 | 7417 | else |
81ecdfbb | 7418 | lt_cv_cc_needs_belf=no |
ce2cded5 | 7419 | fi |
81ecdfbb RW |
7420 | rm -f core conftest.err conftest.$ac_objext \ |
7421 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
7422 | ac_ext=c |
7423 | ac_cpp='$CPP $CPPFLAGS' | |
7424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 7427 | |
b214d478 | 7428 | fi |
81ecdfbb RW |
7429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
7430 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
b214d478 SE |
7431 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
7432 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7433 | CFLAGS="$SAVE_CFLAGS" | |
7434 | fi | |
7435 | ;; | |
7436 | sparc*-*solaris*) | |
7437 | # Find out which ABI we are using. | |
7438 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 7439 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
b214d478 SE |
7440 | (eval $ac_compile) 2>&5 |
7441 | ac_status=$? | |
81ecdfbb RW |
7442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7443 | test $ac_status = 0; }; then | |
b214d478 SE |
7444 | case `/usr/bin/file conftest.o` in |
7445 | *64-bit*) | |
7446 | case $lt_cv_prog_gnu_ld in | |
7447 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7448 | *) | |
7449 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7450 | LD="${LD-ld} -64" | |
7451 | fi | |
7452 | ;; | |
7453 | esac | |
7454 | ;; | |
7455 | esac | |
7456 | fi | |
7457 | rm -rf conftest* | |
7458 | ;; | |
7459 | esac | |
7460 | ||
7461 | need_locks="$enable_libtool_lock" | |
7462 | ||
7463 | ||
7464 | case $host_os in | |
7465 | rhapsody* | darwin*) | |
7466 | if test -n "$ac_tool_prefix"; then | |
7467 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7468 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7470 | $as_echo_n "checking for $ac_word... " >&6; } | |
7471 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7472 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7473 | else |
7474 | if test -n "$DSYMUTIL"; then | |
7475 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7476 | else | |
7477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7478 | for as_dir in $PATH | |
7479 | do | |
7480 | IFS=$as_save_IFS | |
7481 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7482 | for ac_exec_ext in '' $ac_executable_extensions; do |
7483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7484 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7486 | break 2 |
7487 | fi | |
7488 | done | |
81ecdfbb RW |
7489 | done |
7490 | IFS=$as_save_IFS | |
b214d478 SE |
7491 | |
7492 | fi | |
7493 | fi | |
7494 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7495 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7497 | $as_echo "$DSYMUTIL" >&6; } | |
b214d478 | 7498 | else |
81ecdfbb RW |
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7500 | $as_echo "no" >&6; } | |
b214d478 SE |
7501 | fi |
7502 | ||
81ecdfbb | 7503 | |
b214d478 SE |
7504 | fi |
7505 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7506 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7507 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7508 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7510 | $as_echo_n "checking for $ac_word... " >&6; } | |
7511 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
7512 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7513 | else |
7514 | if test -n "$ac_ct_DSYMUTIL"; then | |
7515 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7516 | else | |
7517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7518 | for as_dir in $PATH | |
7519 | do | |
7520 | IFS=$as_save_IFS | |
7521 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7522 | for ac_exec_ext in '' $ac_executable_extensions; do |
7523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7524 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7526 | break 2 |
7527 | fi | |
7528 | done | |
81ecdfbb RW |
7529 | done |
7530 | IFS=$as_save_IFS | |
b214d478 | 7531 | |
b214d478 SE |
7532 | fi |
7533 | fi | |
7534 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7535 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7537 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b214d478 | 7538 | else |
81ecdfbb RW |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7540 | $as_echo "no" >&6; } | |
b214d478 SE |
7541 | fi |
7542 | ||
81ecdfbb RW |
7543 | if test "x$ac_ct_DSYMUTIL" = x; then |
7544 | DSYMUTIL=":" | |
7545 | else | |
7546 | case $cross_compiling:$ac_tool_warned in | |
7547 | yes:) | |
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7549 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7550 | ac_tool_warned=yes ;; | |
7551 | esac | |
7552 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7553 | fi | |
b214d478 SE |
7554 | else |
7555 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7556 | fi | |
7557 | ||
7558 | if test -n "$ac_tool_prefix"; then | |
7559 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7560 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7562 | $as_echo_n "checking for $ac_word... " >&6; } | |
7563 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
7564 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7565 | else |
7566 | if test -n "$NMEDIT"; then | |
7567 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7568 | else | |
7569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7570 | for as_dir in $PATH | |
7571 | do | |
7572 | IFS=$as_save_IFS | |
7573 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7574 | for ac_exec_ext in '' $ac_executable_extensions; do |
7575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7576 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7578 | break 2 |
7579 | fi | |
7580 | done | |
81ecdfbb RW |
7581 | done |
7582 | IFS=$as_save_IFS | |
b214d478 SE |
7583 | |
7584 | fi | |
7585 | fi | |
7586 | NMEDIT=$ac_cv_prog_NMEDIT | |
7587 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7589 | $as_echo "$NMEDIT" >&6; } | |
b214d478 | 7590 | else |
81ecdfbb RW |
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7592 | $as_echo "no" >&6; } | |
b214d478 SE |
7593 | fi |
7594 | ||
81ecdfbb | 7595 | |
b214d478 SE |
7596 | fi |
7597 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7598 | ac_ct_NMEDIT=$NMEDIT | |
7599 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7600 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7602 | $as_echo_n "checking for $ac_word... " >&6; } | |
7603 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
7604 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7605 | else |
7606 | if test -n "$ac_ct_NMEDIT"; then | |
7607 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7608 | else | |
7609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7610 | for as_dir in $PATH | |
7611 | do | |
7612 | IFS=$as_save_IFS | |
7613 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7614 | for ac_exec_ext in '' $ac_executable_extensions; do |
7615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7616 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7618 | break 2 |
7619 | fi | |
7620 | done | |
81ecdfbb RW |
7621 | done |
7622 | IFS=$as_save_IFS | |
b214d478 | 7623 | |
b214d478 SE |
7624 | fi |
7625 | fi | |
7626 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7627 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7629 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b214d478 | 7630 | else |
81ecdfbb RW |
7631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7632 | $as_echo "no" >&6; } | |
b214d478 SE |
7633 | fi |
7634 | ||
81ecdfbb RW |
7635 | if test "x$ac_ct_NMEDIT" = x; then |
7636 | NMEDIT=":" | |
7637 | else | |
7638 | case $cross_compiling:$ac_tool_warned in | |
7639 | yes:) | |
7640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7641 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7642 | ac_tool_warned=yes ;; | |
7643 | esac | |
7644 | NMEDIT=$ac_ct_NMEDIT | |
7645 | fi | |
b214d478 SE |
7646 | else |
7647 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7648 | fi | |
7649 | ||
7650 | if test -n "$ac_tool_prefix"; then | |
7651 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7652 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7654 | $as_echo_n "checking for $ac_word... " >&6; } | |
7655 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7656 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7657 | else |
7658 | if test -n "$LIPO"; then | |
7659 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7660 | else | |
7661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7662 | for as_dir in $PATH | |
7663 | do | |
7664 | IFS=$as_save_IFS | |
7665 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7666 | for ac_exec_ext in '' $ac_executable_extensions; do |
7667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7668 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7670 | break 2 |
7671 | fi | |
7672 | done | |
81ecdfbb RW |
7673 | done |
7674 | IFS=$as_save_IFS | |
b214d478 SE |
7675 | |
7676 | fi | |
7677 | fi | |
7678 | LIPO=$ac_cv_prog_LIPO | |
7679 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7681 | $as_echo "$LIPO" >&6; } | |
b214d478 | 7682 | else |
81ecdfbb RW |
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7684 | $as_echo "no" >&6; } | |
b214d478 SE |
7685 | fi |
7686 | ||
81ecdfbb | 7687 | |
b214d478 SE |
7688 | fi |
7689 | if test -z "$ac_cv_prog_LIPO"; then | |
7690 | ac_ct_LIPO=$LIPO | |
7691 | # Extract the first word of "lipo", so it can be a program name with args. | |
7692 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7694 | $as_echo_n "checking for $ac_word... " >&6; } | |
7695 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7696 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7697 | else |
7698 | if test -n "$ac_ct_LIPO"; then | |
7699 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7700 | else | |
7701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7702 | for as_dir in $PATH | |
7703 | do | |
7704 | IFS=$as_save_IFS | |
7705 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7706 | for ac_exec_ext in '' $ac_executable_extensions; do |
7707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7708 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7710 | break 2 |
7711 | fi | |
7712 | done | |
81ecdfbb RW |
7713 | done |
7714 | IFS=$as_save_IFS | |
b214d478 | 7715 | |
b214d478 SE |
7716 | fi |
7717 | fi | |
7718 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7719 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7721 | $as_echo "$ac_ct_LIPO" >&6; } | |
b214d478 | 7722 | else |
81ecdfbb RW |
7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7724 | $as_echo "no" >&6; } | |
b214d478 SE |
7725 | fi |
7726 | ||
81ecdfbb RW |
7727 | if test "x$ac_ct_LIPO" = x; then |
7728 | LIPO=":" | |
7729 | else | |
7730 | case $cross_compiling:$ac_tool_warned in | |
7731 | yes:) | |
7732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7733 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7734 | ac_tool_warned=yes ;; | |
7735 | esac | |
7736 | LIPO=$ac_ct_LIPO | |
7737 | fi | |
b214d478 SE |
7738 | else |
7739 | LIPO="$ac_cv_prog_LIPO" | |
7740 | fi | |
7741 | ||
7742 | if test -n "$ac_tool_prefix"; then | |
7743 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7744 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7746 | $as_echo_n "checking for $ac_word... " >&6; } | |
7747 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7748 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7749 | else |
7750 | if test -n "$OTOOL"; then | |
7751 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7752 | else | |
7753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7754 | for as_dir in $PATH | |
7755 | do | |
7756 | IFS=$as_save_IFS | |
7757 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7758 | for ac_exec_ext in '' $ac_executable_extensions; do |
7759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7760 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7762 | break 2 |
7763 | fi | |
7764 | done | |
81ecdfbb RW |
7765 | done |
7766 | IFS=$as_save_IFS | |
b214d478 SE |
7767 | |
7768 | fi | |
7769 | fi | |
7770 | OTOOL=$ac_cv_prog_OTOOL | |
7771 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7773 | $as_echo "$OTOOL" >&6; } | |
b214d478 | 7774 | else |
81ecdfbb RW |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7776 | $as_echo "no" >&6; } | |
b214d478 SE |
7777 | fi |
7778 | ||
81ecdfbb | 7779 | |
b214d478 SE |
7780 | fi |
7781 | if test -z "$ac_cv_prog_OTOOL"; then | |
7782 | ac_ct_OTOOL=$OTOOL | |
7783 | # Extract the first word of "otool", so it can be a program name with args. | |
7784 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7786 | $as_echo_n "checking for $ac_word... " >&6; } | |
7787 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7788 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7789 | else |
7790 | if test -n "$ac_ct_OTOOL"; then | |
7791 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7792 | else | |
7793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7794 | for as_dir in $PATH | |
7795 | do | |
7796 | IFS=$as_save_IFS | |
7797 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7798 | for ac_exec_ext in '' $ac_executable_extensions; do |
7799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7800 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7802 | break 2 |
7803 | fi | |
7804 | done | |
81ecdfbb RW |
7805 | done |
7806 | IFS=$as_save_IFS | |
b214d478 | 7807 | |
b214d478 SE |
7808 | fi |
7809 | fi | |
7810 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7811 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7813 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b214d478 | 7814 | else |
81ecdfbb RW |
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7816 | $as_echo "no" >&6; } | |
b214d478 SE |
7817 | fi |
7818 | ||
81ecdfbb RW |
7819 | if test "x$ac_ct_OTOOL" = x; then |
7820 | OTOOL=":" | |
7821 | else | |
7822 | case $cross_compiling:$ac_tool_warned in | |
7823 | yes:) | |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7825 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7826 | ac_tool_warned=yes ;; | |
7827 | esac | |
7828 | OTOOL=$ac_ct_OTOOL | |
7829 | fi | |
b214d478 SE |
7830 | else |
7831 | OTOOL="$ac_cv_prog_OTOOL" | |
7832 | fi | |
7833 | ||
7834 | if test -n "$ac_tool_prefix"; then | |
7835 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7836 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7838 | $as_echo_n "checking for $ac_word... " >&6; } | |
7839 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7840 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7841 | else |
7842 | if test -n "$OTOOL64"; then | |
7843 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7844 | else | |
7845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7846 | for as_dir in $PATH | |
7847 | do | |
7848 | IFS=$as_save_IFS | |
7849 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7850 | for ac_exec_ext in '' $ac_executable_extensions; do |
7851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7852 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7854 | break 2 |
7855 | fi | |
7856 | done | |
81ecdfbb RW |
7857 | done |
7858 | IFS=$as_save_IFS | |
b214d478 SE |
7859 | |
7860 | fi | |
7861 | fi | |
7862 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7863 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7865 | $as_echo "$OTOOL64" >&6; } | |
b214d478 | 7866 | else |
81ecdfbb RW |
7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7868 | $as_echo "no" >&6; } | |
b214d478 SE |
7869 | fi |
7870 | ||
81ecdfbb | 7871 | |
b214d478 SE |
7872 | fi |
7873 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7874 | ac_ct_OTOOL64=$OTOOL64 | |
7875 | # Extract the first word of "otool64", so it can be a program name with args. | |
7876 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7878 | $as_echo_n "checking for $ac_word... " >&6; } | |
7879 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7880 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7881 | else |
7882 | if test -n "$ac_ct_OTOOL64"; then | |
7883 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7884 | else | |
7885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7886 | for as_dir in $PATH | |
7887 | do | |
7888 | IFS=$as_save_IFS | |
7889 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7890 | for ac_exec_ext in '' $ac_executable_extensions; do |
7891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
b214d478 | 7892 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b214d478 SE |
7894 | break 2 |
7895 | fi | |
7896 | done | |
81ecdfbb RW |
7897 | done |
7898 | IFS=$as_save_IFS | |
b214d478 | 7899 | |
b214d478 SE |
7900 | fi |
7901 | fi | |
7902 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7903 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7905 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b214d478 | 7906 | else |
81ecdfbb RW |
7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7908 | $as_echo "no" >&6; } | |
b214d478 SE |
7909 | fi |
7910 | ||
81ecdfbb RW |
7911 | if test "x$ac_ct_OTOOL64" = x; then |
7912 | OTOOL64=":" | |
7913 | else | |
7914 | case $cross_compiling:$ac_tool_warned in | |
7915 | yes:) | |
7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7917 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7918 | ac_tool_warned=yes ;; | |
7919 | esac | |
7920 | OTOOL64=$ac_ct_OTOOL64 | |
7921 | fi | |
b214d478 SE |
7922 | else |
7923 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7924 | fi | |
7925 | ||
7926 | ||
7927 | ||
7928 | ||
7929 | ||
7930 | ||
7931 | ||
7932 | ||
7933 | ||
7934 | ||
7935 | ||
7936 | ||
7937 | ||
7938 | ||
7939 | ||
7940 | ||
7941 | ||
7942 | ||
7943 | ||
7944 | ||
7945 | ||
7946 | ||
7947 | ||
7948 | ||
7949 | ||
7950 | ||
7951 | ||
81ecdfbb RW |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7953 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7954 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7955 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7956 | else |
7957 | lt_cv_apple_cc_single_mod=no | |
7958 | if test -z "${LT_MULTI_MODULE}"; then | |
7959 | # By default we will add the -single_module flag. You can override | |
7960 | # by either setting the environment variable LT_MULTI_MODULE | |
7961 | # non-empty at configure time, or by adding -multi_module to the | |
7962 | # link flags. | |
7963 | rm -rf libconftest.dylib* | |
7964 | echo "int foo(void){return 1;}" > conftest.c | |
7965 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7966 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7967 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7968 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7969 | _lt_result=$? | |
7970 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7971 | lt_cv_apple_cc_single_mod=yes | |
7972 | else | |
7973 | cat conftest.err >&5 | |
7974 | fi | |
7975 | rm -rf libconftest.dylib* | |
7976 | rm -f conftest.* | |
7977 | fi | |
7978 | fi | |
81ecdfbb RW |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7980 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7982 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7983 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7984 | $as_echo_n "(cached) " >&6 | |
b214d478 SE |
7985 | else |
7986 | lt_cv_ld_exported_symbols_list=no | |
7987 | save_LDFLAGS=$LDFLAGS | |
7988 | echo "_main" > conftest.sym | |
7989 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b214d478 SE |
7991 | /* end confdefs.h. */ |
7992 | ||
7993 | int | |
7994 | main () | |
7995 | { | |
7996 | ||
7997 | ; | |
7998 | return 0; | |
7999 | } | |
8000 | _ACEOF | |
81ecdfbb | 8001 | if ac_fn_c_try_link "$LINENO"; then : |
b214d478 SE |
8002 | lt_cv_ld_exported_symbols_list=yes |
8003 | else | |
81ecdfbb | 8004 | lt_cv_ld_exported_symbols_list=no |
b214d478 | 8005 | fi |
81ecdfbb RW |
8006 | rm -f core conftest.err conftest.$ac_objext \ |
8007 | conftest$ac_exeext conftest.$ac_ext | |
b214d478 SE |
8008 | LDFLAGS="$save_LDFLAGS" |
8009 | ||
8010 | fi | |
81ecdfbb RW |
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8012 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
b214d478 SE |
8013 | case $host_os in |
8014 | rhapsody* | darwin1.[012]) | |
8015 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8016 | darwin1.*) | |
8017 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8018 | darwin*) # darwin 5.x on | |
8019 | # if running on 10.5 or later, the deployment target defaults | |
8020 | # to the OS version, if on x86, and 10.4, the deployment | |
8021 | # target defaults to 10.4. Don't you love it? | |
8022 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8023 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8024 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8025 | 10.[012]*) | |
8026 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8027 | 10.*) | |
8028 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8029 | esac | |
8030 | ;; | |
8031 | esac | |
8032 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8033 | _lt_dar_single_mod='$single_module' | |
8034 | fi | |
8035 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8036 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8037 | else | |
8038 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8039 | fi | |
8040 | if test "$DSYMUTIL" != ":"; then | |
8041 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8042 | else | |
8043 | _lt_dsymutil= | |
8044 | fi | |
8045 | ;; | |
8046 | esac | |
8047 | ||
b214d478 | 8048 | for ac_header in dlfcn.h |
81ecdfbb RW |
8049 | do : |
8050 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8051 | " | |
8052 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
b214d478 | 8053 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 8054 | #define HAVE_DLFCN_H 1 |
b214d478 SE |
8055 | _ACEOF |
8056 | ||
8057 | fi | |
8058 | ||
8059 | done | |
8060 | ||
8061 | ||
8062 | ||
8063 | # Set options | |
8064 | ||
8065 | ||
8066 | ||
8067 | enable_dlopen=no | |
8068 | ||
8069 | ||
8070 | enable_win32_dll=no | |
8071 | ||
8072 | ||
81ecdfbb RW |
8073 | # Check whether --enable-shared was given. |
8074 | if test "${enable_shared+set}" = set; then : | |
8075 | enableval=$enable_shared; p=${PACKAGE-default} | |
b214d478 SE |
8076 | case $enableval in |
8077 | yes) enable_shared=yes ;; | |
8078 | no) enable_shared=no ;; | |
8079 | *) | |
8080 | enable_shared=no | |
8081 | # Look at the argument we got. We use all the common list separators. | |
8082 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8083 | for pkg in $enableval; do | |
8084 | IFS="$lt_save_ifs" | |
8085 | if test "X$pkg" = "X$p"; then | |
8086 | enable_shared=yes | |
8087 | fi | |
8088 | done | |
8089 | IFS="$lt_save_ifs" | |
8090 | ;; | |
8091 | esac | |
8092 | else | |
8093 | enable_shared=yes | |
81ecdfbb | 8094 | fi |
b214d478 SE |
8095 | |
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
81ecdfbb RW |
8103 | |
8104 | # Check whether --enable-static was given. | |
8105 | if test "${enable_static+set}" = set; then : | |
8106 | enableval=$enable_static; p=${PACKAGE-default} | |
b214d478 SE |
8107 | case $enableval in |
8108 | yes) enable_static=yes ;; | |
8109 | no) enable_static=no ;; | |
8110 | *) | |
8111 | enable_static=no | |
8112 | # Look at the argument we got. We use all the common list separators. | |
8113 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8114 | for pkg in $enableval; do | |
8115 | IFS="$lt_save_ifs" | |
8116 | if test "X$pkg" = "X$p"; then | |
8117 | enable_static=yes | |
8118 | fi | |
8119 | done | |
8120 | IFS="$lt_save_ifs" | |
8121 | ;; | |
8122 | esac | |
8123 | else | |
8124 | enable_static=yes | |
81ecdfbb | 8125 | fi |
b214d478 SE |
8126 | |
8127 | ||
8128 | ||
8129 | ||
8130 | ||
8131 | ||
8132 | ||
8133 | ||
8134 | ||
81ecdfbb RW |
8135 | |
8136 | # Check whether --with-pic was given. | |
8137 | if test "${with_pic+set}" = set; then : | |
8138 | withval=$with_pic; pic_mode="$withval" | |
b214d478 SE |
8139 | else |
8140 | pic_mode=default | |
81ecdfbb RW |
8141 | fi |
8142 | ||
b214d478 SE |
8143 | |
8144 | test -z "$pic_mode" && pic_mode=default | |
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
8151 | ||
81ecdfbb RW |
8152 | # Check whether --enable-fast-install was given. |
8153 | if test "${enable_fast_install+set}" = set; then : | |
8154 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
b214d478 SE |
8155 | case $enableval in |
8156 | yes) enable_fast_install=yes ;; | |
8157 | no) enable_fast_install=no ;; | |
8158 | *) | |
8159 | enable_fast_install=no | |
8160 | # Look at the argument we got. We use all the common list separators. | |
8161 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8162 | for pkg in $enableval; do | |
8163 | IFS="$lt_save_ifs" | |
8164 | if test "X$pkg" = "X$p"; then | |
8165 | enable_fast_install=yes | |
8166 | fi | |
8167 | done | |
8168 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
8169 | ;; |
8170 | esac | |
b214d478 SE |
8171 | else |
8172 | enable_fast_install=yes | |
81ecdfbb RW |
8173 | fi |
8174 | ||
ce2cded5 | 8175 | |
ce2cded5 L |
8176 | |
8177 | ||
ce2cded5 | 8178 | |
42ecbf5e | 8179 | |
d7040cdb | 8180 | |
d7040cdb | 8181 | |
d7040cdb | 8182 | |
d7040cdb | 8183 | |
d7040cdb | 8184 | |
ce2cded5 L |
8185 | # This can be used to rebuild libtool when needed |
8186 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 8187 | |
ce2cded5 L |
8188 | # Always use our own libtool. |
8189 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 8190 | |
d7040cdb | 8191 | |
d7040cdb | 8192 | |
d7040cdb | 8193 | |
d7040cdb | 8194 | |
d7040cdb | 8195 | |
d7040cdb | 8196 | |
d7040cdb | 8197 | |
d7040cdb | 8198 | |
d7040cdb | 8199 | |
d7040cdb | 8200 | |
d7040cdb | 8201 | |
d7040cdb | 8202 | |
d7040cdb | 8203 | |
d7040cdb | 8204 | |
d7040cdb | 8205 | |
d7040cdb SE |
8206 | |
8207 | ||
8208 | ||
8209 | ||
8210 | ||
8211 | ||
8212 | ||
8213 | ||
8214 | ||
ce2cded5 | 8215 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
8216 | |
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
d7040cdb SE |
8222 | |
8223 | ||
8224 | ||
8225 | ||
8226 | ||
8227 | ||
8228 | ||
8229 | ||
ce2cded5 L |
8230 | if test -n "${ZSH_VERSION+set}" ; then |
8231 | setopt NO_GLOB_SUBST | |
8232 | fi | |
d7040cdb | 8233 | |
81ecdfbb RW |
8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8235 | $as_echo_n "checking for objdir... " >&6; } | |
8236 | if test "${lt_cv_objdir+set}" = set; then : | |
8237 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8238 | else |
8239 | rm -f .libs 2>/dev/null | |
8240 | mkdir .libs 2>/dev/null | |
8241 | if test -d .libs; then | |
8242 | lt_cv_objdir=.libs | |
8243 | else | |
8244 | # MS-DOS does not allow filenames that begin with a dot. | |
8245 | lt_cv_objdir=_libs | |
8246 | fi | |
8247 | rmdir .libs 2>/dev/null | |
8248 | fi | |
81ecdfbb RW |
8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8250 | $as_echo "$lt_cv_objdir" >&6; } | |
ce2cded5 | 8251 | objdir=$lt_cv_objdir |
d7040cdb SE |
8252 | |
8253 | ||
8254 | ||
8255 | ||
8256 | ||
ce2cded5 L |
8257 | cat >>confdefs.h <<_ACEOF |
8258 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8259 | _ACEOF | |
d7040cdb SE |
8260 | |
8261 | ||
8262 | ||
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | ||
8268 | ||
8269 | ||
8270 | ||
8271 | ||
8272 | ||
8273 | ||
8274 | ||
8275 | ||
8276 | ||
ce2cded5 L |
8277 | case $host_os in |
8278 | aix3*) | |
8279 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8280 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8281 | # vanish in a puff of smoke. | |
8282 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8283 | COLLECT_NAMES= | |
8284 | export COLLECT_NAMES | |
8285 | fi | |
8286 | ;; | |
8287 | esac | |
d7040cdb | 8288 | |
ce2cded5 L |
8289 | # Sed substitution that helps us do robust quoting. It backslashifies |
8290 | # metacharacters that are still active within double-quoted strings. | |
8291 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 8292 | |
ce2cded5 L |
8293 | # Same as above, but do not quote variable references. |
8294 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 8295 | |
ce2cded5 L |
8296 | # Sed substitution to delay expansion of an escaped shell variable in a |
8297 | # double_quote_subst'ed string. | |
8298 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 8299 | |
ce2cded5 L |
8300 | # Sed substitution to delay expansion of an escaped single quote. |
8301 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 8302 | |
ce2cded5 L |
8303 | # Sed substitution to avoid accidental globbing in evaled expressions |
8304 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 8305 | |
ce2cded5 L |
8306 | # Global variables: |
8307 | ofile=libtool | |
8308 | can_build_shared=yes | |
d7040cdb | 8309 | |
ce2cded5 L |
8310 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8311 | # which needs '.lib'). | |
8312 | libext=a | |
d7040cdb | 8313 | |
ce2cded5 | 8314 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 8315 | |
ce2cded5 L |
8316 | old_CC="$CC" |
8317 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 8318 | |
ce2cded5 L |
8319 | # Set sane defaults for various variables |
8320 | test -z "$CC" && CC=cc | |
8321 | test -z "$LTCC" && LTCC=$CC | |
8322 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8323 | test -z "$LD" && LD=ld | |
8324 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 8325 | |
ce2cded5 L |
8326 | for cc_temp in $compiler""; do |
8327 | case $cc_temp in | |
8328 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8329 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8330 | \-*) ;; | |
8331 | *) break;; | |
8332 | esac | |
8333 | done | |
8334 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d7040cdb SE |
8335 | |
8336 | ||
ce2cded5 L |
8337 | # Only perform the check for file, if the check method requires it |
8338 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8339 | case $deplibs_check_method in | |
8340 | file_magic*) | |
8341 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8343 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8344 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8345 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8346 | else |
8347 | case $MAGIC_CMD in | |
8348 | [\\/*] | ?:[\\/]*) | |
8349 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8350 | ;; | |
8351 | *) | |
8352 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8353 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8354 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8355 | for ac_dir in $ac_dummy; do | |
8356 | IFS="$lt_save_ifs" | |
8357 | test -z "$ac_dir" && ac_dir=. | |
8358 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8359 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8360 | if test -n "$file_magic_test_file"; then | |
8361 | case $deplibs_check_method in | |
8362 | "file_magic "*) | |
8363 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8364 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8365 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8366 | $EGREP "$file_magic_regex" > /dev/null; then | |
8367 | : | |
8368 | else | |
8369 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8370 | |
ce2cded5 L |
8371 | *** Warning: the command libtool uses to detect shared libraries, |
8372 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8373 | *** The result is that libtool may fail to recognize shared libraries | |
8374 | *** as such. This will affect the creation of libtool libraries that | |
8375 | *** depend on shared libraries, but programs linked with such libtool | |
8376 | *** libraries will work regardless of this problem. Nevertheless, you | |
8377 | *** may want to report the problem to your system manager and/or to | |
8378 | *** bug-libtool@gnu.org | |
d7040cdb | 8379 | |
ce2cded5 L |
8380 | _LT_EOF |
8381 | fi ;; | |
8382 | esac | |
8383 | fi | |
8384 | break | |
8385 | fi | |
8386 | done | |
8387 | IFS="$lt_save_ifs" | |
8388 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8389 | ;; | |
8390 | esac | |
8391 | fi | |
d7040cdb | 8392 | |
ce2cded5 L |
8393 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8394 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8396 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8397 | else |
81ecdfbb RW |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8399 | $as_echo "no" >&6; } | |
ce2cded5 | 8400 | fi |
d7040cdb SE |
8401 | |
8402 | ||
8403 | ||
8404 | ||
8405 | ||
ce2cded5 L |
8406 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8407 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
8408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8409 | $as_echo_n "checking for file... " >&6; } | |
8410 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8411 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8412 | else |
8413 | case $MAGIC_CMD in | |
8414 | [\\/*] | ?:[\\/]*) | |
8415 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8416 | ;; | |
8417 | *) | |
8418 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8419 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8420 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8421 | for ac_dir in $ac_dummy; do | |
8422 | IFS="$lt_save_ifs" | |
8423 | test -z "$ac_dir" && ac_dir=. | |
8424 | if test -f $ac_dir/file; then | |
8425 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8426 | if test -n "$file_magic_test_file"; then | |
8427 | case $deplibs_check_method in | |
8428 | "file_magic "*) | |
8429 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8430 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8431 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8432 | $EGREP "$file_magic_regex" > /dev/null; then | |
8433 | : | |
8434 | else | |
8435 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 8436 | |
ce2cded5 L |
8437 | *** Warning: the command libtool uses to detect shared libraries, |
8438 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8439 | *** The result is that libtool may fail to recognize shared libraries | |
8440 | *** as such. This will affect the creation of libtool libraries that | |
8441 | *** depend on shared libraries, but programs linked with such libtool | |
8442 | *** libraries will work regardless of this problem. Nevertheless, you | |
8443 | *** may want to report the problem to your system manager and/or to | |
8444 | *** bug-libtool@gnu.org | |
d7040cdb | 8445 | |
ce2cded5 L |
8446 | _LT_EOF |
8447 | fi ;; | |
8448 | esac | |
8449 | fi | |
8450 | break | |
8451 | fi | |
8452 | done | |
8453 | IFS="$lt_save_ifs" | |
8454 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8455 | ;; | |
8456 | esac | |
8457 | fi | |
d7040cdb | 8458 | |
ce2cded5 L |
8459 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8460 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
8461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8462 | $as_echo "$MAGIC_CMD" >&6; } | |
ce2cded5 | 8463 | else |
81ecdfbb RW |
8464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8465 | $as_echo "no" >&6; } | |
ce2cded5 | 8466 | fi |
d7040cdb SE |
8467 | |
8468 | ||
ce2cded5 L |
8469 | else |
8470 | MAGIC_CMD=: | |
8471 | fi | |
8472 | fi | |
d7040cdb | 8473 | |
ce2cded5 L |
8474 | fi |
8475 | ;; | |
8476 | esac | |
d7040cdb | 8477 | |
ce2cded5 | 8478 | # Use C for the default configuration in the libtool script |
d7040cdb | 8479 | |
ce2cded5 L |
8480 | lt_save_CC="$CC" |
8481 | ac_ext=c | |
8482 | ac_cpp='$CPP $CPPFLAGS' | |
8483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
8486 | |
8487 | ||
ce2cded5 L |
8488 | # Source file extension for C test sources. |
8489 | ac_ext=c | |
d7040cdb | 8490 | |
ce2cded5 L |
8491 | # Object file extension for compiled C test sources. |
8492 | objext=o | |
8493 | objext=$objext | |
d7040cdb | 8494 | |
ce2cded5 L |
8495 | # Code to be used in simple compile tests |
8496 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 8497 | |
ce2cded5 L |
8498 | # Code to be used in simple link tests |
8499 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
8500 | |
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | ||
ce2cded5 L |
8507 | # If no C compiler was specified, use CC. |
8508 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 8509 | |
ce2cded5 L |
8510 | # If no C compiler flags were specified, use CFLAGS. |
8511 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 8512 | |
ce2cded5 L |
8513 | # Allow CC to be a program name with arguments. |
8514 | compiler=$CC | |
d7040cdb | 8515 | |
ce2cded5 L |
8516 | # Save the default compiler, since it gets overwritten when the other |
8517 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8518 | compiler_DEFAULT=$CC | |
d7040cdb | 8519 | |
ce2cded5 L |
8520 | # save warnings/boilerplate of simple test code |
8521 | ac_outfile=conftest.$ac_objext | |
8522 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8523 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8524 | _lt_compiler_boilerplate=`cat conftest.err` | |
8525 | $RM conftest* | |
d7040cdb | 8526 | |
ce2cded5 L |
8527 | ac_outfile=conftest.$ac_objext |
8528 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8529 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8530 | _lt_linker_boilerplate=`cat conftest.err` | |
b214d478 | 8531 | $RM -r conftest* |
d7040cdb SE |
8532 | |
8533 | ||
ce2cded5 L |
8534 | ## CAVEAT EMPTOR: |
8535 | ## There is no encapsulation within the following macros, do not change | |
8536 | ## the running order or otherwise move them around unless you know exactly | |
8537 | ## what you are doing... | |
8538 | if test -n "$compiler"; then | |
d7040cdb | 8539 | |
ce2cded5 | 8540 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 8541 | |
ce2cded5 L |
8542 | if test "$GCC" = yes; then |
8543 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d7040cdb | 8544 | |
81ecdfbb RW |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8546 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8547 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8548 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8549 | else |
8550 | lt_cv_prog_compiler_rtti_exceptions=no | |
8551 | ac_outfile=conftest.$ac_objext | |
8552 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8553 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8554 | # Insert the option either (1) after the last *FLAGS variable, or | |
8555 | # (2) before a word containing "conftest.", or (3) at the end. | |
8556 | # Note that $ac_compile itself does not contain backslashes and begins | |
8557 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8558 | # The option is referenced via a variable to avoid confusing sed. | |
8559 | lt_compile=`echo "$ac_compile" | $SED \ | |
8560 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8561 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8562 | -e 's:$: $lt_compiler_flag:'` | |
64ac50ac | 8563 | (eval echo "\"\$as_me:8563: $lt_compile\"" >&5) |
ce2cded5 L |
8564 | (eval "$lt_compile" 2>conftest.err) |
8565 | ac_status=$? | |
8566 | cat conftest.err >&5 | |
64ac50ac | 8567 | echo "$as_me:8567: \$? = $ac_status" >&5 |
ce2cded5 L |
8568 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8569 | # The compiler can only warn and ignore the option if not recognized | |
8570 | # So say no if there are warnings other than the usual output. | |
8571 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8572 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8573 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8574 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8575 | fi | |
8576 | fi | |
8577 | $RM conftest* | |
d7040cdb | 8578 | |
ce2cded5 | 8579 | fi |
81ecdfbb RW |
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8581 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb | 8582 | |
ce2cded5 L |
8583 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8584 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8585 | else | |
8586 | : | |
8587 | fi | |
d7040cdb | 8588 | |
ce2cded5 | 8589 | fi |
d7040cdb SE |
8590 | |
8591 | ||
8592 | ||
8593 | ||
8594 | ||
8595 | ||
ce2cded5 L |
8596 | lt_prog_compiler_wl= |
8597 | lt_prog_compiler_pic= | |
8598 | lt_prog_compiler_static= | |
d7040cdb | 8599 | |
81ecdfbb RW |
8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8601 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb | 8602 | |
ce2cded5 L |
8603 | if test "$GCC" = yes; then |
8604 | lt_prog_compiler_wl='-Wl,' | |
8605 | lt_prog_compiler_static='-static' | |
d7040cdb | 8606 | |
ce2cded5 L |
8607 | case $host_os in |
8608 | aix*) | |
8609 | # All AIX code is PIC. | |
8610 | if test "$host_cpu" = ia64; then | |
8611 | # AIX 5 now supports IA64 processor | |
8612 | lt_prog_compiler_static='-Bstatic' | |
8613 | fi | |
8614 | ;; | |
d7040cdb | 8615 | |
ce2cded5 | 8616 | amigaos*) |
b214d478 SE |
8617 | case $host_cpu in |
8618 | powerpc) | |
8619 | # see comment about AmigaOS4 .so support | |
8620 | lt_prog_compiler_pic='-fPIC' | |
8621 | ;; | |
8622 | m68k) | |
8623 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8624 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8625 | # like `-m68040'. | |
8626 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8627 | ;; | |
8628 | esac | |
ce2cded5 | 8629 | ;; |
d7040cdb | 8630 | |
ce2cded5 L |
8631 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8632 | # PIC is the default for these OSes. | |
8633 | ;; | |
d7040cdb | 8634 | |
b214d478 | 8635 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8636 | # This hack is so that the source file can tell whether it is being |
8637 | # built for inclusion in a dll (and should export symbols for example). | |
8638 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8639 | # (--disable-auto-import) libraries | |
8640 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8641 | ;; | |
d7040cdb | 8642 | |
ce2cded5 L |
8643 | darwin* | rhapsody*) |
8644 | # PIC is the default on this platform | |
8645 | # Common symbols not allowed in MH_DYLIB files | |
8646 | lt_prog_compiler_pic='-fno-common' | |
8647 | ;; | |
d7040cdb | 8648 | |
ce2cded5 | 8649 | hpux*) |
b214d478 SE |
8650 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8651 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8652 | # sets the default TLS model and affects inlining. | |
ce2cded5 | 8653 | case $host_cpu in |
b214d478 | 8654 | hppa*64*) |
ce2cded5 L |
8655 | # +Z the default |
8656 | ;; | |
8657 | *) | |
8658 | lt_prog_compiler_pic='-fPIC' | |
8659 | ;; | |
8660 | esac | |
8661 | ;; | |
d7040cdb | 8662 | |
ce2cded5 L |
8663 | interix[3-9]*) |
8664 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8665 | # Instead, we relocate shared libraries at runtime. | |
8666 | ;; | |
d7040cdb | 8667 | |
ce2cded5 L |
8668 | msdosdjgpp*) |
8669 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8670 | # on systems that don't support them. | |
8671 | lt_prog_compiler_can_build_shared=no | |
8672 | enable_shared=no | |
8673 | ;; | |
d7040cdb | 8674 | |
ce2cded5 L |
8675 | *nto* | *qnx*) |
8676 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8677 | # it will coredump. | |
8678 | lt_prog_compiler_pic='-fPIC -shared' | |
8679 | ;; | |
d7040cdb | 8680 | |
ce2cded5 L |
8681 | sysv4*MP*) |
8682 | if test -d /usr/nec; then | |
8683 | lt_prog_compiler_pic=-Kconform_pic | |
8684 | fi | |
8685 | ;; | |
d7040cdb | 8686 | |
ce2cded5 L |
8687 | *) |
8688 | lt_prog_compiler_pic='-fPIC' | |
8689 | ;; | |
8690 | esac | |
8691 | else | |
8692 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8693 | case $host_os in | |
8694 | aix*) | |
8695 | lt_prog_compiler_wl='-Wl,' | |
8696 | if test "$host_cpu" = ia64; then | |
8697 | # AIX 5 now supports IA64 processor | |
8698 | lt_prog_compiler_static='-Bstatic' | |
8699 | else | |
8700 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8701 | fi | |
8702 | ;; | |
d7040cdb | 8703 | |
b214d478 | 8704 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
ce2cded5 L |
8705 | # This hack is so that the source file can tell whether it is being |
8706 | # built for inclusion in a dll (and should export symbols for example). | |
8707 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8708 | ;; | |
d7040cdb | 8709 | |
ce2cded5 L |
8710 | hpux9* | hpux10* | hpux11*) |
8711 | lt_prog_compiler_wl='-Wl,' | |
8712 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8713 | # not for PA HP-UX. | |
8714 | case $host_cpu in | |
8715 | hppa*64*|ia64*) | |
8716 | # +Z the default | |
8717 | ;; | |
8718 | *) | |
8719 | lt_prog_compiler_pic='+Z' | |
8720 | ;; | |
8721 | esac | |
8722 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8723 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8724 | ;; | |
d7040cdb | 8725 | |
ce2cded5 L |
8726 | irix5* | irix6* | nonstopux*) |
8727 | lt_prog_compiler_wl='-Wl,' | |
8728 | # PIC (with -KPIC) is the default. | |
8729 | lt_prog_compiler_static='-non_shared' | |
8730 | ;; | |
d7040cdb | 8731 | |
58e24671 | 8732 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 | 8733 | case $cc_basename in |
b214d478 SE |
8734 | # old Intel for x86_64 which still supported -KPIC. |
8735 | ecc*) | |
ce2cded5 L |
8736 | lt_prog_compiler_wl='-Wl,' |
8737 | lt_prog_compiler_pic='-KPIC' | |
8738 | lt_prog_compiler_static='-static' | |
8739 | ;; | |
b214d478 SE |
8740 | # icc used to be incompatible with GCC. |
8741 | # ICC 10 doesn't accept -KPIC any more. | |
8742 | icc* | ifort*) | |
8743 | lt_prog_compiler_wl='-Wl,' | |
8744 | lt_prog_compiler_pic='-fPIC' | |
8745 | lt_prog_compiler_static='-static' | |
8746 | ;; | |
8747 | # Lahey Fortran 8.1. | |
8748 | lf95*) | |
8749 | lt_prog_compiler_wl='-Wl,' | |
8750 | lt_prog_compiler_pic='--shared' | |
8751 | lt_prog_compiler_static='--static' | |
8752 | ;; | |
ce2cded5 L |
8753 | pgcc* | pgf77* | pgf90* | pgf95*) |
8754 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8755 | # which looks to be a dead project) | |
8756 | lt_prog_compiler_wl='-Wl,' | |
8757 | lt_prog_compiler_pic='-fpic' | |
8758 | lt_prog_compiler_static='-Bstatic' | |
8759 | ;; | |
8760 | ccc*) | |
8761 | lt_prog_compiler_wl='-Wl,' | |
8762 | # All Alpha code is PIC. | |
8763 | lt_prog_compiler_static='-non_shared' | |
8764 | ;; | |
b214d478 SE |
8765 | xl*) |
8766 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8767 | lt_prog_compiler_wl='-Wl,' | |
8768 | lt_prog_compiler_pic='-qpic' | |
8769 | lt_prog_compiler_static='-qstaticlink' | |
8770 | ;; | |
ce2cded5 L |
8771 | *) |
8772 | case `$CC -V 2>&1 | sed 5q` in | |
8773 | *Sun\ C*) | |
8774 | # Sun C 5.9 | |
8775 | lt_prog_compiler_pic='-KPIC' | |
8776 | lt_prog_compiler_static='-Bstatic' | |
8777 | lt_prog_compiler_wl='-Wl,' | |
8778 | ;; | |
8779 | *Sun\ F*) | |
8780 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8781 | lt_prog_compiler_pic='-KPIC' | |
8782 | lt_prog_compiler_static='-Bstatic' | |
8783 | lt_prog_compiler_wl='' | |
8784 | ;; | |
8785 | esac | |
8786 | ;; | |
8787 | esac | |
8788 | ;; | |
d7040cdb | 8789 | |
ce2cded5 L |
8790 | newsos6) |
8791 | lt_prog_compiler_pic='-KPIC' | |
8792 | lt_prog_compiler_static='-Bstatic' | |
8793 | ;; | |
d7040cdb | 8794 | |
ce2cded5 L |
8795 | *nto* | *qnx*) |
8796 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8797 | # it will coredump. | |
8798 | lt_prog_compiler_pic='-fPIC -shared' | |
8799 | ;; | |
d7040cdb | 8800 | |
ce2cded5 L |
8801 | osf3* | osf4* | osf5*) |
8802 | lt_prog_compiler_wl='-Wl,' | |
8803 | # All OSF/1 code is PIC. | |
8804 | lt_prog_compiler_static='-non_shared' | |
8805 | ;; | |
d7040cdb | 8806 | |
ce2cded5 L |
8807 | rdos*) |
8808 | lt_prog_compiler_static='-non_shared' | |
8809 | ;; | |
d7040cdb | 8810 | |
ce2cded5 L |
8811 | solaris*) |
8812 | lt_prog_compiler_pic='-KPIC' | |
8813 | lt_prog_compiler_static='-Bstatic' | |
8814 | case $cc_basename in | |
8815 | f77* | f90* | f95*) | |
8816 | lt_prog_compiler_wl='-Qoption ld ';; | |
8817 | *) | |
8818 | lt_prog_compiler_wl='-Wl,';; | |
8819 | esac | |
8820 | ;; | |
d7040cdb | 8821 | |
ce2cded5 L |
8822 | sunos4*) |
8823 | lt_prog_compiler_wl='-Qoption ld ' | |
8824 | lt_prog_compiler_pic='-PIC' | |
8825 | lt_prog_compiler_static='-Bstatic' | |
8826 | ;; | |
d7040cdb | 8827 | |
ce2cded5 L |
8828 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8829 | lt_prog_compiler_wl='-Wl,' | |
8830 | lt_prog_compiler_pic='-KPIC' | |
8831 | lt_prog_compiler_static='-Bstatic' | |
8832 | ;; | |
d7040cdb | 8833 | |
ce2cded5 L |
8834 | sysv4*MP*) |
8835 | if test -d /usr/nec ;then | |
8836 | lt_prog_compiler_pic='-Kconform_pic' | |
8837 | lt_prog_compiler_static='-Bstatic' | |
8838 | fi | |
8839 | ;; | |
d7040cdb | 8840 | |
ce2cded5 L |
8841 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8842 | lt_prog_compiler_wl='-Wl,' | |
8843 | lt_prog_compiler_pic='-KPIC' | |
8844 | lt_prog_compiler_static='-Bstatic' | |
8845 | ;; | |
d7040cdb | 8846 | |
ce2cded5 L |
8847 | unicos*) |
8848 | lt_prog_compiler_wl='-Wl,' | |
8849 | lt_prog_compiler_can_build_shared=no | |
8850 | ;; | |
d7040cdb | 8851 | |
ce2cded5 L |
8852 | uts4*) |
8853 | lt_prog_compiler_pic='-pic' | |
8854 | lt_prog_compiler_static='-Bstatic' | |
8855 | ;; | |
d7040cdb | 8856 | |
ce2cded5 L |
8857 | *) |
8858 | lt_prog_compiler_can_build_shared=no | |
8859 | ;; | |
8860 | esac | |
8861 | fi | |
d7040cdb | 8862 | |
ce2cded5 L |
8863 | case $host_os in |
8864 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8865 | *djgpp*) | |
8866 | lt_prog_compiler_pic= | |
8867 | ;; | |
8868 | *) | |
8869 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8870 | ;; | |
8871 | esac | |
81ecdfbb RW |
8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8873 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8874 | |
8875 | ||
8876 | ||
8877 | ||
8878 | ||
8879 | ||
ce2cded5 L |
8880 | # |
8881 | # Check to make sure the PIC flag actually works. | |
8882 | # | |
8883 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
8884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8885 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8886 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8887 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8888 | else |
b214d478 | 8889 | lt_cv_prog_compiler_pic_works=no |
ce2cded5 L |
8890 | ac_outfile=conftest.$ac_objext |
8891 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8892 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8893 | # Insert the option either (1) after the last *FLAGS variable, or | |
8894 | # (2) before a word containing "conftest.", or (3) at the end. | |
8895 | # Note that $ac_compile itself does not contain backslashes and begins | |
8896 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8897 | # The option is referenced via a variable to avoid confusing sed. | |
8898 | lt_compile=`echo "$ac_compile" | $SED \ | |
8899 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8900 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8901 | -e 's:$: $lt_compiler_flag:'` | |
64ac50ac | 8902 | (eval echo "\"\$as_me:8902: $lt_compile\"" >&5) |
ce2cded5 L |
8903 | (eval "$lt_compile" 2>conftest.err) |
8904 | ac_status=$? | |
8905 | cat conftest.err >&5 | |
64ac50ac | 8906 | echo "$as_me:8906: \$? = $ac_status" >&5 |
ce2cded5 L |
8907 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8908 | # The compiler can only warn and ignore the option if not recognized | |
8909 | # So say no if there are warnings other than the usual output. | |
8910 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8911 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8912 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 8913 | lt_cv_prog_compiler_pic_works=yes |
ce2cded5 L |
8914 | fi |
8915 | fi | |
8916 | $RM conftest* | |
d7040cdb | 8917 | |
ce2cded5 | 8918 | fi |
81ecdfbb RW |
8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8920 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
ce2cded5 | 8921 | |
b214d478 | 8922 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
ce2cded5 L |
8923 | case $lt_prog_compiler_pic in |
8924 | "" | " "*) ;; | |
8925 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8926 | esac | |
8927 | else | |
8928 | lt_prog_compiler_pic= | |
8929 | lt_prog_compiler_can_build_shared=no | |
8930 | fi | |
8931 | ||
8932 | fi | |
d7040cdb SE |
8933 | |
8934 | ||
8935 | ||
8936 | ||
8937 | ||
8938 | ||
ce2cded5 L |
8939 | # |
8940 | # Check to make sure the static flag actually works. | |
8941 | # | |
8942 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8944 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8945 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8946 | $as_echo_n "(cached) " >&6 | |
ce2cded5 | 8947 | else |
b214d478 | 8948 | lt_cv_prog_compiler_static_works=no |
ce2cded5 L |
8949 | save_LDFLAGS="$LDFLAGS" |
8950 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8951 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8952 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8953 | # The linker can only warn and ignore the option if not recognized | |
8954 | # So say no if there are warnings | |
8955 | if test -s conftest.err; then | |
8956 | # Append any errors to the config.log. | |
8957 | cat conftest.err 1>&5 | |
8958 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8959 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8960 | if diff conftest.exp conftest.er2 >/dev/null; then | |
b214d478 | 8961 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8962 | fi |
8963 | else | |
b214d478 | 8964 | lt_cv_prog_compiler_static_works=yes |
ce2cded5 L |
8965 | fi |
8966 | fi | |
b214d478 | 8967 | $RM -r conftest* |
ce2cded5 | 8968 | LDFLAGS="$save_LDFLAGS" |
d7040cdb | 8969 | |
ce2cded5 | 8970 | fi |
81ecdfbb RW |
8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8972 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8973 | |
b214d478 | 8974 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
ce2cded5 L |
8975 | : |
8976 | else | |
8977 | lt_prog_compiler_static= | |
8978 | fi | |
d7040cdb SE |
8979 | |
8980 | ||
8981 | ||
8982 | ||
8983 | ||
8984 | ||
8985 | ||
81ecdfbb RW |
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8987 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8988 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8989 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
8990 | else |
8991 | lt_cv_prog_compiler_c_o=no | |
8992 | $RM -r conftest 2>/dev/null | |
8993 | mkdir conftest | |
8994 | cd conftest | |
8995 | mkdir out | |
8996 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8997 | |
ce2cded5 L |
8998 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8999 | # Insert the option either (1) after the last *FLAGS variable, or | |
9000 | # (2) before a word containing "conftest.", or (3) at the end. | |
9001 | # Note that $ac_compile itself does not contain backslashes and begins | |
9002 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9003 | lt_compile=`echo "$ac_compile" | $SED \ | |
9004 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9005 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9006 | -e 's:$: $lt_compiler_flag:'` | |
64ac50ac | 9007 | (eval echo "\"\$as_me:9007: $lt_compile\"" >&5) |
ce2cded5 L |
9008 | (eval "$lt_compile" 2>out/conftest.err) |
9009 | ac_status=$? | |
9010 | cat out/conftest.err >&5 | |
64ac50ac | 9011 | echo "$as_me:9011: \$? = $ac_status" >&5 |
ce2cded5 L |
9012 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9013 | then | |
9014 | # The compiler can only warn and ignore the option if not recognized | |
9015 | # So say no if there are warnings | |
9016 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9017 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9018 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9019 | lt_cv_prog_compiler_c_o=yes | |
9020 | fi | |
9021 | fi | |
9022 | chmod u+w . 2>&5 | |
9023 | $RM conftest* | |
9024 | # SGI C++ compiler will create directory out/ii_files/ for | |
9025 | # template instantiation | |
9026 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9027 | $RM out/* && rmdir out | |
9028 | cd .. | |
9029 | $RM -r conftest | |
9030 | $RM conftest* | |
d7040cdb | 9031 | |
ce2cded5 | 9032 | fi |
81ecdfbb RW |
9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9034 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
9035 | |
9036 | ||
9037 | ||
9038 | ||
9039 | ||
9040 | ||
81ecdfbb RW |
9041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9042 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9043 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9044 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
9045 | else |
9046 | lt_cv_prog_compiler_c_o=no | |
9047 | $RM -r conftest 2>/dev/null | |
9048 | mkdir conftest | |
9049 | cd conftest | |
9050 | mkdir out | |
9051 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9052 | |
ce2cded5 L |
9053 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9054 | # Insert the option either (1) after the last *FLAGS variable, or | |
9055 | # (2) before a word containing "conftest.", or (3) at the end. | |
9056 | # Note that $ac_compile itself does not contain backslashes and begins | |
9057 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9058 | lt_compile=`echo "$ac_compile" | $SED \ | |
9059 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9060 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9061 | -e 's:$: $lt_compiler_flag:'` | |
64ac50ac | 9062 | (eval echo "\"\$as_me:9062: $lt_compile\"" >&5) |
ce2cded5 L |
9063 | (eval "$lt_compile" 2>out/conftest.err) |
9064 | ac_status=$? | |
9065 | cat out/conftest.err >&5 | |
64ac50ac | 9066 | echo "$as_me:9066: \$? = $ac_status" >&5 |
ce2cded5 L |
9067 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9068 | then | |
9069 | # The compiler can only warn and ignore the option if not recognized | |
9070 | # So say no if there are warnings | |
9071 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9072 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9073 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9074 | lt_cv_prog_compiler_c_o=yes | |
9075 | fi | |
9076 | fi | |
9077 | chmod u+w . 2>&5 | |
9078 | $RM conftest* | |
9079 | # SGI C++ compiler will create directory out/ii_files/ for | |
9080 | # template instantiation | |
9081 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9082 | $RM out/* && rmdir out | |
9083 | cd .. | |
9084 | $RM -r conftest | |
9085 | $RM conftest* | |
9086 | ||
9087 | fi | |
81ecdfbb RW |
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9089 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ce2cded5 L |
9090 | |
9091 | ||
9092 | ||
9093 | ||
9094 | hard_links="nottested" | |
9095 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9096 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
9097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9098 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
ce2cded5 L |
9099 | hard_links=yes |
9100 | $RM conftest* | |
9101 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9102 | touch conftest.a | |
9103 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9104 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9106 | $as_echo "$hard_links" >&6; } | |
ce2cded5 | 9107 | if test "$hard_links" = no; then |
81ecdfbb RW |
9108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
9109 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
ce2cded5 | 9110 | need_locks=warn |
d7040cdb | 9111 | fi |
d7040cdb | 9112 | else |
ce2cded5 | 9113 | need_locks=no |
d7040cdb | 9114 | fi |
d7040cdb | 9115 | |
d7040cdb | 9116 | |
d7040cdb | 9117 | |
d7040cdb | 9118 | |
d7040cdb | 9119 | |
d7040cdb | 9120 | |
81ecdfbb RW |
9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9122 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb | 9123 | |
ce2cded5 L |
9124 | runpath_var= |
9125 | allow_undefined_flag= | |
9126 | always_export_symbols=no | |
9127 | archive_cmds= | |
9128 | archive_expsym_cmds= | |
9129 | compiler_needs_object=no | |
9130 | enable_shared_with_static_runtimes=no | |
9131 | export_dynamic_flag_spec= | |
9132 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9133 | hardcode_automatic=no | |
9134 | hardcode_direct=no | |
9135 | hardcode_direct_absolute=no | |
9136 | hardcode_libdir_flag_spec= | |
9137 | hardcode_libdir_flag_spec_ld= | |
9138 | hardcode_libdir_separator= | |
9139 | hardcode_minus_L=no | |
9140 | hardcode_shlibpath_var=unsupported | |
9141 | inherit_rpath=no | |
9142 | link_all_deplibs=unknown | |
9143 | module_cmds= | |
9144 | module_expsym_cmds= | |
9145 | old_archive_from_new_cmds= | |
9146 | old_archive_from_expsyms_cmds= | |
9147 | thread_safe_flag_spec= | |
9148 | whole_archive_flag_spec= | |
9149 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9150 | # included in the symbol list | |
9151 | include_expsyms= | |
9152 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9153 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9154 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9155 | # as well as any symbol that contains `d'. | |
b214d478 | 9156 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
ce2cded5 L |
9157 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9158 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9159 | # the symbol is explicitly referenced. Since portable code cannot | |
9160 | # rely on this symbol name, it's probably fine to never include it in | |
9161 | # preloaded symbol tables. | |
b214d478 | 9162 | # Exclude shared library initialization/finalization symbols. |
ce2cded5 | 9163 | extract_expsyms_cmds= |
d7040cdb | 9164 | |
ce2cded5 | 9165 | case $host_os in |
b214d478 | 9166 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9167 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
9168 | # When not using gcc, we currently assume that we are using | |
9169 | # Microsoft Visual C++. | |
9170 | if test "$GCC" != yes; then | |
9171 | with_gnu_ld=no | |
9172 | fi | |
d7040cdb | 9173 | ;; |
ce2cded5 L |
9174 | interix*) |
9175 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9176 | with_gnu_ld=yes | |
9177 | ;; | |
9178 | openbsd*) | |
9179 | with_gnu_ld=no | |
d7040cdb SE |
9180 | ;; |
9181 | esac | |
d7040cdb | 9182 | |
ce2cded5 L |
9183 | ld_shlibs=yes |
9184 | if test "$with_gnu_ld" = yes; then | |
9185 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9186 | wlarc='${wl}' | |
d7040cdb | 9187 | |
ce2cded5 L |
9188 | # Set some defaults for GNU ld with shared library support. These |
9189 | # are reset later if shared libraries are not supported. Putting them | |
9190 | # here allows them to be overridden if necessary. | |
9191 | runpath_var=LD_RUN_PATH | |
9192 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9193 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9194 | # ancient GNU ld didn't support --whole-archive et. al. | |
9195 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9196 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9197 | else | |
9198 | whole_archive_flag_spec= | |
9199 | fi | |
9200 | supports_anon_versioning=no | |
9201 | case `$LD -v 2>&1` in | |
9202 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9203 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9204 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9205 | *\ 2.11.*) ;; # other 2.11 versions | |
9206 | *) supports_anon_versioning=yes ;; | |
9207 | esac | |
d7040cdb | 9208 | |
ce2cded5 L |
9209 | # See if GNU ld supports shared libraries. |
9210 | case $host_os in | |
50e7d84b | 9211 | aix[3-9]*) |
ce2cded5 L |
9212 | # On AIX/PPC, the GNU linker is very broken |
9213 | if test "$host_cpu" != ia64; then | |
9214 | ld_shlibs=no | |
9215 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 9216 | |
ce2cded5 L |
9217 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
9218 | *** to be unable to reliably create shared libraries on AIX. | |
9219 | *** Therefore, libtool is disabling shared libraries support. If you | |
9220 | *** really care for shared libraries, you may want to modify your PATH | |
9221 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 9222 | |
ce2cded5 L |
9223 | _LT_EOF |
9224 | fi | |
d7040cdb | 9225 | ;; |
d7040cdb | 9226 | |
ce2cded5 | 9227 | amigaos*) |
b214d478 SE |
9228 | case $host_cpu in |
9229 | powerpc) | |
9230 | # see comment about AmigaOS4 .so support | |
9231 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9232 | archive_expsym_cmds='' | |
9233 | ;; | |
9234 | m68k) | |
9235 | 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)' | |
9236 | hardcode_libdir_flag_spec='-L$libdir' | |
9237 | hardcode_minus_L=yes | |
9238 | ;; | |
9239 | esac | |
ce2cded5 | 9240 | ;; |
d7040cdb | 9241 | |
ce2cded5 L |
9242 | beos*) |
9243 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9244 | allow_undefined_flag=unsupported | |
9245 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9246 | # support --undefined. This deserves some investigation. FIXME | |
9247 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9248 | else | |
9249 | ld_shlibs=no | |
9250 | fi | |
9251 | ;; | |
d7040cdb | 9252 | |
b214d478 | 9253 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9254 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9255 | # as there is no search path for DLLs. | |
9256 | hardcode_libdir_flag_spec='-L$libdir' | |
9257 | allow_undefined_flag=unsupported | |
9258 | always_export_symbols=no | |
9259 | enable_shared_with_static_runtimes=yes | |
9260 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9261 | ||
9262 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9263 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9264 | # If the export-symbols file already is a .def file (1st line | |
9265 | # is EXPORTS), use it as is; otherwise, prepend... | |
9266 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9267 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 9268 | else |
ce2cded5 L |
9269 | echo EXPORTS > $output_objdir/$soname.def; |
9270 | cat $export_symbols >> $output_objdir/$soname.def; | |
9271 | fi~ | |
9272 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9273 | else | |
9274 | ld_shlibs=no | |
9275 | fi | |
9276 | ;; | |
d7040cdb | 9277 | |
ce2cded5 L |
9278 | interix[3-9]*) |
9279 | hardcode_direct=no | |
9280 | hardcode_shlibpath_var=no | |
9281 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9282 | export_dynamic_flag_spec='${wl}-E' | |
9283 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9284 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9285 | # default) and relocated if they conflict, which is a slow very memory | |
9286 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9287 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9288 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9289 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9290 | 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' | |
9291 | ;; | |
d7040cdb | 9292 | |
58e24671 | 9293 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
9294 | tmp_diet=no |
9295 | if test "$host_os" = linux-dietlibc; then | |
9296 | case $cc_basename in | |
9297 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9298 | esac | |
9299 | fi | |
9300 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9301 | && test "$tmp_diet" = no | |
9302 | then | |
9303 | tmp_addflag= | |
b214d478 | 9304 | tmp_sharedflag='-shared' |
ce2cded5 L |
9305 | case $cc_basename,$host_cpu in |
9306 | pgcc*) # Portland Group C compiler | |
9307 | 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' | |
9308 | tmp_addflag=' $pic_flag' | |
9309 | ;; | |
9310 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
9311 | 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' | |
9312 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9313 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9314 | tmp_addflag=' -i_dynamic' ;; | |
9315 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9316 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9317 | ifc* | ifort*) # Intel Fortran compiler | |
9318 | tmp_addflag=' -nofor_main' ;; | |
b214d478 SE |
9319 | lf95*) # Lahey Fortran 8.1 |
9320 | whole_archive_flag_spec= | |
9321 | tmp_sharedflag='--shared' ;; | |
9322 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9323 | tmp_sharedflag='-qmkshrobj' | |
9324 | tmp_addflag= ;; | |
ce2cded5 L |
9325 | esac |
9326 | case `$CC -V 2>&1 | sed 5q` in | |
9327 | *Sun\ C*) # Sun C 5.9 | |
9328 | 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' | |
9329 | compiler_needs_object=yes | |
9330 | tmp_sharedflag='-G' ;; | |
9331 | *Sun\ F*) # Sun Fortran 8.3 | |
9332 | tmp_sharedflag='-G' ;; | |
ce2cded5 L |
9333 | esac |
9334 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 9335 | |
ce2cded5 L |
9336 | if test "x$supports_anon_versioning" = xyes; then |
9337 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9338 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9339 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9340 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9341 | fi | |
b214d478 SE |
9342 | |
9343 | case $cc_basename in | |
9344 | xlf*) | |
9345 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9346 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9347 | hardcode_libdir_flag_spec= | |
9348 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9349 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9350 | if test "x$supports_anon_versioning" = xyes; then | |
9351 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9352 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9353 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9354 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9355 | fi | |
9356 | ;; | |
9357 | esac | |
ce2cded5 L |
9358 | else |
9359 | ld_shlibs=no | |
9360 | fi | |
9361 | ;; | |
d7040cdb | 9362 | |
ce2cded5 L |
9363 | netbsd*) |
9364 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9365 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9366 | wlarc= | |
9367 | else | |
9368 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9369 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9370 | fi | |
9371 | ;; | |
9372 | ||
9373 | solaris*) | |
9374 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9375 | ld_shlibs=no | |
9376 | cat <<_LT_EOF 1>&2 | |
9377 | ||
9378 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9379 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9380 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9381 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9382 | *** your PATH or compiler configuration so that the native linker is | |
9383 | *** used, and then restart. | |
9384 | ||
9385 | _LT_EOF | |
9386 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9387 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9388 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9389 | else | |
9390 | ld_shlibs=no | |
9391 | fi | |
9392 | ;; | |
9393 | ||
9394 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9395 | case `$LD -v 2>&1` in | |
9396 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9397 | ld_shlibs=no | |
9398 | cat <<_LT_EOF 1>&2 | |
9399 | ||
9400 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9401 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9402 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9403 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9404 | *** your PATH or compiler configuration so that the native linker is | |
9405 | *** used, and then restart. | |
9406 | ||
9407 | _LT_EOF | |
9408 | ;; | |
9409 | *) | |
9410 | # For security reasons, it is highly recommended that you always | |
9411 | # use absolute paths for naming shared libraries, and exclude the | |
9412 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9413 | # requires that you compile everything twice, which is a pain. | |
9414 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9415 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9416 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9417 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9418 | else | |
9419 | ld_shlibs=no | |
9420 | fi | |
9421 | ;; | |
9422 | esac | |
9423 | ;; | |
9424 | ||
9425 | sunos4*) | |
9426 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9427 | wlarc= | |
9428 | hardcode_direct=yes | |
9429 | hardcode_shlibpath_var=no | |
9430 | ;; | |
9431 | ||
9432 | *) | |
9433 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9434 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9435 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9436 | else | |
9437 | ld_shlibs=no | |
9438 | fi | |
9439 | ;; | |
9440 | esac | |
9441 | ||
9442 | if test "$ld_shlibs" = no; then | |
9443 | runpath_var= | |
9444 | hardcode_libdir_flag_spec= | |
9445 | export_dynamic_flag_spec= | |
9446 | whole_archive_flag_spec= | |
9447 | fi | |
9448 | else | |
9449 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9450 | case $host_os in | |
9451 | aix3*) | |
9452 | allow_undefined_flag=unsupported | |
9453 | always_export_symbols=yes | |
9454 | 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' | |
9455 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9456 | # are no directories specified by -L. | |
9457 | hardcode_minus_L=yes | |
9458 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9459 | # Neither direct hardcoding nor static linking is supported with a | |
9460 | # broken collect2. | |
9461 | hardcode_direct=unsupported | |
9462 | fi | |
9463 | ;; | |
9464 | ||
50e7d84b | 9465 | aix[4-9]*) |
ce2cded5 L |
9466 | if test "$host_cpu" = ia64; then |
9467 | # On IA64, the linker does run time linking by default, so we don't | |
9468 | # have to do anything special. | |
9469 | aix_use_runtimelinking=no | |
9470 | exp_sym_flag='-Bexport' | |
9471 | no_entry_flag="" | |
9472 | else | |
9473 | # If we're using GNU nm, then we don't want the "-C" option. | |
9474 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9475 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9476 | 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' | |
9477 | else | |
9478 | 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' | |
9479 | fi | |
9480 | aix_use_runtimelinking=no | |
9481 | ||
9482 | # Test if we are trying to use run time linking or normal | |
9483 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9484 | # need to do runtime linking. | |
50e7d84b | 9485 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
9486 | for ld_flag in $LDFLAGS; do |
9487 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9488 | aix_use_runtimelinking=yes | |
9489 | break | |
9490 | fi | |
9491 | done | |
9492 | ;; | |
9493 | esac | |
9494 | ||
9495 | exp_sym_flag='-bexport' | |
9496 | no_entry_flag='-bnoentry' | |
9497 | fi | |
9498 | ||
9499 | # When large executables or shared objects are built, AIX ld can | |
9500 | # have problems creating the table of contents. If linking a library | |
9501 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9502 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9503 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9504 | ||
9505 | archive_cmds='' | |
9506 | hardcode_direct=yes | |
9507 | hardcode_direct_absolute=yes | |
9508 | hardcode_libdir_separator=':' | |
9509 | link_all_deplibs=yes | |
9510 | file_list_spec='${wl}-f,' | |
9511 | ||
9512 | if test "$GCC" = yes; then | |
9513 | case $host_os in aix4.[012]|aix4.[012].*) | |
9514 | # We only want to do this on AIX 4.2 and lower, the check | |
9515 | # below for broken collect2 doesn't work under 4.3+ | |
9516 | collect2name=`${CC} -print-prog-name=collect2` | |
9517 | if test -f "$collect2name" && | |
9518 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9519 | then | |
9520 | # We have reworked collect2 | |
9521 | : | |
9522 | else | |
9523 | # We have old collect2 | |
9524 | hardcode_direct=unsupported | |
9525 | # It fails to find uninstalled libraries when the uninstalled | |
9526 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9527 | # to unsupported forces relinking | |
9528 | hardcode_minus_L=yes | |
9529 | hardcode_libdir_flag_spec='-L$libdir' | |
9530 | hardcode_libdir_separator= | |
9531 | fi | |
9532 | ;; | |
9533 | esac | |
9534 | shared_flag='-shared' | |
9535 | if test "$aix_use_runtimelinking" = yes; then | |
9536 | shared_flag="$shared_flag "'${wl}-G' | |
9537 | fi | |
9538 | else | |
9539 | # not using gcc | |
9540 | if test "$host_cpu" = ia64; then | |
9541 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9542 | # chokes on -Wl,-G. The following line is correct: | |
9543 | shared_flag='-G' | |
9544 | else | |
9545 | if test "$aix_use_runtimelinking" = yes; then | |
9546 | shared_flag='${wl}-G' | |
9547 | else | |
9548 | shared_flag='${wl}-bM:SRE' | |
9549 | fi | |
9550 | fi | |
9551 | fi | |
9552 | ||
b214d478 | 9553 | export_dynamic_flag_spec='${wl}-bexpall' |
ce2cded5 L |
9554 | # It seems that -bexpall does not export symbols beginning with |
9555 | # underscore (_), so it is better to generate a list of symbols to export. | |
9556 | always_export_symbols=yes | |
9557 | if test "$aix_use_runtimelinking" = yes; then | |
9558 | # Warning - without using the other runtime loading flags (-brtl), | |
9559 | # -berok will link without error, but may produce a broken library. | |
9560 | allow_undefined_flag='-berok' | |
9561 | # Determine the default libpath from the value encoded in an | |
9562 | # empty executable. | |
81ecdfbb | 9563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
9564 | /* end confdefs.h. */ |
9565 | ||
9566 | int | |
9567 | main () | |
9568 | { | |
9569 | ||
9570 | ; | |
9571 | return 0; | |
9572 | } | |
9573 | _ACEOF | |
81ecdfbb | 9574 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9575 | |
ce2cded5 L |
9576 | lt_aix_libpath_sed=' |
9577 | /Import File Strings/,/^$/ { | |
9578 | /^0/ { | |
9579 | s/^0 *\(.*\)$/\1/ | |
9580 | p | |
9581 | } | |
9582 | }' | |
9583 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9584 | # Check for a 64-bit object if we didn't find anything. | |
9585 | if test -z "$aix_libpath"; then | |
9586 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9587 | fi | |
d7040cdb | 9588 | fi |
81ecdfbb RW |
9589 | rm -f core conftest.err conftest.$ac_objext \ |
9590 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9591 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9592 | |
ce2cded5 L |
9593 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9594 | 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" | |
9595 | else | |
9596 | if test "$host_cpu" = ia64; then | |
9597 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9598 | allow_undefined_flag="-z nodefs" | |
9599 | 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" | |
9600 | else | |
9601 | # Determine the default libpath from the value encoded in an | |
9602 | # empty executable. | |
81ecdfbb | 9603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 9604 | /* end confdefs.h. */ |
d7040cdb | 9605 | |
ce2cded5 L |
9606 | int |
9607 | main () | |
9608 | { | |
d7040cdb | 9609 | |
ce2cded5 L |
9610 | ; |
9611 | return 0; | |
9612 | } | |
9613 | _ACEOF | |
81ecdfbb | 9614 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 9615 | |
ce2cded5 L |
9616 | lt_aix_libpath_sed=' |
9617 | /Import File Strings/,/^$/ { | |
9618 | /^0/ { | |
9619 | s/^0 *\(.*\)$/\1/ | |
9620 | p | |
9621 | } | |
9622 | }' | |
9623 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9624 | # Check for a 64-bit object if we didn't find anything. | |
9625 | if test -z "$aix_libpath"; then | |
9626 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9627 | fi | |
ce2cded5 | 9628 | fi |
81ecdfbb RW |
9629 | rm -f core conftest.err conftest.$ac_objext \ |
9630 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 9631 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 9632 | |
ce2cded5 L |
9633 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9634 | # Warning - without using the other run time loading flags, | |
9635 | # -berok will link without error, but may produce a broken library. | |
9636 | no_undefined_flag=' ${wl}-bernotok' | |
9637 | allow_undefined_flag=' ${wl}-berok' | |
9638 | # Exported symbols can be pulled into shared objects from archives | |
9639 | whole_archive_flag_spec='$convenience' | |
9640 | archive_cmds_need_lc=yes | |
9641 | # This is similar to how AIX traditionally builds its shared libraries. | |
9642 | 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' | |
9643 | fi | |
9644 | fi | |
9645 | ;; | |
d7040cdb | 9646 | |
ce2cded5 | 9647 | amigaos*) |
b214d478 SE |
9648 | case $host_cpu in |
9649 | powerpc) | |
9650 | # see comment about AmigaOS4 .so support | |
9651 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9652 | archive_expsym_cmds='' | |
9653 | ;; | |
9654 | m68k) | |
9655 | 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)' | |
9656 | hardcode_libdir_flag_spec='-L$libdir' | |
9657 | hardcode_minus_L=yes | |
9658 | ;; | |
9659 | esac | |
ce2cded5 L |
9660 | ;; |
9661 | ||
9662 | bsdi[45]*) | |
9663 | export_dynamic_flag_spec=-rdynamic | |
9664 | ;; | |
9665 | ||
b214d478 | 9666 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
9667 | # When not using gcc, we currently assume that we are using |
9668 | # Microsoft Visual C++. | |
9669 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9670 | # no search path for DLLs. | |
9671 | hardcode_libdir_flag_spec=' ' | |
9672 | allow_undefined_flag=unsupported | |
9673 | # Tell ltmain to make .lib files, not .a files. | |
9674 | libext=lib | |
9675 | # Tell ltmain to make .dll files, not .so files. | |
9676 | shrext_cmds=".dll" | |
9677 | # FIXME: Setting linknames here is a bad hack. | |
9678 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9679 | # The linker will automatically build a .lib file if we build a DLL. | |
9680 | old_archive_from_new_cmds='true' | |
9681 | # FIXME: Should let the user specify the lib program. | |
9682 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9683 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9684 | enable_shared_with_static_runtimes=yes | |
9685 | ;; | |
9686 | ||
9687 | darwin* | rhapsody*) | |
d7040cdb | 9688 | |
b214d478 SE |
9689 | |
9690 | archive_cmds_need_lc=no | |
9691 | hardcode_direct=no | |
9692 | hardcode_automatic=yes | |
9693 | hardcode_shlibpath_var=unsupported | |
9694 | whole_archive_flag_spec='' | |
9695 | link_all_deplibs=yes | |
9696 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9697 | case $cc_basename in | |
9698 | ifort*) _lt_dar_can_shared=yes ;; | |
9699 | *) _lt_dar_can_shared=$GCC ;; | |
9700 | esac | |
9701 | if test "$_lt_dar_can_shared" = "yes"; then | |
9702 | output_verbose_link_cmd=echo | |
9703 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9704 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9705 | 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}" | |
9706 | 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}" | |
9707 | ||
9708 | else | |
9709 | ld_shlibs=no | |
9710 | fi | |
9711 | ||
ce2cded5 | 9712 | ;; |
d7040cdb | 9713 | |
ce2cded5 L |
9714 | dgux*) |
9715 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9716 | hardcode_libdir_flag_spec='-L$libdir' | |
9717 | hardcode_shlibpath_var=no | |
9718 | ;; | |
d7040cdb | 9719 | |
ce2cded5 L |
9720 | freebsd1*) |
9721 | ld_shlibs=no | |
9722 | ;; | |
d7040cdb | 9723 | |
ce2cded5 L |
9724 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9725 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9726 | # does not break anything, and helps significantly (at the cost of a little | |
9727 | # extra space). | |
9728 | freebsd2.2*) | |
9729 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9730 | hardcode_libdir_flag_spec='-R$libdir' | |
9731 | hardcode_direct=yes | |
9732 | hardcode_shlibpath_var=no | |
d7040cdb | 9733 | ;; |
d7040cdb | 9734 | |
ce2cded5 L |
9735 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9736 | freebsd2*) | |
9737 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9738 | hardcode_direct=yes | |
9739 | hardcode_minus_L=yes | |
9740 | hardcode_shlibpath_var=no | |
9741 | ;; | |
d7040cdb | 9742 | |
ce2cded5 L |
9743 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9744 | freebsd* | dragonfly*) | |
9745 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9746 | hardcode_libdir_flag_spec='-R$libdir' | |
9747 | hardcode_direct=yes | |
9748 | hardcode_shlibpath_var=no | |
9749 | ;; | |
d7040cdb | 9750 | |
ce2cded5 L |
9751 | hpux9*) |
9752 | if test "$GCC" = yes; then | |
9753 | 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' | |
9754 | else | |
9755 | 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' | |
9756 | fi | |
9757 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9758 | hardcode_libdir_separator=: | |
9759 | hardcode_direct=yes | |
d7040cdb | 9760 | |
ce2cded5 L |
9761 | # hardcode_minus_L: Not really in the search PATH, |
9762 | # but as the default location of the library. | |
9763 | hardcode_minus_L=yes | |
9764 | export_dynamic_flag_spec='${wl}-E' | |
9765 | ;; | |
d7040cdb | 9766 | |
ce2cded5 L |
9767 | hpux10*) |
9768 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9769 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9770 | else | |
9771 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9772 | fi | |
9773 | if test "$with_gnu_ld" = no; then | |
9774 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9775 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9776 | hardcode_libdir_separator=: | |
9777 | hardcode_direct=yes | |
9778 | hardcode_direct_absolute=yes | |
9779 | export_dynamic_flag_spec='${wl}-E' | |
9780 | # hardcode_minus_L: Not really in the search PATH, | |
9781 | # but as the default location of the library. | |
9782 | hardcode_minus_L=yes | |
9783 | fi | |
9784 | ;; | |
d7040cdb | 9785 | |
ce2cded5 L |
9786 | hpux11*) |
9787 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9788 | case $host_cpu in | |
9789 | hppa*64*) | |
9790 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9791 | ;; | |
9792 | ia64*) | |
b214d478 | 9793 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
ce2cded5 L |
9794 | ;; |
9795 | *) | |
9796 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9797 | ;; | |
9798 | esac | |
9799 | else | |
9800 | case $host_cpu in | |
9801 | hppa*64*) | |
9802 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9803 | ;; | |
9804 | ia64*) | |
9805 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9806 | ;; | |
9807 | *) | |
9808 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9809 | ;; | |
9810 | esac | |
9811 | fi | |
9812 | if test "$with_gnu_ld" = no; then | |
9813 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9814 | hardcode_libdir_separator=: | |
d7040cdb | 9815 | |
ce2cded5 L |
9816 | case $host_cpu in |
9817 | hppa*64*|ia64*) | |
9818 | hardcode_direct=no | |
9819 | hardcode_shlibpath_var=no | |
9820 | ;; | |
9821 | *) | |
9822 | hardcode_direct=yes | |
9823 | hardcode_direct_absolute=yes | |
9824 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 9825 | |
ce2cded5 L |
9826 | # hardcode_minus_L: Not really in the search PATH, |
9827 | # but as the default location of the library. | |
9828 | hardcode_minus_L=yes | |
9829 | ;; | |
9830 | esac | |
9831 | fi | |
9832 | ;; | |
d7040cdb | 9833 | |
ce2cded5 L |
9834 | irix5* | irix6* | nonstopux*) |
9835 | if test "$GCC" = yes; then | |
9836 | 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' | |
9837 | # Try to use the -exported_symbol ld option, if it does not | |
9838 | # work, assume that -exports_file does not work either and | |
9839 | # implicitly export all symbols. | |
9840 | save_LDFLAGS="$LDFLAGS" | |
9841 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9843 | /* end confdefs.h. */ | |
ce2cded5 L |
9844 | int foo(void) {} |
9845 | _ACEOF | |
81ecdfbb | 9846 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 9847 | 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 | 9848 | |
ce2cded5 | 9849 | fi |
81ecdfbb RW |
9850 | rm -f core conftest.err conftest.$ac_objext \ |
9851 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
9852 | LDFLAGS="$save_LDFLAGS" |
9853 | else | |
9854 | 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' | |
9855 | 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' | |
9856 | fi | |
9857 | archive_cmds_need_lc='no' | |
9858 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9859 | hardcode_libdir_separator=: | |
9860 | inherit_rpath=yes | |
9861 | link_all_deplibs=yes | |
9862 | ;; | |
d7040cdb | 9863 | |
ce2cded5 L |
9864 | netbsd*) |
9865 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9866 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9867 | else | |
9868 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9869 | fi | |
9870 | hardcode_libdir_flag_spec='-R$libdir' | |
9871 | hardcode_direct=yes | |
9872 | hardcode_shlibpath_var=no | |
9873 | ;; | |
d7040cdb | 9874 | |
ce2cded5 L |
9875 | newsos6) |
9876 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9877 | hardcode_direct=yes | |
9878 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9879 | hardcode_libdir_separator=: | |
9880 | hardcode_shlibpath_var=no | |
9881 | ;; | |
d7040cdb | 9882 | |
ce2cded5 L |
9883 | *nto* | *qnx*) |
9884 | ;; | |
d7040cdb | 9885 | |
ce2cded5 | 9886 | openbsd*) |
b214d478 SE |
9887 | if test -f /usr/libexec/ld.so; then |
9888 | hardcode_direct=yes | |
9889 | hardcode_shlibpath_var=no | |
9890 | hardcode_direct_absolute=yes | |
9891 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
ce2cded5 | 9892 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
b214d478 | 9893 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
ce2cded5 | 9894 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
b214d478 SE |
9895 | export_dynamic_flag_spec='${wl}-E' |
9896 | else | |
9897 | case $host_os in | |
9898 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9899 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9900 | hardcode_libdir_flag_spec='-R$libdir' | |
9901 | ;; | |
9902 | *) | |
9903 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9904 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9905 | ;; | |
9906 | esac | |
9907 | fi | |
9908 | else | |
9909 | ld_shlibs=no | |
ce2cded5 L |
9910 | fi |
9911 | ;; | |
d7040cdb | 9912 | |
ce2cded5 L |
9913 | os2*) |
9914 | hardcode_libdir_flag_spec='-L$libdir' | |
9915 | hardcode_minus_L=yes | |
9916 | allow_undefined_flag=unsupported | |
9917 | 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' | |
9918 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9919 | ;; | |
d7040cdb | 9920 | |
ce2cded5 L |
9921 | osf3*) |
9922 | if test "$GCC" = yes; then | |
9923 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9924 | 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' | |
9925 | else | |
9926 | allow_undefined_flag=' -expect_unresolved \*' | |
9927 | 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' | |
9928 | fi | |
9929 | archive_cmds_need_lc='no' | |
9930 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9931 | hardcode_libdir_separator=: | |
9932 | ;; | |
d7040cdb | 9933 | |
ce2cded5 L |
9934 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9935 | if test "$GCC" = yes; then | |
9936 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9937 | 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' | |
9938 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9939 | else | |
9940 | allow_undefined_flag=' -expect_unresolved \*' | |
9941 | 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' | |
9942 | 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~ | |
9943 | $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 | 9944 | |
ce2cded5 L |
9945 | # Both c and cxx compiler support -rpath directly |
9946 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9947 | fi | |
9948 | archive_cmds_need_lc='no' | |
9949 | hardcode_libdir_separator=: | |
9950 | ;; | |
d7040cdb | 9951 | |
ce2cded5 L |
9952 | solaris*) |
9953 | no_undefined_flag=' -z defs' | |
9954 | if test "$GCC" = yes; then | |
9955 | wlarc='${wl}' | |
9956 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9957 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9958 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9959 | else | |
9960 | case `$CC -V 2>&1` in | |
9961 | *"Compilers 5.0"*) | |
9962 | wlarc='' | |
9963 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9964 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9965 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9966 | ;; | |
9967 | *) | |
9968 | wlarc='${wl}' | |
9969 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9970 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9971 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9972 | ;; | |
9973 | esac | |
9974 | fi | |
9975 | hardcode_libdir_flag_spec='-R$libdir' | |
9976 | hardcode_shlibpath_var=no | |
9977 | case $host_os in | |
9978 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9979 | *) | |
9980 | # The compiler driver will combine and reorder linker options, | |
9981 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9982 | # but is careful enough not to reorder. | |
9983 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9984 | if test "$GCC" = yes; then | |
9985 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9986 | else | |
9987 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9988 | fi | |
9989 | ;; | |
9990 | esac | |
9991 | link_all_deplibs=yes | |
9992 | ;; | |
d7040cdb | 9993 | |
ce2cded5 L |
9994 | sunos4*) |
9995 | if test "x$host_vendor" = xsequent; then | |
9996 | # Use $CC to link under sequent, because it throws in some extra .o | |
9997 | # files that make .init and .fini sections work. | |
9998 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9999 | else | |
10000 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10001 | fi | |
10002 | hardcode_libdir_flag_spec='-L$libdir' | |
10003 | hardcode_direct=yes | |
10004 | hardcode_minus_L=yes | |
10005 | hardcode_shlibpath_var=no | |
10006 | ;; | |
d7040cdb | 10007 | |
ce2cded5 L |
10008 | sysv4) |
10009 | case $host_vendor in | |
10010 | sni) | |
10011 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10012 | hardcode_direct=yes # is this really true??? | |
10013 | ;; | |
10014 | siemens) | |
10015 | ## LD is ld it makes a PLAMLIB | |
10016 | ## CC just makes a GrossModule. | |
10017 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10018 | reload_cmds='$CC -r -o $output$reload_objs' | |
10019 | hardcode_direct=no | |
10020 | ;; | |
10021 | motorola) | |
10022 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10023 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10024 | ;; | |
10025 | esac | |
10026 | runpath_var='LD_RUN_PATH' | |
10027 | hardcode_shlibpath_var=no | |
10028 | ;; | |
d7040cdb | 10029 | |
ce2cded5 L |
10030 | sysv4.3*) |
10031 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10032 | hardcode_shlibpath_var=no | |
10033 | export_dynamic_flag_spec='-Bexport' | |
10034 | ;; | |
d7040cdb | 10035 | |
ce2cded5 L |
10036 | sysv4*MP*) |
10037 | if test -d /usr/nec; then | |
10038 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10039 | hardcode_shlibpath_var=no | |
10040 | runpath_var=LD_RUN_PATH | |
10041 | hardcode_runpath_var=yes | |
10042 | ld_shlibs=yes | |
10043 | fi | |
10044 | ;; | |
d7040cdb | 10045 | |
ce2cded5 L |
10046 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10047 | no_undefined_flag='${wl}-z,text' | |
10048 | archive_cmds_need_lc=no | |
10049 | hardcode_shlibpath_var=no | |
10050 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10051 | |
ce2cded5 L |
10052 | if test "$GCC" = yes; then |
10053 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10054 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10055 | else | |
10056 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10057 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10058 | fi | |
10059 | ;; | |
d7040cdb | 10060 | |
ce2cded5 L |
10061 | sysv5* | sco3.2v5* | sco5v6*) |
10062 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10063 | # link with -lc, and that would cause any symbols used from libc to | |
10064 | # always be unresolved, which means just about no library would | |
10065 | # ever link correctly. If we're not using GNU ld we use -z text | |
10066 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10067 | # as -z defs. | |
10068 | no_undefined_flag='${wl}-z,text' | |
10069 | allow_undefined_flag='${wl}-z,nodefs' | |
10070 | archive_cmds_need_lc=no | |
10071 | hardcode_shlibpath_var=no | |
10072 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10073 | hardcode_libdir_separator=':' | |
10074 | link_all_deplibs=yes | |
10075 | export_dynamic_flag_spec='${wl}-Bexport' | |
10076 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 10077 | |
ce2cded5 L |
10078 | if test "$GCC" = yes; then |
10079 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10080 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10081 | else | |
10082 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10083 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10084 | fi | |
10085 | ;; | |
d7040cdb | 10086 | |
ce2cded5 L |
10087 | uts4*) |
10088 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10089 | hardcode_libdir_flag_spec='-L$libdir' | |
10090 | hardcode_shlibpath_var=no | |
10091 | ;; | |
d7040cdb | 10092 | |
ce2cded5 L |
10093 | *) |
10094 | ld_shlibs=no | |
10095 | ;; | |
10096 | esac | |
d7040cdb | 10097 | |
ce2cded5 L |
10098 | if test x$host_vendor = xsni; then |
10099 | case $host in | |
10100 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10101 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10102 | ;; | |
10103 | esac | |
10104 | fi | |
10105 | fi | |
d7040cdb | 10106 | |
81ecdfbb RW |
10107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10108 | $as_echo "$ld_shlibs" >&6; } | |
ce2cded5 | 10109 | test "$ld_shlibs" = no && can_build_shared=no |
d7040cdb | 10110 | |
ce2cded5 | 10111 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
10112 | |
10113 | ||
10114 | ||
10115 | ||
10116 | ||
10117 | ||
10118 | ||
10119 | ||
10120 | ||
10121 | ||
10122 | ||
10123 | ||
10124 | ||
10125 | ||
10126 | ||
ce2cded5 L |
10127 | # |
10128 | # Do we need to explicitly link libc? | |
10129 | # | |
10130 | case "x$archive_cmds_need_lc" in | |
10131 | x|xyes) | |
10132 | # Assume -lc should be added | |
10133 | archive_cmds_need_lc=yes | |
d7040cdb | 10134 | |
ce2cded5 L |
10135 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10136 | case $archive_cmds in | |
10137 | *'~'*) | |
10138 | # FIXME: we may have to deal with multi-command sequences. | |
10139 | ;; | |
10140 | '$CC '*) | |
10141 | # Test whether the compiler implicitly links with -lc since on some | |
10142 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10143 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10145 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10146 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10147 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10148 | else |
10149 | $RM conftest* | |
10150 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 10151 | |
81ecdfbb | 10152 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
ce2cded5 L |
10153 | (eval $ac_compile) 2>&5 |
10154 | ac_status=$? | |
81ecdfbb RW |
10155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10156 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
10157 | soname=conftest |
10158 | lib=conftest | |
10159 | libobjs=conftest.$ac_objext | |
10160 | deplibs= | |
10161 | wl=$lt_prog_compiler_wl | |
10162 | pic_flag=$lt_prog_compiler_pic | |
10163 | compiler_flags=-v | |
10164 | linker_flags=-v | |
10165 | verstring= | |
10166 | output_objdir=. | |
10167 | libname=conftest | |
10168 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10169 | allow_undefined_flag= | |
81ecdfbb | 10170 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
ce2cded5 L |
10171 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10172 | ac_status=$? | |
81ecdfbb RW |
10173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10174 | test $ac_status = 0; } | |
39144654 RW |
10175 | then |
10176 | lt_cv_archive_cmds_need_lc=no | |
10177 | else | |
10178 | lt_cv_archive_cmds_need_lc=yes | |
10179 | fi | |
10180 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10181 | else | |
10182 | cat conftest.err 1>&5 | |
10183 | fi | |
10184 | $RM conftest* | |
10185 | ||
10186 | fi | |
81ecdfbb RW |
10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10188 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 10189 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
ce2cded5 L |
10190 | ;; |
10191 | esac | |
10192 | fi | |
10193 | ;; | |
10194 | esac | |
d7040cdb SE |
10195 | |
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
d7040cdb | 10222 | |
d7040cdb | 10223 | |
d7040cdb SE |
10224 | |
10225 | ||
10226 | ||
10227 | ||
10228 | ||
10229 | ||
d7040cdb | 10230 | |
d7040cdb | 10231 | |
d7040cdb | 10232 | |
d7040cdb | 10233 | |
d7040cdb | 10234 | |
d7040cdb | 10235 | |
d7040cdb | 10236 | |
d7040cdb | 10237 | |
d7040cdb | 10238 | |
d7040cdb | 10239 | |
d7040cdb | 10240 | |
d7040cdb | 10241 | |
d7040cdb | 10242 | |
d7040cdb | 10243 | |
d7040cdb | 10244 | |
d7040cdb | 10245 | |
d7040cdb | 10246 | |
d7040cdb | 10247 | |
d7040cdb | 10248 | |
d7040cdb | 10249 | |
d7040cdb | 10250 | |
d7040cdb | 10251 | |
d7040cdb | 10252 | |
d7040cdb | 10253 | |
d7040cdb | 10254 | |
d7040cdb | 10255 | |
d7040cdb | 10256 | |
d7040cdb | 10257 | |
ce2cded5 L |
10258 | |
10259 | ||
10260 | ||
10261 | ||
10262 | ||
10263 | ||
10264 | ||
10265 | ||
10266 | ||
10267 | ||
10268 | ||
10269 | ||
10270 | ||
10271 | ||
10272 | ||
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | ||
10323 | ||
10324 | ||
10325 | ||
10326 | ||
10327 | ||
10328 | ||
10329 | ||
10330 | ||
10331 | ||
10332 | ||
10333 | ||
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | ||
81ecdfbb RW |
10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10353 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
b214d478 SE |
10354 | |
10355 | if test "$GCC" = yes; then | |
ce2cded5 L |
10356 | case $host_os in |
10357 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10358 | *) lt_awk_arg="/^libraries:/" ;; | |
10359 | esac | |
10360 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10361 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
10362 | # if the path contains ";" then we assume it to be the separator | |
10363 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10364 | # assumed that no part of a normal pathname contains ";" but that should | |
10365 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10366 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10367 | else | |
10368 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10369 | fi | |
10370 | # Ok, now we have the path, separated by spaces, we can step through it | |
10371 | # and add multilib dir if necessary. | |
10372 | lt_tmp_lt_search_path_spec= | |
10373 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10374 | for lt_sys_path in $lt_search_path_spec; do | |
10375 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10376 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10377 | else | |
10378 | test -d "$lt_sys_path" && \ | |
10379 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10380 | fi | |
10381 | done | |
10382 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
10383 | BEGIN {RS=" "; FS="/|\n";} { | |
10384 | lt_foo=""; | |
10385 | lt_count=0; | |
10386 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10387 | if ($lt_i != "" && $lt_i != ".") { | |
10388 | if ($lt_i == "..") { | |
10389 | lt_count++; | |
10390 | } else { | |
10391 | if (lt_count == 0) { | |
10392 | lt_foo="/" $lt_i lt_foo; | |
10393 | } else { | |
10394 | lt_count--; | |
10395 | } | |
10396 | } | |
10397 | } | |
10398 | } | |
10399 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10400 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10401 | }'` | |
10402 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
d7040cdb | 10403 | else |
ce2cded5 L |
10404 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10405 | fi | |
10406 | library_names_spec= | |
10407 | libname_spec='lib$name' | |
10408 | soname_spec= | |
10409 | shrext_cmds=".so" | |
10410 | postinstall_cmds= | |
10411 | postuninstall_cmds= | |
10412 | finish_cmds= | |
10413 | finish_eval= | |
10414 | shlibpath_var= | |
10415 | shlibpath_overrides_runpath=unknown | |
10416 | version_type=none | |
10417 | dynamic_linker="$host_os ld.so" | |
10418 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10419 | need_lib_prefix=unknown | |
10420 | hardcode_into_libs=no | |
10421 | ||
10422 | # when you set need_version to no, make sure it does not cause -set_version | |
10423 | # flags to be left without arguments | |
10424 | need_version=unknown | |
10425 | ||
10426 | case $host_os in | |
10427 | aix3*) | |
10428 | version_type=linux | |
10429 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10430 | shlibpath_var=LIBPATH | |
10431 | ||
10432 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10433 | soname_spec='${libname}${release}${shared_ext}$major' | |
10434 | ;; | |
10435 | ||
50e7d84b | 10436 | aix[4-9]*) |
ce2cded5 L |
10437 | version_type=linux |
10438 | need_lib_prefix=no | |
10439 | need_version=no | |
10440 | hardcode_into_libs=yes | |
10441 | if test "$host_cpu" = ia64; then | |
10442 | # AIX 5 supports IA64 | |
10443 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10444 | shlibpath_var=LD_LIBRARY_PATH | |
10445 | else | |
10446 | # With GCC up to 2.95.x, collect2 would create an import file | |
10447 | # for dependence libraries. The import file would start with | |
10448 | # the line `#! .'. This would cause the generated library to | |
10449 | # depend on `.', always an invalid library. This was fixed in | |
10450 | # development snapshots of GCC prior to 3.0. | |
10451 | case $host_os in | |
10452 | aix4 | aix4.[01] | aix4.[01].*) | |
10453 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10454 | echo ' yes ' | |
10455 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10456 | : | |
10457 | else | |
10458 | can_build_shared=no | |
10459 | fi | |
10460 | ;; | |
10461 | esac | |
10462 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10463 | # soname into executable. Probably we can add versioning support to | |
10464 | # collect2, so additional links can be useful in future. | |
10465 | if test "$aix_use_runtimelinking" = yes; then | |
10466 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10467 | # instead of lib<name>.a to let people know that these are not | |
10468 | # typical AIX shared libraries. | |
10469 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10470 | else | |
10471 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10472 | # and later when we are not doing run time linking. | |
10473 | library_names_spec='${libname}${release}.a $libname.a' | |
10474 | soname_spec='${libname}${release}${shared_ext}$major' | |
10475 | fi | |
10476 | shlibpath_var=LIBPATH | |
10477 | fi | |
10478 | ;; | |
10479 | ||
10480 | amigaos*) | |
b214d478 SE |
10481 | case $host_cpu in |
10482 | powerpc) | |
10483 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10484 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10486 | ;; | |
10487 | m68k) | |
ce2cded5 L |
10488 | library_names_spec='$libname.ixlibrary $libname.a' |
10489 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10490 | 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' | |
b214d478 SE |
10491 | ;; |
10492 | esac | |
ce2cded5 L |
10493 | ;; |
10494 | ||
10495 | beos*) | |
10496 | library_names_spec='${libname}${shared_ext}' | |
10497 | dynamic_linker="$host_os ld.so" | |
10498 | shlibpath_var=LIBRARY_PATH | |
10499 | ;; | |
10500 | ||
10501 | bsdi[45]*) | |
10502 | version_type=linux | |
10503 | need_version=no | |
10504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10505 | soname_spec='${libname}${release}${shared_ext}$major' | |
10506 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10507 | shlibpath_var=LD_LIBRARY_PATH | |
10508 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10509 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10510 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10511 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10512 | # libtool to hard-code these into programs | |
10513 | ;; | |
10514 | ||
b214d478 | 10515 | cygwin* | mingw* | pw32* | cegcc*) |
ce2cded5 L |
10516 | version_type=windows |
10517 | shrext_cmds=".dll" | |
10518 | need_version=no | |
10519 | need_lib_prefix=no | |
10520 | ||
b214d478 SE |
10521 | case $GCC,$host_os in |
10522 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
ce2cded5 L |
10523 | library_names_spec='$libname.dll.a' |
10524 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10525 | postinstall_cmds='base_file=`basename \${file}`~ | |
10526 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10527 | dldir=$destdir/`dirname \$dlpath`~ | |
10528 | test -d \$dldir || mkdir -p \$dldir~ | |
10529 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10530 | chmod a+x \$dldir/$dlname~ | |
10531 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10532 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10533 | fi' | |
10534 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10535 | dlpath=$dir/\$dldll~ | |
10536 | $RM \$dlpath' | |
10537 | shlibpath_overrides_runpath=yes | |
10538 | ||
10539 | case $host_os in | |
10540 | cygwin*) | |
10541 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10542 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10543 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10544 | ;; | |
b214d478 | 10545 | mingw* | cegcc*) |
ce2cded5 L |
10546 | # MinGW DLLs use traditional 'lib' prefix |
10547 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10548 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10549 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10550 | # It is most probably a Windows format PATH printed by | |
10551 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10552 | # path with ; separators, and with drive letters. We can handle the | |
10553 | # drive letters (cygwin fileutils understands them), so leave them, | |
10554 | # especially as we might pass files found there to a mingw objdump, | |
10555 | # which wouldn't understand a cygwinified path. Ahh. | |
10556 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10557 | else | |
10558 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10559 | fi | |
10560 | ;; | |
10561 | pw32*) | |
10562 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10563 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10564 | ;; | |
10565 | esac | |
10566 | ;; | |
10567 | ||
10568 | *) | |
10569 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10570 | ;; | |
10571 | esac | |
10572 | dynamic_linker='Win32 ld.exe' | |
10573 | # FIXME: first we should search . and the directory the executable is in | |
10574 | shlibpath_var=PATH | |
10575 | ;; | |
10576 | ||
10577 | darwin* | rhapsody*) | |
10578 | dynamic_linker="$host_os dyld" | |
10579 | version_type=darwin | |
10580 | need_lib_prefix=no | |
10581 | need_version=no | |
10582 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10583 | soname_spec='${libname}${release}${major}$shared_ext' | |
10584 | shlibpath_overrides_runpath=yes | |
10585 | shlibpath_var=DYLD_LIBRARY_PATH | |
10586 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10587 | ||
10588 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10589 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10590 | ;; | |
10591 | ||
10592 | dgux*) | |
10593 | version_type=linux | |
10594 | need_lib_prefix=no | |
10595 | need_version=no | |
10596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10597 | soname_spec='${libname}${release}${shared_ext}$major' | |
10598 | shlibpath_var=LD_LIBRARY_PATH | |
10599 | ;; | |
10600 | ||
10601 | freebsd1*) | |
10602 | dynamic_linker=no | |
10603 | ;; | |
10604 | ||
10605 | freebsd* | dragonfly*) | |
10606 | # DragonFly does not have aout. When/if they implement a new | |
10607 | # versioning mechanism, adjust this. | |
10608 | if test -x /usr/bin/objformat; then | |
10609 | objformat=`/usr/bin/objformat` | |
10610 | else | |
10611 | case $host_os in | |
10612 | freebsd[123]*) objformat=aout ;; | |
10613 | *) objformat=elf ;; | |
10614 | esac | |
10615 | fi | |
10616 | version_type=freebsd-$objformat | |
10617 | case $version_type in | |
10618 | freebsd-elf*) | |
10619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10620 | need_version=no | |
10621 | need_lib_prefix=no | |
10622 | ;; | |
10623 | freebsd-*) | |
10624 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10625 | need_version=yes | |
10626 | ;; | |
10627 | esac | |
10628 | shlibpath_var=LD_LIBRARY_PATH | |
10629 | case $host_os in | |
10630 | freebsd2*) | |
10631 | shlibpath_overrides_runpath=yes | |
10632 | ;; | |
10633 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10634 | shlibpath_overrides_runpath=yes | |
10635 | hardcode_into_libs=yes | |
10636 | ;; | |
10637 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10638 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10639 | shlibpath_overrides_runpath=no | |
10640 | hardcode_into_libs=yes | |
10641 | ;; | |
10642 | *) # from 4.6 on, and DragonFly | |
10643 | shlibpath_overrides_runpath=yes | |
10644 | hardcode_into_libs=yes | |
10645 | ;; | |
10646 | esac | |
10647 | ;; | |
10648 | ||
10649 | gnu*) | |
10650 | version_type=linux | |
10651 | need_lib_prefix=no | |
10652 | need_version=no | |
10653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10654 | soname_spec='${libname}${release}${shared_ext}$major' | |
10655 | shlibpath_var=LD_LIBRARY_PATH | |
10656 | hardcode_into_libs=yes | |
10657 | ;; | |
10658 | ||
10659 | hpux9* | hpux10* | hpux11*) | |
10660 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10661 | # link against other versions. | |
10662 | version_type=sunos | |
10663 | need_lib_prefix=no | |
10664 | need_version=no | |
10665 | case $host_cpu in | |
10666 | ia64*) | |
10667 | shrext_cmds='.so' | |
10668 | hardcode_into_libs=yes | |
10669 | dynamic_linker="$host_os dld.so" | |
10670 | shlibpath_var=LD_LIBRARY_PATH | |
10671 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10673 | soname_spec='${libname}${release}${shared_ext}$major' | |
10674 | if test "X$HPUX_IA64_MODE" = X32; then | |
10675 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10676 | else | |
10677 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10678 | fi | |
10679 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10680 | ;; | |
10681 | hppa*64*) | |
10682 | shrext_cmds='.sl' | |
10683 | hardcode_into_libs=yes | |
10684 | dynamic_linker="$host_os dld.sl" | |
10685 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10686 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10688 | soname_spec='${libname}${release}${shared_ext}$major' | |
10689 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10690 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10691 | ;; | |
10692 | *) | |
10693 | shrext_cmds='.sl' | |
10694 | dynamic_linker="$host_os dld.sl" | |
10695 | shlibpath_var=SHLIB_PATH | |
10696 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10698 | soname_spec='${libname}${release}${shared_ext}$major' | |
10699 | ;; | |
10700 | esac | |
10701 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10702 | postinstall_cmds='chmod 555 $lib' | |
10703 | ;; | |
10704 | ||
10705 | interix[3-9]*) | |
10706 | version_type=linux | |
10707 | need_lib_prefix=no | |
10708 | need_version=no | |
10709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10710 | soname_spec='${libname}${release}${shared_ext}$major' | |
10711 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10712 | shlibpath_var=LD_LIBRARY_PATH | |
10713 | shlibpath_overrides_runpath=no | |
10714 | hardcode_into_libs=yes | |
10715 | ;; | |
10716 | ||
10717 | irix5* | irix6* | nonstopux*) | |
10718 | case $host_os in | |
10719 | nonstopux*) version_type=nonstopux ;; | |
10720 | *) | |
10721 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10722 | version_type=linux | |
10723 | else | |
10724 | version_type=irix | |
10725 | fi ;; | |
10726 | esac | |
10727 | need_lib_prefix=no | |
10728 | need_version=no | |
10729 | soname_spec='${libname}${release}${shared_ext}$major' | |
10730 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10731 | case $host_os in | |
10732 | irix5* | nonstopux*) | |
10733 | libsuff= shlibsuff= | |
10734 | ;; | |
10735 | *) | |
10736 | case $LD in # libtool.m4 will add one of these switches to LD | |
10737 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10738 | libsuff= shlibsuff= libmagic=32-bit;; | |
10739 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10740 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10741 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10742 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10743 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10744 | esac | |
10745 | ;; | |
10746 | esac | |
10747 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10748 | shlibpath_overrides_runpath=no | |
10749 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10750 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10751 | hardcode_into_libs=yes | |
10752 | ;; | |
10753 | ||
10754 | # No shared lib support for Linux oldld, aout, or coff. | |
10755 | linux*oldld* | linux*aout* | linux*coff*) | |
10756 | dynamic_linker=no | |
10757 | ;; | |
10758 | ||
10759 | # This must be Linux ELF. | |
58e24671 | 10760 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
ce2cded5 L |
10761 | version_type=linux |
10762 | need_lib_prefix=no | |
10763 | need_version=no | |
10764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10765 | soname_spec='${libname}${release}${shared_ext}$major' | |
10766 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10767 | shlibpath_var=LD_LIBRARY_PATH | |
10768 | shlibpath_overrides_runpath=no | |
39144654 | 10769 | |
ce2cded5 | 10770 | # Some binutils ld are patched to set DT_RUNPATH |
81ecdfbb RW |
10771 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
10772 | $as_echo_n "(cached) " >&6 | |
39144654 RW |
10773 | else |
10774 | lt_cv_shlibpath_overrides_runpath=no | |
10775 | save_LDFLAGS=$LDFLAGS | |
10776 | save_libdir=$libdir | |
10777 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10778 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10780 | /* end confdefs.h. */ |
10781 | ||
d7040cdb SE |
10782 | int |
10783 | main () | |
10784 | { | |
ce2cded5 | 10785 | |
d7040cdb SE |
10786 | ; |
10787 | return 0; | |
10788 | } | |
10789 | _ACEOF | |
81ecdfbb RW |
10790 | if ac_fn_c_try_link "$LINENO"; then : |
10791 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10792 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 10793 | fi |
d7040cdb | 10794 | fi |
81ecdfbb RW |
10795 | rm -f core conftest.err conftest.$ac_objext \ |
10796 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10797 | LDFLAGS=$save_LDFLAGS |
10798 | libdir=$save_libdir | |
10799 | ||
10800 | fi | |
10801 | ||
10802 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb | 10803 | |
ce2cded5 L |
10804 | # This implies no fast_install, which is unacceptable. |
10805 | # Some rework will be needed to allow for fast_install | |
10806 | # before this can be enabled. | |
10807 | hardcode_into_libs=yes | |
d7040cdb | 10808 | |
ce2cded5 L |
10809 | # Append ld.so.conf contents to the search path |
10810 | if test -f /etc/ld.so.conf; then | |
b214d478 | 10811 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
ce2cded5 L |
10812 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10813 | fi | |
d7040cdb | 10814 | |
ce2cded5 L |
10815 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
10816 | # powerpc, because MkLinux only supported shared libraries with the | |
10817 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10818 | # most powerpc-linux boxes support dynamic linking these days and | |
10819 | # people can always --disable-shared, the test was removed, and we | |
10820 | # assume the GNU/Linux dynamic linker is in use. | |
10821 | dynamic_linker='GNU/Linux ld.so' | |
10822 | ;; | |
d7040cdb | 10823 | |
ce2cded5 L |
10824 | netbsd*) |
10825 | version_type=sunos | |
10826 | need_lib_prefix=no | |
10827 | need_version=no | |
10828 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10830 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10831 | dynamic_linker='NetBSD (a.out) ld.so' | |
10832 | else | |
10833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10834 | soname_spec='${libname}${release}${shared_ext}$major' | |
10835 | dynamic_linker='NetBSD ld.elf_so' | |
10836 | fi | |
10837 | shlibpath_var=LD_LIBRARY_PATH | |
10838 | shlibpath_overrides_runpath=yes | |
10839 | hardcode_into_libs=yes | |
10840 | ;; | |
d7040cdb | 10841 | |
ce2cded5 L |
10842 | newsos6) |
10843 | version_type=linux | |
10844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10845 | shlibpath_var=LD_LIBRARY_PATH | |
10846 | shlibpath_overrides_runpath=yes | |
10847 | ;; | |
d7040cdb | 10848 | |
ce2cded5 L |
10849 | *nto* | *qnx*) |
10850 | version_type=qnx | |
10851 | need_lib_prefix=no | |
10852 | need_version=no | |
10853 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10854 | soname_spec='${libname}${release}${shared_ext}$major' | |
10855 | shlibpath_var=LD_LIBRARY_PATH | |
10856 | shlibpath_overrides_runpath=no | |
10857 | hardcode_into_libs=yes | |
10858 | dynamic_linker='ldqnx.so' | |
10859 | ;; | |
d7040cdb | 10860 | |
ce2cded5 L |
10861 | openbsd*) |
10862 | version_type=sunos | |
10863 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10864 | need_lib_prefix=no | |
10865 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10866 | case $host_os in | |
10867 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10868 | *) need_version=no ;; | |
10869 | esac | |
10870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10871 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10872 | shlibpath_var=LD_LIBRARY_PATH | |
10873 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10874 | case $host_os in | |
10875 | openbsd2.[89] | openbsd2.[89].*) | |
10876 | shlibpath_overrides_runpath=no | |
10877 | ;; | |
10878 | *) | |
10879 | shlibpath_overrides_runpath=yes | |
10880 | ;; | |
10881 | esac | |
10882 | else | |
10883 | shlibpath_overrides_runpath=yes | |
10884 | fi | |
10885 | ;; | |
d7040cdb | 10886 | |
ce2cded5 L |
10887 | os2*) |
10888 | libname_spec='$name' | |
10889 | shrext_cmds=".dll" | |
10890 | need_lib_prefix=no | |
10891 | library_names_spec='$libname${shared_ext} $libname.a' | |
10892 | dynamic_linker='OS/2 ld.exe' | |
10893 | shlibpath_var=LIBPATH | |
10894 | ;; | |
d7040cdb | 10895 | |
ce2cded5 L |
10896 | osf3* | osf4* | osf5*) |
10897 | version_type=osf | |
10898 | need_lib_prefix=no | |
10899 | need_version=no | |
10900 | soname_spec='${libname}${release}${shared_ext}$major' | |
10901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10902 | shlibpath_var=LD_LIBRARY_PATH | |
10903 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10904 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10905 | ;; | |
d7040cdb | 10906 | |
ce2cded5 L |
10907 | rdos*) |
10908 | dynamic_linker=no | |
10909 | ;; | |
d7040cdb | 10910 | |
ce2cded5 L |
10911 | solaris*) |
10912 | version_type=linux | |
10913 | need_lib_prefix=no | |
10914 | need_version=no | |
10915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10916 | soname_spec='${libname}${release}${shared_ext}$major' | |
10917 | shlibpath_var=LD_LIBRARY_PATH | |
10918 | shlibpath_overrides_runpath=yes | |
10919 | hardcode_into_libs=yes | |
10920 | # ldd complains unless libraries are executable | |
10921 | postinstall_cmds='chmod +x $lib' | |
10922 | ;; | |
d7040cdb | 10923 | |
ce2cded5 L |
10924 | sunos4*) |
10925 | version_type=sunos | |
10926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10927 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10928 | shlibpath_var=LD_LIBRARY_PATH | |
10929 | shlibpath_overrides_runpath=yes | |
10930 | if test "$with_gnu_ld" = yes; then | |
10931 | need_lib_prefix=no | |
10932 | fi | |
10933 | need_version=yes | |
10934 | ;; | |
d7040cdb | 10935 | |
ce2cded5 L |
10936 | sysv4 | sysv4.3*) |
10937 | version_type=linux | |
10938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10939 | soname_spec='${libname}${release}${shared_ext}$major' | |
10940 | shlibpath_var=LD_LIBRARY_PATH | |
10941 | case $host_vendor in | |
10942 | sni) | |
10943 | shlibpath_overrides_runpath=no | |
10944 | need_lib_prefix=no | |
10945 | runpath_var=LD_RUN_PATH | |
10946 | ;; | |
10947 | siemens) | |
10948 | need_lib_prefix=no | |
10949 | ;; | |
10950 | motorola) | |
10951 | need_lib_prefix=no | |
10952 | need_version=no | |
10953 | shlibpath_overrides_runpath=no | |
10954 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10955 | ;; | |
10956 | esac | |
10957 | ;; | |
d7040cdb | 10958 | |
ce2cded5 L |
10959 | sysv4*MP*) |
10960 | if test -d /usr/nec ;then | |
10961 | version_type=linux | |
10962 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10963 | soname_spec='$libname${shared_ext}.$major' | |
10964 | shlibpath_var=LD_LIBRARY_PATH | |
10965 | fi | |
10966 | ;; | |
d7040cdb | 10967 | |
ce2cded5 L |
10968 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
10969 | version_type=freebsd-elf | |
10970 | need_lib_prefix=no | |
10971 | need_version=no | |
10972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10973 | soname_spec='${libname}${release}${shared_ext}$major' | |
10974 | shlibpath_var=LD_LIBRARY_PATH | |
10975 | shlibpath_overrides_runpath=yes | |
10976 | hardcode_into_libs=yes | |
10977 | if test "$with_gnu_ld" = yes; then | |
10978 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10979 | else | |
10980 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10981 | case $host_os in | |
10982 | sco3.2v5*) | |
10983 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10984 | ;; | |
10985 | esac | |
10986 | fi | |
10987 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10988 | ;; | |
d7040cdb | 10989 | |
ce2cded5 L |
10990 | tpf*) |
10991 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10992 | version_type=linux | |
10993 | need_lib_prefix=no | |
10994 | need_version=no | |
b214d478 | 10995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
ce2cded5 L |
10996 | shlibpath_var=LD_LIBRARY_PATH |
10997 | shlibpath_overrides_runpath=no | |
10998 | hardcode_into_libs=yes | |
10999 | ;; | |
d7040cdb | 11000 | |
ce2cded5 L |
11001 | uts4*) |
11002 | version_type=linux | |
11003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11004 | soname_spec='${libname}${release}${shared_ext}$major' | |
11005 | shlibpath_var=LD_LIBRARY_PATH | |
11006 | ;; | |
d7040cdb | 11007 | |
ce2cded5 L |
11008 | *) |
11009 | dynamic_linker=no | |
11010 | ;; | |
11011 | esac | |
81ecdfbb RW |
11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11013 | $as_echo "$dynamic_linker" >&6; } | |
ce2cded5 L |
11014 | test "$dynamic_linker" = no && can_build_shared=no |
11015 | ||
11016 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11017 | if test "$GCC" = yes; then | |
11018 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
11019 | fi |
11020 | ||
b214d478 SE |
11021 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11022 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11023 | fi | |
11024 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11025 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11026 | fi | |
11027 | ||
d7040cdb SE |
11028 | |
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
d7040cdb | 11039 | |
d7040cdb | 11040 | |
d7040cdb | 11041 | |
d7040cdb | 11042 | |
d7040cdb SE |
11043 | |
11044 | ||
11045 | ||
11046 | ||
d7040cdb | 11047 | |
d7040cdb SE |
11048 | |
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | ||
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | ||
d7040cdb SE |
11061 | |
11062 | ||
11063 | ||
11064 | ||
d7040cdb SE |
11065 | |
11066 | ||
11067 | ||
11068 | ||
d7040cdb | 11069 | |
d7040cdb | 11070 | |
d7040cdb | 11071 | |
d7040cdb | 11072 | |
d7040cdb | 11073 | |
d7040cdb | 11074 | |
d7040cdb | 11075 | |
d7040cdb SE |
11076 | |
11077 | ||
11078 | ||
11079 | ||
11080 | ||
d7040cdb | 11081 | |
d7040cdb | 11082 | |
d7040cdb | 11083 | |
d7040cdb | 11084 | |
d7040cdb | 11085 | |
d7040cdb | 11086 | |
d7040cdb SE |
11087 | |
11088 | ||
11089 | ||
11090 | ||
11091 | ||
d7040cdb SE |
11092 | |
11093 | ||
d7040cdb | 11094 | |
d7040cdb | 11095 | |
d7040cdb | 11096 | |
d7040cdb | 11097 | |
ce2cded5 L |
11098 | |
11099 | ||
11100 | ||
11101 | ||
11102 | ||
11103 | ||
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | ||
11109 | ||
11110 | ||
11111 | ||
11112 | ||
11113 | ||
81ecdfbb RW |
11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11115 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
ce2cded5 L |
11116 | hardcode_action= |
11117 | if test -n "$hardcode_libdir_flag_spec" || | |
11118 | test -n "$runpath_var" || | |
11119 | test "X$hardcode_automatic" = "Xyes" ; then | |
11120 | ||
11121 | # We can hardcode non-existent directories. | |
11122 | if test "$hardcode_direct" != no && | |
11123 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11124 | # have to relink, otherwise we might link with an installed library | |
11125 | # when we should be linking with a yet-to-be-installed one | |
11126 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11127 | test "$hardcode_minus_L" != no; then | |
11128 | # Linking always hardcodes the temporary library directory. | |
11129 | hardcode_action=relink | |
11130 | else | |
11131 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11132 | hardcode_action=immediate | |
d7040cdb | 11133 | fi |
d7040cdb | 11134 | else |
ce2cded5 L |
11135 | # We cannot hardcode anything, or else we can only hardcode existing |
11136 | # directories. | |
11137 | hardcode_action=unsupported | |
d7040cdb | 11138 | fi |
81ecdfbb RW |
11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11140 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb | 11141 | |
ce2cded5 L |
11142 | if test "$hardcode_action" = relink || |
11143 | test "$inherit_rpath" = yes; then | |
11144 | # Fast installation is not supported | |
11145 | enable_fast_install=no | |
11146 | elif test "$shlibpath_overrides_runpath" = yes || | |
11147 | test "$enable_shared" = no; then | |
11148 | # Fast installation is not necessary | |
11149 | enable_fast_install=needless | |
d7040cdb SE |
11150 | fi |
11151 | ||
d7040cdb | 11152 | |
d7040cdb | 11153 | |
d7040cdb | 11154 | |
d7040cdb | 11155 | |
d7040cdb | 11156 | |
ce2cded5 L |
11157 | if test "x$enable_dlopen" != xyes; then |
11158 | enable_dlopen=unknown | |
11159 | enable_dlopen_self=unknown | |
11160 | enable_dlopen_self_static=unknown | |
d7040cdb | 11161 | else |
ce2cded5 L |
11162 | lt_cv_dlopen=no |
11163 | lt_cv_dlopen_libs= | |
d7040cdb | 11164 | |
ce2cded5 L |
11165 | case $host_os in |
11166 | beos*) | |
11167 | lt_cv_dlopen="load_add_on" | |
11168 | lt_cv_dlopen_libs= | |
11169 | lt_cv_dlopen_self=yes | |
11170 | ;; | |
d7040cdb | 11171 | |
b214d478 | 11172 | mingw* | pw32* | cegcc*) |
ce2cded5 L |
11173 | lt_cv_dlopen="LoadLibrary" |
11174 | lt_cv_dlopen_libs= | |
11175 | ;; | |
11176 | ||
11177 | cygwin*) | |
11178 | lt_cv_dlopen="dlopen" | |
11179 | lt_cv_dlopen_libs= | |
11180 | ;; | |
11181 | ||
11182 | darwin*) | |
11183 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11185 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11186 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11187 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11188 | else |
ce2cded5 L |
11189 | ac_check_lib_save_LIBS=$LIBS |
11190 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11192 | /* end confdefs.h. */ |
11193 | ||
81ecdfbb RW |
11194 | /* Override any GCC internal prototype to avoid an error. |
11195 | Use char because int might match the return type of a GCC | |
11196 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11197 | #ifdef __cplusplus |
11198 | extern "C" | |
11199 | #endif | |
ce2cded5 L |
11200 | char dlopen (); |
11201 | int | |
11202 | main () | |
11203 | { | |
81ecdfbb | 11204 | return dlopen (); |
ce2cded5 L |
11205 | ; |
11206 | return 0; | |
11207 | } | |
11208 | _ACEOF | |
81ecdfbb | 11209 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11210 | ac_cv_lib_dl_dlopen=yes |
11211 | else | |
81ecdfbb | 11212 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11213 | fi |
81ecdfbb RW |
11214 | rm -f core conftest.err conftest.$ac_objext \ |
11215 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11216 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11217 | fi |
81ecdfbb RW |
11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11219 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11220 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11221 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11222 | else |
d7040cdb | 11223 | |
ce2cded5 L |
11224 | lt_cv_dlopen="dyld" |
11225 | lt_cv_dlopen_libs= | |
11226 | lt_cv_dlopen_self=yes | |
11227 | ||
d7040cdb | 11228 | fi |
ce2cded5 L |
11229 | |
11230 | ;; | |
11231 | ||
11232 | *) | |
81ecdfbb RW |
11233 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11234 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
ce2cded5 L |
11235 | lt_cv_dlopen="shl_load" |
11236 | else | |
81ecdfbb RW |
11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11238 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11239 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
11240 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11241 | else |
11242 | ac_check_lib_save_LIBS=$LIBS | |
11243 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 | 11245 | /* end confdefs.h. */ |
d7040cdb | 11246 | |
81ecdfbb RW |
11247 | /* Override any GCC internal prototype to avoid an error. |
11248 | Use char because int might match the return type of a GCC | |
11249 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11250 | #ifdef __cplusplus |
11251 | extern "C" | |
11252 | #endif | |
ce2cded5 L |
11253 | char shl_load (); |
11254 | int | |
11255 | main () | |
11256 | { | |
81ecdfbb | 11257 | return shl_load (); |
ce2cded5 L |
11258 | ; |
11259 | return 0; | |
11260 | } | |
11261 | _ACEOF | |
81ecdfbb | 11262 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 L |
11263 | ac_cv_lib_dld_shl_load=yes |
11264 | else | |
81ecdfbb | 11265 | ac_cv_lib_dld_shl_load=no |
ce2cded5 | 11266 | fi |
81ecdfbb RW |
11267 | rm -f core conftest.err conftest.$ac_objext \ |
11268 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11269 | LIBS=$ac_check_lib_save_LIBS |
11270 | fi | |
81ecdfbb RW |
11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11272 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11273 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
b214d478 | 11274 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
ce2cded5 | 11275 | else |
81ecdfbb RW |
11276 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11277 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
ce2cded5 L |
11278 | lt_cv_dlopen="dlopen" |
11279 | else | |
81ecdfbb RW |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11281 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11282 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11283 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11284 | else |
ce2cded5 L |
11285 | ac_check_lib_save_LIBS=$LIBS |
11286 | LIBS="-ldl $LIBS" | |
81ecdfbb | 11287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
11288 | /* end confdefs.h. */ |
11289 | ||
81ecdfbb RW |
11290 | /* Override any GCC internal prototype to avoid an error. |
11291 | Use char because int might match the return type of a GCC | |
11292 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11293 | #ifdef __cplusplus |
11294 | extern "C" | |
11295 | #endif | |
ce2cded5 | 11296 | char dlopen (); |
d7040cdb SE |
11297 | int |
11298 | main () | |
11299 | { | |
81ecdfbb | 11300 | return dlopen (); |
d7040cdb SE |
11301 | ; |
11302 | return 0; | |
11303 | } | |
11304 | _ACEOF | |
81ecdfbb | 11305 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11306 | ac_cv_lib_dl_dlopen=yes |
d7040cdb | 11307 | else |
81ecdfbb | 11308 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 11309 | fi |
81ecdfbb RW |
11310 | rm -f core conftest.err conftest.$ac_objext \ |
11311 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11312 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11313 | fi |
81ecdfbb RW |
11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11315 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11316 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
ce2cded5 | 11317 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
d7040cdb | 11318 | else |
81ecdfbb RW |
11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11320 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11321 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
11322 | $as_echo_n "(cached) " >&6 | |
d7040cdb | 11323 | else |
ce2cded5 L |
11324 | ac_check_lib_save_LIBS=$LIBS |
11325 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 11326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 11327 | /* end confdefs.h. */ |
d7040cdb | 11328 | |
81ecdfbb RW |
11329 | /* Override any GCC internal prototype to avoid an error. |
11330 | Use char because int might match the return type of a GCC | |
11331 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11332 | #ifdef __cplusplus |
11333 | extern "C" | |
11334 | #endif | |
ce2cded5 | 11335 | char dlopen (); |
d7040cdb SE |
11336 | int |
11337 | main () | |
11338 | { | |
81ecdfbb | 11339 | return dlopen (); |
d7040cdb SE |
11340 | ; |
11341 | return 0; | |
11342 | } | |
11343 | _ACEOF | |
81ecdfbb | 11344 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11345 | ac_cv_lib_svld_dlopen=yes |
d7040cdb | 11346 | else |
81ecdfbb | 11347 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 11348 | fi |
81ecdfbb RW |
11349 | rm -f core conftest.err conftest.$ac_objext \ |
11350 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 11351 | LIBS=$ac_check_lib_save_LIBS |
d7040cdb | 11352 | fi |
81ecdfbb RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11354 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11355 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
ce2cded5 L |
11356 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11357 | else | |
81ecdfbb RW |
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11359 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11360 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11361 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11362 | else |
11363 | ac_check_lib_save_LIBS=$LIBS | |
11364 | LIBS="-ldld $LIBS" | |
81ecdfbb | 11365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce2cded5 L |
11366 | /* end confdefs.h. */ |
11367 | ||
81ecdfbb RW |
11368 | /* Override any GCC internal prototype to avoid an error. |
11369 | Use char because int might match the return type of a GCC | |
11370 | builtin and then its argument prototype would still apply. */ | |
ce2cded5 L |
11371 | #ifdef __cplusplus |
11372 | extern "C" | |
11373 | #endif | |
ce2cded5 | 11374 | char dld_link (); |
d7040cdb SE |
11375 | int |
11376 | main () | |
11377 | { | |
81ecdfbb | 11378 | return dld_link (); |
d7040cdb SE |
11379 | ; |
11380 | return 0; | |
11381 | } | |
11382 | _ACEOF | |
81ecdfbb | 11383 | if ac_fn_c_try_link "$LINENO"; then : |
ce2cded5 | 11384 | ac_cv_lib_dld_dld_link=yes |
d7040cdb | 11385 | else |
81ecdfbb | 11386 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 11387 | fi |
81ecdfbb RW |
11388 | rm -f core conftest.err conftest.$ac_objext \ |
11389 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 L |
11390 | LIBS=$ac_check_lib_save_LIBS |
11391 | fi | |
81ecdfbb RW |
11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11393 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11394 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
b214d478 | 11395 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
ce2cded5 L |
11396 | fi |
11397 | ||
11398 | ||
11399 | fi | |
11400 | ||
11401 | ||
11402 | fi | |
11403 | ||
11404 | ||
11405 | fi | |
11406 | ||
11407 | ||
11408 | fi | |
11409 | ||
11410 | ||
11411 | fi | |
11412 | ||
11413 | ;; | |
11414 | esac | |
11415 | ||
11416 | if test "x$lt_cv_dlopen" != xno; then | |
11417 | enable_dlopen=yes | |
11418 | else | |
11419 | enable_dlopen=no | |
11420 | fi | |
11421 | ||
11422 | case $lt_cv_dlopen in | |
11423 | dlopen) | |
11424 | save_CPPFLAGS="$CPPFLAGS" | |
11425 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11426 | ||
11427 | save_LDFLAGS="$LDFLAGS" | |
11428 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11429 | ||
11430 | save_LIBS="$LIBS" | |
11431 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11432 | ||
81ecdfbb RW |
11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11434 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11435 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11436 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11437 | else |
11438 | if test "$cross_compiling" = yes; then : | |
11439 | lt_cv_dlopen_self=cross | |
11440 | else | |
11441 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11442 | lt_status=$lt_dlunknown | |
11443 | cat > conftest.$ac_ext <<_LT_EOF | |
64ac50ac | 11444 | #line 11444 "configure" |
ce2cded5 L |
11445 | #include "confdefs.h" |
11446 | ||
11447 | #if HAVE_DLFCN_H | |
11448 | #include <dlfcn.h> | |
11449 | #endif | |
11450 | ||
11451 | #include <stdio.h> | |
11452 | ||
11453 | #ifdef RTLD_GLOBAL | |
11454 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11455 | #else | |
11456 | # ifdef DL_GLOBAL | |
11457 | # define LT_DLGLOBAL DL_GLOBAL | |
11458 | # else | |
11459 | # define LT_DLGLOBAL 0 | |
11460 | # endif | |
11461 | #endif | |
11462 | ||
11463 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11464 | find out it does not work in some platform. */ | |
11465 | #ifndef LT_DLLAZY_OR_NOW | |
11466 | # ifdef RTLD_LAZY | |
11467 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11468 | # else | |
11469 | # ifdef DL_LAZY | |
11470 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11471 | # else | |
11472 | # ifdef RTLD_NOW | |
11473 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11474 | # else | |
11475 | # ifdef DL_NOW | |
11476 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11477 | # else | |
11478 | # define LT_DLLAZY_OR_NOW 0 | |
11479 | # endif | |
11480 | # endif | |
11481 | # endif | |
11482 | # endif | |
11483 | #endif | |
11484 | ||
ce2cded5 L |
11485 | void fnord() { int i=42;} |
11486 | int main () | |
d7040cdb | 11487 | { |
ce2cded5 L |
11488 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11489 | int status = $lt_dlunknown; | |
11490 | ||
11491 | if (self) | |
11492 | { | |
11493 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11494 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11495 | /* dlclose (self); */ | |
11496 | } | |
11497 | else | |
11498 | puts (dlerror ()); | |
11499 | ||
b214d478 | 11500 | return status; |
d7040cdb | 11501 | } |
ce2cded5 | 11502 | _LT_EOF |
81ecdfbb | 11503 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 11504 | (eval $ac_link) 2>&5 |
d7040cdb | 11505 | ac_status=$? |
81ecdfbb RW |
11506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11507 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11508 | (./conftest; exit; ) >&5 2>/dev/null |
11509 | lt_status=$? | |
11510 | case x$lt_status in | |
11511 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11512 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11513 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11514 | esac | |
11515 | else : | |
11516 | # compilation failed | |
11517 | lt_cv_dlopen_self=no | |
11518 | fi | |
11519 | fi | |
11520 | rm -fr conftest* | |
11521 | ||
11522 | ||
11523 | fi | |
81ecdfbb RW |
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11525 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ce2cded5 L |
11526 | |
11527 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11528 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11530 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11531 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11532 | $as_echo_n "(cached) " >&6 | |
ce2cded5 L |
11533 | else |
11534 | if test "$cross_compiling" = yes; then : | |
11535 | lt_cv_dlopen_self_static=cross | |
11536 | else | |
11537 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11538 | lt_status=$lt_dlunknown | |
11539 | cat > conftest.$ac_ext <<_LT_EOF | |
64ac50ac | 11540 | #line 11540 "configure" |
ce2cded5 L |
11541 | #include "confdefs.h" |
11542 | ||
11543 | #if HAVE_DLFCN_H | |
11544 | #include <dlfcn.h> | |
11545 | #endif | |
11546 | ||
11547 | #include <stdio.h> | |
11548 | ||
11549 | #ifdef RTLD_GLOBAL | |
11550 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11551 | #else | |
11552 | # ifdef DL_GLOBAL | |
11553 | # define LT_DLGLOBAL DL_GLOBAL | |
11554 | # else | |
11555 | # define LT_DLGLOBAL 0 | |
11556 | # endif | |
11557 | #endif | |
11558 | ||
11559 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11560 | find out it does not work in some platform. */ | |
11561 | #ifndef LT_DLLAZY_OR_NOW | |
11562 | # ifdef RTLD_LAZY | |
11563 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11564 | # else | |
11565 | # ifdef DL_LAZY | |
11566 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11567 | # else | |
11568 | # ifdef RTLD_NOW | |
11569 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11570 | # else | |
11571 | # ifdef DL_NOW | |
11572 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11573 | # else | |
11574 | # define LT_DLLAZY_OR_NOW 0 | |
11575 | # endif | |
11576 | # endif | |
11577 | # endif | |
11578 | # endif | |
11579 | #endif | |
11580 | ||
ce2cded5 L |
11581 | void fnord() { int i=42;} |
11582 | int main () | |
11583 | { | |
11584 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11585 | int status = $lt_dlunknown; | |
11586 | ||
11587 | if (self) | |
11588 | { | |
11589 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11590 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11591 | /* dlclose (self); */ | |
11592 | } | |
11593 | else | |
11594 | puts (dlerror ()); | |
11595 | ||
b214d478 | 11596 | return status; |
ce2cded5 L |
11597 | } |
11598 | _LT_EOF | |
81ecdfbb | 11599 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ce2cded5 | 11600 | (eval $ac_link) 2>&5 |
d7040cdb | 11601 | ac_status=$? |
81ecdfbb RW |
11602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11603 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
ce2cded5 L |
11604 | (./conftest; exit; ) >&5 2>/dev/null |
11605 | lt_status=$? | |
11606 | case x$lt_status in | |
11607 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11608 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11609 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11610 | esac | |
11611 | else : | |
11612 | # compilation failed | |
11613 | lt_cv_dlopen_self_static=no | |
11614 | fi | |
11615 | fi | |
11616 | rm -fr conftest* | |
11617 | ||
d7040cdb SE |
11618 | |
11619 | fi | |
81ecdfbb RW |
11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11621 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
ce2cded5 L |
11622 | fi |
11623 | ||
11624 | CPPFLAGS="$save_CPPFLAGS" | |
11625 | LDFLAGS="$save_LDFLAGS" | |
11626 | LIBS="$save_LIBS" | |
11627 | ;; | |
11628 | esac | |
11629 | ||
11630 | case $lt_cv_dlopen_self in | |
11631 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11632 | *) enable_dlopen_self=unknown ;; | |
11633 | esac | |
11634 | ||
11635 | case $lt_cv_dlopen_self_static in | |
11636 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11637 | *) enable_dlopen_self_static=unknown ;; | |
11638 | esac | |
d7040cdb SE |
11639 | fi |
11640 | ||
ce2cded5 L |
11641 | |
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | striplib= | |
11658 | old_striplib= | |
81ecdfbb RW |
11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11660 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
ce2cded5 L |
11661 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11662 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11663 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11665 | $as_echo "yes" >&6; } | |
d7040cdb | 11666 | else |
ce2cded5 L |
11667 | # FIXME - insert some real tests, host_os isn't really good enough |
11668 | case $host_os in | |
11669 | darwin*) | |
11670 | if test -n "$STRIP" ; then | |
11671 | striplib="$STRIP -x" | |
11672 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11674 | $as_echo "yes" >&6; } | |
ce2cded5 | 11675 | else |
81ecdfbb RW |
11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11677 | $as_echo "no" >&6; } | |
ce2cded5 L |
11678 | fi |
11679 | ;; | |
11680 | *) | |
81ecdfbb RW |
11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11682 | $as_echo "no" >&6; } | |
ce2cded5 L |
11683 | ;; |
11684 | esac | |
11685 | fi | |
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | # Report which library types will actually be built | |
81ecdfbb RW |
11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11700 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11702 | $as_echo "$can_build_shared" >&6; } | |
ce2cded5 | 11703 | |
81ecdfbb RW |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11705 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
ce2cded5 L |
11706 | test "$can_build_shared" = "no" && enable_shared=no |
11707 | ||
11708 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11709 | # are all built from PIC. | |
11710 | case $host_os in | |
11711 | aix3*) | |
11712 | test "$enable_shared" = yes && enable_static=no | |
11713 | if test -n "$RANLIB"; then | |
11714 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11715 | postinstall_cmds='$RANLIB $lib' | |
11716 | fi | |
11717 | ;; | |
11718 | ||
50e7d84b | 11719 | aix[4-9]*) |
ce2cded5 L |
11720 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11721 | test "$enable_shared" = yes && enable_static=no | |
11722 | fi | |
11723 | ;; | |
11724 | esac | |
81ecdfbb RW |
11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11726 | $as_echo "$enable_shared" >&6; } | |
ce2cded5 | 11727 | |
81ecdfbb RW |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11729 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
ce2cded5 L |
11730 | # Make sure either enable_shared or enable_static is yes. |
11731 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11733 | $as_echo "$enable_static" >&6; } | |
ce2cded5 L |
11734 | |
11735 | ||
11736 | ||
d7040cdb SE |
11737 | |
11738 | fi | |
d7040cdb SE |
11739 | ac_ext=c |
11740 | ac_cpp='$CPP $CPPFLAGS' | |
11741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11744 | ||
ce2cded5 | 11745 | CC="$lt_save_CC" |
67310ccd | 11746 | |
67310ccd AM |
11747 | |
11748 | ||
d7040cdb SE |
11749 | |
11750 | ||
d7040cdb | 11751 | |
d7040cdb | 11752 | |
d7040cdb | 11753 | |
ce2cded5 L |
11754 | |
11755 | ||
11756 | ||
11757 | ||
11758 | ||
81ecdfbb | 11759 | ac_config_commands="$ac_config_commands libtool" |
ce2cded5 L |
11760 | |
11761 | ||
11762 | ||
11763 | ||
11764 | # Only expand once: | |
11765 | ||
d7040cdb SE |
11766 | |
11767 | ||
8cc9115f | 11768 | ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id" |
d7040cdb SE |
11769 | # If we haven't got the data from the intl directory, |
11770 | # assume NLS is disabled. | |
11771 | USE_NLS=no | |
11772 | LIBINTL= | |
11773 | LIBINTL_DEP= | |
11774 | INCINTL= | |
11775 | XGETTEXT= | |
11776 | GMSGFMT= | |
11777 | POSUB= | |
11778 | ||
11779 | if test -f ../intl/config.intl; then | |
11780 | . ../intl/config.intl | |
11781 | fi | |
81ecdfbb RW |
11782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11783 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 11784 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11786 | $as_echo "no" >&6; } | |
d7040cdb | 11787 | else |
81ecdfbb RW |
11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11789 | $as_echo "yes" >&6; } | |
d7040cdb | 11790 | |
81ecdfbb | 11791 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
d7040cdb SE |
11792 | |
11793 | ||
81ecdfbb RW |
11794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
11795 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
11796 | # Look for .po and .gmo files in the source directory. |
11797 | CATALOGS= | |
11798 | XLINGUAS= | |
11799 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
11800 | # If there aren't any .gmo files the shell will give us the | |
11801 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
11802 | # weeded out. | |
11803 | case "$cat" in *\**) | |
11804 | continue;; | |
11805 | esac | |
11806 | # The quadruple backslash is collapsed to a double backslash | |
11807 | # by the backticks, then collapsed again by the double quotes, | |
11808 | # leaving us with one backslash in the sed expression (right | |
11809 | # before the dot that mustn't act as a wildcard). | |
11810 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
11811 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
11812 | # The user is allowed to set LINGUAS to a list of languages to | |
11813 | # install catalogs for. If it's empty that means "all of them." | |
11814 | if test "x$LINGUAS" = x; then | |
11815 | CATALOGS="$CATALOGS $cat" | |
11816 | XLINGUAS="$XLINGUAS $lang" | |
11817 | else | |
11818 | case "$LINGUAS" in *$lang*) | |
11819 | CATALOGS="$CATALOGS $cat" | |
11820 | XLINGUAS="$XLINGUAS $lang" | |
11821 | ;; | |
11822 | esac | |
11823 | fi | |
11824 | done | |
11825 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
11826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
11827 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb SE |
11828 | |
11829 | ||
11830 | DATADIRNAME=share | |
11831 | ||
11832 | INSTOBJEXT=.mo | |
11833 | ||
11834 | GENCAT=gencat | |
11835 | ||
11836 | CATOBJEXT=.gmo | |
11837 | ||
11838 | fi | |
11839 | ||
11840 | MKINSTALLDIRS= | |
11841 | if test -n "$ac_aux_dir"; then | |
11842 | case "$ac_aux_dir" in | |
11843 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
11844 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
11845 | esac | |
11846 | fi | |
11847 | if test -z "$MKINSTALLDIRS"; then | |
11848 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
11849 | fi | |
11850 | ||
11851 | ||
11852 | ||
81ecdfbb RW |
11853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
11854 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
11855 | # Check whether --enable-nls was given. | |
11856 | if test "${enable_nls+set}" = set; then : | |
11857 | enableval=$enable_nls; USE_NLS=$enableval | |
d7040cdb SE |
11858 | else |
11859 | USE_NLS=yes | |
81ecdfbb RW |
11860 | fi |
11861 | ||
11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11863 | $as_echo "$USE_NLS" >&6; } | |
d7040cdb SE |
11864 | |
11865 | ||
11866 | ||
11867 | ||
11868 | ||
11869 | ||
11870 | # Prepare PATH_SEPARATOR. | |
11871 | # The user is always right. | |
11872 | if test "${PATH_SEPARATOR+set}" != set; then | |
11873 | echo "#! /bin/sh" >conf$$.sh | |
11874 | echo "exit 0" >>conf$$.sh | |
11875 | chmod +x conf$$.sh | |
11876 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11877 | PATH_SEPARATOR=';' | |
11878 | else | |
11879 | PATH_SEPARATOR=: | |
11880 | fi | |
11881 | rm -f conf$$.sh | |
11882 | fi | |
11883 | ||
11884 | # Find out how to test for executable files. Don't use a zero-byte file, | |
11885 | # as systems may use methods other than mode bits to determine executability. | |
11886 | cat >conf$$.file <<_ASEOF | |
11887 | #! /bin/sh | |
11888 | exit 0 | |
11889 | _ASEOF | |
11890 | chmod +x conf$$.file | |
11891 | if test -x conf$$.file >/dev/null 2>&1; then | |
11892 | ac_executable_p="test -x" | |
11893 | else | |
11894 | ac_executable_p="test -f" | |
11895 | fi | |
11896 | rm -f conf$$.file | |
11897 | ||
11898 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
11899 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11901 | $as_echo_n "checking for $ac_word... " >&6; } | |
11902 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
11903 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
11904 | else |
11905 | case "$MSGFMT" in | |
11906 | [\\/]* | ?:[\\/]*) | |
11907 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
11908 | ;; | |
11909 | *) | |
11910 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11911 | for ac_dir in $PATH; do | |
11912 | IFS="$ac_save_IFS" | |
11913 | test -z "$ac_dir" && ac_dir=. | |
11914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11915 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11916 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
11917 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11918 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
11919 | break 2 | |
11920 | fi | |
11921 | fi | |
11922 | done | |
11923 | done | |
11924 | IFS="$ac_save_IFS" | |
11925 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
11926 | ;; | |
11927 | esac | |
11928 | fi | |
11929 | MSGFMT="$ac_cv_path_MSGFMT" | |
11930 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
11932 | $as_echo "$MSGFMT" >&6; } | |
d7040cdb | 11933 | else |
81ecdfbb RW |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11935 | $as_echo "no" >&6; } | |
d7040cdb SE |
11936 | fi |
11937 | ||
11938 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
11939 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11941 | $as_echo_n "checking for $ac_word... " >&6; } | |
11942 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
11943 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
11944 | else |
11945 | case $GMSGFMT in | |
11946 | [\\/]* | ?:[\\/]*) | |
11947 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
11948 | ;; | |
11949 | *) | |
11950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11951 | for as_dir in $PATH | |
11952 | do | |
11953 | IFS=$as_save_IFS | |
11954 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11955 | for ac_exec_ext in '' $ac_executable_extensions; do |
11956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 11957 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
11959 | break 2 |
11960 | fi | |
11961 | done | |
81ecdfbb RW |
11962 | done |
11963 | IFS=$as_save_IFS | |
d7040cdb SE |
11964 | |
11965 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
11966 | ;; | |
11967 | esac | |
11968 | fi | |
11969 | GMSGFMT=$ac_cv_path_GMSGFMT | |
d7040cdb | 11970 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
11972 | $as_echo "$GMSGFMT" >&6; } | |
d7040cdb | 11973 | else |
81ecdfbb RW |
11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11975 | $as_echo "no" >&6; } | |
20e95c23 | 11976 | fi |
42ecbf5e | 11977 | |
20e95c23 | 11978 | |
252b5132 | 11979 | |
81ecdfbb | 11980 | |
d7040cdb SE |
11981 | # Prepare PATH_SEPARATOR. |
11982 | # The user is always right. | |
11983 | if test "${PATH_SEPARATOR+set}" != set; then | |
11984 | echo "#! /bin/sh" >conf$$.sh | |
11985 | echo "exit 0" >>conf$$.sh | |
11986 | chmod +x conf$$.sh | |
11987 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11988 | PATH_SEPARATOR=';' | |
11989 | else | |
11990 | PATH_SEPARATOR=: | |
11991 | fi | |
11992 | rm -f conf$$.sh | |
20e95c23 | 11993 | fi |
252b5132 | 11994 | |
d7040cdb SE |
11995 | # Find out how to test for executable files. Don't use a zero-byte file, |
11996 | # as systems may use methods other than mode bits to determine executability. | |
11997 | cat >conf$$.file <<_ASEOF | |
11998 | #! /bin/sh | |
11999 | exit 0 | |
12000 | _ASEOF | |
12001 | chmod +x conf$$.file | |
12002 | if test -x conf$$.file >/dev/null 2>&1; then | |
12003 | ac_executable_p="test -x" | |
20e95c23 | 12004 | else |
d7040cdb SE |
12005 | ac_executable_p="test -f" |
12006 | fi | |
12007 | rm -f conf$$.file | |
20e95c23 | 12008 | |
d7040cdb SE |
12009 | # Extract the first word of "xgettext", so it can be a program name with args. |
12010 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
12011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12012 | $as_echo_n "checking for $ac_word... " >&6; } | |
12013 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
12014 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12015 | else |
d7040cdb SE |
12016 | case "$XGETTEXT" in |
12017 | [\\/]* | ?:[\\/]*) | |
12018 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12019 | ;; | |
12020 | *) | |
12021 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12022 | for ac_dir in $PATH; do | |
12023 | IFS="$ac_save_IFS" | |
12024 | test -z "$ac_dir" && ac_dir=. | |
12025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12026 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12027 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12028 | (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 | |
12029 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12030 | break 2 | |
12031 | fi | |
12032 | fi | |
12033 | done | |
12034 | done | |
12035 | IFS="$ac_save_IFS" | |
12036 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
12037 | ;; | |
12038 | esac | |
252b5132 | 12039 | fi |
d7040cdb SE |
12040 | XGETTEXT="$ac_cv_path_XGETTEXT" |
12041 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
12043 | $as_echo "$XGETTEXT" >&6; } | |
d5fbea21 | 12044 | else |
81ecdfbb RW |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12046 | $as_echo "no" >&6; } | |
d5fbea21 DJ |
12047 | fi |
12048 | ||
d7040cdb | 12049 | rm -f messages.po |
d5fbea21 | 12050 | |
20e95c23 | 12051 | |
d7040cdb SE |
12052 | # Prepare PATH_SEPARATOR. |
12053 | # The user is always right. | |
12054 | if test "${PATH_SEPARATOR+set}" != set; then | |
12055 | echo "#! /bin/sh" >conf$$.sh | |
12056 | echo "exit 0" >>conf$$.sh | |
12057 | chmod +x conf$$.sh | |
12058 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12059 | PATH_SEPARATOR=';' | |
12060 | else | |
12061 | PATH_SEPARATOR=: | |
12062 | fi | |
12063 | rm -f conf$$.sh | |
12064 | fi | |
20e95c23 | 12065 | |
d7040cdb SE |
12066 | # Find out how to test for executable files. Don't use a zero-byte file, |
12067 | # as systems may use methods other than mode bits to determine executability. | |
12068 | cat >conf$$.file <<_ASEOF | |
12069 | #! /bin/sh | |
12070 | exit 0 | |
12071 | _ASEOF | |
12072 | chmod +x conf$$.file | |
12073 | if test -x conf$$.file >/dev/null 2>&1; then | |
12074 | ac_executable_p="test -x" | |
12075 | else | |
12076 | ac_executable_p="test -f" | |
12077 | fi | |
12078 | rm -f conf$$.file | |
20e95c23 | 12079 | |
d7040cdb SE |
12080 | # Extract the first word of "msgmerge", so it can be a program name with args. |
12081 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12083 | $as_echo_n "checking for $ac_word... " >&6; } | |
12084 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
12085 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
12086 | else |
12087 | case "$MSGMERGE" in | |
12088 | [\\/]* | ?:[\\/]*) | |
12089 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
12090 | ;; | |
12091 | *) | |
12092 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12093 | for ac_dir in $PATH; do | |
12094 | IFS="$ac_save_IFS" | |
12095 | test -z "$ac_dir" && ac_dir=. | |
12096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12097 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12098 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
12099 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
12100 | break 2 | |
12101 | fi | |
12102 | fi | |
12103 | done | |
12104 | done | |
12105 | IFS="$ac_save_IFS" | |
12106 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
12107 | ;; | |
12108 | esac | |
12109 | fi | |
12110 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
12111 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
12113 | $as_echo "$MSGMERGE" >&6; } | |
d7040cdb | 12114 | else |
81ecdfbb RW |
12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12116 | $as_echo "no" >&6; } | |
d7040cdb | 12117 | fi |
20e95c23 DJ |
12118 | |
12119 | ||
d7040cdb SE |
12120 | if test "$GMSGFMT" != ":"; then |
12121 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12122 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12123 | : ; | |
12124 | else | |
12125 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
12127 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
12128 | GMSGFMT=":" |
12129 | fi | |
12130 | fi | |
20e95c23 | 12131 | |
d7040cdb SE |
12132 | if test "$XGETTEXT" != ":"; then |
12133 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12134 | (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 | |
12135 | : ; | |
12136 | else | |
81ecdfbb RW |
12137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
12138 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
12139 | XGETTEXT=":" |
12140 | fi | |
12141 | rm -f messages.po | |
20e95c23 | 12142 | fi |
42ecbf5e | 12143 | |
81ecdfbb | 12144 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 12145 | |
42ecbf5e | 12146 | |
252b5132 | 12147 | |
42ecbf5e DJ |
12148 | |
12149 | ||
d7040cdb | 12150 | for ac_prog in 'bison -y' byacc |
20e95c23 | 12151 | do |
d7040cdb SE |
12152 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
12153 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12155 | $as_echo_n "checking for $ac_word... " >&6; } | |
12156 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
12157 | $as_echo_n "(cached) " >&6 | |
20e95c23 | 12158 | else |
d7040cdb SE |
12159 | if test -n "$YACC"; then |
12160 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 12161 | else |
d7040cdb SE |
12162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12163 | for as_dir in $PATH | |
12164 | do | |
12165 | IFS=$as_save_IFS | |
12166 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12167 | for ac_exec_ext in '' $ac_executable_extensions; do |
12168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12169 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 12170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12171 | break 2 |
12172 | fi | |
12173 | done | |
81ecdfbb RW |
12174 | done |
12175 | IFS=$as_save_IFS | |
42ecbf5e | 12176 | |
42ecbf5e | 12177 | fi |
e5a52504 | 12178 | fi |
d7040cdb SE |
12179 | YACC=$ac_cv_prog_YACC |
12180 | if test -n "$YACC"; then | |
81ecdfbb RW |
12181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12182 | $as_echo "$YACC" >&6; } | |
42ecbf5e | 12183 | else |
81ecdfbb RW |
12184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12185 | $as_echo "no" >&6; } | |
42ecbf5e | 12186 | fi |
252b5132 | 12187 | |
81ecdfbb | 12188 | |
d7040cdb | 12189 | test -n "$YACC" && break |
42ecbf5e | 12190 | done |
d7040cdb | 12191 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 12192 | |
d7040cdb SE |
12193 | for ac_prog in flex lex |
12194 | do | |
12195 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12196 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12198 | $as_echo_n "checking for $ac_word... " >&6; } | |
12199 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
12200 | $as_echo_n "(cached) " >&6 | |
d15b04bd | 12201 | else |
d7040cdb SE |
12202 | if test -n "$LEX"; then |
12203 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
12204 | else | |
12205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12206 | for as_dir in $PATH | |
12207 | do | |
12208 | IFS=$as_save_IFS | |
12209 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12210 | for ac_exec_ext in '' $ac_executable_extensions; do |
12211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d7040cdb | 12212 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 12213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12214 | break 2 |
12215 | fi | |
12216 | done | |
81ecdfbb RW |
12217 | done |
12218 | IFS=$as_save_IFS | |
d7040cdb SE |
12219 | |
12220 | fi | |
12221 | fi | |
12222 | LEX=$ac_cv_prog_LEX | |
12223 | if test -n "$LEX"; then | |
81ecdfbb RW |
12224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12225 | $as_echo "$LEX" >&6; } | |
d7040cdb | 12226 | else |
81ecdfbb RW |
12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12228 | $as_echo "no" >&6; } | |
d15b04bd | 12229 | fi |
e5a52504 | 12230 | |
81ecdfbb | 12231 | |
d7040cdb SE |
12232 | test -n "$LEX" && break |
12233 | done | |
12234 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 12235 | |
81ecdfbb RW |
12236 | if test "x$LEX" != "x:"; then |
12237 | cat >conftest.l <<_ACEOF | |
12238 | %% | |
12239 | a { ECHO; } | |
12240 | b { REJECT; } | |
12241 | c { yymore (); } | |
12242 | d { yyless (1); } | |
12243 | e { yyless (input () != 0); } | |
12244 | f { unput (yytext[0]); } | |
12245 | . { BEGIN INITIAL; } | |
12246 | %% | |
12247 | #ifdef YYTEXT_POINTER | |
12248 | extern char *yytext; | |
d7040cdb | 12249 | #endif |
42ecbf5e | 12250 | int |
81ecdfbb | 12251 | main (void) |
42ecbf5e | 12252 | { |
81ecdfbb | 12253 | return ! yylex () + ! yywrap (); |
42ecbf5e DJ |
12254 | } |
12255 | _ACEOF | |
81ecdfbb RW |
12256 | { { ac_try="$LEX conftest.l" |
12257 | case "(($ac_try" in | |
12258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12259 | *) ac_try_echo=$ac_try;; | |
12260 | esac | |
12261 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
12262 | $as_echo "$ac_try_echo"; } >&5 | |
12263 | (eval "$LEX conftest.l") 2>&5 | |
42ecbf5e | 12264 | ac_status=$? |
81ecdfbb RW |
12265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12266 | test $ac_status = 0; } | |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
12268 | $as_echo_n "checking lex output file root... " >&6; } | |
12269 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
12270 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 12271 | else |
42ecbf5e | 12272 | |
81ecdfbb RW |
12273 | if test -f lex.yy.c; then |
12274 | ac_cv_prog_lex_root=lex.yy | |
12275 | elif test -f lexyy.c; then | |
12276 | ac_cv_prog_lex_root=lexyy | |
12277 | else | |
12278 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
42ecbf5e | 12279 | fi |
42ecbf5e | 12280 | fi |
81ecdfbb RW |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12282 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
12283 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 12284 | |
81ecdfbb RW |
12285 | if test -z "${LEXLIB+set}"; then |
12286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
12287 | $as_echo_n "checking lex library... " >&6; } | |
12288 | if test "${ac_cv_lib_lex+set}" = set; then : | |
12289 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12290 | else |
20e95c23 | 12291 | |
81ecdfbb RW |
12292 | ac_save_LIBS=$LIBS |
12293 | ac_cv_lib_lex='none needed' | |
12294 | for ac_lib in '' -lfl -ll; do | |
12295 | LIBS="$ac_lib $ac_save_LIBS" | |
12296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12297 | /* end confdefs.h. */ | |
12298 | `cat $LEX_OUTPUT_ROOT.c` | |
12299 | _ACEOF | |
12300 | if ac_fn_c_try_link "$LINENO"; then : | |
12301 | ac_cv_lib_lex=$ac_lib | |
20e95c23 | 12302 | fi |
81ecdfbb RW |
12303 | rm -f core conftest.err conftest.$ac_objext \ |
12304 | conftest$ac_exeext conftest.$ac_ext | |
12305 | test "$ac_cv_lib_lex" != 'none needed' && break | |
12306 | done | |
12307 | LIBS=$ac_save_LIBS | |
20e95c23 DJ |
12308 | |
12309 | fi | |
81ecdfbb RW |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12311 | $as_echo "$ac_cv_lib_lex" >&6; } | |
12312 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
d7040cdb | 12313 | fi |
20e95c23 | 12314 | |
20e95c23 | 12315 | |
81ecdfbb RW |
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12317 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
12318 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
12319 | $as_echo_n "(cached) " >&6 | |
d7040cdb SE |
12320 | else |
12321 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
81ecdfbb | 12322 | # default is implementation-dependent. Figure out which it is, since |
d7040cdb SE |
12323 | # not all implementations provide the %pointer and %array declarations. |
12324 | ac_cv_prog_lex_yytext_pointer=no | |
d7040cdb | 12325 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
12326 | LIBS="$LEXLIB $ac_save_LIBS" |
12327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12328 | /* end confdefs.h. */ | |
12329 | #define YYTEXT_POINTER 1 | |
d7040cdb | 12330 | `cat $LEX_OUTPUT_ROOT.c` |
20e95c23 | 12331 | _ACEOF |
81ecdfbb | 12332 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb | 12333 | ac_cv_prog_lex_yytext_pointer=yes |
d7040cdb | 12334 | fi |
81ecdfbb RW |
12335 | rm -f core conftest.err conftest.$ac_objext \ |
12336 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 12337 | LIBS=$ac_save_LIBS |
d7040cdb SE |
12338 | |
12339 | fi | |
81ecdfbb RW |
12340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12341 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
d7040cdb SE |
12342 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
12343 | ||
81ecdfbb | 12344 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
d7040cdb SE |
12345 | |
12346 | fi | |
81ecdfbb | 12347 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
d7040cdb SE |
12348 | |
12349 | fi | |
12350 | if test "$LEX" = :; then | |
12351 | LEX=${am_missing_run}flex | |
12352 | fi | |
12353 | ||
81ecdfbb RW |
12354 | |
12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
12356 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
12357 | # Check whether --enable-maintainer-mode was given. | |
12358 | if test "${enable_maintainer_mode+set}" = set; then : | |
12359 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
252b5132 | 12360 | else |
d7040cdb | 12361 | USE_MAINTAINER_MODE=no |
81ecdfbb | 12362 | fi |
d7040cdb | 12363 | |
81ecdfbb RW |
12364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
12365 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
12366 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
12367 | MAINTAINER_MODE_TRUE= |
12368 | MAINTAINER_MODE_FALSE='#' | |
12369 | else | |
12370 | MAINTAINER_MODE_TRUE='#' | |
12371 | MAINTAINER_MODE_FALSE= | |
252b5132 | 12372 | fi |
252b5132 | 12373 | |
d7040cdb SE |
12374 | MAINT=$MAINTAINER_MODE_TRUE |
12375 | ||
12376 | ||
81ecdfbb | 12377 | if false; then |
d7040cdb SE |
12378 | GENINSRC_NEVER_TRUE= |
12379 | GENINSRC_NEVER_FALSE='#' | |
12380 | else | |
12381 | GENINSRC_NEVER_TRUE='#' | |
12382 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
12383 | fi |
12384 | ||
81ecdfbb RW |
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
12386 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
12387 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
12388 | $as_echo_n "(cached) " >&6 | |
eccbf555 AM |
12389 | else |
12390 | echo abfoo >t1 | |
12391 | echo cdfoo >t2 | |
12392 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
12393 | if cmp t1 t2 2 2 > /dev/null 2>&1; then | |
12394 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
12395 | : | |
12396 | else | |
12397 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
12398 | fi | |
12399 | fi | |
12400 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then | |
12401 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
12402 | : | |
12403 | else | |
12404 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
12405 | fi | |
12406 | fi | |
12407 | rm t1 t2 | |
12408 | ||
12409 | fi | |
81ecdfbb RW |
12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
12411 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
eccbf555 AM |
12412 | do_compare="$gcc_cv_prog_cmp_skip" |
12413 | ||
12414 | ||
d7040cdb SE |
12415 | |
12416 | . ${srcdir}/configure.host | |
12417 | ||
12418 | ||
12419 | ||
12420 | ||
252b5132 RH |
12421 | |
12422 | ||
a3ffa599 | 12423 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h |
81ecdfbb RW |
12424 | do : |
12425 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12426 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12427 | eval as_val=\$$as_ac_Header | |
12428 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 12429 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12430 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
42ecbf5e DJ |
12431 | _ACEOF |
12432 | ||
12433 | fi | |
12434 | ||
252b5132 RH |
12435 | done |
12436 | ||
dc27aea4 | 12437 | for ac_func in glob mkstemp realpath sbrk waitpid |
81ecdfbb RW |
12438 | do : |
12439 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12440 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12441 | eval as_val=\$$as_ac_var | |
12442 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 12443 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12444 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
42ecbf5e | 12445 | _ACEOF |
252b5132 | 12446 | |
252b5132 RH |
12447 | fi |
12448 | done | |
12449 | ||
12450 | ac_header_dirent=no | |
42ecbf5e | 12451 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
81ecdfbb RW |
12452 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
12454 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
12455 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
12456 | $as_echo_n "(cached) " >&6 | |
12457 | else | |
12458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 12459 | /* end confdefs.h. */ |
252b5132 RH |
12460 | #include <sys/types.h> |
12461 | #include <$ac_hdr> | |
42ecbf5e DJ |
12462 | |
12463 | int | |
12464 | main () | |
12465 | { | |
12466 | if ((DIR *) 0) | |
12467 | return 0; | |
12468 | ; | |
12469 | return 0; | |
12470 | } | |
12471 | _ACEOF | |
81ecdfbb | 12472 | if ac_fn_c_try_compile "$LINENO"; then : |
42ecbf5e DJ |
12473 | eval "$as_ac_Header=yes" |
12474 | else | |
81ecdfbb | 12475 | eval "$as_ac_Header=no" |
42ecbf5e | 12476 | fi |
81ecdfbb | 12477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
42ecbf5e | 12478 | fi |
81ecdfbb RW |
12479 | eval ac_res=\$$as_ac_Header |
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
12481 | $as_echo "$ac_res" >&6; } | |
12482 | eval as_val=\$$as_ac_Header | |
12483 | if test "x$as_val" = x""yes; then : | |
42ecbf5e | 12484 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12485 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
42ecbf5e DJ |
12486 | _ACEOF |
12487 | ||
12488 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 12489 | fi |
42ecbf5e | 12490 | |
d15b04bd L |
12491 | done |
12492 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
12493 | if test $ac_header_dirent = dirent.h; then | |
81ecdfbb RW |
12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
12495 | $as_echo_n "checking for library containing opendir... " >&6; } | |
12496 | if test "${ac_cv_search_opendir+set}" = set; then : | |
12497 | $as_echo_n "(cached) " >&6 | |
42ecbf5e DJ |
12498 | else |
12499 | ac_func_search_save_LIBS=$LIBS | |
81ecdfbb | 12500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
12501 | /* end confdefs.h. */ |
12502 | ||
81ecdfbb RW |
12503 | /* Override any GCC internal prototype to avoid an error. |
12504 | Use char because int might match the return type of a GCC | |
12505 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
12506 | #ifdef __cplusplus |
12507 | extern "C" | |
12508 | #endif | |
42ecbf5e DJ |
12509 | char opendir (); |
12510 | int | |
12511 | main () | |
12512 | { | |
81ecdfbb | 12513 | return opendir (); |
42ecbf5e DJ |
12514 | ; |
12515 | return 0; | |
12516 | } | |
12517 | _ACEOF | |
81ecdfbb RW |
12518 | for ac_lib in '' dir; do |
12519 | if test -z "$ac_lib"; then | |
12520 | ac_res="none required" | |
12521 | else | |
12522 | ac_res=-l$ac_lib | |
42ecbf5e | 12523 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
12524 | fi |
12525 | if ac_fn_c_try_link "$LINENO"; then : | |
12526 | ac_cv_search_opendir=$ac_res | |
12527 | fi | |
12528 | rm -f core conftest.err conftest.$ac_objext \ | |
12529 | conftest$ac_exeext | |
12530 | if test "${ac_cv_search_opendir+set}" = set; then : | |
12531 | break | |
12532 | fi | |
12533 | done | |
12534 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e5a52504 | 12535 | |
42ecbf5e | 12536 | else |
81ecdfbb | 12537 | ac_cv_search_opendir=no |
252b5132 | 12538 | fi |
81ecdfbb | 12539 | rm conftest.$ac_ext |
42ecbf5e DJ |
12540 | LIBS=$ac_func_search_save_LIBS |
12541 | fi | |
81ecdfbb RW |
12542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
12543 | $as_echo "$ac_cv_search_opendir" >&6; } | |
12544 | ac_res=$ac_cv_search_opendir | |
12545 | if test "$ac_res" != no; then : | |
12546 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 12547 | |
d15b04bd | 12548 | fi |
252b5132 RH |
12549 | |
12550 | else | |
81ecdfbb RW |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
12552 | $as_echo_n "checking for library containing opendir... " >&6; } | |
12553 | if test "${ac_cv_search_opendir+set}" = set; then : | |
12554 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12555 | else |
42ecbf5e | 12556 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 12557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e DJ |
12558 | /* end confdefs.h. */ |
12559 | ||
81ecdfbb RW |
12560 | /* Override any GCC internal prototype to avoid an error. |
12561 | Use char because int might match the return type of a GCC | |
12562 | builtin and then its argument prototype would still apply. */ | |
42ecbf5e DJ |
12563 | #ifdef __cplusplus |
12564 | extern "C" | |
12565 | #endif | |
42ecbf5e DJ |
12566 | char opendir (); |
12567 | int | |
12568 | main () | |
12569 | { | |
81ecdfbb | 12570 | return opendir (); |
42ecbf5e DJ |
12571 | ; |
12572 | return 0; | |
12573 | } | |
12574 | _ACEOF | |
81ecdfbb RW |
12575 | for ac_lib in '' x; do |
12576 | if test -z "$ac_lib"; then | |
12577 | ac_res="none required" | |
12578 | else | |
12579 | ac_res=-l$ac_lib | |
42ecbf5e | 12580 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
81ecdfbb RW |
12581 | fi |
12582 | if ac_fn_c_try_link "$LINENO"; then : | |
12583 | ac_cv_search_opendir=$ac_res | |
12584 | fi | |
12585 | rm -f core conftest.err conftest.$ac_objext \ | |
12586 | conftest$ac_exeext | |
12587 | if test "${ac_cv_search_opendir+set}" = set; then : | |
12588 | break | |
12589 | fi | |
12590 | done | |
12591 | if test "${ac_cv_search_opendir+set}" = set; then : | |
252b5132 | 12592 | |
42ecbf5e | 12593 | else |
81ecdfbb | 12594 | ac_cv_search_opendir=no |
252b5132 | 12595 | fi |
81ecdfbb | 12596 | rm conftest.$ac_ext |
42ecbf5e | 12597 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 12598 | fi |
81ecdfbb RW |
12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
12600 | $as_echo "$ac_cv_search_opendir" >&6; } | |
12601 | ac_res=$ac_cv_search_opendir | |
12602 | if test "$ac_res" != no; then : | |
12603 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
42ecbf5e | 12604 | |
d15b04bd | 12605 | fi |
252b5132 RH |
12606 | |
12607 | fi | |
12608 | ||
12609 | ||
81ecdfbb RW |
12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
12611 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
12612 | if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then : | |
12613 | $as_echo_n "(cached) " >&6 | |
34875e64 | 12614 | else |
81ecdfbb | 12615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 12616 | /* end confdefs.h. */ |
34875e64 | 12617 | #include <unistd.h> |
42ecbf5e DJ |
12618 | int |
12619 | main () | |
12620 | { | |
34875e64 | 12621 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
12622 | ; |
12623 | return 0; | |
12624 | } | |
12625 | _ACEOF | |
81ecdfbb | 12626 | if ac_fn_c_try_compile "$LINENO"; then : |
34875e64 NC |
12627 | ld_cv_decl_getopt_unistd_h=yes |
12628 | else | |
81ecdfbb | 12629 | ld_cv_decl_getopt_unistd_h=no |
34875e64 | 12630 | fi |
81ecdfbb | 12631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
12632 | fi |
12633 | ||
81ecdfbb RW |
12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 |
12635 | $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } | |
34875e64 | 12636 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e | 12637 | |
81ecdfbb | 12638 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h |
34875e64 NC |
12639 | |
12640 | fi | |
42ecbf5e | 12641 | |
252b5132 RH |
12642 | |
12643 | case "${host}" in | |
a8100d5b | 12644 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e | 12645 | |
81ecdfbb | 12646 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
252b5132 RH |
12647 | ;; |
12648 | esac | |
12649 | ||
81ecdfbb RW |
12650 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
12651 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
12652 | ac_have_decl=1 | |
252b5132 | 12653 | else |
81ecdfbb RW |
12654 | ac_have_decl=0 |
12655 | fi | |
502bdb00 | 12656 | |
81ecdfbb RW |
12657 | cat >>confdefs.h <<_ACEOF |
12658 | #define HAVE_DECL_STRSTR $ac_have_decl | |
42ecbf5e | 12659 | _ACEOF |
81ecdfbb RW |
12660 | ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" |
12661 | if test "x$ac_cv_have_decl_free" = x""yes; then : | |
12662 | ac_have_decl=1 | |
252b5132 | 12663 | else |
81ecdfbb | 12664 | ac_have_decl=0 |
252b5132 RH |
12665 | fi |
12666 | ||
502bdb00 | 12667 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12668 | #define HAVE_DECL_FREE $ac_have_decl |
502bdb00 | 12669 | _ACEOF |
81ecdfbb RW |
12670 | ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" |
12671 | if test "x$ac_cv_have_decl_sbrk" = x""yes; then : | |
12672 | ac_have_decl=1 | |
12673 | else | |
12674 | ac_have_decl=0 | |
12675 | fi | |
42ecbf5e | 12676 | |
81ecdfbb RW |
12677 | cat >>confdefs.h <<_ACEOF |
12678 | #define HAVE_DECL_SBRK $ac_have_decl | |
12679 | _ACEOF | |
12680 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" | |
12681 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : | |
12682 | ac_have_decl=1 | |
12683 | else | |
12684 | ac_have_decl=0 | |
12685 | fi | |
502bdb00 | 12686 | |
81ecdfbb RW |
12687 | cat >>confdefs.h <<_ACEOF |
12688 | #define HAVE_DECL_GETENV $ac_have_decl | |
12689 | _ACEOF | |
12690 | ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" | |
12691 | if test "x$ac_cv_have_decl_environ" = x""yes; then : | |
12692 | ac_have_decl=1 | |
502bdb00 | 12693 | else |
81ecdfbb RW |
12694 | ac_have_decl=0 |
12695 | fi | |
12696 | ||
12697 | cat >>confdefs.h <<_ACEOF | |
12698 | #define HAVE_DECL_ENVIRON $ac_have_decl | |
42ecbf5e | 12699 | _ACEOF |
252b5132 | 12700 | |
252b5132 | 12701 | |
81ecdfbb RW |
12702 | # Link in zlib if we can. This is needed only for the bootstrap tests |
12703 | # right now, since those tests use libbfd, which depends on zlib. | |
12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
12705 | $as_echo_n "checking for library containing zlibVersion... " >&6; } | |
12706 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
12707 | $as_echo_n "(cached) " >&6 | |
252b5132 | 12708 | else |
81ecdfbb RW |
12709 | ac_func_search_save_LIBS=$LIBS |
12710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
42ecbf5e | 12711 | /* end confdefs.h. */ |
502bdb00 | 12712 | |
81ecdfbb RW |
12713 | /* Override any GCC internal prototype to avoid an error. |
12714 | Use char because int might match the return type of a GCC | |
4474d12b | 12715 | builtin and then its argument prototype would still apply. */ |
4474d12b CS |
12716 | #ifdef __cplusplus |
12717 | extern "C" | |
12718 | #endif | |
4474d12b CS |
12719 | char zlibVersion (); |
12720 | int | |
12721 | main () | |
12722 | { | |
81ecdfbb | 12723 | return zlibVersion (); |
4474d12b CS |
12724 | ; |
12725 | return 0; | |
12726 | } | |
12727 | _ACEOF | |
81ecdfbb RW |
12728 | for ac_lib in '' z; do |
12729 | if test -z "$ac_lib"; then | |
12730 | ac_res="none required" | |
4474d12b | 12731 | else |
81ecdfbb RW |
12732 | ac_res=-l$ac_lib |
12733 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4474d12b | 12734 | fi |
81ecdfbb RW |
12735 | if ac_fn_c_try_link "$LINENO"; then : |
12736 | ac_cv_search_zlibVersion=$ac_res | |
4474d12b | 12737 | fi |
81ecdfbb RW |
12738 | rm -f core conftest.err conftest.$ac_objext \ |
12739 | conftest$ac_exeext | |
12740 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
12741 | break | |
4474d12b | 12742 | fi |
81ecdfbb RW |
12743 | done |
12744 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
4474d12b | 12745 | |
4474d12b | 12746 | else |
81ecdfbb | 12747 | ac_cv_search_zlibVersion=no |
4474d12b | 12748 | fi |
81ecdfbb RW |
12749 | rm conftest.$ac_ext |
12750 | LIBS=$ac_func_search_save_LIBS | |
4474d12b | 12751 | fi |
81ecdfbb RW |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
12753 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
12754 | ac_res=$ac_cv_search_zlibVersion | |
12755 | if test "$ac_res" != no; then : | |
12756 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12757 | for ac_header in zlib.h | |
12758 | do : | |
12759 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
12760 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
4474d12b | 12761 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 12762 | #define HAVE_ZLIB_H 1 |
4474d12b CS |
12763 | _ACEOF |
12764 | ||
12765 | fi | |
12766 | ||
12767 | done | |
12768 | ||
12769 | fi | |
12770 | ||
12771 | ||
597e2591 ILT |
12772 | # When converting linker scripts into strings for use in emulation |
12773 | # files, use astring.sed if the compiler supports ANSI string | |
12774 | # concatenation, or ostring.sed otherwise. This is to support the | |
12775 | # broken Microsoft MSVC compiler, which limits the length of string | |
12776 | # constants, while still supporting pre-ANSI compilers which do not | |
12777 | # support string concatenation. | |
81ecdfbb RW |
12778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5 |
12779 | $as_echo_n "checking whether ANSI C string concatenation works... " >&6; } | |
12780 | if test "${ld_cv_string_concatenation+set}" = set; then : | |
12781 | $as_echo_n "(cached) " >&6 | |
42ecbf5e | 12782 | else |
81ecdfbb | 12783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42ecbf5e | 12784 | /* end confdefs.h. */ |
81ecdfbb | 12785 | |
314e9a4e L |
12786 | int |
12787 | main () | |
12788 | { | |
81ecdfbb | 12789 | char *a = "a" "a"; |
314e9a4e L |
12790 | ; |
12791 | return 0; | |
12792 | } | |
12793 | _ACEOF | |
81ecdfbb RW |
12794 | if ac_fn_c_try_compile "$LINENO"; then : |
12795 | ld_cv_string_concatenation=yes | |
314e9a4e | 12796 | else |
81ecdfbb | 12797 | ld_cv_string_concatenation=no |
314e9a4e | 12798 | fi |
81ecdfbb | 12799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
314e9a4e | 12800 | fi |
81ecdfbb RW |
12801 | |
12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5 | |
12803 | $as_echo "$ld_cv_string_concatenation" >&6; } | |
12804 | if test "$ld_cv_string_concatenation" = "yes"; then | |
12805 | STRINGIFY=astring.sed | |
12806 | else | |
12807 | STRINGIFY=ostring.sed | |
314e9a4e | 12808 | fi |
81ecdfbb RW |
12809 | |
12810 | ||
12811 | # target-specific stuff: | |
12812 | ||
12813 | all_targets= | |
12814 | EMUL= | |
12815 | all_emuls= | |
12816 | all_emul_extras= | |
12817 | all_libpath= | |
12818 | ||
12819 | rm -f tdirs | |
12820 | ||
12821 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` | |
12822 | do | |
12823 | if test "$targ_alias" = "all"; then | |
12824 | all_targets=true | |
12825 | else | |
12826 | # Canonicalize the secondary target names. | |
12827 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
12828 | if test -n "$result"; then | |
12829 | targ=$result | |
12830 | else | |
12831 | targ=$targ_alias | |
12832 | fi | |
12833 | ||
12834 | . ${srcdir}/configure.tgt | |
12835 | ||
12836 | if test "$targ" = "$target"; then | |
12837 | EMUL=$targ_emul | |
12838 | fi | |
12839 | ||
12840 | if test x${want64} = xfalse; then | |
12841 | . ${srcdir}/../bfd/config.bfd | |
12842 | fi | |
12843 | ||
12844 | if test x${want64} = xtrue; then | |
12845 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
12846 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
12847 | fi | |
12848 | ||
12849 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do | |
12850 | case " $all_emuls " in | |
12851 | *" e${i}.o "*) ;; | |
12852 | *) | |
12853 | all_emuls="$all_emuls e${i}.o" | |
12854 | eval result=\$tdir_$i | |
12855 | test -z "$result" && result=$targ_alias | |
12856 | echo tdir_$i=$result >> tdirs | |
12857 | ;; | |
12858 | esac | |
12859 | done | |
12860 | ||
12861 | for i in $targ_emul $targ_extra_libpath; do | |
12862 | case " $all_libpath " in | |
12863 | *" ${i} "*) ;; | |
12864 | *) | |
12865 | if test -z "$all_libpath"; then | |
12866 | all_libpath=${i} | |
12867 | else | |
12868 | all_libpath="$all_libpath ${i}" | |
12869 | fi | |
12870 | ;; | |
12871 | esac | |
12872 | done | |
12873 | ||
12874 | for i in $targ_extra_ofiles; do | |
12875 | case " $all_emul_extras " in | |
12876 | *" ${i} "*) ;; | |
12877 | *) | |
12878 | all_emul_extras="$all_emul_extras ${i}" | |
12879 | ;; | |
12880 | esac | |
12881 | done | |
12882 | fi | |
12883 | done | |
12884 | ||
12885 | ||
12886 | ||
12887 | TDIRS=tdirs | |
12888 | ||
12889 | ||
12890 | if test x${all_targets} = xtrue; then | |
12891 | if test x${want64} = xfalse; then | |
12892 | # The cast to long int works around a bug in the HP C Compiler | |
12893 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12894 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12895 | # This bug is HP SR number 8606223364. | |
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12897 | $as_echo_n "checking size of long... " >&6; } | |
12898 | if test "${ac_cv_sizeof_long+set}" = set; then : | |
12899 | $as_echo_n "(cached) " >&6 | |
12900 | else | |
12901 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12902 | ||
314e9a4e | 12903 | else |
81ecdfbb RW |
12904 | if test "$ac_cv_type_long" = yes; then |
12905 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12906 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12907 | { as_fn_set_status 77 | |
12908 | as_fn_error "cannot compute sizeof (long) | |
12909 | See \`config.log' for more details." "$LINENO" 5; }; } | |
12910 | else | |
12911 | ac_cv_sizeof_long=0 | |
12912 | fi | |
314e9a4e | 12913 | fi |
81ecdfbb | 12914 | |
314e9a4e | 12915 | fi |
81ecdfbb RW |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
12917 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
12918 | ||
12919 | ||
12920 | ||
314e9a4e L |
12921 | cat >>confdefs.h <<_ACEOF |
12922 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12923 | _ACEOF | |
12924 | ||
12925 | ||
12926 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
12927 | want64=true | |
12928 | fi | |
12929 | fi | |
42ecbf5e DJ |
12930 | if test x${want64} = xtrue; then |
12931 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
12932 | else | |
12933 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
12934 | fi | |
12935 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' | |
12936 | else | |
12937 | EMULATION_OFILES=$all_emuls | |
12938 | EMUL_EXTRA_OFILES=$all_emul_extras | |
12939 | fi | |
12940 | ||
12941 | ||
12942 | ||
12943 | ||
12944 | EMULATION_LIBPATH=$all_libpath | |
12945 | ||
12946 | ||
12947 | if test x${enable_static} = xno; then | |
12948 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" | |
12949 | else | |
12950 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
12951 | fi | |
12952 | ||
12953 | ||
12954 | target_vendor=${target_vendor=$host_vendor} | |
12955 | case "$target_vendor" in | |
12956 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
12957 | *) EXTRA_SHLIB_EXTENSION= ;; | |
12958 | esac | |
12959 | ||
12960 | case "$target_os" in | |
12961 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
12962 | esac | |
12963 | ||
12964 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
12965 | ||
12966 | cat >>confdefs.h <<_ACEOF | |
12967 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
12968 | _ACEOF | |
12969 | ||
12970 | fi | |
12971 | ||
108a6f8e CD |
12972 | |
12973 | ||
12974 | ||
12975 | ||
31dd3154 | 12976 | |
81ecdfbb | 12977 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
da594c4a | 12978 | |
42ecbf5e DJ |
12979 | cat >confcache <<\_ACEOF |
12980 | # This file is a shell script that caches the results of configure | |
12981 | # tests run on this system so they can be shared between configure | |
12982 | # scripts and configure runs, see configure's option --config-cache. | |
12983 | # It is not useful on other systems. If it contains results you don't | |
12984 | # want to keep, you may remove or edit it. | |
12985 | # | |
12986 | # config.status only pays attention to the cache file if you give it | |
12987 | # the --recheck option to rerun configure. | |
12988 | # | |
12989 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12990 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12991 | # following values. | |
12992 | ||
12993 | _ACEOF | |
12994 | ||
12995 | # The following way of writing the cache mishandles newlines in values, | |
12996 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 12997 | # So, we kill variables containing newlines. |
42ecbf5e DJ |
12998 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12999 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
13000 | ( |
13001 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13002 | eval ac_val=\$$ac_var | |
13003 | case $ac_val in #( | |
13004 | *${as_nl}*) | |
13005 | case $ac_var in #( | |
13006 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
13007 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
13008 | esac | |
13009 | case $ac_var in #( | |
13010 | _ | IFS | as_nl) ;; #( | |
13011 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
13012 | *) { eval $ac_var=; unset $ac_var;} ;; | |
13013 | esac ;; | |
13014 | esac | |
13015 | done | |
13016 | ||
42ecbf5e | 13017 | (set) 2>&1 | |
81ecdfbb RW |
13018 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13019 | *${as_nl}ac_space=\ *) | |
13020 | # `set' does not quote correctly, so add quotes: double-quote | |
13021 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
42ecbf5e DJ |
13022 | sed -n \ |
13023 | "s/'/'\\\\''/g; | |
13024 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 13025 | ;; #( |
42ecbf5e DJ |
13026 | *) |
13027 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 13028 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
42ecbf5e | 13029 | ;; |
81ecdfbb RW |
13030 | esac | |
13031 | sort | |
13032 | ) | | |
42ecbf5e | 13033 | sed ' |
81ecdfbb | 13034 | /^ac_cv_env_/b end |
42ecbf5e | 13035 | t clear |
81ecdfbb | 13036 | :clear |
42ecbf5e DJ |
13037 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13038 | t end | |
81ecdfbb RW |
13039 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13040 | :end' >>confcache | |
13041 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13042 | if test -w "$cache_file"; then | |
13043 | test "x$cache_file" != "x/dev/null" && | |
13044 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
13045 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
42ecbf5e DJ |
13046 | cat confcache >$cache_file |
13047 | else | |
81ecdfbb RW |
13048 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
13049 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
42ecbf5e DJ |
13050 | fi |
13051 | fi | |
13052 | rm -f confcache | |
13053 | ||
13054 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13055 | # Let make expand exec_prefix. | |
13056 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13057 | ||
42ecbf5e DJ |
13058 | DEFS=-DHAVE_CONFIG_H |
13059 | ||
13060 | ac_libobjs= | |
13061 | ac_ltlibobjs= | |
13062 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
13063 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
13064 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
13065 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13066 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13067 | # will be set to the directory where LIBOBJS objects are built. | |
13068 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
13069 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
42ecbf5e DJ |
13070 | done |
13071 | LIBOBJS=$ac_libobjs | |
13072 | ||
13073 | LTLIBOBJS=$ac_ltlibobjs | |
13074 | ||
13075 | ||
13076 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
81ecdfbb RW |
13077 | as_fn_error "conditional \"AMDEP\" was never defined. |
13078 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e DJ |
13079 | fi |
13080 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
81ecdfbb RW |
13081 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
13082 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13083 | fi | |
13084 | if test -n "$EXEEXT"; then | |
13085 | am__EXEEXT_TRUE= | |
13086 | am__EXEEXT_FALSE='#' | |
13087 | else | |
13088 | am__EXEEXT_TRUE='#' | |
13089 | am__EXEEXT_FALSE= | |
42ecbf5e | 13090 | fi |
81ecdfbb | 13091 | |
64ac50ac RW |
13092 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
13093 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
13094 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13095 | fi | |
42ecbf5e | 13096 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
81ecdfbb RW |
13097 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
13098 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
42ecbf5e | 13099 | fi |
d5fbea21 | 13100 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
81ecdfbb RW |
13101 | as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. |
13102 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d5fbea21 | 13103 | fi |
42ecbf5e DJ |
13104 | |
13105 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 13106 | ac_write_fail=0 |
42ecbf5e DJ |
13107 | ac_clean_files_save=$ac_clean_files |
13108 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
13109 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
13110 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13111 | as_write_fail=0 | |
13112 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
42ecbf5e DJ |
13113 | #! $SHELL |
13114 | # Generated by $as_me. | |
13115 | # Run this file to recreate the current configuration. | |
13116 | # Compiler output produced by configure, useful for debugging | |
13117 | # configure, is in config.log if it exists. | |
13118 | ||
13119 | debug=false | |
13120 | ac_cs_recheck=false | |
13121 | ac_cs_silent=false | |
42ecbf5e | 13122 | |
81ecdfbb RW |
13123 | SHELL=\${CONFIG_SHELL-$SHELL} |
13124 | export SHELL | |
13125 | _ASEOF | |
13126 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13127 | ## -------------------- ## | |
13128 | ## M4sh Initialization. ## | |
13129 | ## -------------------- ## | |
42ecbf5e | 13130 | |
81ecdfbb RW |
13131 | # Be more Bourne compatible |
13132 | DUALCASE=1; export DUALCASE # for MKS sh | |
13133 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
42ecbf5e DJ |
13134 | emulate sh |
13135 | NULLCMD=: | |
81ecdfbb | 13136 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
42ecbf5e DJ |
13137 | # is contrary to our usage. Disable this feature. |
13138 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
13139 | setopt NO_GLOB_SUBST |
13140 | else | |
13141 | case `(set -o) 2>/dev/null` in #( | |
13142 | *posix*) : | |
13143 | set -o posix ;; #( | |
13144 | *) : | |
13145 | ;; | |
13146 | esac | |
42ecbf5e | 13147 | fi |
42ecbf5e | 13148 | |
81ecdfbb RW |
13149 | |
13150 | as_nl=' | |
13151 | ' | |
13152 | export as_nl | |
13153 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13154 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13155 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13156 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13157 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
13158 | # but without wasting forks for bash or zsh. | |
13159 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13160 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13161 | as_echo='print -r --' | |
13162 | as_echo_n='print -rn --' | |
13163 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13164 | as_echo='printf %s\n' | |
13165 | as_echo_n='printf %s' | |
13166 | else | |
13167 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13168 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13169 | as_echo_n='/usr/ucb/echo -n' | |
13170 | else | |
13171 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13172 | as_echo_n_body='eval | |
13173 | arg=$1; | |
13174 | case $arg in #( | |
13175 | *"$as_nl"*) | |
13176 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13177 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13178 | esac; | |
13179 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13180 | ' | |
13181 | export as_echo_n_body | |
13182 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13183 | fi | |
13184 | export as_echo_body | |
13185 | as_echo='sh -c $as_echo_body as_echo' | |
13186 | fi | |
13187 | ||
13188 | # The user is always right. | |
13189 | if test "${PATH_SEPARATOR+set}" != set; then | |
13190 | PATH_SEPARATOR=: | |
13191 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13192 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13193 | PATH_SEPARATOR=';' | |
13194 | } | |
42ecbf5e DJ |
13195 | fi |
13196 | ||
13197 | ||
81ecdfbb RW |
13198 | # IFS |
13199 | # We need space, tab and new line, in precisely that order. Quoting is | |
13200 | # there to prevent editors from complaining about space-tab. | |
13201 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13202 | # splitting by setting IFS to empty value.) | |
13203 | IFS=" "" $as_nl" | |
13204 | ||
13205 | # Find who we are. Look in the path if we contain no directory separator. | |
13206 | case $0 in #(( | |
13207 | *[\\/]* ) as_myself=$0 ;; | |
13208 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13209 | for as_dir in $PATH | |
13210 | do | |
13211 | IFS=$as_save_IFS | |
13212 | test -z "$as_dir" && as_dir=. | |
13213 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13214 | done | |
13215 | IFS=$as_save_IFS | |
13216 | ||
13217 | ;; | |
13218 | esac | |
13219 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13220 | # in which case we are not to be found in the path. | |
13221 | if test "x$as_myself" = x; then | |
13222 | as_myself=$0 | |
13223 | fi | |
13224 | if test ! -f "$as_myself"; then | |
13225 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
13226 | exit 1 | |
13227 | fi | |
13228 | ||
13229 | # Unset variables that we do not need and which cause bugs (e.g. in | |
13230 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13231 | # suppresses any "Segmentation fault" message there. '((' could | |
13232 | # trigger a bug in pdksh 5.2.14. | |
13233 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13234 | do eval test x\${$as_var+set} = xset \ | |
13235 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
13236 | done | |
42ecbf5e DJ |
13237 | PS1='$ ' |
13238 | PS2='> ' | |
13239 | PS4='+ ' | |
13240 | ||
13241 | # NLS nuisances. | |
81ecdfbb RW |
13242 | LC_ALL=C |
13243 | export LC_ALL | |
13244 | LANGUAGE=C | |
13245 | export LANGUAGE | |
13246 | ||
13247 | # CDPATH. | |
13248 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13249 | ||
13250 | ||
13251 | # as_fn_error ERROR [LINENO LOG_FD] | |
13252 | # --------------------------------- | |
13253 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
13254 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
13255 | # script with status $?, using 1 if that was 0. | |
13256 | as_fn_error () | |
13257 | { | |
13258 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
13259 | if test "$3"; then | |
13260 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13261 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
42ecbf5e | 13262 | fi |
81ecdfbb RW |
13263 | $as_echo "$as_me: error: $1" >&2 |
13264 | as_fn_exit $as_status | |
13265 | } # as_fn_error | |
13266 | ||
13267 | ||
13268 | # as_fn_set_status STATUS | |
13269 | # ----------------------- | |
13270 | # Set $? to STATUS, without forking. | |
13271 | as_fn_set_status () | |
13272 | { | |
13273 | return $1 | |
13274 | } # as_fn_set_status | |
13275 | ||
13276 | # as_fn_exit STATUS | |
13277 | # ----------------- | |
13278 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13279 | as_fn_exit () | |
13280 | { | |
13281 | set +e | |
13282 | as_fn_set_status $1 | |
13283 | exit $1 | |
13284 | } # as_fn_exit | |
13285 | ||
13286 | # as_fn_unset VAR | |
13287 | # --------------- | |
13288 | # Portably unset VAR. | |
13289 | as_fn_unset () | |
13290 | { | |
13291 | { eval $1=; unset $1;} | |
13292 | } | |
13293 | as_unset=as_fn_unset | |
13294 | # as_fn_append VAR VALUE | |
13295 | # ---------------------- | |
13296 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13297 | # advantage of any shell optimizations that allow amortized linear growth over | |
13298 | # repeated appends, instead of the typical quadratic growth present in naive | |
13299 | # implementations. | |
13300 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13301 | eval 'as_fn_append () | |
13302 | { | |
13303 | eval $1+=\$2 | |
13304 | }' | |
13305 | else | |
13306 | as_fn_append () | |
13307 | { | |
13308 | eval $1=\$$1\$2 | |
13309 | } | |
13310 | fi # as_fn_append | |
13311 | ||
13312 | # as_fn_arith ARG... | |
13313 | # ------------------ | |
13314 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13315 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13316 | # must be portable across $(()) and expr. | |
13317 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13318 | eval 'as_fn_arith () | |
13319 | { | |
13320 | as_val=$(( $* )) | |
13321 | }' | |
13322 | else | |
13323 | as_fn_arith () | |
13324 | { | |
13325 | as_val=`expr "$@" || test $? -eq 1` | |
13326 | } | |
13327 | fi # as_fn_arith | |
13328 | ||
42ecbf5e | 13329 | |
81ecdfbb RW |
13330 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13331 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
42ecbf5e DJ |
13332 | as_expr=expr |
13333 | else | |
13334 | as_expr=false | |
13335 | fi | |
13336 | ||
81ecdfbb | 13337 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
42ecbf5e DJ |
13338 | as_basename=basename |
13339 | else | |
13340 | as_basename=false | |
13341 | fi | |
13342 | ||
81ecdfbb RW |
13343 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13344 | as_dirname=dirname | |
13345 | else | |
13346 | as_dirname=false | |
13347 | fi | |
42ecbf5e | 13348 | |
81ecdfbb | 13349 | as_me=`$as_basename -- "$0" || |
42ecbf5e DJ |
13350 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13351 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
13352 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
13353 | $as_echo X/"$0" | | |
13354 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13355 | s//\1/ | |
13356 | q | |
13357 | } | |
13358 | /^X\/\(\/\/\)$/{ | |
13359 | s//\1/ | |
13360 | q | |
13361 | } | |
13362 | /^X\/\(\/\).*/{ | |
13363 | s//\1/ | |
13364 | q | |
13365 | } | |
13366 | s/.*/./; q'` | |
42ecbf5e | 13367 | |
42ecbf5e DJ |
13368 | # Avoid depending upon Character Ranges. |
13369 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13370 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13371 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13372 | as_cr_digits='0123456789' | |
13373 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13374 | ||
81ecdfbb RW |
13375 | ECHO_C= ECHO_N= ECHO_T= |
13376 | case `echo -n x` in #((((( | |
13377 | -n*) | |
13378 | case `echo 'xy\c'` in | |
13379 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
13380 | xy) ECHO_C='\c';; | |
13381 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
13382 | ECHO_T=' ';; | |
13383 | esac;; | |
13384 | *) | |
13385 | ECHO_N='-n';; | |
42ecbf5e | 13386 | esac |
252b5132 | 13387 | |
81ecdfbb RW |
13388 | rm -f conf$$ conf$$.exe conf$$.file |
13389 | if test -d conf$$.dir; then | |
13390 | rm -f conf$$.dir/conf$$.file | |
42ecbf5e | 13391 | else |
81ecdfbb RW |
13392 | rm -f conf$$.dir |
13393 | mkdir conf$$.dir 2>/dev/null | |
42ecbf5e | 13394 | fi |
81ecdfbb RW |
13395 | if (echo >conf$$.file) 2>/dev/null; then |
13396 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42ecbf5e | 13397 | as_ln_s='ln -s' |
81ecdfbb RW |
13398 | # ... but there are two gotchas: |
13399 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13400 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13401 | # In both cases, we have to default to `cp -p'. | |
13402 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13403 | as_ln_s='cp -p' | |
13404 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13405 | as_ln_s=ln | |
13406 | else | |
13407 | as_ln_s='cp -p' | |
252b5132 | 13408 | fi |
e5a52504 | 13409 | else |
42ecbf5e | 13410 | as_ln_s='cp -p' |
e5a52504 | 13411 | fi |
81ecdfbb RW |
13412 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13413 | rmdir conf$$.dir 2>/dev/null | |
13414 | ||
13415 | ||
13416 | # as_fn_mkdir_p | |
13417 | # ------------- | |
13418 | # Create "$as_dir" as a directory, including parents if necessary. | |
13419 | as_fn_mkdir_p () | |
13420 | { | |
13421 | ||
13422 | case $as_dir in #( | |
13423 | -*) as_dir=./$as_dir;; | |
13424 | esac | |
13425 | test -d "$as_dir" || eval $as_mkdir_p || { | |
13426 | as_dirs= | |
13427 | while :; do | |
13428 | case $as_dir in #( | |
13429 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13430 | *) as_qdir=$as_dir;; | |
13431 | esac | |
13432 | as_dirs="'$as_qdir' $as_dirs" | |
13433 | as_dir=`$as_dirname -- "$as_dir" || | |
13434 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13435 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13436 | X"$as_dir" : 'X\(//\)$' \| \ | |
13437 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13438 | $as_echo X"$as_dir" | | |
13439 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13440 | s//\1/ | |
13441 | q | |
13442 | } | |
13443 | /^X\(\/\/\)[^/].*/{ | |
13444 | s//\1/ | |
13445 | q | |
13446 | } | |
13447 | /^X\(\/\/\)$/{ | |
13448 | s//\1/ | |
13449 | q | |
13450 | } | |
13451 | /^X\(\/\).*/{ | |
13452 | s//\1/ | |
13453 | q | |
13454 | } | |
13455 | s/.*/./; q'` | |
13456 | test -d "$as_dir" && break | |
13457 | done | |
13458 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13459 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
13460 | ||
252b5132 | 13461 | |
81ecdfbb | 13462 | } # as_fn_mkdir_p |
42ecbf5e | 13463 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 13464 | as_mkdir_p='mkdir -p "$as_dir"' |
42ecbf5e DJ |
13465 | else |
13466 | test -d ./-p && rmdir ./-p | |
13467 | as_mkdir_p=false | |
13468 | fi | |
252b5132 | 13469 | |
81ecdfbb RW |
13470 | if test -x / >/dev/null 2>&1; then |
13471 | as_test_x='test -x' | |
13472 | else | |
13473 | if ls -dL / >/dev/null 2>&1; then | |
13474 | as_ls_L_option=L | |
13475 | else | |
13476 | as_ls_L_option= | |
13477 | fi | |
13478 | as_test_x=' | |
13479 | eval sh -c '\'' | |
13480 | if test -d "$1"; then | |
13481 | test -d "$1/."; | |
13482 | else | |
13483 | case $1 in #( | |
13484 | -*)set "./$1";; | |
13485 | esac; | |
13486 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
13487 | ???[sx]*):;;*)false;;esac;fi | |
13488 | '\'' sh | |
13489 | ' | |
13490 | fi | |
13491 | as_executable_p=$as_test_x | |
252b5132 | 13492 | |
42ecbf5e DJ |
13493 | # Sed expression to map a string onto a valid CPP name. |
13494 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 13495 | |
42ecbf5e DJ |
13496 | # Sed expression to map a string onto a valid variable name. |
13497 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 13498 | |
e5a52504 | 13499 | |
42ecbf5e | 13500 | exec 6>&1 |
81ecdfbb RW |
13501 | ## ----------------------------------- ## |
13502 | ## Main body of $CONFIG_STATUS script. ## | |
13503 | ## ----------------------------------- ## | |
13504 | _ASEOF | |
13505 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
e5a52504 | 13506 | |
81ecdfbb RW |
13507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13508 | # Save the log message, to keep $0 and so on meaningful, and to | |
42ecbf5e | 13509 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
13510 | # values after options handling. |
13511 | ac_log=" | |
42ecbf5e | 13512 | This file was extended by $as_me, which was |
81ecdfbb | 13513 | generated by GNU Autoconf 2.64. Invocation command line was |
42ecbf5e DJ |
13514 | |
13515 | CONFIG_FILES = $CONFIG_FILES | |
13516 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13517 | CONFIG_LINKS = $CONFIG_LINKS | |
13518 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13519 | $ $0 $@ | |
e5a52504 | 13520 | |
81ecdfbb RW |
13521 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13522 | " | |
13523 | ||
42ecbf5e DJ |
13524 | _ACEOF |
13525 | ||
81ecdfbb RW |
13526 | case $ac_config_files in *" |
13527 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
13528 | esac | |
e5a52504 | 13529 | |
81ecdfbb RW |
13530 | case $ac_config_headers in *" |
13531 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
13532 | esac | |
42ecbf5e | 13533 | |
42ecbf5e | 13534 | |
81ecdfbb RW |
13535 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13536 | # Files that config.status was made for. | |
13537 | config_files="$ac_config_files" | |
13538 | config_headers="$ac_config_headers" | |
13539 | config_commands="$ac_config_commands" | |
42ecbf5e | 13540 | |
81ecdfbb | 13541 | _ACEOF |
42ecbf5e | 13542 | |
81ecdfbb | 13543 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 13544 | ac_cs_usage="\ |
81ecdfbb RW |
13545 | \`$as_me' instantiates files and other configuration actions |
13546 | from templates according to the current configuration. Unless the files | |
13547 | and actions are specified as TAGs, all are instantiated by default. | |
42ecbf5e | 13548 | |
81ecdfbb | 13549 | Usage: $0 [OPTION]... [TAG]... |
42ecbf5e DJ |
13550 | |
13551 | -h, --help print this help, then exit | |
81ecdfbb RW |
13552 | -V, --version print version number and configuration settings, then exit |
13553 | -q, --quiet, --silent | |
13554 | do not print progress messages | |
42ecbf5e DJ |
13555 | -d, --debug don't remove temporary files |
13556 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
13557 | --file=FILE[:TEMPLATE] |
13558 | instantiate the configuration file FILE | |
13559 | --header=FILE[:TEMPLATE] | |
13560 | instantiate the configuration header FILE | |
42ecbf5e DJ |
13561 | |
13562 | Configuration files: | |
13563 | $config_files | |
13564 | ||
13565 | Configuration headers: | |
13566 | $config_headers | |
13567 | ||
13568 | Configuration commands: | |
13569 | $config_commands | |
13570 | ||
81ecdfbb | 13571 | Report bugs to the package provider." |
42ecbf5e | 13572 | |
81ecdfbb RW |
13573 | _ACEOF |
13574 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
42ecbf5e DJ |
13575 | ac_cs_version="\\ |
13576 | config.status | |
81ecdfbb RW |
13577 | configured by $0, generated by GNU Autoconf 2.64, |
13578 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
42ecbf5e | 13579 | |
81ecdfbb | 13580 | Copyright (C) 2009 Free Software Foundation, Inc. |
42ecbf5e DJ |
13581 | This config.status script is free software; the Free Software Foundation |
13582 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
13583 | |
13584 | ac_pwd='$ac_pwd' | |
13585 | srcdir='$srcdir' | |
13586 | INSTALL='$INSTALL' | |
13587 | MKDIR_P='$MKDIR_P' | |
13588 | AWK='$AWK' | |
13589 | test -n "\$AWK" || AWK=awk | |
42ecbf5e DJ |
13590 | _ACEOF |
13591 | ||
81ecdfbb RW |
13592 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13593 | # The default lists apply if the user does not specify any file. | |
42ecbf5e DJ |
13594 | ac_need_defaults=: |
13595 | while test $# != 0 | |
13596 | do | |
13597 | case $1 in | |
13598 | --*=*) | |
81ecdfbb RW |
13599 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13600 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
42ecbf5e | 13601 | ac_shift=: |
252b5132 | 13602 | ;; |
81ecdfbb | 13603 | *) |
42ecbf5e DJ |
13604 | ac_option=$1 |
13605 | ac_optarg=$2 | |
13606 | ac_shift=shift | |
252b5132 | 13607 | ;; |
42ecbf5e | 13608 | esac |
252b5132 | 13609 | |
42ecbf5e DJ |
13610 | case $ac_option in |
13611 | # Handling of the options. | |
42ecbf5e DJ |
13612 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13613 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
13614 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13615 | $as_echo "$ac_cs_version"; exit ;; | |
13616 | --debug | --debu | --deb | --de | --d | -d ) | |
42ecbf5e DJ |
13617 | debug=: ;; |
13618 | --file | --fil | --fi | --f ) | |
13619 | $ac_shift | |
81ecdfbb RW |
13620 | case $ac_optarg in |
13621 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13622 | esac | |
13623 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
42ecbf5e DJ |
13624 | ac_need_defaults=false;; |
13625 | --header | --heade | --head | --hea ) | |
13626 | $ac_shift | |
81ecdfbb RW |
13627 | case $ac_optarg in |
13628 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13629 | esac | |
13630 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
42ecbf5e | 13631 | ac_need_defaults=false;; |
81ecdfbb RW |
13632 | --he | --h) |
13633 | # Conflict between --help and --header | |
13634 | as_fn_error "ambiguous option: \`$1' | |
13635 | Try \`$0 --help' for more information.";; | |
13636 | --help | --hel | -h ) | |
13637 | $as_echo "$ac_cs_usage"; exit ;; | |
42ecbf5e DJ |
13638 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13639 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13640 | ac_cs_silent=: ;; | |
252b5132 | 13641 | |
42ecbf5e | 13642 | # This is an error. |
81ecdfbb RW |
13643 | -*) as_fn_error "unrecognized option: \`$1' |
13644 | Try \`$0 --help' for more information." ;; | |
252b5132 | 13645 | |
81ecdfbb RW |
13646 | *) as_fn_append ac_config_targets " $1" |
13647 | ac_need_defaults=false ;; | |
252b5132 | 13648 | |
42ecbf5e DJ |
13649 | esac |
13650 | shift | |
13651 | done | |
d15b04bd | 13652 | |
42ecbf5e | 13653 | ac_configure_extra_args= |
e5a52504 | 13654 | |
42ecbf5e DJ |
13655 | if $ac_cs_silent; then |
13656 | exec 6>/dev/null | |
13657 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13658 | fi | |
e5a52504 | 13659 | |
42ecbf5e | 13660 | _ACEOF |
81ecdfbb | 13661 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42ecbf5e | 13662 | if \$ac_cs_recheck; then |
81ecdfbb RW |
13663 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13664 | shift | |
13665 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13666 | CONFIG_SHELL='$SHELL' | |
13667 | export CONFIG_SHELL | |
13668 | exec "\$@" | |
42ecbf5e DJ |
13669 | fi |
13670 | ||
13671 | _ACEOF | |
81ecdfbb RW |
13672 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13673 | exec 5>>config.log | |
13674 | { | |
13675 | echo | |
13676 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13677 | ## Running $as_me. ## | |
13678 | _ASBOX | |
13679 | $as_echo "$ac_log" | |
13680 | } >&5 | |
42ecbf5e | 13681 | |
81ecdfbb RW |
13682 | _ACEOF |
13683 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
252b5132 | 13684 | # |
81ecdfbb | 13685 | # INIT-COMMANDS |
252b5132 | 13686 | # |
42ecbf5e | 13687 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
13688 | |
13689 | ||
13690 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13691 | # if CDPATH is set. | |
13692 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13693 | ||
13694 | sed_quote_subst='$sed_quote_subst' | |
13695 | double_quote_subst='$double_quote_subst' | |
13696 | delay_variable_subst='$delay_variable_subst' | |
13697 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13698 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
13699 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
13700 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13701 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
13702 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
13703 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13704 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
13705 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13706 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13707 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
13708 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13709 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
13710 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
13711 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13712 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13713 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13714 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
13715 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
13716 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
13717 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
13718 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
13719 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
13720 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
13721 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
13722 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
13723 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13724 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
b214d478 | 13725 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
13726 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
13727 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
13728 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
13729 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13730 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
13731 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
13732 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13733 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13734 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13735 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
13736 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13737 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
13738 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
13739 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
13740 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
13741 | 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"`' | |
b214d478 | 13742 | 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 |
13743 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
13744 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
13745 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
13746 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
13747 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13748 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
13749 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
13750 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13751 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
13752 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
b214d478 SE |
13753 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
13754 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
13755 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
13756 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
13757 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
d7040cdb SE |
13758 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
13759 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13760 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13761 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
13762 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
13763 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13764 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13765 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
13766 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13767 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13768 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13769 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13770 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13771 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13772 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13773 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13774 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13775 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13776 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13777 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
13778 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
13779 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
13780 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
13781 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13782 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
13783 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13784 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
13785 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
13786 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
13787 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13788 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13789 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13790 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13791 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13792 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
13793 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
13794 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13795 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
13796 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13797 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13798 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13799 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13800 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13801 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13802 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13803 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13804 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13805 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
13806 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
13807 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13808 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13809 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
13810 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
13811 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
13812 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13813 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13814 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13815 | ||
13816 | LTCC='$LTCC' | |
13817 | LTCFLAGS='$LTCFLAGS' | |
13818 | compiler='$compiler_DEFAULT' | |
13819 | ||
13820 | # Quote evaled strings. | |
13821 | for var in SED \ | |
13822 | GREP \ | |
13823 | EGREP \ | |
13824 | FGREP \ | |
13825 | LD \ | |
13826 | NM \ | |
13827 | LN_S \ | |
13828 | lt_SP2NL \ | |
13829 | lt_NL2SP \ | |
13830 | reload_flag \ | |
b214d478 | 13831 | OBJDUMP \ |
d7040cdb SE |
13832 | deplibs_check_method \ |
13833 | file_magic_cmd \ | |
13834 | AR \ | |
13835 | AR_FLAGS \ | |
13836 | STRIP \ | |
13837 | RANLIB \ | |
13838 | CC \ | |
13839 | CFLAGS \ | |
13840 | compiler \ | |
13841 | lt_cv_sys_global_symbol_pipe \ | |
13842 | lt_cv_sys_global_symbol_to_cdecl \ | |
13843 | lt_cv_sys_global_symbol_to_c_name_address \ | |
b214d478 | 13844 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
13845 | SHELL \ |
13846 | ECHO \ | |
13847 | lt_prog_compiler_no_builtin_flag \ | |
13848 | lt_prog_compiler_wl \ | |
13849 | lt_prog_compiler_pic \ | |
13850 | lt_prog_compiler_static \ | |
13851 | lt_cv_prog_compiler_c_o \ | |
13852 | need_locks \ | |
b214d478 SE |
13853 | DSYMUTIL \ |
13854 | NMEDIT \ | |
13855 | LIPO \ | |
13856 | OTOOL \ | |
13857 | OTOOL64 \ | |
d7040cdb SE |
13858 | shrext_cmds \ |
13859 | export_dynamic_flag_spec \ | |
13860 | whole_archive_flag_spec \ | |
13861 | compiler_needs_object \ | |
13862 | with_gnu_ld \ | |
13863 | allow_undefined_flag \ | |
13864 | no_undefined_flag \ | |
13865 | hardcode_libdir_flag_spec \ | |
13866 | hardcode_libdir_flag_spec_ld \ | |
13867 | hardcode_libdir_separator \ | |
13868 | fix_srcfile_path \ | |
13869 | exclude_expsyms \ | |
13870 | include_expsyms \ | |
13871 | file_list_spec \ | |
13872 | variables_saved_for_relink \ | |
13873 | libname_spec \ | |
13874 | library_names_spec \ | |
13875 | soname_spec \ | |
13876 | finish_eval \ | |
13877 | old_striplib \ | |
13878 | striplib; do | |
13879 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13880 | *[\\\\\\\`\\"\\\$]*) | |
13881 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13882 | ;; | |
13883 | *) | |
13884 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13885 | ;; | |
13886 | esac | |
13887 | done | |
13888 | ||
13889 | # Double-quote double-evaled strings. | |
13890 | for var in reload_cmds \ | |
13891 | old_postinstall_cmds \ | |
13892 | old_postuninstall_cmds \ | |
13893 | old_archive_cmds \ | |
13894 | extract_expsyms_cmds \ | |
13895 | old_archive_from_new_cmds \ | |
13896 | old_archive_from_expsyms_cmds \ | |
13897 | archive_cmds \ | |
13898 | archive_expsym_cmds \ | |
13899 | module_cmds \ | |
13900 | module_expsym_cmds \ | |
13901 | export_symbols_cmds \ | |
13902 | prelink_cmds \ | |
13903 | postinstall_cmds \ | |
13904 | postuninstall_cmds \ | |
13905 | finish_cmds \ | |
13906 | sys_lib_search_path_spec \ | |
13907 | sys_lib_dlsearch_path_spec; do | |
13908 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13909 | *[\\\\\\\`\\"\\\$]*) | |
13910 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13911 | ;; | |
13912 | *) | |
13913 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13914 | ;; | |
13915 | esac | |
13916 | done | |
13917 | ||
13918 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
13919 | case \$lt_ECHO in | |
13920 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
13921 | ;; | |
13922 | esac | |
13923 | ||
13924 | ac_aux_dir='$ac_aux_dir' | |
13925 | xsi_shell='$xsi_shell' | |
13926 | lt_shell_append='$lt_shell_append' | |
13927 | ||
13928 | # See if we are running on zsh, and set the options which allow our | |
13929 | # commands through without removal of \ escapes INIT. | |
13930 | if test -n "\${ZSH_VERSION+set}" ; then | |
13931 | setopt NO_GLOB_SUBST | |
13932 | fi | |
13933 | ||
13934 | ||
13935 | PACKAGE='$PACKAGE' | |
13936 | VERSION='$VERSION' | |
13937 | TIMESTAMP='$TIMESTAMP' | |
13938 | RM='$RM' | |
13939 | ofile='$ofile' | |
13940 | ||
13941 | ||
13942 | ||
20e95c23 DJ |
13943 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
13944 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
13945 | # from automake. | |
13946 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
13947 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
13948 | LINGUAS="${LINGUAS-%UNSET%}" | |
13949 | ||
42ecbf5e DJ |
13950 | |
13951 | _ACEOF | |
13952 | ||
81ecdfbb | 13953 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e | 13954 | |
81ecdfbb | 13955 | # Handling of arguments. |
42ecbf5e | 13956 | for ac_config_target in $ac_config_targets |
252b5132 | 13957 | do |
81ecdfbb RW |
13958 | case $ac_config_target in |
13959 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13960 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
13961 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13962 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
13963 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13964 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
13965 | ||
13966 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
252b5132 RH |
13967 | esac |
13968 | done | |
13969 | ||
81ecdfbb | 13970 | |
42ecbf5e DJ |
13971 | # If the user did not use the arguments to specify the items to instantiate, |
13972 | # then the envvar interface is used. Set only those that are not. | |
13973 | # We use the long form for the default assignment because of an extremely | |
13974 | # bizarre bug on SunOS 4.1.3. | |
13975 | if $ac_need_defaults; then | |
13976 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13977 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13978 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13979 | fi | |
13980 | ||
13981 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 13982 | # simply because there is no reason against having it here, and in addition, |
42ecbf5e | 13983 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
13984 | # Hook for its removal unless debugging. |
13985 | # Note that there is a small window in which the directory will not be cleaned: | |
13986 | # after its creation but before its name has been assigned to `$tmp'. | |
42ecbf5e DJ |
13987 | $debug || |
13988 | { | |
81ecdfbb RW |
13989 | tmp= |
13990 | trap 'exit_status=$? | |
13991 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13992 | ' 0 | |
13993 | trap 'as_fn_exit 1' 1 2 13 15 | |
42ecbf5e | 13994 | } |
42ecbf5e | 13995 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 13996 | |
42ecbf5e | 13997 | { |
81ecdfbb | 13998 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
42ecbf5e DJ |
13999 | test -n "$tmp" && test -d "$tmp" |
14000 | } || | |
14001 | { | |
81ecdfbb RW |
14002 | tmp=./conf$$-$RANDOM |
14003 | (umask 077 && mkdir "$tmp") | |
14004 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14005 | ||
14006 | # Set up the scripts for CONFIG_FILES section. | |
14007 | # No need to generate them if there are no CONFIG_FILES. | |
14008 | # This happens for instance with `./config.status config.h'. | |
14009 | if test -n "$CONFIG_FILES"; then | |
14010 | ||
14011 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14012 | ac_cs_awk_getline=: | |
14013 | ac_cs_awk_pipe_init= | |
14014 | ac_cs_awk_read_file=' | |
14015 | while ((getline aline < (F[key])) > 0) | |
14016 | print(aline) | |
14017 | close(F[key])' | |
14018 | ac_cs_awk_pipe_fini= | |
14019 | else | |
14020 | ac_cs_awk_getline=false | |
14021 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14022 | ac_cs_awk_read_file=' | |
14023 | print "|#_!!_#|" | |
14024 | print "cat " F[key] " &&" | |
14025 | '$ac_cs_awk_pipe_init | |
14026 | # The final `:' finishes the AND list. | |
14027 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14028 | fi | |
14029 | ac_cr=`echo X | tr X '\015'` | |
14030 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14031 | # But we know of no other shell where ac_cr would be empty at this | |
14032 | # point, so we can use a bashism as a fallback. | |
14033 | if test "x$ac_cr" = x; then | |
14034 | eval ac_cr=\$\'\\r\' | |
14035 | fi | |
14036 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14037 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14038 | ac_cs_awk_cr='\r' | |
14039 | else | |
14040 | ac_cs_awk_cr=$ac_cr | |
14041 | fi | |
14042 | ||
14043 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14044 | _ACEOF | |
14045 | ||
14046 | # Create commands to substitute file output variables. | |
42ecbf5e | 14047 | { |
81ecdfbb RW |
14048 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14049 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14050 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14051 | echo "_ACAWK" && | |
14052 | echo "_ACEOF" | |
14053 | } >conf$$files.sh && | |
14054 | . ./conf$$files.sh || | |
14055 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14056 | rm -f conf$$files.sh | |
e5a52504 | 14057 | |
81ecdfbb RW |
14058 | { |
14059 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14060 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14061 | echo "_ACEOF" | |
14062 | } >conf$$subs.sh || | |
14063 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14064 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14065 | ac_delim='%!_!# ' | |
14066 | for ac_last_try in false false false false false :; do | |
14067 | . ./conf$$subs.sh || | |
14068 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14069 | ||
14070 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14071 | if test $ac_delim_n = $ac_delim_num; then | |
14072 | break | |
14073 | elif $ac_last_try; then | |
14074 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14075 | else | |
14076 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14077 | fi | |
14078 | done | |
14079 | rm -f conf$$subs.sh | |
14080 | ||
14081 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14082 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
14083 | _ACEOF | |
14084 | sed -n ' | |
14085 | h | |
14086 | s/^/S["/; s/!.*/"]=/ | |
14087 | p | |
14088 | g | |
14089 | s/^[^!]*!// | |
14090 | :repl | |
14091 | t repl | |
14092 | s/'"$ac_delim"'$// | |
14093 | t delim | |
14094 | :nl | |
14095 | h | |
14096 | s/\(.\{148\}\).*/\1/ | |
14097 | t more1 | |
14098 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14099 | p | |
14100 | n | |
14101 | b repl | |
14102 | :more1 | |
14103 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14104 | p | |
14105 | g | |
14106 | s/.\{148\}// | |
14107 | t nl | |
14108 | :delim | |
14109 | h | |
14110 | s/\(.\{148\}\).*/\1/ | |
14111 | t more2 | |
14112 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14113 | p | |
14114 | b | |
14115 | :more2 | |
14116 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14117 | p | |
14118 | g | |
14119 | s/.\{148\}// | |
14120 | t delim | |
14121 | ' <conf$$subs.awk | sed ' | |
14122 | /^[^""]/{ | |
14123 | N | |
14124 | s/\n// | |
14125 | } | |
14126 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14127 | rm -f conf$$subs.awk | |
14128 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14129 | _ACAWK | |
14130 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14131 | for (key in S) S_is_set[key] = 1 | |
14132 | FS = "\a" | |
14133 | \$ac_cs_awk_pipe_init | |
14134 | } | |
14135 | { | |
14136 | line = $ 0 | |
14137 | nfields = split(line, field, "@") | |
14138 | substed = 0 | |
14139 | len = length(field[1]) | |
14140 | for (i = 2; i < nfields; i++) { | |
14141 | key = field[i] | |
14142 | keylen = length(key) | |
14143 | if (S_is_set[key]) { | |
14144 | value = S[key] | |
14145 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14146 | len += length(value) + length(field[++i]) | |
14147 | substed = 1 | |
14148 | } else | |
14149 | len += 1 + keylen | |
14150 | } | |
14151 | if (nfields == 3 && !substed) { | |
14152 | key = field[2] | |
14153 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14154 | \$ac_cs_awk_read_file | |
14155 | next | |
14156 | } | |
14157 | } | |
14158 | print line | |
14159 | } | |
14160 | \$ac_cs_awk_pipe_fini | |
14161 | _ACAWK | |
14162 | _ACEOF | |
14163 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14164 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14165 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14166 | else | |
14167 | cat | |
14168 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14169 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
42ecbf5e | 14170 | _ACEOF |
d15b04bd | 14171 | |
81ecdfbb RW |
14172 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
14173 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14174 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14175 | # (actually we leave an empty line to preserve line numbers). | |
14176 | if test "x$srcdir" = x.; then | |
14177 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14178 | s/:*\$(srcdir):*/:/ | |
14179 | s/:*\${srcdir}:*/:/ | |
14180 | s/:*@srcdir@:*/:/ | |
14181 | s/^\([^=]*=[ ]*\):*/\1/ | |
14182 | s/:*$// | |
14183 | s/^[^=]*=[ ]*$// | |
14184 | }' | |
14185 | fi | |
14186 | ||
14187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14188 | fi # test -n "$CONFIG_FILES" | |
42ecbf5e | 14189 | |
81ecdfbb RW |
14190 | # Set up the scripts for CONFIG_HEADERS section. |
14191 | # No need to generate them if there are no CONFIG_HEADERS. | |
14192 | # This happens for instance with `./config.status Makefile'. | |
14193 | if test -n "$CONFIG_HEADERS"; then | |
14194 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
14195 | BEGIN { | |
14196 | _ACEOF | |
42ecbf5e | 14197 | |
81ecdfbb RW |
14198 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
14199 | # here-document in config.status, that substitutes the proper values into | |
14200 | # config.h.in to produce config.h. | |
252b5132 | 14201 | |
81ecdfbb RW |
14202 | # Create a delimiter string that does not exist in confdefs.h, to ease |
14203 | # handling of long lines. | |
14204 | ac_delim='%!_!# ' | |
14205 | for ac_last_try in false false :; do | |
14206 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
14207 | if test -z "$ac_t"; then | |
14208 | break | |
14209 | elif $ac_last_try; then | |
14210 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
14211 | else | |
14212 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14213 | fi | |
14214 | done | |
14215 | ||
14216 | # For the awk script, D is an array of macro values keyed by name, | |
14217 | # likewise P contains macro parameters if any. Preserve backslash | |
14218 | # newline sequences. | |
14219 | ||
14220 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14221 | sed -n ' | |
14222 | s/.\{148\}/&'"$ac_delim"'/g | |
14223 | t rset | |
14224 | :rset | |
14225 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14226 | t def | |
14227 | d | |
14228 | :def | |
14229 | s/\\$// | |
14230 | t bsnl | |
14231 | s/["\\]/\\&/g | |
14232 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14233 | D["\1"]=" \3"/p | |
14234 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14235 | d | |
14236 | :bsnl | |
14237 | s/["\\]/\\&/g | |
14238 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14239 | D["\1"]=" \3\\\\\\n"\\/p | |
14240 | t cont | |
14241 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14242 | t cont | |
14243 | d | |
14244 | :cont | |
14245 | n | |
14246 | s/.\{148\}/&'"$ac_delim"'/g | |
14247 | t clear | |
14248 | :clear | |
14249 | s/\\$// | |
14250 | t bsnlc | |
14251 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14252 | d | |
14253 | :bsnlc | |
14254 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14255 | b cont | |
14256 | ' <confdefs.h | sed ' | |
14257 | s/'"$ac_delim"'/"\\\ | |
14258 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14259 | ||
14260 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14261 | for (key in D) D_is_set[key] = 1 | |
14262 | FS = "\a" | |
14263 | } | |
14264 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14265 | line = \$ 0 | |
14266 | split(line, arg, " ") | |
14267 | if (arg[1] == "#") { | |
14268 | defundef = arg[2] | |
14269 | mac1 = arg[3] | |
14270 | } else { | |
14271 | defundef = substr(arg[1], 2) | |
14272 | mac1 = arg[2] | |
14273 | } | |
14274 | split(mac1, mac2, "(") #) | |
14275 | macro = mac2[1] | |
14276 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14277 | if (D_is_set[macro]) { | |
14278 | # Preserve the white space surrounding the "#". | |
14279 | print prefix "define", macro P[macro] D[macro] | |
14280 | next | |
14281 | } else { | |
14282 | # Replace #undef with comments. This is necessary, for example, | |
14283 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14284 | # on some systems where configure will not decide to define it. | |
14285 | if (defundef == "undef") { | |
14286 | print "/*", prefix defundef, macro, "*/" | |
14287 | next | |
14288 | } | |
14289 | } | |
14290 | } | |
14291 | { print } | |
14292 | _ACAWK | |
42ecbf5e | 14293 | _ACEOF |
81ecdfbb RW |
14294 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14295 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
14296 | fi # test -n "$CONFIG_HEADERS" | |
42ecbf5e | 14297 | |
81ecdfbb RW |
14298 | |
14299 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
14300 | shift | |
14301 | for ac_tag | |
14302 | do | |
14303 | case $ac_tag in | |
14304 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14305 | esac | |
14306 | case $ac_mode$ac_tag in | |
14307 | :[FHL]*:*);; | |
14308 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14309 | :[FH]-) ac_tag=-:-;; | |
14310 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14311 | esac | |
14312 | ac_save_IFS=$IFS | |
14313 | IFS=: | |
14314 | set x $ac_tag | |
14315 | IFS=$ac_save_IFS | |
14316 | shift | |
14317 | ac_file=$1 | |
14318 | shift | |
14319 | ||
14320 | case $ac_mode in | |
14321 | :L) ac_source=$1;; | |
14322 | :[FH]) | |
14323 | ac_file_inputs= | |
14324 | for ac_f | |
14325 | do | |
14326 | case $ac_f in | |
14327 | -) ac_f="$tmp/stdin";; | |
14328 | *) # Look for the file first in the build tree, then in the source tree | |
14329 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14330 | # because $ac_f cannot contain `:'. | |
14331 | test -f "$ac_f" || | |
14332 | case $ac_f in | |
14333 | [\\/$]*) false;; | |
14334 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14335 | esac || | |
14336 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
14337 | esac | |
14338 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
14339 | as_fn_append ac_file_inputs " '$ac_f'" | |
14340 | done | |
14341 | ||
14342 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14343 | # use $as_me), people would be surprised to read: | |
14344 | # /* config.h. Generated by config.status. */ | |
14345 | configure_input='Generated from '` | |
14346 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14347 | `' by configure.' | |
14348 | if test x"$ac_file" != x-; then | |
14349 | configure_input="$ac_file. $configure_input" | |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
14351 | $as_echo "$as_me: creating $ac_file" >&6;} | |
252b5132 | 14352 | fi |
81ecdfbb RW |
14353 | # Neutralize special characters interpreted by sed in replacement strings. |
14354 | case $configure_input in #( | |
14355 | *\&* | *\|* | *\\* ) | |
14356 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14357 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14358 | *) ac_sed_conf_input=$configure_input;; | |
14359 | esac | |
252b5132 | 14360 | |
81ecdfbb RW |
14361 | case $ac_tag in |
14362 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
14363 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
14364 | esac | |
14365 | ;; | |
252b5132 RH |
14366 | esac |
14367 | ||
81ecdfbb | 14368 | ac_dir=`$as_dirname -- "$ac_file" || |
42ecbf5e DJ |
14369 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14370 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14371 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14372 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
14373 | $as_echo X"$ac_file" | | |
14374 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14375 | s//\1/ | |
14376 | q | |
14377 | } | |
14378 | /^X\(\/\/\)[^/].*/{ | |
14379 | s//\1/ | |
14380 | q | |
14381 | } | |
14382 | /^X\(\/\/\)$/{ | |
14383 | s//\1/ | |
14384 | q | |
14385 | } | |
14386 | /^X\(\/\).*/{ | |
14387 | s//\1/ | |
14388 | q | |
14389 | } | |
14390 | s/.*/./; q'` | |
14391 | as_dir="$ac_dir"; as_fn_mkdir_p | |
42ecbf5e DJ |
14392 | ac_builddir=. |
14393 | ||
81ecdfbb RW |
14394 | case "$ac_dir" in |
14395 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14396 | *) | |
14397 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14398 | # A ".." for each directory in $ac_dir_suffix. | |
14399 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14400 | case $ac_top_builddir_sub in | |
14401 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14402 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14403 | esac ;; | |
14404 | esac | |
14405 | ac_abs_top_builddir=$ac_pwd | |
14406 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14407 | # for backward compatibility: | |
14408 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 14409 | |
42ecbf5e | 14410 | case $srcdir in |
81ecdfbb | 14411 | .) # We are building in place. |
42ecbf5e | 14412 | ac_srcdir=. |
81ecdfbb RW |
14413 | ac_top_srcdir=$ac_top_builddir_sub |
14414 | ac_abs_top_srcdir=$ac_pwd ;; | |
14415 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
42ecbf5e | 14416 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
14417 | ac_top_srcdir=$srcdir |
14418 | ac_abs_top_srcdir=$srcdir ;; | |
14419 | *) # Relative name. | |
14420 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14421 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14422 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
42ecbf5e | 14423 | esac |
81ecdfbb | 14424 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
42ecbf5e | 14425 | |
252b5132 | 14426 | |
81ecdfbb RW |
14427 | case $ac_mode in |
14428 | :F) | |
14429 | # | |
14430 | # CONFIG_FILE | |
14431 | # | |
e5a52504 | 14432 | |
42ecbf5e DJ |
14433 | case $INSTALL in |
14434 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
14435 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14436 | esac | |
14437 | ac_MKDIR_P=$MKDIR_P | |
14438 | case $MKDIR_P in | |
14439 | [\\/$]* | ?:[\\/]* ) ;; | |
14440 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
d15b04bd | 14441 | esac |
81ecdfbb | 14442 | _ACEOF |
e5a52504 | 14443 | |
81ecdfbb RW |
14444 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14445 | # If the template does not know about datarootdir, expand it. | |
14446 | # FIXME: This hack should be removed a few years after 2.60. | |
14447 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
14448 | ac_sed_dataroot=' | |
14449 | /datarootdir/ { | |
14450 | p | |
14451 | q | |
14452 | } | |
14453 | /@datadir@/p | |
14454 | /@docdir@/p | |
14455 | /@infodir@/p | |
14456 | /@localedir@/p | |
14457 | /@mandir@/p' | |
14458 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
14459 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14460 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
14462 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
14463 | _ACEOF | |
14464 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14465 | ac_datarootdir_hack=' | |
14466 | s&@datadir@&$datadir&g | |
14467 | s&@docdir@&$docdir&g | |
14468 | s&@infodir@&$infodir&g | |
14469 | s&@localedir@&$localedir&g | |
14470 | s&@mandir@&$mandir&g | |
14471 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
14472 | esac | |
42ecbf5e | 14473 | _ACEOF |
81ecdfbb RW |
14474 | |
14475 | # Neutralize VPATH when `$srcdir' = `.'. | |
14476 | # Shell code in configure.ac might set extrasub. | |
14477 | # FIXME: do we really want to maintain this feature? | |
14478 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14479 | ac_sed_extra="$ac_vpsub | |
42ecbf5e DJ |
14480 | $extrasub |
14481 | _ACEOF | |
81ecdfbb | 14482 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42ecbf5e DJ |
14483 | :t |
14484 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
14485 | s|@configure_input@|$ac_sed_conf_input|;t t |
14486 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14487 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14488 | s&@srcdir@&$ac_srcdir&;t t | |
14489 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14490 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14491 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14492 | s&@builddir@&$ac_builddir&;t t | |
14493 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14494 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14495 | s&@INSTALL@&$ac_INSTALL&;t t | |
14496 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14497 | $ac_datarootdir_hack | |
14498 | " | |
14499 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
14500 | if $ac_cs_awk_getline; then | |
14501 | $AWK -f "$tmp/subs.awk" | |
14502 | else | |
14503 | $AWK -f "$tmp/subs.awk" | $SHELL | |
14504 | fi >$tmp/out \ | |
14505 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14506 | ||
14507 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
14508 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14509 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14511 | which seems to be undefined. Please make sure it is defined." >&5 | |
14512 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14513 | which seems to be undefined. Please make sure it is defined." >&2;} | |
14514 | ||
14515 | rm -f "$tmp/stdin" | |
42ecbf5e | 14516 | case $ac_file in |
81ecdfbb RW |
14517 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
14518 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
14519 | esac \ | |
14520 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14521 | ;; | |
14522 | :H) | |
14523 | # | |
14524 | # CONFIG_HEADER | |
14525 | # | |
42ecbf5e | 14526 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
14527 | { |
14528 | $as_echo "/* $configure_input */" \ | |
14529 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
14530 | } >"$tmp/config.h" \ | |
14531 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
14532 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
14533 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
14534 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
42ecbf5e | 14535 | else |
81ecdfbb RW |
14536 | rm -f "$ac_file" |
14537 | mv "$tmp/config.h" "$ac_file" \ | |
14538 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 14539 | fi |
42ecbf5e | 14540 | else |
81ecdfbb RW |
14541 | $as_echo "/* $configure_input */" \ |
14542 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
14543 | || as_fn_error "could not create -" "$LINENO" 5 | |
e5a52504 | 14544 | fi |
81ecdfbb RW |
14545 | # Compute "$ac_file"'s index in $config_headers. |
14546 | _am_arg="$ac_file" | |
42ecbf5e DJ |
14547 | _am_stamp_count=1 |
14548 | for _am_header in $config_headers :; do | |
14549 | case $_am_header in | |
81ecdfbb | 14550 | $_am_arg | $_am_arg:* ) |
42ecbf5e DJ |
14551 | break ;; |
14552 | * ) | |
14553 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14554 | esac | |
14555 | done | |
81ecdfbb RW |
14556 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
14557 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14558 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14559 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14560 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14561 | $as_echo X"$_am_arg" | | |
14562 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14563 | s//\1/ | |
14564 | q | |
14565 | } | |
14566 | /^X\(\/\/\)[^/].*/{ | |
14567 | s//\1/ | |
14568 | q | |
14569 | } | |
14570 | /^X\(\/\/\)$/{ | |
14571 | s//\1/ | |
14572 | q | |
14573 | } | |
14574 | /^X\(\/\).*/{ | |
14575 | s//\1/ | |
14576 | q | |
14577 | } | |
14578 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14579 | ;; | |
42ecbf5e | 14580 | |
81ecdfbb RW |
14581 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
14582 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
14583 | ;; | |
14584 | esac | |
42ecbf5e DJ |
14585 | |
14586 | ||
81ecdfbb RW |
14587 | case $ac_file$ac_mode in |
14588 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
14589 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
14590 | # are listed without --file. Let's play safe and only enable the eval | |
14591 | # if we detect the quoting. | |
14592 | case $CONFIG_FILES in | |
14593 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14594 | *) set x $CONFIG_FILES ;; | |
14595 | esac | |
14596 | shift | |
14597 | for mf | |
14598 | do | |
14599 | # Strip MF so we end up with the name of the file. | |
14600 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14601 | # Check whether this is an Automake generated Makefile or not. | |
14602 | # We used to match only the files named `Makefile.in', but | |
14603 | # some people rename them; so instead we look at the file content. | |
14604 | # Grep'ing the first line is not enough: some people post-process | |
14605 | # each Makefile.in and add a new line on top of each file to say so. | |
14606 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14607 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14608 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14609 | dirpart=`$as_dirname -- "$mf" || | |
42ecbf5e DJ |
14610 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14611 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14612 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14613 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
14614 | $as_echo X"$mf" | | |
14615 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14616 | s//\1/ | |
14617 | q | |
14618 | } | |
14619 | /^X\(\/\/\)[^/].*/{ | |
14620 | s//\1/ | |
14621 | q | |
14622 | } | |
14623 | /^X\(\/\/\)$/{ | |
14624 | s//\1/ | |
14625 | q | |
14626 | } | |
14627 | /^X\(\/\).*/{ | |
14628 | s//\1/ | |
14629 | q | |
14630 | } | |
14631 | s/.*/./; q'` | |
14632 | else | |
14633 | continue | |
14634 | fi | |
14635 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14636 | # from the Makefile without running `make'. | |
14637 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14638 | test -z "$DEPDIR" && continue | |
14639 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14640 | test -z "am__include" && continue | |
14641 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14642 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14643 | U=`sed -n 's/^U = //p' < "$mf"` | |
14644 | # Find all dependency output files, they are included files with | |
14645 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14646 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14647 | # expansion. | |
14648 | for file in `sed -n " | |
14649 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14650 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14651 | # Make sure the directory exists. | |
14652 | test -f "$dirpart/$file" && continue | |
14653 | fdir=`$as_dirname -- "$file" || | |
42ecbf5e DJ |
14654 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14655 | X"$file" : 'X\(//\)[^/]' \| \ | |
14656 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14657 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
14658 | $as_echo X"$file" | | |
14659 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14660 | s//\1/ | |
14661 | q | |
14662 | } | |
14663 | /^X\(\/\/\)[^/].*/{ | |
14664 | s//\1/ | |
14665 | q | |
14666 | } | |
14667 | /^X\(\/\/\)$/{ | |
14668 | s//\1/ | |
14669 | q | |
14670 | } | |
14671 | /^X\(\/\).*/{ | |
14672 | s//\1/ | |
14673 | q | |
14674 | } | |
14675 | s/.*/./; q'` | |
14676 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
14677 | # echo "creating $dirpart/$file" | |
14678 | echo '# dummy' > "$dirpart/$file" | |
42ecbf5e | 14679 | done |
42ecbf5e | 14680 | done |
81ecdfbb | 14681 | } |
d7040cdb | 14682 | ;; |
81ecdfbb | 14683 | "libtool":C) |
d7040cdb SE |
14684 | |
14685 | # See if we are running on zsh, and set the options which allow our | |
14686 | # commands through without removal of \ escapes. | |
14687 | if test -n "${ZSH_VERSION+set}" ; then | |
14688 | setopt NO_GLOB_SUBST | |
14689 | fi | |
14690 | ||
14691 | cfgfile="${ofile}T" | |
14692 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14693 | $RM "$cfgfile" | |
14694 | ||
14695 | cat <<_LT_EOF >> "$cfgfile" | |
14696 | #! $SHELL | |
14697 | ||
14698 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
b214d478 | 14699 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
14700 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14701 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14702 | # | |
b214d478 SE |
14703 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
14704 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
14705 | # Written by Gordon Matzigkeit, 1996 | |
d7040cdb | 14706 | # |
b214d478 | 14707 | # This file is part of GNU Libtool. |
d7040cdb | 14708 | # |
b214d478 SE |
14709 | # GNU Libtool is free software; you can redistribute it and/or |
14710 | # modify it under the terms of the GNU General Public License as | |
14711 | # published by the Free Software Foundation; either version 2 of | |
14712 | # the License, or (at your option) any later version. | |
d7040cdb | 14713 | # |
b214d478 SE |
14714 | # As a special exception to the GNU General Public License, |
14715 | # if you distribute this file as part of a program or library that | |
14716 | # is built using GNU Libtool, you may include this file under the | |
14717 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 14718 | # |
b214d478 SE |
14719 | # GNU Libtool is distributed in the hope that it will be useful, |
14720 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14721 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14722 | # GNU General Public License for more details. | |
d7040cdb | 14723 | # |
b214d478 SE |
14724 | # You should have received a copy of the GNU General Public License |
14725 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
14726 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14727 | # obtained by writing to the Free Software Foundation, Inc., | |
14728 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
14729 | |
14730 | ||
14731 | # The names of the tagged configurations supported by this script. | |
14732 | available_tags="" | |
14733 | ||
14734 | # ### BEGIN LIBTOOL CONFIG | |
14735 | ||
14736 | # Which release of libtool.m4 was used? | |
14737 | macro_version=$macro_version | |
14738 | macro_revision=$macro_revision | |
14739 | ||
14740 | # Whether or not to build shared libraries. | |
14741 | build_libtool_libs=$enable_shared | |
14742 | ||
14743 | # Whether or not to build static libraries. | |
14744 | build_old_libs=$enable_static | |
14745 | ||
14746 | # What type of objects to build. | |
14747 | pic_mode=$pic_mode | |
14748 | ||
14749 | # Whether or not to optimize for fast installation. | |
14750 | fast_install=$enable_fast_install | |
14751 | ||
14752 | # The host system. | |
14753 | host_alias=$host_alias | |
14754 | host=$host | |
14755 | host_os=$host_os | |
14756 | ||
14757 | # The build system. | |
14758 | build_alias=$build_alias | |
14759 | build=$build | |
14760 | build_os=$build_os | |
14761 | ||
14762 | # A sed program that does not truncate output. | |
14763 | SED=$lt_SED | |
14764 | ||
14765 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14766 | Xsed="\$SED -e 1s/^X//" | |
14767 | ||
14768 | # A grep program that handles long lines. | |
14769 | GREP=$lt_GREP | |
14770 | ||
14771 | # An ERE matcher. | |
14772 | EGREP=$lt_EGREP | |
14773 | ||
14774 | # A literal string matcher. | |
14775 | FGREP=$lt_FGREP | |
14776 | ||
14777 | # A BSD- or MS-compatible name lister. | |
14778 | NM=$lt_NM | |
14779 | ||
14780 | # Whether we need soft or hard links. | |
14781 | LN_S=$lt_LN_S | |
14782 | ||
14783 | # What is the maximum length of a command? | |
14784 | max_cmd_len=$max_cmd_len | |
14785 | ||
14786 | # Object file suffix (normally "o"). | |
14787 | objext=$ac_objext | |
14788 | ||
14789 | # Executable file suffix (normally ""). | |
14790 | exeext=$exeext | |
14791 | ||
14792 | # whether the shell understands "unset". | |
14793 | lt_unset=$lt_unset | |
14794 | ||
14795 | # turn spaces into newlines. | |
14796 | SP2NL=$lt_lt_SP2NL | |
14797 | ||
14798 | # turn newlines into spaces. | |
14799 | NL2SP=$lt_lt_NL2SP | |
14800 | ||
14801 | # How to create reloadable object files. | |
14802 | reload_flag=$lt_reload_flag | |
14803 | reload_cmds=$lt_reload_cmds | |
14804 | ||
b214d478 SE |
14805 | # An object symbol dumper. |
14806 | OBJDUMP=$lt_OBJDUMP | |
14807 | ||
d7040cdb SE |
14808 | # Method to check whether dependent libraries are shared objects. |
14809 | deplibs_check_method=$lt_deplibs_check_method | |
14810 | ||
14811 | # Command to use when deplibs_check_method == "file_magic". | |
14812 | file_magic_cmd=$lt_file_magic_cmd | |
14813 | ||
14814 | # The archiver. | |
14815 | AR=$lt_AR | |
14816 | AR_FLAGS=$lt_AR_FLAGS | |
14817 | ||
14818 | # A symbol stripping program. | |
14819 | STRIP=$lt_STRIP | |
14820 | ||
14821 | # Commands used to install an old-style archive. | |
14822 | RANLIB=$lt_RANLIB | |
14823 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14824 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14825 | ||
14826 | # A C compiler. | |
14827 | LTCC=$lt_CC | |
14828 | ||
14829 | # LTCC compiler flags. | |
14830 | LTCFLAGS=$lt_CFLAGS | |
14831 | ||
14832 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14833 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14834 | ||
14835 | # Transform the output of nm in a proper C declaration. | |
14836 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14837 | ||
14838 | # Transform the output of nm in a C name address pair. | |
14839 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14840 | ||
b214d478 SE |
14841 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14842 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14843 | ||
d7040cdb SE |
14844 | # The name of the directory that contains temporary libtool files. |
14845 | objdir=$objdir | |
14846 | ||
14847 | # Shell to use when invoking shell scripts. | |
14848 | SHELL=$lt_SHELL | |
14849 | ||
14850 | # An echo program that does not interpret backslashes. | |
14851 | ECHO=$lt_ECHO | |
14852 | ||
14853 | # Used to examine libraries when file_magic_cmd begins with "file". | |
14854 | MAGIC_CMD=$MAGIC_CMD | |
14855 | ||
14856 | # Must we lock files when doing compilation? | |
14857 | need_locks=$lt_need_locks | |
14858 | ||
b214d478 SE |
14859 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14860 | DSYMUTIL=$lt_DSYMUTIL | |
14861 | ||
14862 | # Tool to change global to local symbols on Mac OS X. | |
14863 | NMEDIT=$lt_NMEDIT | |
14864 | ||
14865 | # Tool to manipulate fat objects and archives on Mac OS X. | |
14866 | LIPO=$lt_LIPO | |
14867 | ||
14868 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14869 | OTOOL=$lt_OTOOL | |
14870 | ||
14871 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14872 | OTOOL64=$lt_OTOOL64 | |
14873 | ||
d7040cdb SE |
14874 | # Old archive suffix (normally "a"). |
14875 | libext=$libext | |
14876 | ||
14877 | # Shared library suffix (normally ".so"). | |
14878 | shrext_cmds=$lt_shrext_cmds | |
14879 | ||
14880 | # The commands to extract the exported symbol list from a shared archive. | |
14881 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14882 | ||
14883 | # Variables whose values should be saved in libtool wrapper scripts and | |
14884 | # restored at link time. | |
14885 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
14886 | ||
14887 | # Do we need the "lib" prefix for modules? | |
14888 | need_lib_prefix=$need_lib_prefix | |
14889 | ||
14890 | # Do we need a version for libraries? | |
14891 | need_version=$need_version | |
14892 | ||
14893 | # Library versioning type. | |
14894 | version_type=$version_type | |
14895 | ||
14896 | # Shared library runtime path variable. | |
14897 | runpath_var=$runpath_var | |
14898 | ||
14899 | # Shared library path variable. | |
14900 | shlibpath_var=$shlibpath_var | |
14901 | ||
14902 | # Is shlibpath searched before the hard-coded library search path? | |
14903 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14904 | ||
14905 | # Format of library name prefix. | |
14906 | libname_spec=$lt_libname_spec | |
14907 | ||
14908 | # List of archive names. First name is the real one, the rest are links. | |
14909 | # The last name is the one that the linker finds with -lNAME | |
14910 | library_names_spec=$lt_library_names_spec | |
14911 | ||
14912 | # The coded name of the library, if different from the real name. | |
14913 | soname_spec=$lt_soname_spec | |
14914 | ||
14915 | # Command to use after installation of a shared archive. | |
14916 | postinstall_cmds=$lt_postinstall_cmds | |
14917 | ||
14918 | # Command to use after uninstallation of a shared archive. | |
14919 | postuninstall_cmds=$lt_postuninstall_cmds | |
14920 | ||
14921 | # Commands used to finish a libtool library installation in a directory. | |
14922 | finish_cmds=$lt_finish_cmds | |
14923 | ||
14924 | # As "finish_cmds", except a single script fragment to be evaled but | |
14925 | # not shown. | |
14926 | finish_eval=$lt_finish_eval | |
14927 | ||
14928 | # Whether we should hardcode library paths into libraries. | |
14929 | hardcode_into_libs=$hardcode_into_libs | |
14930 | ||
14931 | # Compile-time system search path for libraries. | |
14932 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14933 | ||
14934 | # Run-time system search path for libraries. | |
14935 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14936 | ||
14937 | # Whether dlopen is supported. | |
14938 | dlopen_support=$enable_dlopen | |
14939 | ||
14940 | # Whether dlopen of programs is supported. | |
14941 | dlopen_self=$enable_dlopen_self | |
14942 | ||
14943 | # Whether dlopen of statically linked programs is supported. | |
14944 | dlopen_self_static=$enable_dlopen_self_static | |
14945 | ||
14946 | # Commands to strip libraries. | |
14947 | old_striplib=$lt_old_striplib | |
14948 | striplib=$lt_striplib | |
14949 | ||
14950 | ||
14951 | # The linker used to build libraries. | |
14952 | LD=$lt_LD | |
14953 | ||
14954 | # Commands used to build an old-style archive. | |
14955 | old_archive_cmds=$lt_old_archive_cmds | |
14956 | ||
14957 | # A language specific compiler. | |
14958 | CC=$lt_compiler | |
14959 | ||
14960 | # Is the compiler the GNU compiler? | |
14961 | with_gcc=$GCC | |
14962 | ||
14963 | # Compiler flag to turn off builtin functions. | |
14964 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14965 | ||
14966 | # How to pass a linker flag through the compiler. | |
14967 | wl=$lt_lt_prog_compiler_wl | |
14968 | ||
14969 | # Additional compiler flags for building library objects. | |
14970 | pic_flag=$lt_lt_prog_compiler_pic | |
14971 | ||
14972 | # Compiler flag to prevent dynamic linking. | |
14973 | link_static_flag=$lt_lt_prog_compiler_static | |
14974 | ||
14975 | # Does compiler simultaneously support -c and -o options? | |
14976 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14977 | ||
14978 | # Whether or not to add -lc for building shared libraries. | |
14979 | build_libtool_need_lc=$archive_cmds_need_lc | |
14980 | ||
14981 | # Whether or not to disallow shared libs when runtime libs are static. | |
14982 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14983 | ||
14984 | # Compiler flag to allow reflexive dlopens. | |
14985 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14986 | ||
14987 | # Compiler flag to generate shared objects directly from archives. | |
14988 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14989 | ||
14990 | # Whether the compiler copes with passing no objects directly. | |
14991 | compiler_needs_object=$lt_compiler_needs_object | |
14992 | ||
14993 | # Create an old-style archive from a shared archive. | |
14994 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14995 | ||
14996 | # Create a temporary old-style archive to link instead of a shared archive. | |
14997 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14998 | ||
14999 | # Commands used to build a shared archive. | |
15000 | archive_cmds=$lt_archive_cmds | |
15001 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
15002 | ||
15003 | # Commands used to build a loadable module if different from building | |
15004 | # a shared archive. | |
15005 | module_cmds=$lt_module_cmds | |
15006 | module_expsym_cmds=$lt_module_expsym_cmds | |
15007 | ||
15008 | # Whether we are building with GNU ld or not. | |
15009 | with_gnu_ld=$lt_with_gnu_ld | |
15010 | ||
15011 | # Flag that allows shared libraries with undefined symbols to be built. | |
15012 | allow_undefined_flag=$lt_allow_undefined_flag | |
15013 | ||
15014 | # Flag that enforces no undefined symbols. | |
15015 | no_undefined_flag=$lt_no_undefined_flag | |
15016 | ||
15017 | # Flag to hardcode \$libdir into a binary during linking. | |
15018 | # This must work even if \$libdir does not exist | |
15019 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
15020 | ||
15021 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
15022 | # during linking. This must work even if \$libdir does not exist. | |
15023 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
15024 | ||
15025 | # Whether we need a single "-rpath" flag with a separated argument. | |
15026 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
15027 | ||
15028 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15029 | # DIR into the resulting binary. | |
15030 | hardcode_direct=$hardcode_direct | |
15031 | ||
15032 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15033 | # DIR into the resulting binary and the resulting library dependency is | |
15034 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
15035 | # library is relocated. | |
15036 | hardcode_direct_absolute=$hardcode_direct_absolute | |
15037 | ||
15038 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
15039 | # into the resulting binary. | |
15040 | hardcode_minus_L=$hardcode_minus_L | |
15041 | ||
15042 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
15043 | # into the resulting binary. | |
15044 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
15045 | ||
15046 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
15047 | # into the library and all subsequent libraries and executables linked | |
15048 | # against it. | |
15049 | hardcode_automatic=$hardcode_automatic | |
15050 | ||
15051 | # Set to yes if linker adds runtime paths of dependent libraries | |
15052 | # to runtime path list. | |
15053 | inherit_rpath=$inherit_rpath | |
15054 | ||
15055 | # Whether libtool must link a program against all its dependency libraries. | |
15056 | link_all_deplibs=$link_all_deplibs | |
15057 | ||
15058 | # Fix the shell variable \$srcfile for the compiler. | |
15059 | fix_srcfile_path=$lt_fix_srcfile_path | |
15060 | ||
15061 | # Set to "yes" if exported symbols are required. | |
15062 | always_export_symbols=$always_export_symbols | |
15063 | ||
15064 | # The commands to list exported symbols. | |
15065 | export_symbols_cmds=$lt_export_symbols_cmds | |
15066 | ||
15067 | # Symbols that should not be listed in the preloaded symbols. | |
15068 | exclude_expsyms=$lt_exclude_expsyms | |
15069 | ||
15070 | # Symbols that must always be exported. | |
15071 | include_expsyms=$lt_include_expsyms | |
15072 | ||
15073 | # Commands necessary for linking programs (against libraries) with templates. | |
15074 | prelink_cmds=$lt_prelink_cmds | |
15075 | ||
15076 | # Specify filename containing input files. | |
15077 | file_list_spec=$lt_file_list_spec | |
15078 | ||
15079 | # How to hardcode a shared library path into an executable. | |
15080 | hardcode_action=$hardcode_action | |
15081 | ||
15082 | # ### END LIBTOOL CONFIG | |
15083 | ||
15084 | _LT_EOF | |
15085 | ||
15086 | case $host_os in | |
15087 | aix3*) | |
15088 | cat <<\_LT_EOF >> "$cfgfile" | |
15089 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15090 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15091 | # vanish in a puff of smoke. | |
15092 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
15093 | COLLECT_NAMES= | |
15094 | export COLLECT_NAMES | |
15095 | fi | |
15096 | _LT_EOF | |
15097 | ;; | |
15098 | esac | |
15099 | ||
15100 | ||
15101 | ltmain="$ac_aux_dir/ltmain.sh" | |
15102 | ||
15103 | ||
15104 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15105 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15106 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15107 | # is reportedly fixed, but why not run on old versions too? | |
15108 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
15109 | || (rm -f "$cfgfile"; exit 1) | |
15110 | ||
15111 | case $xsi_shell in | |
15112 | yes) | |
15113 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 15114 | |
d7040cdb SE |
15115 | # func_dirname file append nondir_replacement |
15116 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15117 | # otherwise set result to NONDIR_REPLACEMENT. | |
15118 | func_dirname () | |
15119 | { | |
15120 | case ${1} in | |
15121 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15122 | * ) func_dirname_result="${3}" ;; | |
15123 | esac | |
15124 | } | |
15125 | ||
15126 | # func_basename file | |
15127 | func_basename () | |
15128 | { | |
15129 | func_basename_result="${1##*/}" | |
15130 | } | |
15131 | ||
b214d478 SE |
15132 | # func_dirname_and_basename file append nondir_replacement |
15133 | # perform func_basename and func_dirname in a single function | |
15134 | # call: | |
15135 | # dirname: Compute the dirname of FILE. If nonempty, | |
15136 | # add APPEND to the result, otherwise set result | |
15137 | # to NONDIR_REPLACEMENT. | |
15138 | # value returned in "$func_dirname_result" | |
15139 | # basename: Compute filename of FILE. | |
15140 | # value retuned in "$func_basename_result" | |
15141 | # Implementation must be kept synchronized with func_dirname | |
15142 | # and func_basename. For efficiency, we do not delegate to | |
15143 | # those functions but instead duplicate the functionality here. | |
15144 | func_dirname_and_basename () | |
15145 | { | |
15146 | case ${1} in | |
15147 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15148 | * ) func_dirname_result="${3}" ;; | |
15149 | esac | |
15150 | func_basename_result="${1##*/}" | |
15151 | } | |
15152 | ||
d7040cdb SE |
15153 | # func_stripname prefix suffix name |
15154 | # strip PREFIX and SUFFIX off of NAME. | |
15155 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15156 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15157 | # dot (in which case that matches only a dot). | |
15158 | func_stripname () | |
15159 | { | |
15160 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
15161 | # positional parameters, so assign one to ordinary parameter first. | |
15162 | func_stripname_result=${3} | |
15163 | func_stripname_result=${func_stripname_result#"${1}"} | |
15164 | func_stripname_result=${func_stripname_result%"${2}"} | |
15165 | } | |
15166 | ||
15167 | # func_opt_split | |
15168 | func_opt_split () | |
15169 | { | |
15170 | func_opt_split_opt=${1%%=*} | |
15171 | func_opt_split_arg=${1#*=} | |
15172 | } | |
15173 | ||
15174 | # func_lo2o object | |
15175 | func_lo2o () | |
15176 | { | |
15177 | case ${1} in | |
15178 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
15179 | *) func_lo2o_result=${1} ;; | |
15180 | esac | |
15181 | } | |
b214d478 SE |
15182 | |
15183 | # func_xform libobj-or-source | |
15184 | func_xform () | |
15185 | { | |
15186 | func_xform_result=${1%.*}.lo | |
15187 | } | |
15188 | ||
15189 | # func_arith arithmetic-term... | |
15190 | func_arith () | |
15191 | { | |
15192 | func_arith_result=$(( $* )) | |
15193 | } | |
15194 | ||
15195 | # func_len string | |
15196 | # STRING may not start with a hyphen. | |
15197 | func_len () | |
15198 | { | |
15199 | func_len_result=${#1} | |
15200 | } | |
15201 | ||
d7040cdb SE |
15202 | _LT_EOF |
15203 | ;; | |
15204 | *) # Bourne compatible functions. | |
15205 | cat << \_LT_EOF >> "$cfgfile" | |
b214d478 | 15206 | |
d7040cdb SE |
15207 | # func_dirname file append nondir_replacement |
15208 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15209 | # otherwise set result to NONDIR_REPLACEMENT. | |
15210 | func_dirname () | |
15211 | { | |
15212 | # Extract subdirectory from the argument. | |
15213 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
15214 | if test "X$func_dirname_result" = "X${1}"; then | |
15215 | func_dirname_result="${3}" | |
15216 | else | |
15217 | func_dirname_result="$func_dirname_result${2}" | |
15218 | fi | |
15219 | } | |
15220 | ||
15221 | # func_basename file | |
15222 | func_basename () | |
15223 | { | |
15224 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
15225 | } | |
15226 | ||
b214d478 | 15227 | |
d7040cdb SE |
15228 | # func_stripname prefix suffix name |
15229 | # strip PREFIX and SUFFIX off of NAME. | |
15230 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15231 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15232 | # dot (in which case that matches only a dot). | |
15233 | # func_strip_suffix prefix name | |
15234 | func_stripname () | |
15235 | { | |
15236 | case ${2} in | |
15237 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
15238 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
15239 | *) func_stripname_result=`$ECHO "X${3}" \ | |
15240 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
15241 | esac | |
15242 | } | |
15243 | ||
15244 | # sed scripts: | |
15245 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
15246 | my_sed_long_arg='1s/^-[^=]*=//' | |
15247 | ||
15248 | # func_opt_split | |
15249 | func_opt_split () | |
15250 | { | |
15251 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
15252 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
15253 | } | |
15254 | ||
15255 | # func_lo2o object | |
15256 | func_lo2o () | |
15257 | { | |
15258 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
15259 | } | |
b214d478 SE |
15260 | |
15261 | # func_xform libobj-or-source | |
15262 | func_xform () | |
15263 | { | |
15264 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
15265 | } | |
15266 | ||
15267 | # func_arith arithmetic-term... | |
15268 | func_arith () | |
15269 | { | |
15270 | func_arith_result=`expr "$@"` | |
15271 | } | |
15272 | ||
15273 | # func_len string | |
15274 | # STRING may not start with a hyphen. | |
15275 | func_len () | |
15276 | { | |
15277 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
15278 | } | |
15279 | ||
d7040cdb SE |
15280 | _LT_EOF |
15281 | esac | |
15282 | ||
15283 | case $lt_shell_append in | |
15284 | yes) | |
15285 | cat << \_LT_EOF >> "$cfgfile" | |
15286 | ||
15287 | # func_append var value | |
15288 | # Append VALUE to the end of shell variable VAR. | |
15289 | func_append () | |
15290 | { | |
15291 | eval "$1+=\$2" | |
15292 | } | |
15293 | _LT_EOF | |
15294 | ;; | |
15295 | *) | |
15296 | cat << \_LT_EOF >> "$cfgfile" | |
15297 | ||
15298 | # func_append var value | |
15299 | # Append VALUE to the end of shell variable VAR. | |
15300 | func_append () | |
15301 | { | |
15302 | eval "$1=\$$1\$2" | |
15303 | } | |
b214d478 | 15304 | |
d7040cdb SE |
15305 | _LT_EOF |
15306 | ;; | |
15307 | esac | |
15308 | ||
15309 | ||
15310 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
15311 | || (rm -f "$cfgfile"; exit 1) | |
15312 | ||
15313 | mv -f "$cfgfile" "$ofile" || | |
15314 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
15315 | chmod +x "$ofile" | |
15316 | ||
42ecbf5e | 15317 | ;; |
81ecdfbb | 15318 | "default-1":C) |
20e95c23 DJ |
15319 | for ac_file in $CONFIG_FILES; do |
15320 | # Support "outfile[:infile[:infile...]]" | |
15321 | case "$ac_file" in | |
15322 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15323 | esac | |
15324 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
15325 | case "$ac_file" in */Makefile.in) | |
15326 | # Adjust a relative srcdir. | |
15327 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
15328 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
15329 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
15330 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
15331 | # In autoconf-2.50 it is called $srcdir. | |
15332 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
15333 | case "$ac_given_srcdir" in | |
15334 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
15335 | /*) top_srcdir="$ac_given_srcdir" ;; | |
15336 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15337 | esac | |
15338 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
15339 | rm -f "$ac_dir/POTFILES" | |
15340 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
15341 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
15342 | POMAKEFILEDEPS="POTFILES.in" | |
15343 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
15344 | # on $ac_dir but don't depend on user-specified configuration | |
15345 | # parameters. | |
15346 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
15347 | # The LINGUAS file contains the set of available languages. | |
15348 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
15349 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
15350 | fi | |
15351 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
15352 | # Hide the ALL_LINGUAS assigment from automake. | |
15353 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
15354 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
15355 | else | |
15356 | # The set of available languages was given in configure.in. | |
15357 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
15358 | fi | |
15359 | case "$ac_given_srcdir" in | |
15360 | .) srcdirpre= ;; | |
15361 | *) srcdirpre='$(srcdir)/' ;; | |
15362 | esac | |
15363 | POFILES= | |
15364 | GMOFILES= | |
15365 | UPDATEPOFILES= | |
15366 | DUMMYPOFILES= | |
15367 | for lang in $ALL_LINGUAS; do | |
15368 | POFILES="$POFILES $srcdirpre$lang.po" | |
15369 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
15370 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
15371 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
15372 | done | |
15373 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
15374 | # environment variable. | |
15375 | INST_LINGUAS= | |
15376 | if test -n "$ALL_LINGUAS"; then | |
15377 | for presentlang in $ALL_LINGUAS; do | |
15378 | useit=no | |
15379 | if test "%UNSET%" != "$LINGUAS"; then | |
15380 | desiredlanguages="$LINGUAS" | |
15381 | else | |
15382 | desiredlanguages="$ALL_LINGUAS" | |
15383 | fi | |
15384 | for desiredlang in $desiredlanguages; do | |
15385 | # Use the presentlang catalog if desiredlang is | |
15386 | # a. equal to presentlang, or | |
15387 | # b. a variant of presentlang (because in this case, | |
15388 | # presentlang can be used as a fallback for messages | |
15389 | # which are not translated in the desiredlang catalog). | |
15390 | case "$desiredlang" in | |
15391 | "$presentlang"*) useit=yes;; | |
15392 | esac | |
15393 | done | |
15394 | if test $useit = yes; then | |
15395 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
15396 | fi | |
15397 | done | |
15398 | fi | |
15399 | CATALOGS= | |
15400 | if test -n "$INST_LINGUAS"; then | |
15401 | for lang in $INST_LINGUAS; do | |
15402 | CATALOGS="$CATALOGS $lang.gmo" | |
15403 | done | |
15404 | fi | |
15405 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
15406 | 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" | |
15407 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
15408 | if test -f "$f"; then | |
15409 | case "$f" in | |
15410 | *.orig | *.bak | *~) ;; | |
15411 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
15412 | esac | |
15413 | fi | |
15414 | done | |
15415 | fi | |
15416 | ;; | |
15417 | esac | |
15418 | done ;; | |
81ecdfbb | 15419 | |
42ecbf5e | 15420 | esac |
81ecdfbb | 15421 | done # for ac_tag |
42ecbf5e | 15422 | |
42ecbf5e | 15423 | |
81ecdfbb | 15424 | as_fn_exit 0 |
42ecbf5e | 15425 | _ACEOF |
42ecbf5e DJ |
15426 | ac_clean_files=$ac_clean_files_save |
15427 | ||
81ecdfbb RW |
15428 | test $ac_write_fail = 0 || |
15429 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15430 | ||
42ecbf5e DJ |
15431 | |
15432 | # configure is writing to config.log, and then calls config.status. | |
15433 | # config.status does its own redirection, appending to config.log. | |
15434 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15435 | # by configure, so config.status won't be able to write to it; its | |
15436 | # output is simply discarded. So we exec the FD to /dev/null, | |
15437 | # effectively closing config.log, so it can be properly (re)opened and | |
15438 | # appended to by config.status. When coming back to configure, we | |
15439 | # need to make the FD available again. | |
15440 | if test "$no_create" != yes; then | |
15441 | ac_cs_success=: | |
15442 | ac_config_status_args= | |
15443 | test "$silent" = yes && | |
15444 | ac_config_status_args="$ac_config_status_args --quiet" | |
15445 | exec 5>/dev/null | |
15446 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15447 | exec 5>>config.log | |
15448 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15449 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15450 | $ac_cs_success || as_fn_exit $? |
15451 | fi | |
15452 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15453 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15454 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
42ecbf5e | 15455 | fi |
252b5132 | 15456 |