]>
Commit | Line | Data |
---|---|---|
ee9dd372 | 1 | #! /bin/sh |
ee9dd372 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5213506e RW |
3 | # Generated by GNU Autoconf 2.64 for libjava version-unused. |
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. | |
ee9dd372 TT |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
ed698112 | 14 | |
5213506e 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 : | |
ed698112 NN |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ed698112 NN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e 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 | |
ed698112 | 31 | fi |
ed698112 | 32 | |
5213506e 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 | } | |
ed698112 NN |
79 | fi |
80 | ||
81 | ||
5213506e 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 | |
ed698112 NN |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
5213506e 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 | |
43e02a8a RW |
172 | |
173 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
174 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
175 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | PATH=/empty FPATH=/empty; export PATH FPATH | |
178 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
179 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
5213506e RW |
180 | test \$(( 1 + 1 )) = 2 || exit 1" |
181 | if (eval "$as_required") 2>/dev/null; then : | |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
ed698112 | 192 | do |
5213506e RW |
193 | IFS=$as_save_IFS |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
ed698112 | 236 | else |
5213506e RW |
237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
ed698112 | 241 | fi |
5213506e RW |
242 | exit 1 |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
ed698112 | 380 | |
5213506e RW |
381 | if expr a : '\(a\)' >/dev/null 2>&1 && |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ed698112 NN |
383 | as_expr=expr |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
5213506e | 388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ed698112 NN |
389 | as_basename=basename |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
5213506e RW |
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
ed698112 | 399 | |
5213506e | 400 | as_me=`$as_basename -- "$0" || |
ed698112 NN |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
402 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
ed698112 | 418 | |
ade710a5 TF |
419 | # Avoid depending upon Character Ranges. |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ed698112 | 425 | |
ed698112 | 426 | |
5213506e RW |
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
ed698112 | 436 | sed ' |
5213506e RW |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
ed698112 | 441 | N |
5213506e RW |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ed698112 | 444 | t loop |
5213506e | 445 | s/-\n.*// |
ed698112 | 446 | ' >$as_me.lineno && |
5213506e RW |
447 | chmod +x "$as_me.lineno" || |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
ed698112 NN |
449 | |
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
452 | # original and so on. Autoconf is especially sensitive to this). |
453 | . "./$as_me.lineno" | |
ed698112 NN |
454 | # Exit status is that of the last command. |
455 | exit | |
456 | } | |
457 | ||
5213506e RW |
458 | ECHO_C= ECHO_N= ECHO_T= |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
ed698112 NN |
469 | esac |
470 | ||
5213506e RW |
471 | rm -f conf$$ conf$$.exe conf$$.file |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
ed698112 | 474 | else |
5213506e RW |
475 | rm -f conf$$.dir |
476 | mkdir conf$$.dir 2>/dev/null | |
ed698112 | 477 | fi |
5213506e RW |
478 | if (echo >conf$$.file) 2>/dev/null; then |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
ade710a5 | 480 | as_ln_s='ln -s' |
5213506e RW |
481 | # ... but there are two gotchas: |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
ade710a5 | 491 | fi |
ed698112 NN |
492 | else |
493 | as_ln_s='cp -p' | |
494 | fi | |
5213506e RW |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
496 | rmdir conf$$.dir 2>/dev/null | |
ed698112 NN |
497 | |
498 | if mkdir -p . 2>/dev/null; then | |
5213506e | 499 | as_mkdir_p='mkdir -p "$as_dir"' |
ed698112 NN |
500 | else |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
5213506e RW |
505 | if test -x / >/dev/null 2>&1; then |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
ed698112 NN |
527 | |
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
1cf3d07d SE |
534 | SHELL=${CONFIG_SHELL-/bin/sh} |
535 | ||
1cf3d07d | 536 | |
5213506e RW |
537 | exec 7<&0 </dev/null 6>&1 |
538 | ||
ed698112 NN |
539 | # Name of the host. |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
ee9dd372 | 543 | |
ed698112 NN |
544 | # |
545 | # Initializations. | |
546 | # | |
ee9dd372 | 547 | ac_default_prefix=/usr/local |
5213506e | 548 | ac_clean_files= |
ed698112 | 549 | ac_config_libobj_dir=. |
5213506e | 550 | LIBOBJS= |
ed698112 NN |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
ade710a5 | 555 | |
ed698112 | 556 | # Identity of this package. |
e3f92d3b MK |
557 | PACKAGE_NAME='libjava' |
558 | PACKAGE_TARNAME='libjava' | |
559 | PACKAGE_VERSION='version-unused' | |
560 | PACKAGE_STRING='libjava version-unused' | |
561 | PACKAGE_BUGREPORT='' | |
5213506e | 562 | PACKAGE_URL='' |
ed698112 NN |
563 | |
564 | ac_unique_file="java/lang/System.java" | |
ed698112 NN |
565 | # Factoring default headers for most tests. |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
5213506e | 568 | #ifdef HAVE_SYS_TYPES_H |
ed698112 NN |
569 | # include <sys/types.h> |
570 | #endif | |
5213506e | 571 | #ifdef HAVE_SYS_STAT_H |
ed698112 NN |
572 | # include <sys/stat.h> |
573 | #endif | |
5213506e | 574 | #ifdef STDC_HEADERS |
ed698112 NN |
575 | # include <stdlib.h> |
576 | # include <stddef.h> | |
577 | #else | |
5213506e | 578 | # ifdef HAVE_STDLIB_H |
ed698112 NN |
579 | # include <stdlib.h> |
580 | # endif | |
581 | #endif | |
5213506e RW |
582 | #ifdef HAVE_STRING_H |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ed698112 NN |
584 | # include <memory.h> |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
5213506e | 588 | #ifdef HAVE_STRINGS_H |
ed698112 NN |
589 | # include <strings.h> |
590 | #endif | |
5213506e | 591 | #ifdef HAVE_INTTYPES_H |
ed698112 | 592 | # include <inttypes.h> |
ed698112 | 593 | #endif |
5213506e RW |
594 | #ifdef HAVE_STDINT_H |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
ed698112 NN |
598 | # include <unistd.h> |
599 | #endif" | |
600 | ||
5213506e | 601 | enable_option_checking=no |
8352cbb4 | 602 | ac_c_werror_flag= |
5213506e RW |
603 | ac_subst_vars='am__EXEEXT_FALSE |
604 | am__EXEEXT_TRUE | |
605 | LTLIBOBJS | |
606 | LIBOBJS | |
607 | LIBDIR | |
608 | OS | |
609 | CPU | |
610 | GCJ_BIN_DIR | |
611 | JRE_LIB_DIR | |
612 | JRE_BIN_DIR | |
613 | SDK_INCLUDE_DIR | |
614 | SDK_LIB_DIR | |
615 | SDK_BIN_DIR | |
616 | SDK_LNK | |
617 | JRE_LNK | |
618 | JRE_DIR | |
619 | JVM_JAR_DIR | |
620 | JVM_JAR_ROOT_DIR | |
621 | JVM_ROOT_DIR | |
622 | BUILD_VERSION | |
623 | JAVA_VERSION | |
624 | gcc_suffix | |
625 | CREATE_JAVA_HOME_FALSE | |
626 | CREATE_JAVA_HOME_TRUE | |
627 | INSTALL_AOT_RPM_FALSE | |
628 | INSTALL_AOT_RPM_TRUE | |
629 | MAKE | |
630 | python_mod_dir_expanded | |
631 | python_mod_dir | |
632 | here | |
633 | LD_FINISH_STATIC_SPEC | |
634 | LD_START_STATIC_SPEC | |
22a4778a RO |
635 | ANONVERSCRIPT_SUN_FALSE |
636 | ANONVERSCRIPT_SUN_TRUE | |
637 | ANONVERSCRIPT_GNU_FALSE | |
638 | ANONVERSCRIPT_GNU_TRUE | |
5213506e RW |
639 | ANONVERSCRIPT_FALSE |
640 | ANONVERSCRIPT_TRUE | |
641 | SYSDEP_SOURCES | |
642 | PERL | |
643 | libstdcxx_incdir | |
644 | gxx_include_dir | |
645 | gcjsubdir | |
646 | dbexecdir | |
647 | GCJVERSION | |
648 | toolexeclibdir | |
649 | toolexecmainlibdir | |
650 | toolexecdir | |
651 | GCC_UNWIND_INCLUDE | |
652 | INSTALL_BINARIES_FALSE | |
653 | INSTALL_BINARIES_TRUE | |
654 | NEEDS_DATA_START_FALSE | |
655 | NEEDS_DATA_START_TRUE | |
656 | ENABLE_SHARED_FALSE | |
657 | ENABLE_SHARED_TRUE | |
658 | NATIVE_FALSE | |
659 | NATIVE_TRUE | |
660 | ATOMICSPEC | |
661 | IEEESPEC | |
662 | BACKTRACESPEC | |
663 | EXCEPTIONSPEC | |
664 | CHECKREFSPEC | |
665 | DIVIDESPEC | |
666 | ZINCS | |
667 | SYS_ZLIBS | |
668 | ZLIBS | |
669 | CLASSPATH_SEPARATOR | |
670 | LIBART_LIBS | |
671 | LIBART_CFLAGS | |
672 | GLIB_LIBS | |
673 | GLIB_CFLAGS | |
674 | GTK_LIBS | |
675 | GTK_CFLAGS | |
676 | PKG_CONFIG | |
677 | LTLIBICONV | |
678 | LIBICONV | |
679 | USING_GCC_FALSE | |
680 | USING_GCC_TRUE | |
681 | HASH_SYNC_SPEC | |
682 | LIBGCJ_BC_SPEC | |
683 | LIBGCJ_SPEC | |
684 | USE_LIBGCJ_BC_FALSE | |
685 | USE_LIBGCJ_BC_TRUE | |
686 | USING_NO_THREADS_FALSE | |
687 | USING_NO_THREADS_TRUE | |
688 | USING_WIN32_THREADS_FALSE | |
689 | USING_WIN32_THREADS_TRUE | |
690 | USING_POSIX_THREADS_FALSE | |
691 | USING_POSIX_THREADS_TRUE | |
692 | THREADCXXFLAGS | |
693 | THREADLDFLAGS | |
694 | THREADSTARTFILESPEC | |
695 | THREADSPEC | |
696 | THREADDEPS | |
697 | THREADINCS | |
698 | THREADLIBS | |
699 | USING_NOGC_FALSE | |
700 | USING_NOGC_TRUE | |
701 | USING_BOEHMGC_FALSE | |
702 | USING_BOEHMGC_TRUE | |
703 | GCTESTSPEC | |
704 | JC1GCSPEC | |
705 | GCSPEC | |
706 | GCDEPS | |
707 | GCINCS | |
708 | GCLIBS | |
709 | LIBGCJTESTSPEC | |
710 | LIBSTDCXXSPEC | |
711 | extra_ldflags | |
5213506e RW |
712 | extra_ldflags_libjava |
713 | X_EXTRA_LIBS | |
714 | X_LIBS | |
715 | X_PRE_LIBS | |
716 | X_CFLAGS | |
717 | XMKMF | |
718 | ZLIBTESTSPEC | |
719 | ZLIBSPEC | |
720 | SYSTEMSPEC | |
721 | USING_DARWIN_CRT_FALSE | |
722 | USING_DARWIN_CRT_TRUE | |
723 | USING_POSIX_PLATFORM_FALSE | |
724 | USING_POSIX_PLATFORM_TRUE | |
725 | USING_WIN32_PLATFORM_FALSE | |
726 | USING_WIN32_PLATFORM_TRUE | |
727 | PLATFORM | |
728 | LIBFFIINCS | |
729 | LIBFFI | |
730 | INTERPRETER_FALSE | |
731 | INTERPRETER_TRUE | |
732 | INTERPRETER | |
733 | BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE | |
734 | BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE | |
735 | SUPPRESS_LIBGCJ_BC_FALSE | |
736 | SUPPRESS_LIBGCJ_BC_TRUE | |
737 | JAVA_HOME | |
738 | JAVA_HOME_SET_FALSE | |
739 | JAVA_HOME_SET_TRUE | |
740 | INSTALL_ECJ_JAR_FALSE | |
741 | INSTALL_ECJ_JAR_TRUE | |
742 | BUILD_ECJ1_FALSE | |
743 | BUILD_ECJ1_TRUE | |
744 | ECJ_JAR | |
745 | ECJ_BUILD_JAR | |
746 | TESTSUBDIR_FALSE | |
747 | TESTSUBDIR_TRUE | |
748 | subdirs | |
749 | am__fastdepGCJ_FALSE | |
750 | am__fastdepGCJ_TRUE | |
751 | GCJDEPMODE | |
752 | GCJFLAGS | |
4d9e8446 | 753 | ac_ct_GCJ |
5213506e RW |
754 | GCJ |
755 | CXXCPP | |
756 | CPP | |
757 | OTOOL64 | |
758 | OTOOL | |
759 | LIPO | |
760 | NMEDIT | |
761 | DSYMUTIL | |
5213506e RW |
762 | OBJDUMP |
763 | NM | |
764 | ac_ct_DUMPBIN | |
765 | DUMPBIN | |
766 | FGREP | |
767 | EGREP | |
768 | GREP | |
769 | SED | |
770 | LIBTOOL | |
771 | DIRLTDL | |
772 | LIBLTDL | |
773 | INCLTDL | |
774 | host_exeext | |
775 | GCJH | |
776 | GCJ_FOR_ECJX | |
777 | X_AWT_FALSE | |
778 | X_AWT_TRUE | |
779 | XLIB_AWT_FALSE | |
780 | XLIB_AWT_TRUE | |
781 | TOOLKIT | |
782 | LIBGCJDEBUG | |
6a92b6c7 DK |
783 | BUILD_SUBLIBS_FALSE |
784 | BUILD_SUBLIBS_TRUE | |
5213506e RW |
785 | LIBGCJ_LD_SYMBOLIC_FUNCTIONS |
786 | LIBGCJ_LD_SYMBOLIC | |
474b97ce | 787 | LIBGCJ_SUBLIB_CORE_EXTRA_DEPS |
c4f0333b | 788 | LIBGCJ_SUBLIB_LTFLAGS |
5213506e RW |
789 | LIBGCJ_JAVAFLAGS |
790 | LIBGCJ_CXXFLAGS | |
791 | LIBGCJ_CFLAGS | |
792 | MAINT | |
793 | MAINTAINER_MODE_FALSE | |
794 | MAINTAINER_MODE_TRUE | |
795 | UNZIP | |
796 | ZIP | |
797 | JAR | |
474b97ce | 798 | DLLTOOL |
5213506e RW |
799 | RANLIB |
800 | AR | |
801 | LD | |
802 | AS | |
803 | am__fastdepCXX_FALSE | |
804 | am__fastdepCXX_TRUE | |
805 | CXXDEPMODE | |
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 | ac_ct_CXX | |
839 | CXXFLAGS | |
840 | CXX | |
841 | OBJEXT | |
842 | EXEEXT | |
843 | ac_ct_CC | |
844 | CPPFLAGS | |
845 | LDFLAGS | |
846 | CFLAGS | |
847 | CC | |
848 | JAVA_MAINTAINER_MODE_FALSE | |
849 | JAVA_MAINTAINER_MODE_TRUE | |
850 | CREATE_GJDOC_FALSE | |
851 | CREATE_GJDOC_TRUE | |
852 | ANTLR_JAR | |
853 | mkinstalldirs | |
854 | LN_S | |
855 | target_noncanonical | |
856 | target_os | |
857 | target_vendor | |
858 | target_cpu | |
859 | target | |
860 | host_os | |
861 | host_vendor | |
862 | host_cpu | |
863 | host | |
864 | multi_basedir | |
865 | target_subdir | |
866 | host_subdir | |
867 | build_subdir | |
868 | build_libsubdir | |
869 | build_os | |
870 | build_vendor | |
871 | build_cpu | |
872 | build | |
873 | target_alias | |
874 | host_alias | |
875 | build_alias | |
876 | LIBS | |
877 | ECHO_T | |
878 | ECHO_N | |
879 | ECHO_C | |
880 | DEFS | |
881 | mandir | |
882 | localedir | |
883 | libdir | |
884 | psdir | |
885 | pdfdir | |
886 | dvidir | |
887 | htmldir | |
888 | infodir | |
889 | docdir | |
890 | oldincludedir | |
891 | includedir | |
892 | localstatedir | |
893 | sharedstatedir | |
894 | sysconfdir | |
895 | datadir | |
896 | datarootdir | |
897 | libexecdir | |
898 | sbindir | |
899 | bindir | |
900 | program_transform_name | |
901 | prefix | |
902 | exec_prefix | |
903 | PACKAGE_URL | |
904 | PACKAGE_BUGREPORT | |
905 | PACKAGE_STRING | |
906 | PACKAGE_VERSION | |
907 | PACKAGE_TARNAME | |
908 | PACKAGE_NAME | |
909 | PATH_SEPARATOR | |
910 | SHELL' | |
ed698112 | 911 | ac_subst_files='' |
5213506e RW |
912 | ac_user_opts=' |
913 | enable_option_checking | |
914 | with_build_libsubdir | |
915 | with_target_subdir | |
916 | enable_multilib | |
917 | with_cross_host | |
918 | with_newlib | |
919 | enable_version_specific_runtime_libs | |
34677bae | 920 | enable_browser_plugin |
5213506e RW |
921 | enable_gconf_peer |
922 | with_antlr_jar | |
923 | enable_gjdoc | |
924 | enable_java_maintainer_mode | |
925 | enable_dependency_tracking | |
926 | enable_maintainer_mode | |
6a92b6c7 | 927 | enable_libgcj_sublibs |
5213506e RW |
928 | enable_libgcj_debug |
929 | with_escher | |
930 | enable_java_awt | |
931 | enable_shared | |
932 | enable_static | |
933 | with_pic | |
934 | enable_fast_install | |
935 | with_gnu_ld | |
936 | enable_libtool_lock | |
937 | enable_getenv_properties | |
938 | enable_hash_synchronization | |
939 | with_ecj_jar | |
940 | with_java_home | |
941 | enable_libgcj_bc | |
942 | enable_reduced_reflection | |
943 | with_win32_nlsapi | |
944 | enable_gc_debug | |
945 | enable_interpreter | |
946 | enable_sjlj_exceptions | |
947 | enable_java_net | |
948 | with_libffi | |
949 | enable_jvmpi | |
950 | with_ecos | |
951 | with_system_zlib | |
952 | with_x | |
953 | enable_java_gc | |
954 | enable_rpath | |
955 | with_libiconv_prefix | |
956 | enable_tls | |
957 | with_system_libunwind | |
958 | with_python_dir | |
959 | enable_aot_compile_rpm | |
960 | enable_java_home | |
961 | with_gcc_suffix | |
962 | with_arch_directory | |
963 | with_os_directory | |
964 | with_origin_name | |
965 | with_arch_suffix | |
966 | with_jvm_root_dir | |
967 | with_jvm_jar_dir | |
968 | ' | |
969 | ac_precious_vars='build_alias | |
970 | host_alias | |
971 | target_alias | |
a5d28a12 RW |
972 | CC |
973 | CFLAGS | |
974 | LDFLAGS | |
975 | LIBS | |
5213506e | 976 | CPPFLAGS |
a5d28a12 RW |
977 | CXX |
978 | CXXFLAGS | |
979 | CCC | |
980 | CPP | |
5213506e RW |
981 | CXXCPP |
982 | XMKMF' | |
983 | ac_subdirs_all='classpath libltdl' | |
ee9dd372 TT |
984 | |
985 | # Initialize some variables set by options. | |
ed698112 NN |
986 | ac_init_help= |
987 | ac_init_version=false | |
5213506e RW |
988 | ac_unrecognized_opts= |
989 | ac_unrecognized_sep= | |
ee9dd372 TT |
990 | # The variables have the same names as the options, with |
991 | # dashes changed to underlines. | |
ed698112 | 992 | cache_file=/dev/null |
ee9dd372 | 993 | exec_prefix=NONE |
ee9dd372 | 994 | no_create= |
ee9dd372 TT |
995 | no_recursion= |
996 | prefix=NONE | |
997 | program_prefix=NONE | |
998 | program_suffix=NONE | |
999 | program_transform_name=s,x,x, | |
1000 | silent= | |
1001 | site= | |
1002 | srcdir= | |
ee9dd372 TT |
1003 | verbose= |
1004 | x_includes=NONE | |
1005 | x_libraries=NONE | |
ed698112 NN |
1006 | |
1007 | # Installation directory options. | |
1008 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1009 | # and all the variables that are supposed to be based on exec_prefix | |
1010 | # by default will actually change. | |
1011 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 1012 | # (The list follows the same order as the GNU Coding Standards.) |
ee9dd372 TT |
1013 | bindir='${exec_prefix}/bin' |
1014 | sbindir='${exec_prefix}/sbin' | |
1015 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
1016 | datarootdir='${prefix}/share' |
1017 | datadir='${datarootdir}' | |
ee9dd372 TT |
1018 | sysconfdir='${prefix}/etc' |
1019 | sharedstatedir='${prefix}/com' | |
1020 | localstatedir='${prefix}/var' | |
ee9dd372 TT |
1021 | includedir='${prefix}/include' |
1022 | oldincludedir='/usr/include' | |
5213506e RW |
1023 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1024 | infodir='${datarootdir}/info' | |
1025 | htmldir='${docdir}' | |
1026 | dvidir='${docdir}' | |
1027 | pdfdir='${docdir}' | |
1028 | psdir='${docdir}' | |
1029 | libdir='${exec_prefix}/lib' | |
1030 | localedir='${datarootdir}/locale' | |
1031 | mandir='${datarootdir}/man' | |
ee9dd372 | 1032 | |
ee9dd372 | 1033 | ac_prev= |
5213506e | 1034 | ac_dashdash= |
ee9dd372 TT |
1035 | for ac_option |
1036 | do | |
ee9dd372 TT |
1037 | # If the previous option needs an argument, assign it. |
1038 | if test -n "$ac_prev"; then | |
5213506e | 1039 | eval $ac_prev=\$ac_option |
ee9dd372 TT |
1040 | ac_prev= |
1041 | continue | |
1042 | fi | |
1043 | ||
5213506e RW |
1044 | case $ac_option in |
1045 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1046 | *) ac_optarg=yes ;; | |
1047 | esac | |
ee9dd372 TT |
1048 | |
1049 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1050 | ||
5213506e RW |
1051 | case $ac_dashdash$ac_option in |
1052 | --) | |
1053 | ac_dashdash=yes ;; | |
ee9dd372 TT |
1054 | |
1055 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1056 | ac_prev=bindir ;; | |
1057 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ed698112 | 1058 | bindir=$ac_optarg ;; |
ee9dd372 TT |
1059 | |
1060 | -build | --build | --buil | --bui | --bu) | |
ed698112 | 1061 | ac_prev=build_alias ;; |
ee9dd372 | 1062 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ed698112 | 1063 | build_alias=$ac_optarg ;; |
ee9dd372 TT |
1064 | |
1065 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1066 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1067 | ac_prev=cache_file ;; | |
1068 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1069 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ed698112 NN |
1070 | cache_file=$ac_optarg ;; |
1071 | ||
1072 | --config-cache | -C) | |
1073 | cache_file=config.cache ;; | |
ee9dd372 | 1074 | |
5213506e | 1075 | -datadir | --datadir | --datadi | --datad) |
ee9dd372 | 1076 | ac_prev=datadir ;; |
5213506e | 1077 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ed698112 | 1078 | datadir=$ac_optarg ;; |
ee9dd372 | 1079 | |
5213506e RW |
1080 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1081 | | --dataroo | --dataro | --datar) | |
1082 | ac_prev=datarootdir ;; | |
1083 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1084 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1085 | datarootdir=$ac_optarg ;; | |
1086 | ||
ee9dd372 | 1087 | -disable-* | --disable-*) |
5213506e | 1088 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ee9dd372 | 1089 | # Reject names that are not valid shell variable names. |
5213506e RW |
1090 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1091 | as_fn_error "invalid feature name: $ac_useropt" | |
1092 | ac_useropt_orig=$ac_useropt | |
1093 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1094 | case $ac_user_opts in | |
1095 | *" | |
1096 | "enable_$ac_useropt" | |
1097 | "*) ;; | |
1098 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1099 | ac_unrecognized_sep=', ';; | |
1100 | esac | |
1101 | eval enable_$ac_useropt=no ;; | |
1102 | ||
1103 | -docdir | --docdir | --docdi | --doc | --do) | |
1104 | ac_prev=docdir ;; | |
1105 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1106 | docdir=$ac_optarg ;; | |
1107 | ||
1108 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1109 | ac_prev=dvidir ;; | |
1110 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1111 | dvidir=$ac_optarg ;; | |
ee9dd372 TT |
1112 | |
1113 | -enable-* | --enable-*) | |
5213506e | 1114 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ee9dd372 | 1115 | # Reject names that are not valid shell variable names. |
5213506e RW |
1116 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1117 | as_fn_error "invalid feature name: $ac_useropt" | |
1118 | ac_useropt_orig=$ac_useropt | |
1119 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1120 | case $ac_user_opts in | |
1121 | *" | |
1122 | "enable_$ac_useropt" | |
1123 | "*) ;; | |
1124 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1125 | ac_unrecognized_sep=', ';; | |
ade710a5 | 1126 | esac |
5213506e | 1127 | eval enable_$ac_useropt=\$ac_optarg ;; |
ee9dd372 TT |
1128 | |
1129 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1130 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1131 | | --exec | --exe | --ex) | |
1132 | ac_prev=exec_prefix ;; | |
1133 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1134 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1135 | | --exec=* | --exe=* | --ex=*) | |
ed698112 | 1136 | exec_prefix=$ac_optarg ;; |
ee9dd372 TT |
1137 | |
1138 | -gas | --gas | --ga | --g) | |
1139 | # Obsolete; use --with-gas. | |
1140 | with_gas=yes ;; | |
1141 | ||
ed698112 NN |
1142 | -help | --help | --hel | --he | -h) |
1143 | ac_init_help=long ;; | |
1144 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1145 | ac_init_help=recursive ;; | |
1146 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1147 | ac_init_help=short ;; | |
ee9dd372 TT |
1148 | |
1149 | -host | --host | --hos | --ho) | |
ed698112 | 1150 | ac_prev=host_alias ;; |
ee9dd372 | 1151 | -host=* | --host=* | --hos=* | --ho=*) |
ed698112 | 1152 | host_alias=$ac_optarg ;; |
ee9dd372 | 1153 | |
5213506e RW |
1154 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1155 | ac_prev=htmldir ;; | |
1156 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1157 | | --ht=*) | |
1158 | htmldir=$ac_optarg ;; | |
1159 | ||
ee9dd372 TT |
1160 | -includedir | --includedir | --includedi | --included | --include \ |
1161 | | --includ | --inclu | --incl | --inc) | |
1162 | ac_prev=includedir ;; | |
1163 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1164 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ed698112 | 1165 | includedir=$ac_optarg ;; |
ee9dd372 TT |
1166 | |
1167 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1168 | ac_prev=infodir ;; | |
1169 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ed698112 | 1170 | infodir=$ac_optarg ;; |
ee9dd372 TT |
1171 | |
1172 | -libdir | --libdir | --libdi | --libd) | |
1173 | ac_prev=libdir ;; | |
1174 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ed698112 | 1175 | libdir=$ac_optarg ;; |
ee9dd372 TT |
1176 | |
1177 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1178 | | --libexe | --libex | --libe) | |
1179 | ac_prev=libexecdir ;; | |
1180 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1181 | | --libexe=* | --libex=* | --libe=*) | |
ed698112 | 1182 | libexecdir=$ac_optarg ;; |
ee9dd372 | 1183 | |
5213506e RW |
1184 | -localedir | --localedir | --localedi | --localed | --locale) |
1185 | ac_prev=localedir ;; | |
1186 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1187 | localedir=$ac_optarg ;; | |
1188 | ||
ee9dd372 | 1189 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1190 | | --localstate | --localstat | --localsta | --localst | --locals) |
ee9dd372 TT |
1191 | ac_prev=localstatedir ;; |
1192 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1193 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ed698112 | 1194 | localstatedir=$ac_optarg ;; |
ee9dd372 TT |
1195 | |
1196 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1197 | ac_prev=mandir ;; | |
1198 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ed698112 | 1199 | mandir=$ac_optarg ;; |
ee9dd372 TT |
1200 | |
1201 | -nfp | --nfp | --nf) | |
1202 | # Obsolete; use --without-fp. | |
1203 | with_fp=no ;; | |
1204 | ||
1205 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ed698112 | 1206 | | --no-cr | --no-c | -n) |
ee9dd372 TT |
1207 | no_create=yes ;; |
1208 | ||
1209 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1210 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1211 | no_recursion=yes ;; | |
1212 | ||
1213 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1214 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1215 | | --oldin | --oldi | --old | --ol | --o) | |
1216 | ac_prev=oldincludedir ;; | |
1217 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1218 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1219 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ed698112 | 1220 | oldincludedir=$ac_optarg ;; |
ee9dd372 TT |
1221 | |
1222 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1223 | ac_prev=prefix ;; | |
1224 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ed698112 | 1225 | prefix=$ac_optarg ;; |
ee9dd372 TT |
1226 | |
1227 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1228 | | --program-pre | --program-pr | --program-p) | |
1229 | ac_prev=program_prefix ;; | |
1230 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1231 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ed698112 | 1232 | program_prefix=$ac_optarg ;; |
ee9dd372 TT |
1233 | |
1234 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1235 | | --program-suf | --program-su | --program-s) | |
1236 | ac_prev=program_suffix ;; | |
1237 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1238 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ed698112 | 1239 | program_suffix=$ac_optarg ;; |
ee9dd372 TT |
1240 | |
1241 | -program-transform-name | --program-transform-name \ | |
1242 | | --program-transform-nam | --program-transform-na \ | |
1243 | | --program-transform-n | --program-transform- \ | |
1244 | | --program-transform | --program-transfor \ | |
1245 | | --program-transfo | --program-transf \ | |
1246 | | --program-trans | --program-tran \ | |
1247 | | --progr-tra | --program-tr | --program-t) | |
1248 | ac_prev=program_transform_name ;; | |
1249 | -program-transform-name=* | --program-transform-name=* \ | |
1250 | | --program-transform-nam=* | --program-transform-na=* \ | |
1251 | | --program-transform-n=* | --program-transform-=* \ | |
1252 | | --program-transform=* | --program-transfor=* \ | |
1253 | | --program-transfo=* | --program-transf=* \ | |
1254 | | --program-trans=* | --program-tran=* \ | |
1255 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ed698112 | 1256 | program_transform_name=$ac_optarg ;; |
ee9dd372 | 1257 | |
5213506e RW |
1258 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1259 | ac_prev=pdfdir ;; | |
1260 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1261 | pdfdir=$ac_optarg ;; | |
1262 | ||
1263 | -psdir | --psdir | --psdi | --psd | --ps) | |
1264 | ac_prev=psdir ;; | |
1265 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1266 | psdir=$ac_optarg ;; | |
1267 | ||
ee9dd372 TT |
1268 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1269 | | -silent | --silent | --silen | --sile | --sil) | |
1270 | silent=yes ;; | |
1271 | ||
1272 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1273 | ac_prev=sbindir ;; | |
1274 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1275 | | --sbi=* | --sb=*) | |
ed698112 | 1276 | sbindir=$ac_optarg ;; |
ee9dd372 TT |
1277 | |
1278 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1279 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1280 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1281 | | --sha | --sh) | |
1282 | ac_prev=sharedstatedir ;; | |
1283 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1284 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1285 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1286 | | --sha=* | --sh=*) | |
ed698112 | 1287 | sharedstatedir=$ac_optarg ;; |
ee9dd372 TT |
1288 | |
1289 | -site | --site | --sit) | |
1290 | ac_prev=site ;; | |
1291 | -site=* | --site=* | --sit=*) | |
ed698112 | 1292 | site=$ac_optarg ;; |
ee9dd372 TT |
1293 | |
1294 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1295 | ac_prev=srcdir ;; | |
1296 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ed698112 | 1297 | srcdir=$ac_optarg ;; |
ee9dd372 TT |
1298 | |
1299 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1300 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1301 | ac_prev=sysconfdir ;; | |
1302 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1303 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ed698112 | 1304 | sysconfdir=$ac_optarg ;; |
ee9dd372 TT |
1305 | |
1306 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ed698112 | 1307 | ac_prev=target_alias ;; |
ee9dd372 | 1308 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ed698112 | 1309 | target_alias=$ac_optarg ;; |
ee9dd372 TT |
1310 | |
1311 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1312 | verbose=yes ;; | |
1313 | ||
ed698112 NN |
1314 | -version | --version | --versio | --versi | --vers | -V) |
1315 | ac_init_version=: ;; | |
ee9dd372 TT |
1316 | |
1317 | -with-* | --with-*) | |
5213506e | 1318 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ee9dd372 | 1319 | # Reject names that are not valid shell variable names. |
5213506e RW |
1320 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1321 | as_fn_error "invalid package name: $ac_useropt" | |
1322 | ac_useropt_orig=$ac_useropt | |
1323 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1324 | case $ac_user_opts in | |
1325 | *" | |
1326 | "with_$ac_useropt" | |
1327 | "*) ;; | |
1328 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1329 | ac_unrecognized_sep=', ';; | |
ade710a5 | 1330 | esac |
5213506e | 1331 | eval with_$ac_useropt=\$ac_optarg ;; |
ee9dd372 TT |
1332 | |
1333 | -without-* | --without-*) | |
5213506e | 1334 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ee9dd372 | 1335 | # Reject names that are not valid shell variable names. |
5213506e RW |
1336 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1337 | as_fn_error "invalid package name: $ac_useropt" | |
1338 | ac_useropt_orig=$ac_useropt | |
1339 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1340 | case $ac_user_opts in | |
1341 | *" | |
1342 | "with_$ac_useropt" | |
1343 | "*) ;; | |
1344 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1345 | ac_unrecognized_sep=', ';; | |
1346 | esac | |
1347 | eval with_$ac_useropt=no ;; | |
ee9dd372 TT |
1348 | |
1349 | --x) | |
1350 | # Obsolete; use --with-x. | |
1351 | with_x=yes ;; | |
1352 | ||
1353 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1354 | | --x-incl | --x-inc | --x-in | --x-i) | |
1355 | ac_prev=x_includes ;; | |
1356 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1357 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ed698112 | 1358 | x_includes=$ac_optarg ;; |
ee9dd372 TT |
1359 | |
1360 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1361 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1362 | ac_prev=x_libraries ;; | |
1363 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1364 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ed698112 | 1365 | x_libraries=$ac_optarg ;; |
ee9dd372 | 1366 | |
5213506e RW |
1367 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1368 | Try \`$0 --help' for more information." | |
ee9dd372 TT |
1369 | ;; |
1370 | ||
ed698112 NN |
1371 | *=*) |
1372 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1373 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1374 | case $ac_envvar in #( |
1375 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1376 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1377 | esac | |
1378 | eval $ac_envvar=\$ac_optarg | |
ed698112 NN |
1379 | export $ac_envvar ;; |
1380 | ||
ee9dd372 | 1381 | *) |
ed698112 | 1382 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1383 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ed698112 | 1384 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1385 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ed698112 | 1386 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
ee9dd372 TT |
1387 | ;; |
1388 | ||
1389 | esac | |
1390 | done | |
1391 | ||
1392 | if test -n "$ac_prev"; then | |
ed698112 | 1393 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5213506e | 1394 | as_fn_error "missing argument to $ac_option" |
ee9dd372 | 1395 | fi |
ee9dd372 | 1396 | |
5213506e RW |
1397 | if test -n "$ac_unrecognized_opts"; then |
1398 | case $enable_option_checking in | |
1399 | no) ;; | |
1400 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1401 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
ade710a5 | 1402 | esac |
5213506e | 1403 | fi |
ade710a5 | 1404 | |
5213506e RW |
1405 | # Check all directory arguments for consistency. |
1406 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1407 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1408 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1409 | libdir localedir mandir | |
ade710a5 | 1410 | do |
5213506e RW |
1411 | eval ac_val=\$$ac_var |
1412 | # Remove trailing slashes. | |
1413 | case $ac_val in | |
1414 | */ ) | |
1415 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1416 | eval $ac_var=\$ac_val;; | |
1417 | esac | |
1418 | # Be sure to have absolute directory names. | |
ade710a5 | 1419 | case $ac_val in |
5213506e RW |
1420 | [\\/$]* | ?:[\\/]* ) continue;; |
1421 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
ee9dd372 | 1422 | esac |
5213506e | 1423 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
ee9dd372 TT |
1424 | done |
1425 | ||
ed698112 NN |
1426 | # There might be people who depend on the old broken behavior: `$host' |
1427 | # used to hold the argument of --host etc. | |
1428 | # FIXME: To remove some day. | |
1429 | build=$build_alias | |
1430 | host=$host_alias | |
1431 | target=$target_alias | |
1432 | ||
1433 | # FIXME: To remove some day. | |
1434 | if test "x$host_alias" != x; then | |
1435 | if test "x$build_alias" = x; then | |
1436 | cross_compiling=maybe | |
5213506e | 1437 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ed698112 NN |
1438 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1439 | elif test "x$build_alias" != "x$host_alias"; then | |
1440 | cross_compiling=yes | |
1441 | fi | |
1442 | fi | |
ee9dd372 | 1443 | |
ed698112 NN |
1444 | ac_tool_prefix= |
1445 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1446 | ||
1447 | test "$silent" = yes && exec 6>/dev/null | |
ee9dd372 | 1448 | |
ee9dd372 | 1449 | |
5213506e RW |
1450 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1451 | ac_ls_di=`ls -di .` && | |
1452 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1453 | as_fn_error "working directory cannot be determined" | |
1454 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1455 | as_fn_error "pwd does not report name of working directory" | |
1456 | ||
1457 | ||
ee9dd372 TT |
1458 | # Find the source files, if location was not specified. |
1459 | if test -z "$srcdir"; then | |
1460 | ac_srcdir_defaulted=yes | |
5213506e RW |
1461 | # Try the directory containing this script, then the parent directory. |
1462 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1463 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1464 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1465 | X"$as_myself" : 'X\(//\)$' \| \ | |
1466 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1467 | $as_echo X"$as_myself" | | |
1468 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1469 | s//\1/ | |
1470 | q | |
1471 | } | |
1472 | /^X\(\/\/\)[^/].*/{ | |
1473 | s//\1/ | |
1474 | q | |
1475 | } | |
1476 | /^X\(\/\/\)$/{ | |
1477 | s//\1/ | |
1478 | q | |
1479 | } | |
1480 | /^X\(\/\).*/{ | |
1481 | s//\1/ | |
1482 | q | |
1483 | } | |
1484 | s/.*/./; q'` | |
ee9dd372 | 1485 | srcdir=$ac_confdir |
5213506e | 1486 | if test ! -r "$srcdir/$ac_unique_file"; then |
ee9dd372 TT |
1487 | srcdir=.. |
1488 | fi | |
1489 | else | |
1490 | ac_srcdir_defaulted=no | |
1491 | fi | |
5213506e RW |
1492 | if test ! -r "$srcdir/$ac_unique_file"; then |
1493 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1494 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1495 | fi | |
1496 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1497 | ac_abs_confdir=`( | |
1498 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1499 | pwd)` | |
1500 | # When building in place, set srcdir=. | |
1501 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1502 | srcdir=. | |
1503 | fi | |
1504 | # Remove unnecessary trailing slashes from srcdir. | |
1505 | # Double slashes in file names in object file debugging info | |
1506 | # mess up M-x gdb in Emacs. | |
1507 | case $srcdir in | |
1508 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1509 | esac | |
1510 | for ac_var in $ac_precious_vars; do | |
1511 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1512 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1513 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1514 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1515 | done | |
ed698112 NN |
1516 | |
1517 | # | |
1518 | # Report the --help message. | |
1519 | # | |
1520 | if test "$ac_init_help" = "long"; then | |
1521 | # Omit some internal or obsolete options to make the list less imposing. | |
1522 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1523 | cat <<_ACEOF | |
e3f92d3b | 1524 | \`configure' configures libjava version-unused to adapt to many kinds of systems. |
ed698112 NN |
1525 | |
1526 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1527 | ||
1528 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1529 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1530 | ||
1531 | Defaults for the options are specified in brackets. | |
1532 | ||
1533 | Configuration: | |
1534 | -h, --help display this help and exit | |
1535 | --help=short display options specific to this package | |
1536 | --help=recursive display the short help of all the included packages | |
1537 | -V, --version display version information and exit | |
1538 | -q, --quiet, --silent do not print \`checking...' messages | |
1539 | --cache-file=FILE cache test results in FILE [disabled] | |
1540 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1541 | -n, --no-create do not create output files | |
1542 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1543 | ||
ed698112 NN |
1544 | Installation directories: |
1545 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1546 | [$ac_default_prefix] |
ed698112 | 1547 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1548 | [PREFIX] |
ed698112 NN |
1549 | |
1550 | By default, \`make install' will install all the files in | |
1551 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1552 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1553 | for instance \`--prefix=\$HOME'. | |
1554 | ||
1555 | For better control, use the options below. | |
1556 | ||
1557 | Fine tuning of the installation directories: | |
5213506e RW |
1558 | --bindir=DIR user executables [EPREFIX/bin] |
1559 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1560 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1561 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1562 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1563 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1564 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1565 | --includedir=DIR C header files [PREFIX/include] | |
1566 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1567 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1568 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1569 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1570 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1571 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1572 | --docdir=DIR documentation root [DATAROOTDIR/doc/libjava] | |
1573 | --htmldir=DIR html documentation [DOCDIR] | |
1574 | --dvidir=DIR dvi documentation [DOCDIR] | |
1575 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1576 | --psdir=DIR ps documentation [DOCDIR] | |
ed698112 NN |
1577 | _ACEOF |
1578 | ||
1579 | cat <<\_ACEOF | |
1580 | ||
1581 | Program names: | |
1582 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1583 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1584 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1585 | ||
1586 | X features: | |
1587 | --x-includes=DIR X include files are in DIR | |
1588 | --x-libraries=DIR X library files are in DIR | |
1589 | ||
1590 | System types: | |
1591 | --build=BUILD configure for building on BUILD [guessed] | |
1592 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1593 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1594 | _ACEOF | |
1595 | fi | |
1596 | ||
1597 | if test -n "$ac_init_help"; then | |
e3f92d3b MK |
1598 | case $ac_init_help in |
1599 | short | recursive ) echo "Configuration of libjava version-unused:";; | |
1600 | esac | |
ed698112 NN |
1601 | cat <<\_ACEOF |
1602 | ||
1603 | Optional Features: | |
5213506e | 1604 | --disable-option-checking ignore unrecognized --enable/--with options |
ed698112 NN |
1605 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1606 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
8a489465 | 1607 | --enable-multilib build many library versions (default) |
ed698112 | 1608 | --enable-version-specific-runtime-libs |
aed6152d NN |
1609 | specify that runtime libraries should be installed |
1610 | in a compiler-specific directory | |
34677bae | 1611 | --enable-browser-plugin build gcjwebplugin web browser plugin |
ac1ed908 | 1612 | --enable-gconf-peer compile GConf native peers for util.preferences |
cd6d4007 MK |
1613 | --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc) |
1614 | default=yes | |
97b8365c TT |
1615 | --enable-java-maintainer-mode |
1616 | allow rebuilding of .class and .h files | |
e3f92d3b MK |
1617 | --disable-dependency-tracking speeds up one-time build |
1618 | --enable-dependency-tracking do not reject slow dependency extractors | |
1619 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1620 | (and sometimes confusing) to the casual installer | |
6a92b6c7 | 1621 | --enable-libgcj-sublibs build libgcj as many sub-libraries |
b0fa81ee TT |
1622 | --enable-libgcj-debug enable runtime debugging code |
1623 | --enable-java-awt list of AWT peer implementations to be built | |
5213506e RW |
1624 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1625 | --enable-static[=PKGS] build static libraries [default=yes] | |
1cf3d07d SE |
1626 | --enable-fast-install[=PKGS] |
1627 | optimize for fast installation [default=yes] | |
ed698112 NN |
1628 | --disable-libtool-lock avoid locking (might break parallel builds) |
1629 | --disable-getenv-properties | |
1630 | don't set system properties from GCJ_PROPERTIES | |
1631 | --enable-hash-synchronization | |
1632 | use global hash table for monitor locks | |
a507baad DD |
1633 | --enable-libgcj-bc enable(default) or disable BC ABI for portions of |
1634 | libgcj | |
c07cd2c7 DD |
1635 | --enable-reduced-reflection |
1636 | enable or disable(default) -freduced-reflection when | |
1637 | building portions of libgcj | |
48d0dd75 | 1638 | --enable-gc-debug include full support for pointer backtracing etc. |
ed698112 | 1639 | --enable-interpreter enable interpreter |
aed6152d NN |
1640 | --enable-sjlj-exceptions |
1641 | force use of builtin_setjmp for exceptions | |
ed698112 NN |
1642 | --disable-java-net disable java.net |
1643 | --disable-jvmpi disable JVMPI support | |
aed6152d | 1644 | --enable-java-gc=TYPE choose garbage collector (default is boehm) |
5b7a26f6 | 1645 | --disable-rpath do not hardcode runtime library paths |
2fb31455 | 1646 | --enable-tls Use thread-local storage [default=yes] |
c9db365d JS |
1647 | --enable-aot-compile-rpm |
1648 | enable installation of aot-compile-rpm [default=no] | |
1649 | --enable-java-home create a standard JDK-style directory layout in the | |
1650 | install tree [default=no] | |
ed698112 NN |
1651 | |
1652 | Optional Packages: | |
1653 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1654 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
57255173 | 1655 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
ed698112 | 1656 | --with-target-subdir=SUBDIR |
aed6152d NN |
1657 | configure in a subdirectory |
1658 | --with-cross-host=HOST configure with a cross compiler from HOST | |
1659 | --with-newlib configure with newlib | |
cd6d4007 | 1660 | --with-antlr-jar=file Use ANTLR from the specified jar file |
97b8365c | 1661 | --with-escher=ABS.PATH specify path to escher dir or JAR for X peers |
1cf3d07d SE |
1662 | --with-pic try to use only PIC/non-PIC objects [default=use |
1663 | both] | |
1664 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
97b8365c | 1665 | --with-ecj-jar=FILE use preinstalled ecj jar |
c33b7bf0 TF |
1666 | --with-java-home=DIRECTORY |
1667 | value of java.home system property | |
aed6152d NN |
1668 | --with-win32-nlsapi=ansi or unicows or unicode |
1669 | native MinGW libgcj Win32 OS API (default is ansi) | |
ed698112 NN |
1670 | --without-libffi don't use libffi |
1671 | --with-ecos enable runtime eCos target support | |
1672 | --with-system-zlib use installed libz | |
1673 | --with-x use the X Window System | |
1cf3d07d | 1674 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
5b7a26f6 KC |
1675 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1676 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
bc3f0248 | 1677 | --with-system-libunwind use installed libunwind |
c9db365d JS |
1678 | --with-python-dir the location to install Python modules. This path |
1679 | should NOT include the prefix. | |
1680 | --with-gcc-suffix the GCC tool suffix (defaults to empty string) | |
1681 | --with-arch-directory the arch directory under jre/lib (defaults to | |
1682 | auto-detect) | |
1683 | --with-os-directory the os directory under include (defaults to | |
1684 | auto-detect) | |
1685 | --with-origin-name the JPackage origin name of this package (default is | |
1686 | gcj${gcc_suffix} | |
1687 | --with-arch-suffix the arch directory suffix (default is the empty | |
1688 | string | |
1689 | --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm) | |
1690 | --with-jvm-jar-dir where to install jars (default is | |
1691 | ${prefix}/lib/jvm-exports) | |
ed698112 NN |
1692 | |
1693 | Some influential environment variables: | |
1694 | CC C compiler command | |
1695 | CFLAGS C compiler flags | |
1696 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1697 | nonstandard directory <lib dir> | |
5213506e RW |
1698 | LIBS libraries to pass to the linker, e.g. -l<library> |
1699 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1700 | you have headers in a nonstandard directory <include dir> | |
ed698112 NN |
1701 | CXX C++ compiler command |
1702 | CXXFLAGS C++ compiler flags | |
ed698112 | 1703 | CPP C preprocessor |
1cf3d07d | 1704 | CXXCPP C++ preprocessor |
5213506e | 1705 | XMKMF Path to xmkmf, Makefile generator for X Window System |
ed698112 NN |
1706 | |
1707 | Use these variables to override the choices made by `configure' or to help | |
1708 | it to find libraries and programs with nonstandard names/locations. | |
1709 | ||
5213506e | 1710 | Report bugs to the package provider. |
ed698112 | 1711 | _ACEOF |
5213506e | 1712 | ac_status=$? |
ed698112 NN |
1713 | fi |
1714 | ||
1715 | if test "$ac_init_help" = "recursive"; then | |
1716 | # If there are subdirs, report their specific --help. | |
ed698112 | 1717 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1718 | test -d "$ac_dir" || |
1719 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1720 | continue | |
ed698112 NN |
1721 | ac_builddir=. |
1722 | ||
5213506e RW |
1723 | case "$ac_dir" in |
1724 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1725 | *) | |
1726 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1727 | # A ".." for each directory in $ac_dir_suffix. | |
1728 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1729 | case $ac_top_builddir_sub in | |
1730 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1731 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1732 | esac ;; | |
1733 | esac | |
1734 | ac_abs_top_builddir=$ac_pwd | |
1735 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1736 | # for backward compatibility: | |
1737 | ac_top_builddir=$ac_top_build_prefix | |
ed698112 NN |
1738 | |
1739 | case $srcdir in | |
5213506e | 1740 | .) # We are building in place. |
ed698112 | 1741 | ac_srcdir=. |
5213506e RW |
1742 | ac_top_srcdir=$ac_top_builddir_sub |
1743 | ac_abs_top_srcdir=$ac_pwd ;; | |
1744 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ed698112 | 1745 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1746 | ac_top_srcdir=$srcdir |
1747 | ac_abs_top_srcdir=$srcdir ;; | |
1748 | *) # Relative name. | |
1749 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1750 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1751 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ed698112 | 1752 | esac |
5213506e | 1753 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
ed698112 | 1754 | |
5213506e RW |
1755 | cd "$ac_dir" || { ac_status=$?; continue; } |
1756 | # Check for guested configure. | |
1757 | if test -f "$ac_srcdir/configure.gnu"; then | |
1758 | echo && | |
1759 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1760 | elif test -f "$ac_srcdir/configure"; then | |
1761 | echo && | |
1762 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ed698112 | 1763 | else |
5213506e RW |
1764 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1765 | fi || ac_status=$? | |
1766 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ed698112 NN |
1767 | done |
1768 | fi | |
1769 | ||
5213506e | 1770 | test -n "$ac_init_help" && exit $ac_status |
ed698112 NN |
1771 | if $ac_init_version; then |
1772 | cat <<\_ACEOF | |
e3f92d3b | 1773 | libjava configure version-unused |
5213506e | 1774 | generated by GNU Autoconf 2.64 |
ed698112 | 1775 | |
5213506e | 1776 | Copyright (C) 2009 Free Software Foundation, Inc. |
ed698112 NN |
1777 | This configure script is free software; the Free Software Foundation |
1778 | gives unlimited permission to copy, distribute and modify it. | |
1779 | _ACEOF | |
5213506e | 1780 | exit |
ed698112 | 1781 | fi |
ed698112 | 1782 | |
5213506e RW |
1783 | ## ------------------------ ## |
1784 | ## Autoconf initialization. ## | |
1785 | ## ------------------------ ## | |
ed698112 | 1786 | |
5213506e RW |
1787 | # ac_fn_c_try_compile LINENO |
1788 | # -------------------------- | |
1789 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1790 | ac_fn_c_try_compile () | |
ed698112 | 1791 | { |
5213506e RW |
1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1793 | rm -f conftest.$ac_objext | |
1794 | if { { ac_try="$ac_compile" | |
1795 | case "(($ac_try" in | |
1796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1797 | *) ac_try_echo=$ac_try;; | |
1798 | esac | |
1799 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1800 | $as_echo "$ac_try_echo"; } >&5 | |
1801 | (eval "$ac_compile") 2>conftest.err | |
1802 | ac_status=$? | |
1803 | if test -s conftest.err; then | |
1804 | grep -v '^ *+' conftest.err >conftest.er1 | |
1805 | cat conftest.er1 >&5 | |
1806 | mv -f conftest.er1 conftest.err | |
1807 | fi | |
1808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1809 | test $ac_status = 0; } && { | |
1810 | test -z "$ac_c_werror_flag" || | |
1811 | test ! -s conftest.err | |
1812 | } && test -s conftest.$ac_objext; then : | |
1813 | ac_retval=0 | |
1814 | else | |
1815 | $as_echo "$as_me: failed program was:" >&5 | |
1816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ed698112 | 1817 | |
5213506e RW |
1818 | ac_retval=1 |
1819 | fi | |
1820 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1821 | return $ac_retval | |
ed698112 | 1822 | |
5213506e | 1823 | } # ac_fn_c_try_compile |
ed698112 | 1824 | |
5213506e RW |
1825 | # ac_fn_cxx_try_compile LINENO |
1826 | # ---------------------------- | |
1827 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1828 | ac_fn_cxx_try_compile () | |
1829 | { | |
1830 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1831 | rm -f conftest.$ac_objext | |
1832 | if { { ac_try="$ac_compile" | |
1833 | case "(($ac_try" in | |
1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1835 | *) ac_try_echo=$ac_try;; | |
1836 | esac | |
1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1838 | $as_echo "$ac_try_echo"; } >&5 | |
1839 | (eval "$ac_compile") 2>conftest.err | |
1840 | ac_status=$? | |
1841 | if test -s conftest.err; then | |
1842 | grep -v '^ *+' conftest.err >conftest.er1 | |
1843 | cat conftest.er1 >&5 | |
1844 | mv -f conftest.er1 conftest.err | |
1845 | fi | |
1846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1847 | test $ac_status = 0; } && { | |
1848 | test -z "$ac_cxx_werror_flag" || | |
1849 | test ! -s conftest.err | |
1850 | } && test -s conftest.$ac_objext; then : | |
1851 | ac_retval=0 | |
1852 | else | |
1853 | $as_echo "$as_me: failed program was:" >&5 | |
1854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1855 | ||
1856 | ac_retval=1 | |
1857 | fi | |
1858 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1859 | return $ac_retval | |
1860 | ||
1861 | } # ac_fn_cxx_try_compile | |
1862 | ||
1863 | # ac_fn_c_try_link LINENO | |
1864 | # ----------------------- | |
1865 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1866 | ac_fn_c_try_link () | |
1867 | { | |
1868 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1870 | if { { ac_try="$ac_link" | |
1871 | case "(($ac_try" in | |
1872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1873 | *) ac_try_echo=$ac_try;; | |
1874 | esac | |
1875 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1876 | $as_echo "$ac_try_echo"; } >&5 | |
1877 | (eval "$ac_link") 2>conftest.err | |
1878 | ac_status=$? | |
1879 | if test -s conftest.err; then | |
1880 | grep -v '^ *+' conftest.err >conftest.er1 | |
1881 | cat conftest.er1 >&5 | |
1882 | mv -f conftest.er1 conftest.err | |
1883 | fi | |
1884 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1885 | test $ac_status = 0; } && { | |
1886 | test -z "$ac_c_werror_flag" || | |
1887 | test ! -s conftest.err | |
1888 | } && test -s conftest$ac_exeext && { | |
1889 | test "$cross_compiling" = yes || | |
1890 | $as_test_x conftest$ac_exeext | |
1891 | }; then : | |
1892 | ac_retval=0 | |
1893 | else | |
1894 | $as_echo "$as_me: failed program was:" >&5 | |
1895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1896 | ||
1897 | ac_retval=1 | |
1898 | fi | |
1899 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1900 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1901 | # interfere with the next link command; also delete a directory that is | |
1902 | # left behind by Apple's compiler. We do this before executing the actions. | |
1903 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1904 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1905 | return $ac_retval | |
1906 | ||
1907 | } # ac_fn_c_try_link | |
1908 | ||
1909 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1910 | # ------------------------------------------------------- | |
1911 | # Tests whether HEADER exists and can be compiled using the include files in | |
1912 | # INCLUDES, setting the cache variable VAR accordingly. | |
1913 | ac_fn_c_check_header_compile () | |
1914 | { | |
1915 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1917 | $as_echo_n "checking for $2... " >&6; } | |
1918 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1919 | $as_echo_n "(cached) " >&6 | |
1920 | else | |
1921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1922 | /* end confdefs.h. */ | |
1923 | $4 | |
1924 | #include <$2> | |
1925 | _ACEOF | |
1926 | if ac_fn_c_try_compile "$LINENO"; then : | |
1927 | eval "$3=yes" | |
1928 | else | |
1929 | eval "$3=no" | |
1930 | fi | |
1931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1932 | fi | |
1933 | eval ac_res=\$$3 | |
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1935 | $as_echo "$ac_res" >&6; } | |
1936 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1937 | ||
1938 | } # ac_fn_c_check_header_compile | |
1939 | ||
1940 | # ac_fn_c_try_cpp LINENO | |
1941 | # ---------------------- | |
1942 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1943 | ac_fn_c_try_cpp () | |
1944 | { | |
1945 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1946 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1947 | case "(($ac_try" in | |
1948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1949 | *) ac_try_echo=$ac_try;; | |
1950 | esac | |
1951 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1952 | $as_echo "$ac_try_echo"; } >&5 | |
1953 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1954 | ac_status=$? | |
1955 | if test -s conftest.err; then | |
1956 | grep -v '^ *+' conftest.err >conftest.er1 | |
1957 | cat conftest.er1 >&5 | |
1958 | mv -f conftest.er1 conftest.err | |
1959 | fi | |
1960 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1961 | test $ac_status = 0; } >/dev/null && { | |
1962 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1963 | test ! -s conftest.err | |
1964 | }; then : | |
1965 | ac_retval=0 | |
1966 | else | |
1967 | $as_echo "$as_me: failed program was:" >&5 | |
1968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1969 | ||
1970 | ac_retval=1 | |
1971 | fi | |
1972 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1973 | return $ac_retval | |
1974 | ||
1975 | } # ac_fn_c_try_cpp | |
1976 | ||
1977 | # ac_fn_c_try_run LINENO | |
1978 | # ---------------------- | |
1979 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1980 | # that executables *can* be run. | |
1981 | ac_fn_c_try_run () | |
1982 | { | |
1983 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1984 | if { { ac_try="$ac_link" | |
1985 | case "(($ac_try" in | |
1986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1987 | *) ac_try_echo=$ac_try;; | |
1988 | esac | |
1989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1990 | $as_echo "$ac_try_echo"; } >&5 | |
1991 | (eval "$ac_link") 2>&5 | |
1992 | ac_status=$? | |
1993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1994 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1995 | { { case "(($ac_try" in | |
1996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1997 | *) ac_try_echo=$ac_try;; | |
1998 | esac | |
1999 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2000 | $as_echo "$ac_try_echo"; } >&5 | |
2001 | (eval "$ac_try") 2>&5 | |
2002 | ac_status=$? | |
2003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2004 | test $ac_status = 0; }; }; then : | |
2005 | ac_retval=0 | |
2006 | else | |
2007 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
2008 | $as_echo "$as_me: failed program was:" >&5 | |
2009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2010 | ||
2011 | ac_retval=$ac_status | |
2012 | fi | |
2013 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2014 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2015 | return $ac_retval | |
2016 | ||
2017 | } # ac_fn_c_try_run | |
2018 | ||
2019 | # ac_fn_c_check_func LINENO FUNC VAR | |
2020 | # ---------------------------------- | |
2021 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2022 | ac_fn_c_check_func () | |
2023 | { | |
2024 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2026 | $as_echo_n "checking for $2... " >&6; } | |
2027 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2028 | $as_echo_n "(cached) " >&6 | |
2029 | else | |
2030 | if test x$gcc_no_link = xyes; then | |
2031 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
2032 | fi | |
2033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2034 | /* end confdefs.h. */ | |
2035 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2036 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2037 | #define $2 innocuous_$2 | |
2038 | ||
2039 | /* System header to define __stub macros and hopefully few prototypes, | |
2040 | which can conflict with char $2 (); below. | |
2041 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2042 | <limits.h> exists even on freestanding compilers. */ | |
2043 | ||
2044 | #ifdef __STDC__ | |
2045 | # include <limits.h> | |
2046 | #else | |
2047 | # include <assert.h> | |
2048 | #endif | |
2049 | ||
2050 | #undef $2 | |
2051 | ||
2052 | /* Override any GCC internal prototype to avoid an error. | |
2053 | Use char because int might match the return type of a GCC | |
2054 | builtin and then its argument prototype would still apply. */ | |
2055 | #ifdef __cplusplus | |
2056 | extern "C" | |
2057 | #endif | |
2058 | char $2 (); | |
2059 | /* The GNU C library defines this for functions which it implements | |
2060 | to always fail with ENOSYS. Some functions are actually named | |
2061 | something starting with __ and the normal name is an alias. */ | |
2062 | #if defined __stub_$2 || defined __stub___$2 | |
2063 | choke me | |
2064 | #endif | |
2065 | ||
2066 | int | |
2067 | main () | |
2068 | { | |
2069 | return $2 (); | |
2070 | ; | |
2071 | return 0; | |
2072 | } | |
2073 | _ACEOF | |
2074 | if ac_fn_c_try_link "$LINENO"; then : | |
2075 | eval "$3=yes" | |
2076 | else | |
2077 | eval "$3=no" | |
2078 | fi | |
2079 | rm -f core conftest.err conftest.$ac_objext \ | |
2080 | conftest$ac_exeext conftest.$ac_ext | |
2081 | fi | |
2082 | eval ac_res=\$$3 | |
2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2084 | $as_echo "$ac_res" >&6; } | |
2085 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2086 | ||
2087 | } # ac_fn_c_check_func | |
2088 | ||
2089 | # ac_fn_cxx_try_cpp LINENO | |
2090 | # ------------------------ | |
2091 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2092 | ac_fn_cxx_try_cpp () | |
2093 | { | |
2094 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2095 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2096 | case "(($ac_try" in | |
2097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2098 | *) ac_try_echo=$ac_try;; | |
2099 | esac | |
2100 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2101 | $as_echo "$ac_try_echo"; } >&5 | |
2102 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2103 | ac_status=$? | |
2104 | if test -s conftest.err; then | |
2105 | grep -v '^ *+' conftest.err >conftest.er1 | |
2106 | cat conftest.er1 >&5 | |
2107 | mv -f conftest.er1 conftest.err | |
2108 | fi | |
2109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2110 | test $ac_status = 0; } >/dev/null && { | |
2111 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2112 | test ! -s conftest.err | |
2113 | }; then : | |
2114 | ac_retval=0 | |
2115 | else | |
2116 | $as_echo "$as_me: failed program was:" >&5 | |
2117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2118 | ||
2119 | ac_retval=1 | |
2120 | fi | |
2121 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2122 | return $ac_retval | |
2123 | ||
2124 | } # ac_fn_cxx_try_cpp | |
2125 | ||
2126 | # ac_fn_cxx_try_link LINENO | |
2127 | # ------------------------- | |
2128 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2129 | ac_fn_cxx_try_link () | |
2130 | { | |
2131 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2133 | if { { ac_try="$ac_link" | |
2134 | case "(($ac_try" in | |
2135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2136 | *) ac_try_echo=$ac_try;; | |
2137 | esac | |
2138 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2139 | $as_echo "$ac_try_echo"; } >&5 | |
2140 | (eval "$ac_link") 2>conftest.err | |
2141 | ac_status=$? | |
2142 | if test -s conftest.err; then | |
2143 | grep -v '^ *+' conftest.err >conftest.er1 | |
2144 | cat conftest.er1 >&5 | |
2145 | mv -f conftest.er1 conftest.err | |
2146 | fi | |
2147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2148 | test $ac_status = 0; } && { | |
2149 | test -z "$ac_cxx_werror_flag" || | |
2150 | test ! -s conftest.err | |
2151 | } && test -s conftest$ac_exeext && { | |
2152 | test "$cross_compiling" = yes || | |
2153 | $as_test_x conftest$ac_exeext | |
2154 | }; then : | |
2155 | ac_retval=0 | |
2156 | else | |
2157 | $as_echo "$as_me: failed program was:" >&5 | |
2158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2159 | ||
2160 | ac_retval=1 | |
2161 | fi | |
2162 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2163 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2164 | # interfere with the next link command; also delete a directory that is | |
2165 | # left behind by Apple's compiler. We do this before executing the actions. | |
2166 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2167 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2168 | return $ac_retval | |
2169 | ||
2170 | } # ac_fn_cxx_try_link | |
2171 | ||
2172 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2173 | # ------------------------------------------------------- | |
2174 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2175 | # the include files in INCLUDES and setting the cache variable VAR | |
2176 | # accordingly. | |
2177 | ac_fn_c_check_header_mongrel () | |
2178 | { | |
2179 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2180 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2182 | $as_echo_n "checking for $2... " >&6; } | |
2183 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2184 | $as_echo_n "(cached) " >&6 | |
2185 | fi | |
2186 | eval ac_res=\$$3 | |
2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2188 | $as_echo "$ac_res" >&6; } | |
2189 | else | |
2190 | # Is the header compilable? | |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2192 | $as_echo_n "checking $2 usability... " >&6; } | |
2193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2194 | /* end confdefs.h. */ | |
2195 | $4 | |
2196 | #include <$2> | |
2197 | _ACEOF | |
2198 | if ac_fn_c_try_compile "$LINENO"; then : | |
2199 | ac_header_compiler=yes | |
2200 | else | |
2201 | ac_header_compiler=no | |
2202 | fi | |
2203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2205 | $as_echo "$ac_header_compiler" >&6; } | |
2206 | ||
2207 | # Is the header present? | |
2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2209 | $as_echo_n "checking $2 presence... " >&6; } | |
2210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2211 | /* end confdefs.h. */ | |
2212 | #include <$2> | |
2213 | _ACEOF | |
2214 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2215 | ac_header_preproc=yes | |
2216 | else | |
2217 | ac_header_preproc=no | |
2218 | fi | |
2219 | rm -f conftest.err conftest.$ac_ext | |
2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2221 | $as_echo "$ac_header_preproc" >&6; } | |
2222 | ||
2223 | # So? What about this header? | |
2224 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2225 | yes:no: ) | |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2227 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2228 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2229 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2230 | ;; | |
2231 | no:yes:* ) | |
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2233 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2235 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2237 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2239 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2241 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2242 | ;; | |
2243 | esac | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2245 | $as_echo_n "checking for $2... " >&6; } | |
2246 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2247 | $as_echo_n "(cached) " >&6 | |
2248 | else | |
2249 | eval "$3=\$ac_header_compiler" | |
2250 | fi | |
2251 | eval ac_res=\$$3 | |
2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2253 | $as_echo "$ac_res" >&6; } | |
2254 | fi | |
2255 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2256 | ||
2257 | } # ac_fn_c_check_header_mongrel | |
2258 | ||
2259 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2260 | # ---------------------------------------------------- | |
2261 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2262 | # INCLUDES, setting cache variable VAR accordingly. | |
2263 | ac_fn_c_check_member () | |
2264 | { | |
2265 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2267 | $as_echo_n "checking for $2.$3... " >&6; } | |
2268 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2269 | $as_echo_n "(cached) " >&6 | |
2270 | else | |
2271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2272 | /* end confdefs.h. */ | |
2273 | $5 | |
2274 | int | |
2275 | main () | |
2276 | { | |
2277 | static $2 ac_aggr; | |
2278 | if (ac_aggr.$3) | |
2279 | return 0; | |
2280 | ; | |
2281 | return 0; | |
2282 | } | |
2283 | _ACEOF | |
2284 | if ac_fn_c_try_compile "$LINENO"; then : | |
2285 | eval "$4=yes" | |
2286 | else | |
2287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2288 | /* end confdefs.h. */ | |
2289 | $5 | |
2290 | int | |
2291 | main () | |
2292 | { | |
2293 | static $2 ac_aggr; | |
2294 | if (sizeof ac_aggr.$3) | |
2295 | return 0; | |
2296 | ; | |
2297 | return 0; | |
2298 | } | |
2299 | _ACEOF | |
2300 | if ac_fn_c_try_compile "$LINENO"; then : | |
2301 | eval "$4=yes" | |
2302 | else | |
2303 | eval "$4=no" | |
2304 | fi | |
2305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2306 | fi | |
2307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2308 | fi | |
2309 | eval ac_res=\$$4 | |
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2311 | $as_echo "$ac_res" >&6; } | |
2312 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2313 | ||
2314 | } # ac_fn_c_check_member | |
2315 | ||
2316 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
2317 | # ------------------------------------ | |
2318 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2319 | ac_fn_c_check_decl () | |
2320 | { | |
2321 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3f247f4 RW |
2322 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2323 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2325 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
5213506e RW |
2326 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
2327 | $as_echo_n "(cached) " >&6 | |
2328 | else | |
2329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2330 | /* end confdefs.h. */ | |
2331 | $4 | |
2332 | int | |
2333 | main () | |
2334 | { | |
c3f247f4 RW |
2335 | #ifndef $as_decl_name |
2336 | #ifdef __cplusplus | |
2337 | (void) $as_decl_use; | |
2338 | #else | |
2339 | (void) $as_decl_name; | |
2340 | #endif | |
5213506e RW |
2341 | #endif |
2342 | ||
2343 | ; | |
2344 | return 0; | |
2345 | } | |
2346 | _ACEOF | |
2347 | if ac_fn_c_try_compile "$LINENO"; then : | |
2348 | eval "$3=yes" | |
2349 | else | |
2350 | eval "$3=no" | |
2351 | fi | |
2352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2353 | fi | |
2354 | eval ac_res=\$$3 | |
2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2356 | $as_echo "$ac_res" >&6; } | |
2357 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2358 | ||
2359 | } # ac_fn_c_check_decl | |
2360 | ||
2361 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2362 | # -------------------------------------------- | |
2363 | # Tries to find the compile-time value of EXPR in a program that includes | |
2364 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2365 | # computed | |
2366 | ac_fn_c_compute_int () | |
2367 | { | |
2368 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2369 | if test "$cross_compiling" = yes; then | |
2370 | # Depending upon the size, compute the lo and hi bounds. | |
2371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2372 | /* end confdefs.h. */ | |
2373 | $4 | |
2374 | int | |
2375 | main () | |
2376 | { | |
2377 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2378 | test_array [0] = 0 | |
2379 | ||
2380 | ; | |
2381 | return 0; | |
2382 | } | |
2383 | _ACEOF | |
2384 | if ac_fn_c_try_compile "$LINENO"; then : | |
2385 | ac_lo=0 ac_mid=0 | |
2386 | while :; do | |
2387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2388 | /* end confdefs.h. */ | |
2389 | $4 | |
2390 | int | |
2391 | main () | |
2392 | { | |
2393 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2394 | test_array [0] = 0 | |
2395 | ||
2396 | ; | |
2397 | return 0; | |
2398 | } | |
2399 | _ACEOF | |
2400 | if ac_fn_c_try_compile "$LINENO"; then : | |
2401 | ac_hi=$ac_mid; break | |
2402 | else | |
2403 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2404 | if test $ac_lo -le $ac_mid; then | |
2405 | ac_lo= ac_hi= | |
2406 | break | |
2407 | fi | |
2408 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2409 | fi | |
2410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2411 | done | |
2412 | else | |
2413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2414 | /* end confdefs.h. */ | |
2415 | $4 | |
2416 | int | |
2417 | main () | |
2418 | { | |
2419 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2420 | test_array [0] = 0 | |
2421 | ||
2422 | ; | |
2423 | return 0; | |
2424 | } | |
2425 | _ACEOF | |
2426 | if ac_fn_c_try_compile "$LINENO"; then : | |
2427 | ac_hi=-1 ac_mid=-1 | |
2428 | while :; do | |
2429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2430 | /* end confdefs.h. */ | |
2431 | $4 | |
2432 | int | |
2433 | main () | |
2434 | { | |
2435 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2436 | test_array [0] = 0 | |
2437 | ||
2438 | ; | |
2439 | return 0; | |
2440 | } | |
2441 | _ACEOF | |
2442 | if ac_fn_c_try_compile "$LINENO"; then : | |
2443 | ac_lo=$ac_mid; break | |
2444 | else | |
2445 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2446 | if test $ac_mid -le $ac_hi; then | |
2447 | ac_lo= ac_hi= | |
2448 | break | |
2449 | fi | |
2450 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2451 | fi | |
2452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2453 | done | |
2454 | else | |
2455 | ac_lo= ac_hi= | |
2456 | fi | |
2457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2458 | fi | |
2459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2460 | # Binary search between lo and hi bounds. | |
2461 | while test "x$ac_lo" != "x$ac_hi"; do | |
2462 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2464 | /* end confdefs.h. */ | |
2465 | $4 | |
2466 | int | |
2467 | main () | |
2468 | { | |
2469 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2470 | test_array [0] = 0 | |
2471 | ||
2472 | ; | |
2473 | return 0; | |
2474 | } | |
2475 | _ACEOF | |
2476 | if ac_fn_c_try_compile "$LINENO"; then : | |
2477 | ac_hi=$ac_mid | |
2478 | else | |
2479 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2480 | fi | |
2481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2482 | done | |
2483 | case $ac_lo in #(( | |
2484 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2485 | '') ac_retval=1 ;; | |
2486 | esac | |
2487 | else | |
2488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2489 | /* end confdefs.h. */ | |
2490 | $4 | |
2491 | static long int longval () { return $2; } | |
2492 | static unsigned long int ulongval () { return $2; } | |
2493 | #include <stdio.h> | |
2494 | #include <stdlib.h> | |
2495 | int | |
2496 | main () | |
2497 | { | |
2498 | ||
2499 | FILE *f = fopen ("conftest.val", "w"); | |
2500 | if (! f) | |
2501 | return 1; | |
2502 | if (($2) < 0) | |
2503 | { | |
2504 | long int i = longval (); | |
2505 | if (i != ($2)) | |
2506 | return 1; | |
2507 | fprintf (f, "%ld", i); | |
2508 | } | |
2509 | else | |
2510 | { | |
2511 | unsigned long int i = ulongval (); | |
2512 | if (i != ($2)) | |
2513 | return 1; | |
2514 | fprintf (f, "%lu", i); | |
2515 | } | |
2516 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2517 | on some platforms. */ | |
2518 | return ferror (f) || fclose (f) != 0; | |
2519 | ||
2520 | ; | |
2521 | return 0; | |
2522 | } | |
2523 | _ACEOF | |
2524 | if ac_fn_c_try_run "$LINENO"; then : | |
2525 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2526 | else | |
2527 | ac_retval=1 | |
2528 | fi | |
2529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2530 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2531 | rm -f conftest.val | |
2532 | ||
2533 | fi | |
2534 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2535 | return $ac_retval | |
2536 | ||
2537 | } # ac_fn_c_compute_int | |
2538 | ||
2539 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2540 | # ------------------------------------------- | |
2541 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2542 | # variable VAR accordingly. | |
2543 | ac_fn_c_check_type () | |
2544 | { | |
2545 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2547 | $as_echo_n "checking for $2... " >&6; } | |
2548 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2549 | $as_echo_n "(cached) " >&6 | |
2550 | else | |
2551 | eval "$3=no" | |
2552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2553 | /* end confdefs.h. */ | |
2554 | $4 | |
2555 | int | |
2556 | main () | |
2557 | { | |
2558 | if (sizeof ($2)) | |
2559 | return 0; | |
2560 | ; | |
2561 | return 0; | |
2562 | } | |
2563 | _ACEOF | |
2564 | if ac_fn_c_try_compile "$LINENO"; then : | |
2565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2566 | /* end confdefs.h. */ | |
2567 | $4 | |
2568 | int | |
2569 | main () | |
2570 | { | |
2571 | if (sizeof (($2))) | |
2572 | return 0; | |
2573 | ; | |
2574 | return 0; | |
2575 | } | |
2576 | _ACEOF | |
2577 | if ac_fn_c_try_compile "$LINENO"; then : | |
2578 | ||
2579 | else | |
2580 | eval "$3=yes" | |
2581 | fi | |
2582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2583 | fi | |
2584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2585 | fi | |
2586 | eval ac_res=\$$3 | |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2588 | $as_echo "$ac_res" >&6; } | |
2589 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2590 | ||
2591 | } # ac_fn_c_check_type | |
2592 | cat >config.log <<_ACEOF | |
2593 | This file contains any messages produced by compilers while | |
2594 | running configure, to aid debugging if configure makes a mistake. | |
2595 | ||
2596 | It was created by libjava $as_me version-unused, which was | |
2597 | generated by GNU Autoconf 2.64. Invocation command line was | |
2598 | ||
2599 | $ $0 $@ | |
2600 | ||
2601 | _ACEOF | |
2602 | exec 5>>config.log | |
2603 | { | |
2604 | cat <<_ASUNAME | |
2605 | ## --------- ## | |
2606 | ## Platform. ## | |
2607 | ## --------- ## | |
2608 | ||
2609 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2610 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2611 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2612 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2613 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2614 | ||
2615 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2616 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2617 | ||
2618 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
ed698112 NN |
2619 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2620 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 2621 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ed698112 NN |
2622 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2623 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2624 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2625 | ||
2626 | _ASUNAME | |
2627 | ||
2628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2629 | for as_dir in $PATH | |
2630 | do | |
2631 | IFS=$as_save_IFS | |
2632 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2633 | $as_echo "PATH: $as_dir" |
2634 | done | |
2635 | IFS=$as_save_IFS | |
ed698112 NN |
2636 | |
2637 | } >&5 | |
2638 | ||
2639 | cat >&5 <<_ACEOF | |
2640 | ||
2641 | ||
2642 | ## ----------- ## | |
2643 | ## Core tests. ## | |
2644 | ## ----------- ## | |
2645 | ||
2646 | _ACEOF | |
2647 | ||
2648 | ||
2649 | # Keep a trace of the command line. | |
2650 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2651 | # Strip out --silent because we don't want to record it for future runs. | |
2652 | # Also quote any args containing shell meta-characters. | |
2653 | # Make two passes to allow for proper duplicate-argument suppression. | |
2654 | ac_configure_args= | |
2655 | ac_configure_args0= | |
2656 | ac_configure_args1= | |
ed698112 NN |
2657 | ac_must_keep_next=false |
2658 | for ac_pass in 1 2 | |
2659 | do | |
2660 | for ac_arg | |
2661 | do | |
2662 | case $ac_arg in | |
2663 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2664 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2665 | | -silent | --silent | --silen | --sile | --sil) | |
2666 | continue ;; | |
5213506e RW |
2667 | *\'*) |
2668 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
ed698112 NN |
2669 | esac |
2670 | case $ac_pass in | |
5213506e | 2671 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
ed698112 | 2672 | 2) |
5213506e | 2673 | as_fn_append ac_configure_args1 " '$ac_arg'" |
ed698112 NN |
2674 | if test $ac_must_keep_next = true; then |
2675 | ac_must_keep_next=false # Got value, back to normal. | |
2676 | else | |
2677 | case $ac_arg in | |
2678 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2679 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2680 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2681 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2682 | case "$ac_configure_args0 " in | |
2683 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2684 | esac | |
2685 | ;; | |
2686 | -* ) ac_must_keep_next=true ;; | |
2687 | esac | |
2688 | fi | |
5213506e | 2689 | as_fn_append ac_configure_args " '$ac_arg'" |
ed698112 NN |
2690 | ;; |
2691 | esac | |
2692 | done | |
2693 | done | |
5213506e RW |
2694 | { ac_configure_args0=; unset ac_configure_args0;} |
2695 | { ac_configure_args1=; unset ac_configure_args1;} | |
ed698112 NN |
2696 | |
2697 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2698 | # config.log. We remove comments because anyway the quotes in there | |
2699 | # would cause problems or look ugly. | |
5213506e RW |
2700 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2701 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ed698112 NN |
2702 | trap 'exit_status=$? |
2703 | # Save into config.log some information that might help in debugging. | |
2704 | { | |
2705 | echo | |
2706 | ||
2707 | cat <<\_ASBOX | |
2708 | ## ---------------- ## | |
2709 | ## Cache variables. ## | |
2710 | ## ---------------- ## | |
2711 | _ASBOX | |
2712 | echo | |
2713 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2714 | ( |
2715 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2716 | eval ac_val=\$$ac_var | |
2717 | case $ac_val in #( | |
2718 | *${as_nl}*) | |
2719 | case $ac_var in #( | |
2720 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2721 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2722 | esac | |
2723 | case $ac_var in #( | |
2724 | _ | IFS | as_nl) ;; #( | |
2725 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2726 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2727 | esac ;; | |
2728 | esac | |
2729 | done | |
ed698112 | 2730 | (set) 2>&1 | |
5213506e RW |
2731 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2732 | *${as_nl}ac_space=\ *) | |
ed698112 | 2733 | sed -n \ |
5213506e RW |
2734 | "s/'\''/'\''\\\\'\'''\''/g; |
2735 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2736 | ;; #( | |
ed698112 | 2737 | *) |
5213506e | 2738 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ed698112 | 2739 | ;; |
5213506e RW |
2740 | esac | |
2741 | sort | |
2742 | ) | |
ed698112 NN |
2743 | echo |
2744 | ||
2745 | cat <<\_ASBOX | |
2746 | ## ----------------- ## | |
2747 | ## Output variables. ## | |
2748 | ## ----------------- ## | |
2749 | _ASBOX | |
2750 | echo | |
2751 | for ac_var in $ac_subst_vars | |
2752 | do | |
5213506e RW |
2753 | eval ac_val=\$$ac_var |
2754 | case $ac_val in | |
2755 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2756 | esac | |
2757 | $as_echo "$ac_var='\''$ac_val'\''" | |
ed698112 NN |
2758 | done | sort |
2759 | echo | |
2760 | ||
2761 | if test -n "$ac_subst_files"; then | |
2762 | cat <<\_ASBOX | |
5213506e RW |
2763 | ## ------------------- ## |
2764 | ## File substitutions. ## | |
2765 | ## ------------------- ## | |
ed698112 NN |
2766 | _ASBOX |
2767 | echo | |
2768 | for ac_var in $ac_subst_files | |
2769 | do | |
5213506e RW |
2770 | eval ac_val=\$$ac_var |
2771 | case $ac_val in | |
2772 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2773 | esac | |
2774 | $as_echo "$ac_var='\''$ac_val'\''" | |
ed698112 NN |
2775 | done | sort |
2776 | echo | |
2777 | fi | |
2778 | ||
2779 | if test -s confdefs.h; then | |
2780 | cat <<\_ASBOX | |
2781 | ## ----------- ## | |
2782 | ## confdefs.h. ## | |
2783 | ## ----------- ## | |
2784 | _ASBOX | |
2785 | echo | |
5213506e | 2786 | cat confdefs.h |
ed698112 NN |
2787 | echo |
2788 | fi | |
2789 | test "$ac_signal" != 0 && | |
5213506e RW |
2790 | $as_echo "$as_me: caught signal $ac_signal" |
2791 | $as_echo "$as_me: exit $exit_status" | |
ed698112 | 2792 | } >&5 |
5213506e RW |
2793 | rm -f core *.core core.conftest.* && |
2794 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ed698112 | 2795 | exit $exit_status |
5213506e | 2796 | ' 0 |
ed698112 | 2797 | for ac_signal in 1 2 13 15; do |
5213506e | 2798 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
ed698112 NN |
2799 | done |
2800 | ac_signal=0 | |
2801 | ||
2802 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2803 | rm -f -r conftest* confdefs.h |
2804 | ||
2805 | $as_echo "/* confdefs.h */" > confdefs.h | |
ed698112 NN |
2806 | |
2807 | # Predefined preprocessor variables. | |
2808 | ||
2809 | cat >>confdefs.h <<_ACEOF | |
2810 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2811 | _ACEOF | |
2812 | ||
ed698112 NN |
2813 | cat >>confdefs.h <<_ACEOF |
2814 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2815 | _ACEOF | |
2816 | ||
ed698112 NN |
2817 | cat >>confdefs.h <<_ACEOF |
2818 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2819 | _ACEOF | |
2820 | ||
ed698112 NN |
2821 | cat >>confdefs.h <<_ACEOF |
2822 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2823 | _ACEOF | |
2824 | ||
ed698112 NN |
2825 | cat >>confdefs.h <<_ACEOF |
2826 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2827 | _ACEOF | |
2828 | ||
5213506e RW |
2829 | cat >>confdefs.h <<_ACEOF |
2830 | #define PACKAGE_URL "$PACKAGE_URL" | |
2831 | _ACEOF | |
2832 | ||
ed698112 NN |
2833 | |
2834 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2835 | # Prefer an explicitly selected file to automatically selected ones. |
2836 | ac_site_file1=NONE | |
2837 | ac_site_file2=NONE | |
2838 | if test -n "$CONFIG_SITE"; then | |
2839 | ac_site_file1=$CONFIG_SITE | |
2840 | elif test "x$prefix" != xNONE; then | |
2841 | ac_site_file1=$prefix/share/config.site | |
2842 | ac_site_file2=$prefix/etc/config.site | |
2843 | else | |
2844 | ac_site_file1=$ac_default_prefix/share/config.site | |
2845 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2846 | fi | |
2847 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2848 | do | |
2849 | test "x$ac_site_file" = xNONE && continue | |
ee9dd372 | 2850 | if test -r "$ac_site_file"; then |
5213506e RW |
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2852 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ed698112 | 2853 | sed 's/^/| /' "$ac_site_file" >&5 |
ee9dd372 TT |
2854 | . "$ac_site_file" |
2855 | fi | |
2856 | done | |
2857 | ||
2858 | if test -r "$cache_file"; then | |
ed698112 NN |
2859 | # Some versions of bash will fail to source /dev/null (special |
2860 | # files actually), so we avoid doing that. | |
2861 | if test -f "$cache_file"; then | |
5213506e RW |
2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2863 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ed698112 | 2864 | case $cache_file in |
5213506e RW |
2865 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2866 | *) . "./$cache_file";; | |
ed698112 NN |
2867 | esac |
2868 | fi | |
ee9dd372 | 2869 | else |
5213506e RW |
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2871 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ed698112 NN |
2872 | >$cache_file |
2873 | fi | |
2874 | ||
2875 | # Check that the precious variables saved in the cache have kept the same | |
2876 | # value. | |
2877 | ac_cache_corrupted=false | |
5213506e | 2878 | for ac_var in $ac_precious_vars; do |
ed698112 NN |
2879 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2880 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2881 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2882 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ed698112 NN |
2883 | case $ac_old_set,$ac_new_set in |
2884 | set,) | |
5213506e RW |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2886 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ed698112 NN |
2887 | ac_cache_corrupted=: ;; |
2888 | ,set) | |
5213506e RW |
2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2890 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ed698112 NN |
2891 | ac_cache_corrupted=: ;; |
2892 | ,);; | |
2893 | *) | |
2894 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2895 | # differences in whitespace do not lead to failure. |
2896 | ac_old_val_w=`echo x $ac_old_val` | |
2897 | ac_new_val_w=`echo x $ac_new_val` | |
2898 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2900 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2901 | ac_cache_corrupted=: | |
2902 | else | |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2904 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2905 | eval $ac_var=\$ac_old_val | |
2906 | fi | |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2908 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2910 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ed698112 NN |
2911 | fi;; |
2912 | esac | |
2913 | # Pass precious variables to config.status. | |
2914 | if test "$ac_new_set" = set; then | |
2915 | case $ac_new_val in | |
5213506e | 2916 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ed698112 NN |
2917 | *) ac_arg=$ac_var=$ac_new_val ;; |
2918 | esac | |
2919 | case " $ac_configure_args " in | |
2920 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2921 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
ed698112 NN |
2922 | esac |
2923 | fi | |
2924 | done | |
2925 | if $ac_cache_corrupted; then | |
5213506e RW |
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2927 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2929 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2930 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ee9dd372 | 2931 | fi |
5213506e RW |
2932 | ## -------------------- ## |
2933 | ## Main body of script. ## | |
2934 | ## -------------------- ## | |
ee9dd372 | 2935 | |
ade710a5 TF |
2936 | ac_ext=c |
2937 | ac_cpp='$CPP $CPPFLAGS' | |
2938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2941 | ||
ed698112 NN |
2942 | |
2943 | ||
2944 | ||
2945 | ||
2946 | ||
2947 | ||
2948 | ||
7f7ba9bf | 2949 | ac_aux_dir= |
5213506e RW |
2950 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2951 | for ac_t in install-sh install.sh shtool; do | |
2952 | if test -f "$ac_dir/$ac_t"; then | |
2953 | ac_aux_dir=$ac_dir | |
2954 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2955 | break 2 | |
2956 | fi | |
2957 | done | |
7f7ba9bf TT |
2958 | done |
2959 | if test -z "$ac_aux_dir"; then | |
5213506e | 2960 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
7f7ba9bf | 2961 | fi |
5213506e RW |
2962 | |
2963 | # These three variables are undocumented and unsupported, | |
2964 | # and are intended to be withdrawn in a future Autoconf release. | |
2965 | # They can cause serious problems if a builder's source tree is in a directory | |
2966 | # whose full name contains unusual characters. | |
2967 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2968 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2969 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2970 | ||
7f7ba9bf | 2971 | |
ed698112 | 2972 | # Make sure we can run config.sub. |
5213506e RW |
2973 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2974 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2975 | ||
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2977 | $as_echo_n "checking build system type... " >&6; } | |
2978 | if test "${ac_cv_build+set}" = set; then : | |
2979 | $as_echo_n "(cached) " >&6 | |
2980 | else | |
2981 | ac_build_alias=$build_alias | |
2982 | test "x$ac_build_alias" = x && | |
2983 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2984 | test "x$ac_build_alias" = x && | |
2985 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2986 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2987 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2988 | ||
2989 | fi | |
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2991 | $as_echo "$ac_cv_build" >&6; } | |
2992 | case $ac_cv_build in | |
2993 | *-*-*) ;; | |
2994 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2995 | esac | |
ed698112 | 2996 | build=$ac_cv_build |
5213506e RW |
2997 | ac_save_IFS=$IFS; IFS='-' |
2998 | set x $ac_cv_build | |
2999 | shift | |
3000 | build_cpu=$1 | |
3001 | build_vendor=$2 | |
3002 | shift; shift | |
3003 | # Remember, the first character of IFS is used to create $*, | |
3004 | # except with old shells: | |
3005 | build_os=$* | |
3006 | IFS=$ac_save_IFS | |
3007 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ed698112 NN |
3008 | |
3009 | ||
215c351a PB |
3010 | case ${build_alias} in |
3011 | "") build_noncanonical=${build} ;; | |
3012 | *) build_noncanonical=${build_alias} ;; | |
3013 | esac | |
3014 | ||
3015 | case ${host_alias} in | |
3016 | "") host_noncanonical=${build_noncanonical} ;; | |
3017 | *) host_noncanonical=${host_alias} ;; | |
3018 | esac | |
3019 | ||
3020 | case ${target_alias} in | |
3021 | "") target_noncanonical=${host_noncanonical} ;; | |
3022 | *) target_noncanonical=${target_alias} ;; | |
3023 | esac | |
3024 | ||
57255173 PB |
3025 | |
3026 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
3027 | # have matching libraries, they should use host libraries: Makefile.tpl | |
3028 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
3029 | # However, they still use the build modules, because the corresponding | |
3030 | # host modules (e.g. bison) are only built for the host when bootstrap | |
3031 | # finishes. So: | |
3032 | # - build_subdir is where we find build modules, and never changes. | |
3033 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
3034 | ||
3035 | # Prefix 'build-' so this never conflicts with target_subdir. | |
215c351a | 3036 | build_subdir="build-${build_noncanonical}" |
57255173 | 3037 | |
5213506e RW |
3038 | # Check whether --with-build-libsubdir was given. |
3039 | if test "${with_build_libsubdir+set}" = set; then : | |
3040 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
57255173 PB |
3041 | else |
3042 | build_libsubdir="$build_subdir" | |
5213506e RW |
3043 | fi |
3044 | ||
215c351a PB |
3045 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
3046 | if ( test $srcdir = . && test -d gcc ) \ | |
3047 | || test -d $srcdir/../host-${host_noncanonical}; then | |
3048 | host_subdir="host-${host_noncanonical}" | |
3049 | else | |
3050 | host_subdir=. | |
3051 | fi | |
3052 | # No prefix. | |
3053 | target_subdir=${target_noncanonical} | |
3054 | ||
3055 | ||
3056 | # We use these options to decide which functions to include. | |
3057 | ||
5213506e RW |
3058 | # Check whether --with-target-subdir was given. |
3059 | if test "${with_target_subdir+set}" = set; then : | |
3060 | withval=$with_target_subdir; | |
3061 | fi | |
215c351a | 3062 | |
215c351a PB |
3063 | |
3064 | # We may get other options which we don't document: | |
3065 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3066 | ||
8a489465 JH |
3067 | # Find the rest of the source tree framework. |
3068 | # Default to --enable-multilib | |
5213506e RW |
3069 | # Check whether --enable-multilib was given. |
3070 | if test "${enable_multilib+set}" = set; then : | |
3071 | enableval=$enable_multilib; case "$enableval" in | |
8a489465 JH |
3072 | yes) multilib=yes ;; |
3073 | no) multilib=no ;; | |
5213506e | 3074 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; |
8a489465 JH |
3075 | esac |
3076 | else | |
3077 | multilib=yes | |
5213506e RW |
3078 | fi |
3079 | ||
8a489465 JH |
3080 | |
3081 | # We may get other options which we leave undocumented: | |
3082 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3083 | # See config-ml.in if you want the gory details. | |
3084 | ||
3085 | if test "$srcdir" = "."; then | |
3086 | if test "$with_target_subdir" != "."; then | |
3087 | multi_basedir="$srcdir/$with_multisrctop../.." | |
215c351a | 3088 | else |
8a489465 | 3089 | multi_basedir="$srcdir/$with_multisrctop.." |
215c351a PB |
3090 | fi |
3091 | else | |
8a489465 | 3092 | multi_basedir="$srcdir/.." |
215c351a PB |
3093 | fi |
3094 | ||
8a489465 JH |
3095 | |
3096 | # Even if the default multilib is not a cross compilation, | |
3097 | # it may be that some of the other multilibs are. | |
3098 | if test $cross_compiling = no && test $multilib = yes \ | |
3099 | && test "x${with_multisubdir}" != x ; then | |
3100 | cross_compiling=maybe | |
3101 | fi | |
3102 | ||
5213506e | 3103 | ac_config_commands="$ac_config_commands default-1" |
215c351a PB |
3104 | |
3105 | ||
5213506e RW |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3107 | $as_echo_n "checking host system type... " >&6; } | |
3108 | if test "${ac_cv_host+set}" = set; then : | |
3109 | $as_echo_n "(cached) " >&6 | |
ed698112 | 3110 | else |
5213506e RW |
3111 | if test "x$host_alias" = x; then |
3112 | ac_cv_host=$ac_cv_build | |
3113 | else | |
3114 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3115 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3116 | fi | |
ed698112 NN |
3117 | |
3118 | fi | |
5213506e RW |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3120 | $as_echo "$ac_cv_host" >&6; } | |
3121 | case $ac_cv_host in | |
3122 | *-*-*) ;; | |
3123 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
3124 | esac | |
ed698112 | 3125 | host=$ac_cv_host |
5213506e RW |
3126 | ac_save_IFS=$IFS; IFS='-' |
3127 | set x $ac_cv_host | |
3128 | shift | |
3129 | host_cpu=$1 | |
3130 | host_vendor=$2 | |
3131 | shift; shift | |
3132 | # Remember, the first character of IFS is used to create $*, | |
3133 | # except with old shells: | |
3134 | host_os=$* | |
3135 | IFS=$ac_save_IFS | |
3136 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ade710a5 TF |
3137 | |
3138 | ||
5213506e RW |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3140 | $as_echo_n "checking target system type... " >&6; } | |
3141 | if test "${ac_cv_target+set}" = set; then : | |
3142 | $as_echo_n "(cached) " >&6 | |
ed698112 | 3143 | else |
5213506e RW |
3144 | if test "x$target_alias" = x; then |
3145 | ac_cv_target=$ac_cv_host | |
3146 | else | |
3147 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
3148 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
3149 | fi | |
ed698112 NN |
3150 | |
3151 | fi | |
5213506e RW |
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
3153 | $as_echo "$ac_cv_target" >&6; } | |
3154 | case $ac_cv_target in | |
3155 | *-*-*) ;; | |
3156 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
3157 | esac | |
ed698112 | 3158 | target=$ac_cv_target |
5213506e RW |
3159 | ac_save_IFS=$IFS; IFS='-' |
3160 | set x $ac_cv_target | |
3161 | shift | |
3162 | target_cpu=$1 | |
3163 | target_vendor=$2 | |
3164 | shift; shift | |
3165 | # Remember, the first character of IFS is used to create $*, | |
3166 | # except with old shells: | |
3167 | target_os=$* | |
3168 | IFS=$ac_save_IFS | |
3169 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
7f7ba9bf | 3170 | |
7f7ba9bf TT |
3171 | |
3172 | # The aliases save the names the user supplied, while $host etc. | |
3173 | # will get canonicalized. | |
ed698112 | 3174 | test -n "$target_alias" && |
7f7ba9bf TT |
3175 | test "$program_prefix$program_suffix$program_transform_name" = \ |
3176 | NONENONEs,x,x, && | |
3177 | program_prefix=${target_alias}- | |
5213506e | 3178 | |
bc03b358 NN |
3179 | case ${build_alias} in |
3180 | "") build_noncanonical=${build} ;; | |
3181 | *) build_noncanonical=${build_alias} ;; | |
3182 | esac | |
3183 | ||
bc03b358 NN |
3184 | case ${target_alias} in |
3185 | "") target_noncanonical=${host_noncanonical} ;; | |
3186 | *) target_noncanonical=${target_alias} ;; | |
3187 | esac | |
3188 | ||
3189 | ||
60557047 MK |
3190 | |
3191 | ||
bc03b358 NN |
3192 | # This works around the fact that libtool configuration may change LD |
3193 | # for this particular configuration, but some shells, instead of | |
3194 | # keeping the changes in LD private, export them just because LD is | |
3195 | # exported. | |
3196 | ORIGINAL_LD_FOR_MULTILIBS=$LD | |
3197 | ||
5213506e RW |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
3199 | $as_echo_n "checking whether ln -s works... " >&6; } | |
ed698112 NN |
3200 | LN_S=$as_ln_s |
3201 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3203 | $as_echo "yes" >&6; } | |
bc03b358 | 3204 | else |
5213506e RW |
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
3206 | $as_echo "no, using $LN_S" >&6; } | |
bc03b358 NN |
3207 | fi |
3208 | ||
3209 | ||
3210 | # This works around an automake problem. | |
3211 | mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" | |
3212 | ||
3213 | ||
ed698112 | 3214 | |
5213506e RW |
3215 | # Check whether --with-cross-host was given. |
3216 | if test "${with_cross_host+set}" = set; then : | |
3217 | withval=$with_cross_host; | |
3218 | fi | |
ed698112 | 3219 | |
bc03b358 NN |
3220 | |
3221 | ||
5213506e RW |
3222 | # Check whether --with-newlib was given. |
3223 | if test "${with_newlib+set}" = set; then : | |
3224 | withval=$with_newlib; | |
3225 | fi | |
bc03b358 NN |
3226 | |
3227 | ||
5213506e RW |
3228 | # Check whether --enable-version-specific-runtime-libs was given. |
3229 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
3230 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
bc03b358 NN |
3231 | yes) version_specific_libs=yes ;; |
3232 | no) version_specific_libs=no ;; | |
5213506e | 3233 | *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
bc03b358 NN |
3234 | esac |
3235 | else | |
3236 | version_specific_libs=no | |
3237 | ||
5213506e RW |
3238 | fi |
3239 | ||
bc03b358 | 3240 | |
34677bae MK |
3241 | # Check whether --enable-browser-plugin was given. |
3242 | if test "${enable_browser_plugin+set}" = set; then : | |
3243 | enableval=$enable_browser_plugin; case "$enableval" in | |
3244 | yes) browser_plugin_enabled=yes ;; | |
3245 | no) browser_plugin_enabled=no ;; | |
3246 | *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;; | |
648e8d6d TF |
3247 | esac |
3248 | else | |
34677bae | 3249 | browser_plugin_enabled=no |
648e8d6d | 3250 | |
5213506e RW |
3251 | fi |
3252 | ||
648e8d6d | 3253 | |
5213506e RW |
3254 | # Check whether --enable-gconf-peer was given. |
3255 | if test "${enable_gconf_peer+set}" = set; then : | |
3256 | enableval=$enable_gconf_peer; case "$enableval" in | |
ac1ed908 MW |
3257 | yes) gconf_enabled=yes ;; |
3258 | no) gconf_enabled=no ;; | |
5213506e | 3259 | *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;; |
ac1ed908 MW |
3260 | esac |
3261 | else | |
3262 | gconf_enabled=no | |
3263 | ||
5213506e | 3264 | fi |
ac1ed908 | 3265 | |
cd6d4007 | 3266 | |
cd6d4007 | 3267 | |
5213506e RW |
3268 | # Check whether --with-antlr-jar was given. |
3269 | if test "${with_antlr_jar+set}" = set; then : | |
3270 | withval=$with_antlr_jar; | |
cd6d4007 MK |
3271 | ANTLR_JAR=$withval |
3272 | ||
3273 | else | |
3274 | ||
3275 | ANTLR_JAR= | |
3276 | ||
5213506e | 3277 | fi |
cd6d4007 | 3278 | |
5213506e RW |
3279 | |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5 | |
3281 | $as_echo_n "checking for antlr.jar... " >&6; } | |
cd6d4007 MK |
3282 | if test "x$ANTLR_JAR" = x; then |
3283 | for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \ | |
3284 | /usr/share/antlr/lib /usr/share/java /usr/lib; | |
3285 | do | |
3286 | if test -f "$antlr_lib_home/antlr.jar"; then | |
3287 | # FIXME: version check for antlr needed without using a VM | |
3288 | ANTLR_JAR="$antlr_lib_home/antlr.jar" | |
3289 | break | |
3290 | fi | |
3291 | done | |
3292 | if test "x$ANTLR_JAR" = x; then | |
5213506e RW |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
3294 | $as_echo "not found" >&6; } | |
cd6d4007 | 3295 | else |
5213506e RW |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5 |
3297 | $as_echo "$ANTLR_JAR" >&6; } | |
cd6d4007 MK |
3298 | fi |
3299 | else | |
3300 | if test -f "${ANTLR_JAR}"; then | |
5213506e RW |
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5 |
3302 | $as_echo "$ANTLR_JAR" >&6; } | |
cd6d4007 | 3303 | else |
5213506e | 3304 | as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5 |
cd6d4007 MK |
3305 | fi |
3306 | fi | |
3307 | ||
3308 | ||
5213506e RW |
3309 | # Check whether --enable-gjdoc was given. |
3310 | if test "${enable_gjdoc+set}" = set; then : | |
3311 | enableval=$enable_gjdoc; case "${enableval}" in | |
cd6d4007 MK |
3312 | yes) BUILD_GJDOC=yes ;; |
3313 | no) BUILD_GJDOC=no ;; | |
3314 | *) BUILD_GJDOC=yes ;; | |
3315 | esac | |
3316 | else | |
3317 | BUILD_GJDOC=maybe | |
5213506e RW |
3318 | fi |
3319 | ||
cd6d4007 | 3320 | |
5213506e RW |
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5 |
3322 | $as_echo_n "checking whether to build gjdoc... " >&6; } | |
cd6d4007 MK |
3323 | if test "x$BUILD_GJDOC" = xmaybe; then |
3324 | if test -f "${ANTLR_JAR}"; then | |
3325 | BUILD_GJDOC=yes | |
5213506e RW |
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3327 | $as_echo "yes" >&6; } | |
cd6d4007 MK |
3328 | else |
3329 | BUILD_GJDOC=no | |
5213506e RW |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5 |
3331 | $as_echo "no, antlr.jar not found" >&6; } | |
cd6d4007 MK |
3332 | fi |
3333 | else | |
5213506e RW |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5 |
3335 | $as_echo "$BUILD_GJDOC" >&6; } | |
cd6d4007 | 3336 | fi |
5213506e | 3337 | if test "x${BUILD_GJDOC}" = xyes; then |
cd6d4007 MK |
3338 | CREATE_GJDOC_TRUE= |
3339 | CREATE_GJDOC_FALSE='#' | |
3340 | else | |
3341 | CREATE_GJDOC_TRUE='#' | |
3342 | CREATE_GJDOC_FALSE= | |
3343 | fi | |
3344 | ||
3345 | ||
5213506e RW |
3346 | # Check whether --enable-java-maintainer-mode was given. |
3347 | if test "${enable_java_maintainer_mode+set}" = set; then : | |
3348 | enableval=$enable_java_maintainer_mode; | |
3349 | fi | |
97b8365c | 3350 | |
5213506e | 3351 | if test "$enable_java_maintainer_mode" = yes; then |
97b8365c TT |
3352 | JAVA_MAINTAINER_MODE_TRUE= |
3353 | JAVA_MAINTAINER_MODE_FALSE='#' | |
3354 | else | |
3355 | JAVA_MAINTAINER_MODE_TRUE='#' | |
3356 | JAVA_MAINTAINER_MODE_FALSE= | |
3357 | fi | |
3358 | ||
3359 | ||
aed6152d | 3360 | # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX. |
bc03b358 | 3361 | |
ee9dd372 | 3362 | |
a5d28a12 | 3363 | # For libstdc++-v3, -fno-builtin must be present here so that a |
ed698112 NN |
3364 | # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and |
3365 | # used in later tests. This may not be necessary in libjava; I don't know. | |
ed698112 NN |
3366 | save_CXXFLAGS="$CXXFLAGS" |
3367 | CXXFLAGS="$CXXFLAGS -fno-builtin" | |
3368 | ac_ext=c | |
3369 | ac_cpp='$CPP $CPPFLAGS' | |
3370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3373 | if test -n "$ac_tool_prefix"; then | |
3374 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3375 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3377 | $as_echo_n "checking for $ac_word... " >&6; } | |
3378 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3379 | $as_echo_n "(cached) " >&6 | |
ed698112 NN |
3380 | else |
3381 | if test -n "$CC"; then | |
3382 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3383 | else | |
3384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3385 | for as_dir in $PATH | |
3386 | do | |
3387 | IFS=$as_save_IFS | |
3388 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3389 | for ac_exec_ext in '' $ac_executable_extensions; do |
3390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 3391 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
3393 | break 2 |
3394 | fi | |
3395 | done | |
5213506e RW |
3396 | done |
3397 | IFS=$as_save_IFS | |
ee9dd372 | 3398 | |
ed698112 NN |
3399 | fi |
3400 | fi | |
3401 | CC=$ac_cv_prog_CC | |
3402 | if test -n "$CC"; then | |
5213506e RW |
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3404 | $as_echo "$CC" >&6; } | |
ed698112 | 3405 | else |
5213506e RW |
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3407 | $as_echo "no" >&6; } | |
ed698112 | 3408 | fi |
54ce7452 | 3409 | |
5213506e | 3410 | |
ed698112 NN |
3411 | fi |
3412 | if test -z "$ac_cv_prog_CC"; then | |
3413 | ac_ct_CC=$CC | |
3414 | # Extract the first word of "gcc", so it can be a program name with args. | |
ee9dd372 | 3415 | set dummy gcc; ac_word=$2 |
5213506e RW |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3417 | $as_echo_n "checking for $ac_word... " >&6; } | |
3418 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3419 | $as_echo_n "(cached) " >&6 | |
ed698112 NN |
3420 | else |
3421 | if test -n "$ac_ct_CC"; then | |
3422 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3423 | else | |
3424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3425 | for as_dir in $PATH | |
3426 | do | |
3427 | IFS=$as_save_IFS | |
3428 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3429 | for ac_exec_ext in '' $ac_executable_extensions; do |
3430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 3431 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
3433 | break 2 |
3434 | fi | |
3435 | done | |
5213506e RW |
3436 | done |
3437 | IFS=$as_save_IFS | |
ed698112 NN |
3438 | |
3439 | fi | |
3440 | fi | |
3441 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3442 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3444 | $as_echo "$ac_ct_CC" >&6; } | |
ed698112 | 3445 | else |
5213506e RW |
3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3447 | $as_echo "no" >&6; } | |
ed698112 NN |
3448 | fi |
3449 | ||
5213506e RW |
3450 | if test "x$ac_ct_CC" = x; then |
3451 | CC="" | |
3452 | else | |
3453 | case $cross_compiling:$ac_tool_warned in | |
3454 | yes:) | |
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3456 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3457 | ac_tool_warned=yes ;; | |
3458 | esac | |
3459 | CC=$ac_ct_CC | |
3460 | fi | |
ed698112 NN |
3461 | else |
3462 | CC="$ac_cv_prog_CC" | |
3463 | fi | |
3464 | ||
3465 | if test -z "$CC"; then | |
5213506e RW |
3466 | if test -n "$ac_tool_prefix"; then |
3467 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ed698112 | 3468 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3470 | $as_echo_n "checking for $ac_word... " >&6; } | |
3471 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3472 | $as_echo_n "(cached) " >&6 | |
ee9dd372 TT |
3473 | else |
3474 | if test -n "$CC"; then | |
3475 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3476 | else | |
ed698112 NN |
3477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3478 | for as_dir in $PATH | |
3479 | do | |
3480 | IFS=$as_save_IFS | |
3481 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3482 | for ac_exec_ext in '' $ac_executable_extensions; do |
3483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 3484 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
3486 | break 2 |
3487 | fi | |
3488 | done | |
5213506e RW |
3489 | done |
3490 | IFS=$as_save_IFS | |
ed698112 | 3491 | |
ee9dd372 TT |
3492 | fi |
3493 | fi | |
ed698112 | 3494 | CC=$ac_cv_prog_CC |
ee9dd372 | 3495 | if test -n "$CC"; then |
5213506e RW |
3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3497 | $as_echo "$CC" >&6; } | |
ed698112 | 3498 | else |
5213506e RW |
3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3500 | $as_echo "no" >&6; } | |
ed698112 NN |
3501 | fi |
3502 | ||
ade710a5 | 3503 | |
5213506e | 3504 | fi |
ed698112 | 3505 | fi |
ee9dd372 TT |
3506 | if test -z "$CC"; then |
3507 | # Extract the first word of "cc", so it can be a program name with args. | |
3508 | set dummy cc; ac_word=$2 | |
5213506e RW |
3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3510 | $as_echo_n "checking for $ac_word... " >&6; } | |
3511 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3512 | $as_echo_n "(cached) " >&6 | |
ee9dd372 TT |
3513 | else |
3514 | if test -n "$CC"; then | |
3515 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3516 | else | |
ee9dd372 | 3517 | ac_prog_rejected=no |
ed698112 NN |
3518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3519 | for as_dir in $PATH | |
3520 | do | |
3521 | IFS=$as_save_IFS | |
3522 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3523 | for ac_exec_ext in '' $ac_executable_extensions; do |
3524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 NN |
3525 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3526 | ac_prog_rejected=yes | |
3527 | continue | |
3528 | fi | |
3529 | ac_cv_prog_CC="cc" | |
5213506e | 3530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
3531 | break 2 |
3532 | fi | |
3533 | done | |
5213506e RW |
3534 | done |
3535 | IFS=$as_save_IFS | |
ed698112 | 3536 | |
ee9dd372 TT |
3537 | if test $ac_prog_rejected = yes; then |
3538 | # We found a bogon in the path, so make sure we never use it. | |
3539 | set dummy $ac_cv_prog_CC | |
3540 | shift | |
ed698112 | 3541 | if test $# != 0; then |
ee9dd372 TT |
3542 | # We chose a different compiler from the bogus one. |
3543 | # However, it has the same basename, so the bogon will be chosen | |
3544 | # first if we set CC to just the basename; use the full file name. | |
3545 | shift | |
ed698112 | 3546 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ee9dd372 TT |
3547 | fi |
3548 | fi | |
3549 | fi | |
3550 | fi | |
ed698112 | 3551 | CC=$ac_cv_prog_CC |
ee9dd372 | 3552 | if test -n "$CC"; then |
5213506e RW |
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3554 | $as_echo "$CC" >&6; } | |
ee9dd372 | 3555 | else |
5213506e RW |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3557 | $as_echo "no" >&6; } | |
ee9dd372 TT |
3558 | fi |
3559 | ||
5213506e | 3560 | |
ed698112 NN |
3561 | fi |
3562 | if test -z "$CC"; then | |
3563 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3564 | for ac_prog in cl.exe |
ed698112 NN |
3565 | do |
3566 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3567 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3569 | $as_echo_n "checking for $ac_word... " >&6; } | |
3570 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3571 | $as_echo_n "(cached) " >&6 | |
158a8e6b AO |
3572 | else |
3573 | if test -n "$CC"; then | |
3574 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3575 | else | |
ed698112 NN |
3576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3577 | for as_dir in $PATH | |
3578 | do | |
3579 | IFS=$as_save_IFS | |
3580 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3581 | for ac_exec_ext in '' $ac_executable_extensions; do |
3582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 3583 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
3585 | break 2 |
3586 | fi | |
3587 | done | |
5213506e RW |
3588 | done |
3589 | IFS=$as_save_IFS | |
ed698112 | 3590 | |
158a8e6b AO |
3591 | fi |
3592 | fi | |
ed698112 | 3593 | CC=$ac_cv_prog_CC |
158a8e6b | 3594 | if test -n "$CC"; then |
5213506e RW |
3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3596 | $as_echo "$CC" >&6; } | |
158a8e6b | 3597 | else |
5213506e RW |
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3599 | $as_echo "no" >&6; } | |
158a8e6b | 3600 | fi |
ed698112 | 3601 | |
5213506e | 3602 | |
ed698112 NN |
3603 | test -n "$CC" && break |
3604 | done | |
3605 | fi | |
3606 | if test -z "$CC"; then | |
3607 | ac_ct_CC=$CC | |
5213506e | 3608 | for ac_prog in cl.exe |
ed698112 NN |
3609 | do |
3610 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3611 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3613 | $as_echo_n "checking for $ac_word... " >&6; } | |
3614 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3615 | $as_echo_n "(cached) " >&6 | |
ed698112 NN |
3616 | else |
3617 | if test -n "$ac_ct_CC"; then | |
3618 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3619 | else | |
3620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3621 | for as_dir in $PATH | |
3622 | do | |
3623 | IFS=$as_save_IFS | |
3624 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3625 | for ac_exec_ext in '' $ac_executable_extensions; do |
3626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 3627 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 | 3629 | break 2 |
158a8e6b | 3630 | fi |
ed698112 | 3631 | done |
5213506e RW |
3632 | done |
3633 | IFS=$as_save_IFS | |
ed698112 NN |
3634 | |
3635 | fi | |
3636 | fi | |
3637 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3638 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3640 | $as_echo "$ac_ct_CC" >&6; } | |
ed698112 | 3641 | else |
5213506e RW |
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3643 | $as_echo "no" >&6; } | |
ee9dd372 TT |
3644 | fi |
3645 | ||
5213506e | 3646 | |
ed698112 NN |
3647 | test -n "$ac_ct_CC" && break |
3648 | done | |
3649 | ||
5213506e RW |
3650 | if test "x$ac_ct_CC" = x; then |
3651 | CC="" | |
3652 | else | |
3653 | case $cross_compiling:$ac_tool_warned in | |
3654 | yes:) | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3656 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3657 | ac_tool_warned=yes ;; | |
3658 | esac | |
3659 | CC=$ac_ct_CC | |
3660 | fi | |
ed698112 NN |
3661 | fi |
3662 | ||
3663 | fi | |
3664 | ||
3665 | ||
5213506e RW |
3666 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3668 | as_fn_error "no acceptable C compiler found in \$PATH | |
3669 | See \`config.log' for more details." "$LINENO" 5; } | |
ed698112 NN |
3670 | |
3671 | # Provide some information about the compiler. | |
5213506e RW |
3672 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3673 | set X $ac_compile | |
3674 | ac_compiler=$2 | |
3675 | for ac_option in --version -v -V -qversion; do | |
3676 | { { ac_try="$ac_compiler $ac_option >&5" | |
3677 | case "(($ac_try" in | |
3678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3679 | *) ac_try_echo=$ac_try;; | |
3680 | esac | |
3681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3682 | $as_echo "$ac_try_echo"; } >&5 | |
3683 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ed698112 | 3684 | ac_status=$? |
5213506e RW |
3685 | if test -s conftest.err; then |
3686 | sed '10a\ | |
3687 | ... rest of stderr output deleted ... | |
3688 | 10q' conftest.err >conftest.er1 | |
3689 | cat conftest.er1 >&5 | |
3690 | rm -f conftest.er1 conftest.err | |
3691 | fi | |
3692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3693 | test $ac_status = 0; } | |
3694 | done | |
ed698112 | 3695 | |
5213506e | 3696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 NN |
3697 | /* end confdefs.h. */ |
3698 | ||
3699 | int | |
3700 | main () | |
3701 | { | |
3702 | ||
3703 | ; | |
3704 | return 0; | |
3705 | } | |
3706 | _ACEOF | |
3707 | # FIXME: Cleanup? | |
5213506e | 3708 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
ed698112 NN |
3709 | (eval $ac_link) 2>&5 |
3710 | ac_status=$? | |
5213506e RW |
3711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3712 | test $ac_status = 0; }; then : | |
ed698112 NN |
3713 | gcc_no_link=no |
3714 | else | |
3715 | gcc_no_link=yes | |
3716 | fi | |
ed698112 NN |
3717 | if test x$gcc_no_link = xyes; then |
3718 | # Setting cross_compile will disable run tests; it will | |
3719 | # also disable AC_CHECK_FILE but that's generally | |
3720 | # correct if we can't link. | |
3721 | cross_compiling=yes | |
3722 | EXEEXT= | |
3723 | else | |
5213506e | 3724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 NN |
3725 | /* end confdefs.h. */ |
3726 | ||
3727 | int | |
3728 | main () | |
3729 | { | |
158a8e6b | 3730 | |
ed698112 NN |
3731 | ; |
3732 | return 0; | |
3733 | } | |
3734 | _ACEOF | |
3735 | ac_clean_files_save=$ac_clean_files | |
5213506e | 3736 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
ed698112 NN |
3737 | # Try to create an executable without -o first, disregard a.out. |
3738 | # It will help us diagnose broken compilers, and finding out an intuition | |
3739 | # of exeext. | |
5213506e RW |
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3741 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3742 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3743 | ||
3744 | # The possible output files: | |
3745 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3746 | ||
3747 | ac_rmfiles= | |
3748 | for ac_file in $ac_files | |
3749 | do | |
3750 | case $ac_file in | |
3751 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3752 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3753 | esac | |
3754 | done | |
3755 | rm -f $ac_rmfiles | |
3756 | ||
3757 | if { { ac_try="$ac_link_default" | |
3758 | case "(($ac_try" in | |
3759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3760 | *) ac_try_echo=$ac_try;; | |
3761 | esac | |
3762 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3763 | $as_echo "$ac_try_echo"; } >&5 | |
3764 | (eval "$ac_link_default") 2>&5 | |
3765 | ac_status=$? | |
3766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3767 | test $ac_status = 0; }; then : | |
3768 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3769 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3770 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3771 | # so that the user can short-circuit this test for compilers unknown to | |
3772 | # Autoconf. | |
3773 | for ac_file in $ac_files '' | |
ed698112 NN |
3774 | do |
3775 | test -f "$ac_file" || continue | |
3776 | case $ac_file in | |
5213506e | 3777 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
ade710a5 TF |
3778 | ;; |
3779 | [ab].out ) | |
3780 | # We found the default executable, but exeext='' is most | |
3781 | # certainly right. | |
3782 | break;; | |
3783 | *.* ) | |
5213506e RW |
3784 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3785 | then :; else | |
3786 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3787 | fi | |
3788 | # We set ac_cv_exeext here because the later test for it is not | |
3789 | # safe: cross compilers may not add the suffix if given an `-o' | |
3790 | # argument, so we may need to know it at that point already. | |
3791 | # Even if this section looks crufty: it has the advantage of | |
3792 | # actually working. | |
ade710a5 TF |
3793 | break;; |
3794 | * ) | |
3795 | break;; | |
ed698112 NN |
3796 | esac |
3797 | done | |
5213506e RW |
3798 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3799 | ||
ee9dd372 | 3800 | else |
5213506e RW |
3801 | ac_file='' |
3802 | fi | |
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3804 | $as_echo "$ac_file" >&6; } | |
3805 | if test -z "$ac_file"; then : | |
3806 | $as_echo "$as_me: failed program was:" >&5 | |
ed698112 NN |
3807 | sed 's/^/| /' conftest.$ac_ext >&5 |
3808 | ||
5213506e RW |
3809 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3810 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3811 | { as_fn_set_status 77 | |
3812 | as_fn_error "C compiler cannot create executables | |
3813 | See \`config.log' for more details." "$LINENO" 5; }; } | |
ed698112 | 3814 | fi |
ade710a5 | 3815 | ac_exeext=$ac_cv_exeext |
ade710a5 | 3816 | |
5213506e | 3817 | # Check that the compiler produces executables we can run. If not, either |
ed698112 | 3818 | # the compiler is broken, or we cross compile. |
5213506e RW |
3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3820 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ed698112 NN |
3821 | # If not cross compiling, check that we can run a simple program. |
3822 | if test "$cross_compiling" != yes; then | |
3823 | if { ac_try='./$ac_file' | |
5213506e RW |
3824 | { { case "(($ac_try" in |
3825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3826 | *) ac_try_echo=$ac_try;; | |
3827 | esac | |
3828 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3829 | $as_echo "$ac_try_echo"; } >&5 | |
3830 | (eval "$ac_try") 2>&5 | |
ed698112 | 3831 | ac_status=$? |
5213506e RW |
3832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3833 | test $ac_status = 0; }; }; then | |
ed698112 NN |
3834 | cross_compiling=no |
3835 | else | |
3836 | if test "$cross_compiling" = maybe; then | |
3837 | cross_compiling=yes | |
3838 | else | |
5213506e RW |
3839 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3841 | as_fn_error "cannot run C compiled programs. | |
ed698112 | 3842 | If you meant to cross compile, use \`--host'. |
5213506e | 3843 | See \`config.log' for more details." "$LINENO" 5; } |
ed698112 NN |
3844 | fi |
3845 | fi | |
3846 | fi | |
5213506e RW |
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3848 | $as_echo "yes" >&6; } | |
ed698112 | 3849 | |
5213506e | 3850 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
ade710a5 | 3851 | ac_clean_files=$ac_clean_files_save |
5213506e | 3852 | # Check that the compiler produces executables we can run. If not, either |
ade710a5 | 3853 | # the compiler is broken, or we cross compile. |
5213506e RW |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3855 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3857 | $as_echo "$cross_compiling" >&6; } | |
3858 | ||
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3860 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3861 | if { { ac_try="$ac_link" | |
3862 | case "(($ac_try" in | |
3863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3864 | *) ac_try_echo=$ac_try;; | |
3865 | esac | |
3866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3867 | $as_echo "$ac_try_echo"; } >&5 | |
3868 | (eval "$ac_link") 2>&5 | |
ed698112 | 3869 | ac_status=$? |
5213506e RW |
3870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3871 | test $ac_status = 0; }; then : | |
ade710a5 TF |
3872 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3873 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3874 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3875 | # `rm'. | |
3876 | for ac_file in conftest.exe conftest conftest.*; do | |
3877 | test -f "$ac_file" || continue | |
3878 | case $ac_file in | |
5213506e | 3879 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ade710a5 | 3880 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
ade710a5 TF |
3881 | break;; |
3882 | * ) break;; | |
3883 | esac | |
3884 | done | |
ee9dd372 | 3885 | else |
5213506e RW |
3886 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3887 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3888 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3889 | See \`config.log' for more details." "$LINENO" 5; } | |
ee9dd372 | 3890 | fi |
ade710a5 | 3891 | rm -f conftest$ac_cv_exeext |
5213506e RW |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3893 | $as_echo "$ac_cv_exeext" >&6; } | |
ed698112 | 3894 | |
ade710a5 | 3895 | rm -f conftest.$ac_ext |
ed698112 NN |
3896 | EXEEXT=$ac_cv_exeext |
3897 | ac_exeext=$EXEEXT | |
ade710a5 | 3898 | fi |
5213506e RW |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3900 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3901 | if test "${ac_cv_objext+set}" = set; then : | |
3902 | $as_echo_n "(cached) " >&6 | |
ed698112 | 3903 | else |
5213506e | 3904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ade710a5 TF |
3905 | /* end confdefs.h. */ |
3906 | ||
3907 | int | |
3908 | main () | |
3909 | { | |
3910 | ||
3911 | ; | |
3912 | return 0; | |
3913 | } | |
3914 | _ACEOF | |
3915 | rm -f conftest.o conftest.obj | |
5213506e RW |
3916 | if { { ac_try="$ac_compile" |
3917 | case "(($ac_try" in | |
3918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3919 | *) ac_try_echo=$ac_try;; | |
3920 | esac | |
3921 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3922 | $as_echo "$ac_try_echo"; } >&5 | |
3923 | (eval "$ac_compile") 2>&5 | |
3924 | ac_status=$? | |
3925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3926 | test $ac_status = 0; }; then : | |
3927 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3928 | test -f "$ac_file" || continue; | |
ed698112 | 3929 | case $ac_file in |
5213506e | 3930 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ed698112 NN |
3931 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3932 | break;; | |
3933 | esac | |
3934 | done | |
158a8e6b | 3935 | else |
5213506e | 3936 | $as_echo "$as_me: failed program was:" >&5 |
ed698112 NN |
3937 | sed 's/^/| /' conftest.$ac_ext >&5 |
3938 | ||
5213506e RW |
3939 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3940 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3941 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3942 | See \`config.log' for more details." "$LINENO" 5; } | |
158a8e6b | 3943 | fi |
ade710a5 | 3944 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ed698112 | 3945 | fi |
5213506e RW |
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3947 | $as_echo "$ac_cv_objext" >&6; } | |
ed698112 NN |
3948 | OBJEXT=$ac_cv_objext |
3949 | ac_objext=$OBJEXT | |
5213506e RW |
3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3951 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3952 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3953 | $as_echo_n "(cached) " >&6 | |
ed698112 | 3954 | else |
5213506e | 3955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 NN |
3956 | /* end confdefs.h. */ |
3957 | ||
3958 | int | |
3959 | main () | |
3960 | { | |
3961 | #ifndef __GNUC__ | |
3962 | choke me | |
3963 | #endif | |
3964 | ||
3965 | ; | |
3966 | return 0; | |
3967 | } | |
3968 | _ACEOF | |
5213506e | 3969 | if ac_fn_c_try_compile "$LINENO"; then : |
ed698112 NN |
3970 | ac_compiler_gnu=yes |
3971 | else | |
5213506e | 3972 | ac_compiler_gnu=no |
ed698112 | 3973 | fi |
5213506e | 3974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ed698112 NN |
3975 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3976 | ||
3977 | fi | |
5213506e RW |
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3979 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3980 | if test $ac_compiler_gnu = yes; then | |
3981 | GCC=yes | |
3982 | else | |
3983 | GCC= | |
3984 | fi | |
ed698112 NN |
3985 | ac_test_CFLAGS=${CFLAGS+set} |
3986 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3988 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3989 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3990 | $as_echo_n "(cached) " >&6 | |
3991 | else | |
3992 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3993 | ac_c_werror_flag=yes | |
3994 | ac_cv_prog_cc_g=no | |
3995 | CFLAGS="-g" | |
3996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ed698112 NN |
3997 | /* end confdefs.h. */ |
3998 | ||
3999 | int | |
4000 | main () | |
4001 | { | |
4002 | ||
4003 | ; | |
4004 | return 0; | |
4005 | } | |
4006 | _ACEOF | |
5213506e | 4007 | if ac_fn_c_try_compile "$LINENO"; then : |
ee9dd372 TT |
4008 | ac_cv_prog_cc_g=yes |
4009 | else | |
5213506e RW |
4010 | CFLAGS="" |
4011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4012 | /* end confdefs.h. */ | |
4013 | ||
4014 | int | |
4015 | main () | |
4016 | { | |
ee9dd372 | 4017 | |
5213506e RW |
4018 | ; |
4019 | return 0; | |
4020 | } | |
4021 | _ACEOF | |
4022 | if ac_fn_c_try_compile "$LINENO"; then : | |
4023 | ||
4024 | else | |
4025 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4026 | CFLAGS="-g" | |
4027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4028 | /* end confdefs.h. */ | |
4029 | ||
4030 | int | |
4031 | main () | |
4032 | { | |
4033 | ||
4034 | ; | |
4035 | return 0; | |
4036 | } | |
4037 | _ACEOF | |
4038 | if ac_fn_c_try_compile "$LINENO"; then : | |
4039 | ac_cv_prog_cc_g=yes | |
4040 | fi | |
4041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ade710a5 | 4042 | fi |
5213506e | 4043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ade710a5 | 4044 | fi |
5213506e RW |
4045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4046 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4047 | fi | |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4049 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
ade710a5 TF |
4050 | if test "$ac_test_CFLAGS" = set; then |
4051 | CFLAGS=$ac_save_CFLAGS | |
4052 | elif test $ac_cv_prog_cc_g = yes; then | |
4053 | if test "$GCC" = yes; then | |
4054 | CFLAGS="-g -O2" | |
4055 | else | |
4056 | CFLAGS="-g" | |
4057 | fi | |
4058 | else | |
4059 | if test "$GCC" = yes; then | |
4060 | CFLAGS="-O2" | |
4061 | else | |
4062 | CFLAGS= | |
4063 | fi | |
4064 | fi | |
5213506e RW |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4066 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4067 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4068 | $as_echo_n "(cached) " >&6 | |
ade710a5 | 4069 | else |
5213506e | 4070 | ac_cv_prog_cc_c89=no |
ade710a5 | 4071 | ac_save_CC=$CC |
5213506e | 4072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 | 4073 | /* end confdefs.h. */ |
ade710a5 TF |
4074 | #include <stdarg.h> |
4075 | #include <stdio.h> | |
4076 | #include <sys/types.h> | |
4077 | #include <sys/stat.h> | |
4078 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4079 | struct buf { int x; }; | |
4080 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4081 | static char *e (p, i) | |
4082 | char **p; | |
4083 | int i; | |
4084 | { | |
4085 | return p[i]; | |
4086 | } | |
4087 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4088 | { | |
4089 | char *s; | |
4090 | va_list v; | |
4091 | va_start (v,p); | |
4092 | s = g (p, va_arg (v,int)); | |
4093 | va_end (v); | |
4094 | return s; | |
4095 | } | |
ee9dd372 | 4096 | |
ade710a5 TF |
4097 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4098 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4099 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4100 | as 'x'. The following induces an error, until -std is added to get |
ade710a5 TF |
4101 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4102 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4103 | that's true only with -std. */ |
ade710a5 TF |
4104 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4105 | ||
5213506e RW |
4106 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4107 | inside strings and character constants. */ | |
4108 | #define FOO(x) 'x' | |
4109 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4110 | ||
ade710a5 TF |
4111 | int test (int i, double x); |
4112 | struct s1 {int (*f) (int a);}; | |
4113 | struct s2 {int (*f) (double a);}; | |
4114 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4115 | int argc; | |
4116 | char **argv; | |
ed698112 NN |
4117 | int |
4118 | main () | |
4119 | { | |
ade710a5 | 4120 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
ed698112 NN |
4121 | ; |
4122 | return 0; | |
4123 | } | |
4124 | _ACEOF | |
5213506e RW |
4125 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4126 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ade710a5 TF |
4127 | do |
4128 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4129 | if ac_fn_c_try_compile "$LINENO"; then : |
4130 | ac_cv_prog_cc_c89=$ac_arg | |
ade710a5 | 4131 | fi |
5213506e RW |
4132 | rm -f core conftest.err conftest.$ac_objext |
4133 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ade710a5 | 4134 | done |
5213506e | 4135 | rm -f conftest.$ac_ext |
ade710a5 | 4136 | CC=$ac_save_CC |
e2ea015c | 4137 | |
ade710a5 | 4138 | fi |
5213506e RW |
4139 | # AC_CACHE_VAL |
4140 | case "x$ac_cv_prog_cc_c89" in | |
4141 | x) | |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4143 | $as_echo "none needed" >&6; } ;; | |
4144 | xno) | |
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4146 | $as_echo "unsupported" >&6; } ;; | |
ade710a5 | 4147 | *) |
5213506e RW |
4148 | CC="$CC $ac_cv_prog_cc_c89" |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4150 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ade710a5 | 4151 | esac |
5213506e | 4152 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
ed698112 | 4153 | |
ee9dd372 | 4154 | fi |
ed698112 | 4155 | |
ed698112 NN |
4156 | ac_ext=c |
4157 | ac_cpp='$CPP $CPPFLAGS' | |
4158 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4159 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4160 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ee9dd372 | 4161 | |
5213506e | 4162 | ac_ext=cpp |
ed698112 NN |
4163 | ac_cpp='$CXXCPP $CPPFLAGS' |
4164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4167 | if test -z "$CXX"; then |
4168 | if test -n "$CCC"; then | |
4169 | CXX=$CCC | |
4170 | else | |
4171 | if test -n "$ac_tool_prefix"; then | |
4172 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
ed698112 NN |
4173 | do |
4174 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4175 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4177 | $as_echo_n "checking for $ac_word... " >&6; } | |
4178 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4179 | $as_echo_n "(cached) " >&6 | |
ed698112 NN |
4180 | else |
4181 | if test -n "$CXX"; then | |
97b8365c | 4182 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
ed698112 NN |
4183 | else |
4184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4185 | for as_dir in $PATH | |
4186 | do | |
4187 | IFS=$as_save_IFS | |
4188 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4189 | for ac_exec_ext in '' $ac_executable_extensions; do |
4190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
97b8365c | 4191 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
4193 | break 2 |
4194 | fi | |
4195 | done | |
5213506e RW |
4196 | done |
4197 | IFS=$as_save_IFS | |
158a8e6b | 4198 | |
ed698112 NN |
4199 | fi |
4200 | fi | |
97b8365c | 4201 | CXX=$ac_cv_prog_CXX |
ed698112 | 4202 | if test -n "$CXX"; then |
5213506e RW |
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4204 | $as_echo "$CXX" >&6; } | |
ed698112 | 4205 | else |
5213506e RW |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4207 | $as_echo "no" >&6; } | |
ed698112 | 4208 | fi |
ee9dd372 | 4209 | |
5213506e | 4210 | |
ed698112 NN |
4211 | test -n "$CXX" && break |
4212 | done | |
4213 | fi | |
4214 | if test -z "$CXX"; then | |
4215 | ac_ct_CXX=$CXX | |
5213506e | 4216 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
ed698112 NN |
4217 | do |
4218 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4219 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4221 | $as_echo_n "checking for $ac_word... " >&6; } | |
4222 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4223 | $as_echo_n "(cached) " >&6 | |
ee9dd372 | 4224 | else |
ed698112 NN |
4225 | if test -n "$ac_ct_CXX"; then |
4226 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
ee9dd372 | 4227 | else |
ed698112 NN |
4228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4229 | for as_dir in $PATH | |
4230 | do | |
4231 | IFS=$as_save_IFS | |
4232 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4233 | for ac_exec_ext in '' $ac_executable_extensions; do |
4234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 4235 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
4237 | break 2 |
4238 | fi | |
4239 | done | |
5213506e RW |
4240 | done |
4241 | IFS=$as_save_IFS | |
ed698112 NN |
4242 | |
4243 | fi | |
ee9dd372 | 4244 | fi |
ed698112 NN |
4245 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4246 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4248 | $as_echo "$ac_ct_CXX" >&6; } | |
ed698112 | 4249 | else |
5213506e RW |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4251 | $as_echo "no" >&6; } | |
ee9dd372 TT |
4252 | fi |
4253 | ||
5213506e | 4254 | |
ed698112 NN |
4255 | test -n "$ac_ct_CXX" && break |
4256 | done | |
ed698112 | 4257 | |
5213506e RW |
4258 | if test "x$ac_ct_CXX" = x; then |
4259 | CXX="g++" | |
4260 | else | |
4261 | case $cross_compiling:$ac_tool_warned in | |
4262 | yes:) | |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4264 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4265 | ac_tool_warned=yes ;; | |
4266 | esac | |
4267 | CXX=$ac_ct_CXX | |
4268 | fi | |
ed698112 NN |
4269 | fi |
4270 | ||
5213506e RW |
4271 | fi |
4272 | fi | |
ed698112 | 4273 | # Provide some information about the compiler. |
5213506e RW |
4274 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4275 | set X $ac_compile | |
4276 | ac_compiler=$2 | |
4277 | for ac_option in --version -v -V -qversion; do | |
4278 | { { ac_try="$ac_compiler $ac_option >&5" | |
4279 | case "(($ac_try" in | |
4280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4281 | *) ac_try_echo=$ac_try;; | |
4282 | esac | |
4283 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4284 | $as_echo "$ac_try_echo"; } >&5 | |
4285 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
ed698112 | 4286 | ac_status=$? |
5213506e RW |
4287 | if test -s conftest.err; then |
4288 | sed '10a\ | |
4289 | ... rest of stderr output deleted ... | |
4290 | 10q' conftest.err >conftest.er1 | |
4291 | cat conftest.er1 >&5 | |
4292 | rm -f conftest.er1 conftest.err | |
4293 | fi | |
4294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4295 | test $ac_status = 0; } | |
4296 | done | |
ed698112 | 4297 | |
5213506e RW |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4299 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4300 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4301 | $as_echo_n "(cached) " >&6 | |
ed698112 | 4302 | else |
5213506e | 4303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 | 4304 | /* end confdefs.h. */ |
ee9dd372 | 4305 | |
ed698112 NN |
4306 | int |
4307 | main () | |
4308 | { | |
4309 | #ifndef __GNUC__ | |
4310 | choke me | |
4311 | #endif | |
4312 | ||
4313 | ; | |
4314 | return 0; | |
4315 | } | |
4316 | _ACEOF | |
5213506e | 4317 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ed698112 NN |
4318 | ac_compiler_gnu=yes |
4319 | else | |
5213506e | 4320 | ac_compiler_gnu=no |
ed698112 | 4321 | fi |
5213506e | 4322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ed698112 NN |
4323 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4324 | ||
4325 | fi | |
5213506e RW |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4327 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4328 | if test $ac_compiler_gnu = yes; then | |
4329 | GXX=yes | |
4330 | else | |
4331 | GXX= | |
4332 | fi | |
ed698112 NN |
4333 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4334 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4336 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4337 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4338 | $as_echo_n "(cached) " >&6 | |
4339 | else | |
4340 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4341 | ac_cxx_werror_flag=yes | |
4342 | ac_cv_prog_cxx_g=no | |
4343 | CXXFLAGS="-g" | |
4344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ed698112 NN |
4345 | /* end confdefs.h. */ |
4346 | ||
4347 | int | |
4348 | main () | |
4349 | { | |
4350 | ||
4351 | ; | |
4352 | return 0; | |
4353 | } | |
4354 | _ACEOF | |
5213506e | 4355 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ee9dd372 TT |
4356 | ac_cv_prog_cxx_g=yes |
4357 | else | |
5213506e RW |
4358 | CXXFLAGS="" |
4359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ed698112 | 4360 | /* end confdefs.h. */ |
5213506e | 4361 | |
ed698112 NN |
4362 | int |
4363 | main () | |
4364 | { | |
5213506e | 4365 | |
ed698112 NN |
4366 | ; |
4367 | return 0; | |
4368 | } | |
4369 | _ACEOF | |
5213506e | 4370 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ed698112 | 4371 | |
5213506e RW |
4372 | else |
4373 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4374 | CXXFLAGS="-g" | |
4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ed698112 | 4376 | /* end confdefs.h. */ |
5213506e | 4377 | |
ed698112 NN |
4378 | int |
4379 | main () | |
4380 | { | |
5213506e | 4381 | |
ed698112 NN |
4382 | ; |
4383 | return 0; | |
4384 | } | |
4385 | _ACEOF | |
5213506e RW |
4386 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4387 | ac_cv_prog_cxx_g=yes | |
02809848 | 4388 | fi |
5213506e RW |
4389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4390 | fi | |
4391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4392 | fi | |
4393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4394 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4395 | fi | |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4397 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4398 | if test "$ac_test_CXXFLAGS" = set; then | |
4399 | CXXFLAGS=$ac_save_CXXFLAGS | |
4400 | elif test $ac_cv_prog_cxx_g = yes; then | |
4401 | if test "$GXX" = yes; then | |
4402 | CXXFLAGS="-g -O2" | |
4403 | else | |
4404 | CXXFLAGS="-g" | |
4405 | fi | |
4406 | else | |
4407 | if test "$GXX" = yes; then | |
4408 | CXXFLAGS="-O2" | |
4409 | else | |
4410 | CXXFLAGS= | |
4411 | fi | |
158a8e6b | 4412 | fi |
ed698112 NN |
4413 | ac_ext=c |
4414 | ac_cpp='$CPP $CPPFLAGS' | |
4415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4418 | ||
4419 | CXXFLAGS="$save_CXXFLAGS" | |
4420 | ||
5213506e RW |
4421 | am__api_version='1.11' |
4422 | ||
36609570 NN |
4423 | # Find a good install program. We prefer a C program (faster), |
4424 | # so one script is as good as another. But avoid the broken or | |
4425 | # incompatible versions: | |
4426 | # SysV /etc/install, /usr/sbin/install | |
4427 | # SunOS /usr/etc/install | |
4428 | # IRIX /sbin/install | |
4429 | # AIX /bin/install | |
ed698112 | 4430 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
36609570 NN |
4431 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4432 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4433 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ed698112 | 4434 | # OS/2's system install, which has a completely different semantic |
36609570 | 4435 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 4436 | # Reject install programs that cannot install multiple files. |
5213506e RW |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
4438 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
36609570 | 4439 | if test -z "$INSTALL"; then |
5213506e RW |
4440 | if test "${ac_cv_path_install+set}" = set; then : |
4441 | $as_echo_n "(cached) " >&6 | |
36609570 | 4442 | else |
ed698112 NN |
4443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4444 | for as_dir in $PATH | |
4445 | do | |
4446 | IFS=$as_save_IFS | |
4447 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4448 | # Account for people who put trailing slashes in PATH elements. |
4449 | case $as_dir/ in #(( | |
4450 | ./ | .// | /[cC]/* | \ | |
ed698112 | 4451 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 4452 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
ed698112 NN |
4453 | /usr/ucb/* ) ;; |
4454 | *) | |
4455 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4456 | # Don't use installbsd from OSF since it installs stuff as root | |
4457 | # by default. | |
4458 | for ac_prog in ginstall scoinst install; do | |
4459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 4460 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
36609570 | 4461 | if test $ac_prog = install && |
ed698112 | 4462 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
36609570 NN |
4463 | # AIX install. It has an incompatible calling convention. |
4464 | : | |
ed698112 NN |
4465 | elif test $ac_prog = install && |
4466 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4467 | # program-specific install script used by HP pwplus--don't use. | |
4468 | : | |
36609570 | 4469 | else |
38d24731 RW |
4470 | rm -rf conftest.one conftest.two conftest.dir |
4471 | echo one > conftest.one | |
4472 | echo two > conftest.two | |
4473 | mkdir conftest.dir | |
4474 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4475 | test -s conftest.one && test -s conftest.two && | |
4476 | test -s conftest.dir/conftest.one && | |
4477 | test -s conftest.dir/conftest.two | |
4478 | then | |
4479 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4480 | break 3 | |
4481 | fi | |
36609570 NN |
4482 | fi |
4483 | fi | |
4484 | done | |
ed698112 NN |
4485 | done |
4486 | ;; | |
4487 | esac | |
5213506e RW |
4488 | |
4489 | done | |
4490 | IFS=$as_save_IFS | |
ed698112 | 4491 | |
38d24731 | 4492 | rm -rf conftest.one conftest.two conftest.dir |
36609570 NN |
4493 | |
4494 | fi | |
4495 | if test "${ac_cv_path_install+set}" = set; then | |
ed698112 | 4496 | INSTALL=$ac_cv_path_install |
36609570 | 4497 | else |
38d24731 RW |
4498 | # As a last resort, use the slow shell script. Don't cache a |
4499 | # value for INSTALL within a source directory, because that will | |
36609570 | 4500 | # break other packages using the cache if that directory is |
38d24731 | 4501 | # removed, or if the value is a relative name. |
ed698112 | 4502 | INSTALL=$ac_install_sh |
36609570 NN |
4503 | fi |
4504 | fi | |
5213506e RW |
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4506 | $as_echo "$INSTALL" >&6; } | |
36609570 NN |
4507 | |
4508 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4509 | # It thinks the first close brace ends the variable substitution. | |
4510 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4511 | ||
ed698112 | 4512 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
36609570 NN |
4513 | |
4514 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4515 | ||
5213506e RW |
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
4517 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
36609570 NN |
4518 | # Just in case |
4519 | sleep 1 | |
e3f92d3b | 4520 | echo timestamp > conftest.file |
5213506e RW |
4521 | # Reject unsafe characters in $srcdir or the absolute working directory |
4522 | # name. Accept space and tab only in the latter. | |
4523 | am_lf=' | |
4524 | ' | |
4525 | case `pwd` in | |
4526 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4527 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
4528 | esac | |
4529 | case $srcdir in | |
4530 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4531 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
4532 | esac | |
4533 | ||
36609570 NN |
4534 | # Do `set' in a subshell so we don't clobber the current shell's |
4535 | # arguments. Must try -L first in case configure is actually a | |
4536 | # symlink; some systems play weird games with the mod time of symlinks | |
4537 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4538 | # directory). | |
4539 | if ( | |
5213506e | 4540 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
36609570 NN |
4541 | if test "$*" = "X"; then |
4542 | # -L didn't work. | |
5213506e | 4543 | set X `ls -t "$srcdir/configure" conftest.file` |
36609570 | 4544 | fi |
e3f92d3b MK |
4545 | rm -f conftest.file |
4546 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4547 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
36609570 NN |
4548 | |
4549 | # If neither matched, then we have a broken ls. This can happen | |
4550 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4551 | # broken ls alias from the environment. This has actually | |
4552 | # happened. Such a system could not be considered "sane". | |
5213506e RW |
4553 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
4554 | alias in your environment" "$LINENO" 5 | |
36609570 NN |
4555 | fi |
4556 | ||
e3f92d3b | 4557 | test "$2" = conftest.file |
36609570 NN |
4558 | ) |
4559 | then | |
4560 | # Ok. | |
4561 | : | |
4562 | else | |
5213506e RW |
4563 | as_fn_error "newly created file is older than distributed files! |
4564 | Check your system clock" "$LINENO" 5 | |
36609570 | 4565 | fi |
5213506e RW |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4567 | $as_echo "yes" >&6; } | |
36609570 | 4568 | test "$program_prefix" != NONE && |
5213506e | 4569 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
36609570 NN |
4570 | # Use a double $ so make ignores it. |
4571 | test "$program_suffix" != NONE && | |
5213506e RW |
4572 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
4573 | # Double any \ or $. | |
ed698112 | 4574 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
4575 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
4576 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
ed698112 | 4577 | |
e3f92d3b MK |
4578 | # expand $ac_aux_dir to an absolute path |
4579 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
4580 | ||
5213506e RW |
4581 | if test x"${MISSING+set}" != xset; then |
4582 | case $am_aux_dir in | |
4583 | *\ * | *\ *) | |
4584 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4585 | *) | |
4586 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4587 | esac | |
4588 | fi | |
e3f92d3b MK |
4589 | # Use eval to expand $SHELL |
4590 | if eval "$MISSING --run true"; then | |
4591 | am_missing_run="$MISSING --run " | |
4592 | else | |
4593 | am_missing_run= | |
5213506e RW |
4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
4595 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
4596 | fi | |
4597 | ||
4598 | if test x"${install_sh}" != xset; then | |
4599 | case $am_aux_dir in | |
4600 | *\ * | *\ *) | |
4601 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4602 | *) | |
4603 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4604 | esac | |
4605 | fi | |
4606 | ||
4607 | # Installed binaries are usually stripped using `strip' when the user | |
4608 | # run `make install-strip'. However `strip' might not be the right | |
4609 | # tool to use in cross-compilation environments, therefore Automake | |
4610 | # will honor the `STRIP' environment variable to overrule this program. | |
4611 | if test "$cross_compiling" != no; then | |
4612 | if test -n "$ac_tool_prefix"; then | |
4613 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4614 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4616 | $as_echo_n "checking for $ac_word... " >&6; } | |
4617 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4618 | $as_echo_n "(cached) " >&6 | |
4619 | else | |
4620 | if test -n "$STRIP"; then | |
4621 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4622 | else | |
4623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4624 | for as_dir in $PATH | |
4625 | do | |
4626 | IFS=$as_save_IFS | |
4627 | test -z "$as_dir" && as_dir=. | |
4628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4630 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4632 | break 2 | |
4633 | fi | |
4634 | done | |
4635 | done | |
4636 | IFS=$as_save_IFS | |
4637 | ||
4638 | fi | |
4639 | fi | |
4640 | STRIP=$ac_cv_prog_STRIP | |
4641 | if test -n "$STRIP"; then | |
4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4643 | $as_echo "$STRIP" >&6; } | |
4644 | else | |
4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4646 | $as_echo "no" >&6; } | |
4647 | fi | |
4648 | ||
4649 | ||
4650 | fi | |
4651 | if test -z "$ac_cv_prog_STRIP"; then | |
4652 | ac_ct_STRIP=$STRIP | |
4653 | # Extract the first word of "strip", so it can be a program name with args. | |
4654 | set dummy strip; ac_word=$2 | |
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4656 | $as_echo_n "checking for $ac_word... " >&6; } | |
4657 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4658 | $as_echo_n "(cached) " >&6 | |
4659 | else | |
4660 | if test -n "$ac_ct_STRIP"; then | |
4661 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4662 | else | |
4663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4664 | for as_dir in $PATH | |
4665 | do | |
4666 | IFS=$as_save_IFS | |
4667 | test -z "$as_dir" && as_dir=. | |
4668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4670 | ac_cv_prog_ac_ct_STRIP="strip" | |
4671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4672 | break 2 | |
4673 | fi | |
4674 | done | |
4675 | done | |
4676 | IFS=$as_save_IFS | |
4677 | ||
4678 | fi | |
4679 | fi | |
4680 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4681 | if test -n "$ac_ct_STRIP"; then | |
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4683 | $as_echo "$ac_ct_STRIP" >&6; } | |
4684 | else | |
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4686 | $as_echo "no" >&6; } | |
4687 | fi | |
4688 | ||
4689 | if test "x$ac_ct_STRIP" = x; then | |
4690 | STRIP=":" | |
4691 | else | |
4692 | case $cross_compiling:$ac_tool_warned in | |
4693 | yes:) | |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4695 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4696 | ac_tool_warned=yes ;; | |
4697 | esac | |
4698 | STRIP=$ac_ct_STRIP | |
4699 | fi | |
4700 | else | |
4701 | STRIP="$ac_cv_prog_STRIP" | |
4702 | fi | |
4703 | ||
4704 | fi | |
4705 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
4706 | ||
4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
4708 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4709 | if test -z "$MKDIR_P"; then | |
4710 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4711 | $as_echo_n "(cached) " >&6 | |
4712 | else | |
4713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4714 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4715 | do | |
4716 | IFS=$as_save_IFS | |
4717 | test -z "$as_dir" && as_dir=. | |
4718 | for ac_prog in mkdir gmkdir; do | |
4719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4720 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4721 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4722 | 'mkdir (GNU coreutils) '* | \ | |
4723 | 'mkdir (coreutils) '* | \ | |
4724 | 'mkdir (fileutils) '4.1*) | |
4725 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4726 | break 3;; | |
4727 | esac | |
4728 | done | |
4729 | done | |
e3f92d3b | 4730 | done |
5213506e RW |
4731 | IFS=$as_save_IFS |
4732 | ||
4733 | fi | |
4734 | ||
4735 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4736 | MKDIR_P="$ac_cv_path_mkdir -p" | |
e3f92d3b | 4737 | else |
5213506e RW |
4738 | # As a last resort, use the slow shell script. Don't cache a |
4739 | # value for MKDIR_P within a source directory, because that will | |
4740 | # break other packages using the cache if that directory is | |
4741 | # removed, or if the value is a relative name. | |
4742 | test -d ./--version && rmdir ./--version | |
4743 | MKDIR_P="$ac_install_sh -d" | |
e3f92d3b MK |
4744 | fi |
4745 | fi | |
5213506e RW |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4747 | $as_echo "$MKDIR_P" >&6; } | |
4748 | ||
4749 | mkdir_p="$MKDIR_P" | |
4750 | case $mkdir_p in | |
4751 | [\\/$]* | ?:[\\/]*) ;; | |
4752 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
4753 | esac | |
e3f92d3b MK |
4754 | |
4755 | for ac_prog in gawk mawk nawk awk | |
4756 | do | |
4757 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4758 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4760 | $as_echo_n "checking for $ac_word... " >&6; } | |
4761 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
4762 | $as_echo_n "(cached) " >&6 | |
e3f92d3b MK |
4763 | else |
4764 | if test -n "$AWK"; then | |
4765 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4766 | else | |
4767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4768 | for as_dir in $PATH | |
4769 | do | |
4770 | IFS=$as_save_IFS | |
4771 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4772 | for ac_exec_ext in '' $ac_executable_extensions; do |
4773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e3f92d3b | 4774 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 4775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
e3f92d3b MK |
4776 | break 2 |
4777 | fi | |
4778 | done | |
5213506e RW |
4779 | done |
4780 | IFS=$as_save_IFS | |
e3f92d3b MK |
4781 | |
4782 | fi | |
4783 | fi | |
4784 | AWK=$ac_cv_prog_AWK | |
4785 | if test -n "$AWK"; then | |
5213506e RW |
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
4787 | $as_echo "$AWK" >&6; } | |
e3f92d3b | 4788 | else |
5213506e RW |
4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4790 | $as_echo "no" >&6; } | |
e3f92d3b MK |
4791 | fi |
4792 | ||
5213506e | 4793 | |
e3f92d3b MK |
4794 | test -n "$AWK" && break |
4795 | done | |
4796 | ||
5213506e RW |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4798 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4799 | set x ${MAKE-make} | |
4800 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4801 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4802 | $as_echo_n "(cached) " >&6 | |
ed698112 NN |
4803 | else |
4804 | cat >conftest.make <<\_ACEOF | |
5213506e | 4805 | SHELL = /bin/sh |
36609570 | 4806 | all: |
5213506e | 4807 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
ed698112 | 4808 | _ACEOF |
36609570 | 4809 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5213506e RW |
4810 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4811 | *@@@%%%=?*=@@@%%%*) | |
4812 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4813 | *) | |
4814 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4815 | esac | |
ed698112 | 4816 | rm -f conftest.make |
36609570 | 4817 | fi |
5213506e RW |
4818 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4820 | $as_echo "yes" >&6; } | |
36609570 NN |
4821 | SET_MAKE= |
4822 | else | |
5213506e RW |
4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4824 | $as_echo "no" >&6; } | |
36609570 NN |
4825 | SET_MAKE="MAKE=${MAKE-make}" |
4826 | fi | |
4827 | ||
e3f92d3b MK |
4828 | rm -rf .tst 2>/dev/null |
4829 | mkdir .tst 2>/dev/null | |
4830 | if test -d .tst; then | |
4831 | am__leading_dot=. | |
4832 | else | |
4833 | am__leading_dot=_ | |
4834 | fi | |
4835 | rmdir .tst 2>/dev/null | |
4836 | ||
4837 | DEPDIR="${am__leading_dot}deps" | |
4838 | ||
5213506e | 4839 | ac_config_commands="$ac_config_commands depfiles" |
e3f92d3b MK |
4840 | |
4841 | ||
4842 | am_make=${MAKE-make} | |
4843 | cat > confinc << 'END' | |
4844 | am__doit: | |
5213506e | 4845 | @echo this is the am__doit target |
e3f92d3b MK |
4846 | .PHONY: am__doit |
4847 | END | |
4848 | # If we don't find an include directive, just comment out the code. | |
5213506e RW |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
4850 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
e3f92d3b MK |
4851 | am__include="#" |
4852 | am__quote= | |
4853 | _am_result=none | |
4854 | # First try GNU make style include. | |
4855 | echo "include confinc" > confmf | |
5213506e RW |
4856 | # Ignore all kinds of additional output from `make'. |
4857 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4858 | *the\ am__doit\ target*) | |
4859 | am__include=include | |
4860 | am__quote= | |
4861 | _am_result=GNU | |
4862 | ;; | |
4863 | esac | |
e3f92d3b MK |
4864 | # Now try BSD make style include. |
4865 | if test "$am__include" = "#"; then | |
4866 | echo '.include "confinc"' > confmf | |
5213506e RW |
4867 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4868 | *the\ am__doit\ target*) | |
4869 | am__include=.include | |
4870 | am__quote="\"" | |
4871 | _am_result=BSD | |
4872 | ;; | |
4873 | esac | |
e3f92d3b MK |
4874 | fi |
4875 | ||
4876 | ||
5213506e RW |
4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4878 | $as_echo "$_am_result" >&6; } | |
e3f92d3b MK |
4879 | rm -f confinc confmf |
4880 | ||
5213506e RW |
4881 | # Check whether --enable-dependency-tracking was given. |
4882 | if test "${enable_dependency_tracking+set}" = set; then : | |
4883 | enableval=$enable_dependency_tracking; | |
4884 | fi | |
e3f92d3b | 4885 | |
e3f92d3b MK |
4886 | if test "x$enable_dependency_tracking" != xno; then |
4887 | am_depcomp="$ac_aux_dir/depcomp" | |
4888 | AMDEPBACKSLASH='\' | |
4889 | fi | |
5213506e | 4890 | if test "x$enable_dependency_tracking" != xno; then |
e3f92d3b MK |
4891 | AMDEP_TRUE= |
4892 | AMDEP_FALSE='#' | |
4893 | else | |
4894 | AMDEP_TRUE='#' | |
4895 | AMDEP_FALSE= | |
4896 | fi | |
158a8e6b | 4897 | |
9d577a61 | 4898 | |
5213506e RW |
4899 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4900 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4901 | # is not polluted with repeated "-I." | |
4902 | am__isrc=' -I$(srcdir)' | |
4903 | # test to see if srcdir already configured | |
4904 | if test -f $srcdir/config.status; then | |
4905 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4906 | fi | |
9d577a61 | 4907 | fi |
ed698112 | 4908 | |
e3f92d3b MK |
4909 | # test whether we have cygpath |
4910 | if test -z "$CYGPATH_W"; then | |
4911 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4912 | CYGPATH_W='cygpath -w' | |
4913 | else | |
4914 | CYGPATH_W=echo | |
4915 | fi | |
4916 | fi | |
4917 | ||
4918 | ||
4919 | # Define the identity of the package. | |
4920 | PACKAGE='libjava' | |
4921 | VERSION='version-unused' | |
4922 | ||
4923 | ||
ed698112 | 4924 | cat >>confdefs.h <<_ACEOF |
158a8e6b | 4925 | #define PACKAGE "$PACKAGE" |
ed698112 | 4926 | _ACEOF |
158a8e6b | 4927 | |
ed698112 NN |
4928 | |
4929 | cat >>confdefs.h <<_ACEOF | |
158a8e6b | 4930 | #define VERSION "$VERSION" |
ed698112 | 4931 | _ACEOF |
158a8e6b | 4932 | |
e3f92d3b MK |
4933 | # Some tools Automake needs. |
4934 | ||
4935 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4936 | ||
4937 | ||
4938 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
158a8e6b | 4939 | |
8107bcf9 | 4940 | |
e3f92d3b MK |
4941 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
4942 | ||
4943 | ||
4944 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4945 | ||
4946 | ||
4947 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4948 | ||
e3f92d3b MK |
4949 | # We need awk for the "check" target. The system "awk" is bad on |
4950 | # some platforms. | |
4951 | # Always define AMTAR for backward compatibility. | |
4952 | ||
4953 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4954 | ||
4955 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | depcc="$CC" am_compiler_list= | |
4961 | ||
5213506e RW |
4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4963 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4964 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4965 | $as_echo_n "(cached) " >&6 | |
e3f92d3b MK |
4966 | else |
4967 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4968 | # We make a subdir and do the tests there. Otherwise we can end up | |
4969 | # making bogus files that we don't know about and never remove. For | |
4970 | # instance it was reported that on HP-UX the gcc test will end up | |
4971 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4972 | # in D'. | |
4973 | mkdir conftest.dir | |
4974 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4975 | # using a relative directory. | |
4976 | cp "$am_depcomp" conftest.dir | |
4977 | cd conftest.dir | |
4978 | # We will build objects and dependencies in a subdirectory because | |
4979 | # it helps to detect inapplicable dependency modes. For instance | |
4980 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4981 | # side effect of compilation, but ICC will put the dependencies in | |
4982 | # the current directory while Tru64 will put them in the object | |
4983 | # directory. | |
4984 | mkdir sub | |
4985 | ||
4986 | am_cv_CC_dependencies_compiler_type=none | |
4987 | if test "$am_compiler_list" = ""; then | |
4988 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4989 | fi | |
5213506e RW |
4990 | am__universal=false |
4991 | case " $depcc " in #( | |
4992 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4993 | esac | |
4994 | ||
e3f92d3b MK |
4995 | for depmode in $am_compiler_list; do |
4996 | # Setup a source with many dependencies, because some compilers | |
4997 | # like to wrap large dependency lists on column 80 (with \), and | |
4998 | # we should not choose a depcomp mode which is confused by this. | |
4999 | # | |
5000 | # We need to recreate these files for each test, as the compiler may | |
5001 | # overwrite some of them when testing with obscure command lines. | |
5002 | # This happens at least with the AIX C compiler. | |
5003 | : > sub/conftest.c | |
5004 | for i in 1 2 3 4 5 6; do | |
5005 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5006 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5007 | # Solaris 8's {/usr,}/bin/sh. | |
5008 | touch sub/conftst$i.h | |
5009 | done | |
5010 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5011 | ||
5213506e RW |
5012 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5013 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5014 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5015 | # versions had trouble with output in subdirs | |
5016 | am__obj=sub/conftest.${OBJEXT-o} | |
5017 | am__minus_obj="-o $am__obj" | |
e3f92d3b | 5018 | case $depmode in |
5213506e RW |
5019 | gcc) |
5020 | # This depmode causes a compiler race in universal mode. | |
5021 | test "$am__universal" = false || continue | |
5022 | ;; | |
e3f92d3b MK |
5023 | nosideeffect) |
5024 | # after this tag, mechanisms are not by side-effect, so they'll | |
5025 | # only be used when explicitly requested | |
5026 | if test "x$enable_dependency_tracking" = xyes; then | |
5027 | continue | |
5028 | else | |
5029 | break | |
5030 | fi | |
5031 | ;; | |
5213506e RW |
5032 | msvisualcpp | msvcmsys) |
5033 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5034 | # not run yet. These depmodes are late enough in the game, and | |
5035 | # so weak that their functioning should not be impacted. | |
5036 | am__obj=conftest.${OBJEXT-o} | |
5037 | am__minus_obj= | |
5038 | ;; | |
e3f92d3b MK |
5039 | none) break ;; |
5040 | esac | |
e3f92d3b | 5041 | if depmode=$depmode \ |
5213506e | 5042 | source=sub/conftest.c object=$am__obj \ |
e3f92d3b | 5043 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 5044 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
e3f92d3b | 5045 | >/dev/null 2>conftest.err && |
5213506e | 5046 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
e3f92d3b | 5047 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 5048 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
e3f92d3b MK |
5049 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5050 | # icc doesn't choke on unknown options, it will just issue warnings | |
5051 | # or remarks (even with -Werror). So we grep stderr for any message | |
5052 | # that says an option was ignored or not supported. | |
5053 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5054 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5055 | # The diagnosis changed in icc 8.0: | |
5056 | # icc: Command line remark: option '-MP' not supported | |
5057 | if (grep 'ignoring option' conftest.err || | |
5058 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5059 | am_cv_CC_dependencies_compiler_type=$depmode | |
5060 | break | |
5061 | fi | |
5062 | fi | |
5063 | done | |
5064 | ||
5065 | cd .. | |
5066 | rm -rf conftest.dir | |
5067 | else | |
5068 | am_cv_CC_dependencies_compiler_type=none | |
5069 | fi | |
5070 | ||
5071 | fi | |
5213506e RW |
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
5073 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
e3f92d3b MK |
5074 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5075 | ||
5213506e | 5076 | if |
e3f92d3b MK |
5077 | test "x$enable_dependency_tracking" != xno \ |
5078 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5079 | am__fastdepCC_TRUE= | |
5080 | am__fastdepCC_FALSE='#' | |
5081 | else | |
5082 | am__fastdepCC_TRUE='#' | |
5083 | am__fastdepCC_FALSE= | |
5084 | fi | |
5085 | ||
5086 | ||
5087 | depcc="$CXX" am_compiler_list= | |
5088 | ||
5213506e RW |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5090 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5091 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
5092 | $as_echo_n "(cached) " >&6 | |
158a8e6b | 5093 | else |
e3f92d3b MK |
5094 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5095 | # We make a subdir and do the tests there. Otherwise we can end up | |
5096 | # making bogus files that we don't know about and never remove. For | |
5097 | # instance it was reported that on HP-UX the gcc test will end up | |
5098 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5099 | # in D'. | |
5100 | mkdir conftest.dir | |
5101 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5102 | # using a relative directory. | |
5103 | cp "$am_depcomp" conftest.dir | |
5104 | cd conftest.dir | |
5105 | # We will build objects and dependencies in a subdirectory because | |
5106 | # it helps to detect inapplicable dependency modes. For instance | |
5107 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5108 | # side effect of compilation, but ICC will put the dependencies in | |
5109 | # the current directory while Tru64 will put them in the object | |
5110 | # directory. | |
5111 | mkdir sub | |
5112 | ||
5113 | am_cv_CXX_dependencies_compiler_type=none | |
5114 | if test "$am_compiler_list" = ""; then | |
5115 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5116 | fi | |
5213506e RW |
5117 | am__universal=false |
5118 | case " $depcc " in #( | |
5119 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5120 | esac | |
5121 | ||
e3f92d3b MK |
5122 | for depmode in $am_compiler_list; do |
5123 | # Setup a source with many dependencies, because some compilers | |
5124 | # like to wrap large dependency lists on column 80 (with \), and | |
5125 | # we should not choose a depcomp mode which is confused by this. | |
5126 | # | |
5127 | # We need to recreate these files for each test, as the compiler may | |
5128 | # overwrite some of them when testing with obscure command lines. | |
5129 | # This happens at least with the AIX C compiler. | |
5130 | : > sub/conftest.c | |
5131 | for i in 1 2 3 4 5 6; do | |
5132 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5133 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5134 | # Solaris 8's {/usr,}/bin/sh. | |
5135 | touch sub/conftst$i.h | |
5136 | done | |
5137 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5138 | ||
5213506e RW |
5139 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5140 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5141 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5142 | # versions had trouble with output in subdirs | |
5143 | am__obj=sub/conftest.${OBJEXT-o} | |
5144 | am__minus_obj="-o $am__obj" | |
e3f92d3b | 5145 | case $depmode in |
5213506e RW |
5146 | gcc) |
5147 | # This depmode causes a compiler race in universal mode. | |
5148 | test "$am__universal" = false || continue | |
5149 | ;; | |
e3f92d3b MK |
5150 | nosideeffect) |
5151 | # after this tag, mechanisms are not by side-effect, so they'll | |
5152 | # only be used when explicitly requested | |
5153 | if test "x$enable_dependency_tracking" = xyes; then | |
5154 | continue | |
5155 | else | |
5156 | break | |
5157 | fi | |
5158 | ;; | |
5213506e RW |
5159 | msvisualcpp | msvcmsys) |
5160 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5161 | # not run yet. These depmodes are late enough in the game, and | |
5162 | # so weak that their functioning should not be impacted. | |
5163 | am__obj=conftest.${OBJEXT-o} | |
5164 | am__minus_obj= | |
5165 | ;; | |
e3f92d3b MK |
5166 | none) break ;; |
5167 | esac | |
e3f92d3b | 5168 | if depmode=$depmode \ |
5213506e | 5169 | source=sub/conftest.c object=$am__obj \ |
e3f92d3b | 5170 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 5171 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
e3f92d3b | 5172 | >/dev/null 2>conftest.err && |
5213506e | 5173 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
e3f92d3b | 5174 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 5175 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
e3f92d3b MK |
5176 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5177 | # icc doesn't choke on unknown options, it will just issue warnings | |
5178 | # or remarks (even with -Werror). So we grep stderr for any message | |
5179 | # that says an option was ignored or not supported. | |
5180 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5181 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5182 | # The diagnosis changed in icc 8.0: | |
5183 | # icc: Command line remark: option '-MP' not supported | |
5184 | if (grep 'ignoring option' conftest.err || | |
5185 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5186 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5187 | break | |
5188 | fi | |
5189 | fi | |
5190 | done | |
5191 | ||
5192 | cd .. | |
5193 | rm -rf conftest.dir | |
5194 | else | |
5195 | am_cv_CXX_dependencies_compiler_type=none | |
8107bcf9 PB |
5196 | fi |
5197 | ||
e3f92d3b | 5198 | fi |
5213506e RW |
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5200 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
e3f92d3b MK |
5201 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5202 | ||
5213506e | 5203 | if |
e3f92d3b MK |
5204 | test "x$enable_dependency_tracking" != xno \ |
5205 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5206 | am__fastdepCXX_TRUE= | |
5207 | am__fastdepCXX_FALSE='#' | |
9d577a61 | 5208 | else |
e3f92d3b MK |
5209 | am__fastdepCXX_TRUE='#' |
5210 | am__fastdepCXX_FALSE= | |
158a8e6b AO |
5211 | fi |
5212 | ||
5213 | ||
ee9dd372 | 5214 | |
e3f92d3b | 5215 | |
ed698112 NN |
5216 | if test -n "$ac_tool_prefix"; then |
5217 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
ee9dd372 | 5218 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
5213506e RW |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5220 | $as_echo_n "checking for $ac_word... " >&6; } | |
5221 | if test "${ac_cv_prog_AS+set}" = set; then : | |
5222 | $as_echo_n "(cached) " >&6 | |
ee9dd372 TT |
5223 | else |
5224 | if test -n "$AS"; then | |
5225 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
5226 | else | |
ed698112 NN |
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5228 | for as_dir in $PATH | |
5229 | do | |
5230 | IFS=$as_save_IFS | |
5231 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5232 | for ac_exec_ext in '' $ac_executable_extensions; do |
5233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 5234 | ac_cv_prog_AS="${ac_tool_prefix}as" |
5213506e | 5235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
5236 | break 2 |
5237 | fi | |
5238 | done | |
5213506e RW |
5239 | done |
5240 | IFS=$as_save_IFS | |
ed698112 | 5241 | |
ee9dd372 TT |
5242 | fi |
5243 | fi | |
ed698112 | 5244 | AS=$ac_cv_prog_AS |
ee9dd372 | 5245 | if test -n "$AS"; then |
5213506e RW |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
5247 | $as_echo "$AS" >&6; } | |
ee9dd372 | 5248 | else |
5213506e RW |
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5250 | $as_echo "no" >&6; } | |
ed698112 NN |
5251 | fi |
5252 | ||
5213506e | 5253 | |
ee9dd372 | 5254 | fi |
ed698112 NN |
5255 | if test -z "$ac_cv_prog_AS"; then |
5256 | ac_ct_AS=$AS | |
5257 | # Extract the first word of "as", so it can be a program name with args. | |
5258 | set dummy as; ac_word=$2 | |
5213506e RW |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5260 | $as_echo_n "checking for $ac_word... " >&6; } | |
5261 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | |
5262 | $as_echo_n "(cached) " >&6 | |
ed698112 NN |
5263 | else |
5264 | if test -n "$ac_ct_AS"; then | |
5265 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
5266 | else | |
5267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5268 | for as_dir in $PATH | |
5269 | do | |
5270 | IFS=$as_save_IFS | |
5271 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5272 | for ac_exec_ext in '' $ac_executable_extensions; do |
5273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 5274 | ac_cv_prog_ac_ct_AS="as" |
5213506e | 5275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
5276 | break 2 |
5277 | fi | |
5278 | done | |
5213506e RW |
5279 | done |
5280 | IFS=$as_save_IFS | |
ee9dd372 | 5281 | |
ed698112 NN |
5282 | fi |
5283 | fi | |
5284 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
5285 | if test -n "$ac_ct_AS"; then | |
5213506e RW |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
5287 | $as_echo "$ac_ct_AS" >&6; } | |
ed698112 | 5288 | else |
5213506e RW |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5290 | $as_echo "no" >&6; } | |
ed698112 | 5291 | fi |
ee9dd372 | 5292 | |
5213506e RW |
5293 | if test "x$ac_ct_AS" = x; then |
5294 | AS="" | |
5295 | else | |
5296 | case $cross_compiling:$ac_tool_warned in | |
5297 | yes:) | |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5299 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5300 | ac_tool_warned=yes ;; | |
5301 | esac | |
5302 | AS=$ac_ct_AS | |
5303 | fi | |
ed698112 NN |
5304 | else |
5305 | AS="$ac_cv_prog_AS" | |
5306 | fi | |
ee9dd372 | 5307 | |
d6c122f7 DD |
5308 | if test -n "$ac_tool_prefix"; then |
5309 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. | |
5310 | set dummy ${ac_tool_prefix}ld; ac_word=$2 | |
5213506e RW |
5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5312 | $as_echo_n "checking for $ac_word... " >&6; } | |
5313 | if test "${ac_cv_prog_LD+set}" = set; then : | |
5314 | $as_echo_n "(cached) " >&6 | |
d6c122f7 DD |
5315 | else |
5316 | if test -n "$LD"; then | |
5317 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5318 | else | |
5319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5320 | for as_dir in $PATH | |
5321 | do | |
5322 | IFS=$as_save_IFS | |
5323 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5324 | for ac_exec_ext in '' $ac_executable_extensions; do |
5325 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d6c122f7 | 5326 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
5213506e | 5327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d6c122f7 DD |
5328 | break 2 |
5329 | fi | |
5330 | done | |
5213506e RW |
5331 | done |
5332 | IFS=$as_save_IFS | |
d6c122f7 DD |
5333 | |
5334 | fi | |
5335 | fi | |
5336 | LD=$ac_cv_prog_LD | |
5337 | if test -n "$LD"; then | |
5213506e RW |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5339 | $as_echo "$LD" >&6; } | |
d6c122f7 | 5340 | else |
5213506e RW |
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5342 | $as_echo "no" >&6; } | |
d6c122f7 DD |
5343 | fi |
5344 | ||
5213506e | 5345 | |
d6c122f7 DD |
5346 | fi |
5347 | if test -z "$ac_cv_prog_LD"; then | |
5348 | ac_ct_LD=$LD | |
5349 | # Extract the first word of "ld", so it can be a program name with args. | |
5350 | set dummy ld; ac_word=$2 | |
5213506e RW |
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5352 | $as_echo_n "checking for $ac_word... " >&6; } | |
5353 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then : | |
5354 | $as_echo_n "(cached) " >&6 | |
d6c122f7 DD |
5355 | else |
5356 | if test -n "$ac_ct_LD"; then | |
5357 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. | |
5358 | else | |
5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5360 | for as_dir in $PATH | |
5361 | do | |
5362 | IFS=$as_save_IFS | |
5363 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5364 | for ac_exec_ext in '' $ac_executable_extensions; do |
5365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d6c122f7 | 5366 | ac_cv_prog_ac_ct_LD="ld" |
5213506e | 5367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d6c122f7 DD |
5368 | break 2 |
5369 | fi | |
5370 | done | |
5213506e RW |
5371 | done |
5372 | IFS=$as_save_IFS | |
d6c122f7 DD |
5373 | |
5374 | fi | |
5375 | fi | |
5376 | ac_ct_LD=$ac_cv_prog_ac_ct_LD | |
5377 | if test -n "$ac_ct_LD"; then | |
5213506e RW |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 |
5379 | $as_echo "$ac_ct_LD" >&6; } | |
d6c122f7 | 5380 | else |
5213506e RW |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5382 | $as_echo "no" >&6; } | |
d6c122f7 DD |
5383 | fi |
5384 | ||
5213506e RW |
5385 | if test "x$ac_ct_LD" = x; then |
5386 | LD="" | |
5387 | else | |
5388 | case $cross_compiling:$ac_tool_warned in | |
5389 | yes:) | |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5391 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5392 | ac_tool_warned=yes ;; | |
5393 | esac | |
5394 | LD=$ac_ct_LD | |
5395 | fi | |
d6c122f7 DD |
5396 | else |
5397 | LD="$ac_cv_prog_LD" | |
5398 | fi | |
5399 | ||
ed698112 NN |
5400 | if test -n "$ac_tool_prefix"; then |
5401 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
ee9dd372 | 5402 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5213506e RW |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5404 | $as_echo_n "checking for $ac_word... " >&6; } | |
5405 | if test "${ac_cv_prog_AR+set}" = set; then : | |
5406 | $as_echo_n "(cached) " >&6 | |
ee9dd372 TT |
5407 | else |
5408 | if test -n "$AR"; then | |
5409 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5410 | else | |
ed698112 NN |
5411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5412 | for as_dir in $PATH | |
5413 | do | |
5414 | IFS=$as_save_IFS | |
5415 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5416 | for ac_exec_ext in '' $ac_executable_extensions; do |
5417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 5418 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 5419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
5420 | break 2 |
5421 | fi | |
5422 | done | |
5213506e RW |
5423 | done |
5424 | IFS=$as_save_IFS | |
ed698112 | 5425 | |
ee9dd372 TT |
5426 | fi |
5427 | fi | |
ed698112 | 5428 | AR=$ac_cv_prog_AR |
ee9dd372 | 5429 | if test -n "$AR"; then |
5213506e RW |
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5431 | $as_echo "$AR" >&6; } | |
ee9dd372 | 5432 | else |
5213506e RW |
5433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5434 | $as_echo "no" >&6; } | |
ed698112 NN |
5435 | fi |
5436 | ||
5213506e | 5437 | |
ee9dd372 | 5438 | fi |
ed698112 NN |
5439 | if test -z "$ac_cv_prog_AR"; then |
5440 | ac_ct_AR=$AR | |
5441 | # Extract the first word of "ar", so it can be a program name with args. | |
5442 | set dummy ar; ac_word=$2 | |
5213506e RW |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5444 | $as_echo_n "checking for $ac_word... " >&6; } | |
5445 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
5446 | $as_echo_n "(cached) " >&6 | |
ed698112 NN |
5447 | else |
5448 | if test -n "$ac_ct_AR"; then | |
5449 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5450 | else | |
5451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5452 | for as_dir in $PATH | |
5453 | do | |
5454 | IFS=$as_save_IFS | |
5455 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5456 | for ac_exec_ext in '' $ac_executable_extensions; do |
5457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 5458 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 5459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
5460 | break 2 |
5461 | fi | |
5462 | done | |
5213506e RW |
5463 | done |
5464 | IFS=$as_save_IFS | |
ee9dd372 | 5465 | |
ed698112 NN |
5466 | fi |
5467 | fi | |
5468 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5469 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5471 | $as_echo "$ac_ct_AR" >&6; } | |
ed698112 | 5472 | else |
5213506e RW |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5474 | $as_echo "no" >&6; } | |
ed698112 | 5475 | fi |
ee9dd372 | 5476 | |
5213506e RW |
5477 | if test "x$ac_ct_AR" = x; then |
5478 | AR="" | |
5479 | else | |
5480 | case $cross_compiling:$ac_tool_warned in | |
5481 | yes:) | |
5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5483 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5484 | ac_tool_warned=yes ;; | |
5485 | esac | |
5486 | AR=$ac_ct_AR | |
5487 | fi | |
ed698112 NN |
5488 | else |
5489 | AR="$ac_cv_prog_AR" | |
5490 | fi | |
ee9dd372 | 5491 | |
ed698112 NN |
5492 | if test -n "$ac_tool_prefix"; then |
5493 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ee9dd372 | 5494 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5213506e RW |
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5496 | $as_echo_n "checking for $ac_word... " >&6; } | |
5497 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5498 | $as_echo_n "(cached) " >&6 | |
ee9dd372 TT |
5499 | else |
5500 | if test -n "$RANLIB"; then | |
5501 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5502 | else | |
ed698112 NN |
5503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5504 | for as_dir in $PATH | |
5505 | do | |
5506 | IFS=$as_save_IFS | |
5507 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5508 | for ac_exec_ext in '' $ac_executable_extensions; do |
5509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 5510 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 5511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
5512 | break 2 |
5513 | fi | |
5514 | done | |
5213506e RW |
5515 | done |
5516 | IFS=$as_save_IFS | |
ed698112 | 5517 | |
ee9dd372 TT |
5518 | fi |
5519 | fi | |
ed698112 | 5520 | RANLIB=$ac_cv_prog_RANLIB |
ee9dd372 | 5521 | if test -n "$RANLIB"; then |
5213506e RW |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5523 | $as_echo "$RANLIB" >&6; } | |
ee9dd372 | 5524 | else |
5213506e RW |
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5526 | $as_echo "no" >&6; } | |
ee9dd372 TT |
5527 | fi |
5528 | ||
5213506e | 5529 | |
ed698112 | 5530 | fi |
ee9dd372 | 5531 | if test -z "$ac_cv_prog_RANLIB"; then |
ed698112 | 5532 | ac_ct_RANLIB=$RANLIB |
ee9dd372 TT |
5533 | # Extract the first word of "ranlib", so it can be a program name with args. |
5534 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5536 | $as_echo_n "checking for $ac_word... " >&6; } | |
5537 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5538 | $as_echo_n "(cached) " >&6 | |
ee9dd372 | 5539 | else |
ed698112 NN |
5540 | if test -n "$ac_ct_RANLIB"; then |
5541 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
ee9dd372 | 5542 | else |
ed698112 NN |
5543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5544 | for as_dir in $PATH | |
5545 | do | |
5546 | IFS=$as_save_IFS | |
5547 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5548 | for ac_exec_ext in '' $ac_executable_extensions; do |
5549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 5550 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 5551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
5552 | break 2 |
5553 | fi | |
5554 | done | |
5213506e RW |
5555 | done |
5556 | IFS=$as_save_IFS | |
ed698112 | 5557 | |
ee9dd372 TT |
5558 | fi |
5559 | fi | |
ed698112 NN |
5560 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5561 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5563 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ee9dd372 | 5564 | else |
5213506e RW |
5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5566 | $as_echo "no" >&6; } | |
ee9dd372 TT |
5567 | fi |
5568 | ||
5213506e RW |
5569 | if test "x$ac_ct_RANLIB" = x; then |
5570 | RANLIB=":" | |
5571 | else | |
5572 | case $cross_compiling:$ac_tool_warned in | |
5573 | yes:) | |
5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5575 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5576 | ac_tool_warned=yes ;; | |
5577 | esac | |
5578 | RANLIB=$ac_ct_RANLIB | |
5579 | fi | |
ee9dd372 | 5580 | else |
ed698112 | 5581 | RANLIB="$ac_cv_prog_RANLIB" |
ee9dd372 TT |
5582 | fi |
5583 | ||
474b97ce DK |
5584 | if test -n "$ac_tool_prefix"; then |
5585 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5586 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5588 | $as_echo_n "checking for $ac_word... " >&6; } | |
5589 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
5590 | $as_echo_n "(cached) " >&6 | |
5591 | else | |
5592 | if test -n "$DLLTOOL"; then | |
5593 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5594 | else | |
5595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5596 | for as_dir in $PATH | |
5597 | do | |
5598 | IFS=$as_save_IFS | |
5599 | test -z "$as_dir" && as_dir=. | |
5600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5602 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5604 | break 2 | |
5605 | fi | |
5606 | done | |
5607 | done | |
5608 | IFS=$as_save_IFS | |
5609 | ||
5610 | fi | |
5611 | fi | |
5612 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5613 | if test -n "$DLLTOOL"; then | |
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5615 | $as_echo "$DLLTOOL" >&6; } | |
5616 | else | |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5618 | $as_echo "no" >&6; } | |
5619 | fi | |
5620 | ||
5621 | ||
5622 | fi | |
5623 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5624 | ac_ct_DLLTOOL=$DLLTOOL | |
5625 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5626 | set dummy dlltool; ac_word=$2 | |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5628 | $as_echo_n "checking for $ac_word... " >&6; } | |
5629 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : | |
5630 | $as_echo_n "(cached) " >&6 | |
5631 | else | |
5632 | if test -n "$ac_ct_DLLTOOL"; then | |
5633 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5634 | else | |
5635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5636 | for as_dir in $PATH | |
5637 | do | |
5638 | IFS=$as_save_IFS | |
5639 | test -z "$as_dir" && as_dir=. | |
5640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5642 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5644 | break 2 | |
5645 | fi | |
5646 | done | |
5647 | done | |
5648 | IFS=$as_save_IFS | |
5649 | ||
5650 | fi | |
5651 | fi | |
5652 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5653 | if test -n "$ac_ct_DLLTOOL"; then | |
5654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5655 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5656 | else | |
5657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5658 | $as_echo "no" >&6; } | |
5659 | fi | |
5660 | ||
5661 | if test "x$ac_ct_DLLTOOL" = x; then | |
5662 | DLLTOOL=":" | |
5663 | else | |
5664 | case $cross_compiling:$ac_tool_warned in | |
5665 | yes:) | |
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5667 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5668 | ac_tool_warned=yes ;; | |
5669 | esac | |
5670 | DLLTOOL=$ac_ct_DLLTOOL | |
5671 | fi | |
5672 | else | |
5673 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5674 | fi | |
5675 | ||
02809848 PB |
5676 | for ac_prog in gawk mawk nawk awk |
5677 | do | |
5678 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5679 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5681 | $as_echo_n "checking for $ac_word... " >&6; } | |
5682 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
5683 | $as_echo_n "(cached) " >&6 | |
02809848 PB |
5684 | else |
5685 | if test -n "$AWK"; then | |
5686 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5687 | else | |
5688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5689 | for as_dir in $PATH | |
5690 | do | |
5691 | IFS=$as_save_IFS | |
5692 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5693 | for ac_exec_ext in '' $ac_executable_extensions; do |
5694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
02809848 | 5695 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 5696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
02809848 PB |
5697 | break 2 |
5698 | fi | |
5699 | done | |
5213506e RW |
5700 | done |
5701 | IFS=$as_save_IFS | |
02809848 PB |
5702 | |
5703 | fi | |
5704 | fi | |
5705 | AWK=$ac_cv_prog_AWK | |
5706 | if test -n "$AWK"; then | |
5213506e RW |
5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
5708 | $as_echo "$AWK" >&6; } | |
02809848 | 5709 | else |
5213506e RW |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5711 | $as_echo "no" >&6; } | |
02809848 PB |
5712 | fi |
5713 | ||
5213506e | 5714 | |
02809848 PB |
5715 | test -n "$AWK" && break |
5716 | done | |
5717 | ||
97b8365c | 5718 | for ac_prog in jar fastjar gjar |
76c6ea0c TT |
5719 | do |
5720 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5721 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5723 | $as_echo_n "checking for $ac_word... " >&6; } | |
5724 | if test "${ac_cv_prog_JAR+set}" = set; then : | |
5725 | $as_echo_n "(cached) " >&6 | |
76c6ea0c TT |
5726 | else |
5727 | if test -n "$JAR"; then | |
5728 | ac_cv_prog_JAR="$JAR" # Let the user override the test. | |
5729 | else | |
5730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5731 | for as_dir in $PATH | |
5732 | do | |
5733 | IFS=$as_save_IFS | |
5734 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5735 | for ac_exec_ext in '' $ac_executable_extensions; do |
5736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
76c6ea0c | 5737 | ac_cv_prog_JAR="$ac_prog" |
5213506e | 5738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
76c6ea0c TT |
5739 | break 2 |
5740 | fi | |
5741 | done | |
5213506e RW |
5742 | done |
5743 | IFS=$as_save_IFS | |
76c6ea0c TT |
5744 | |
5745 | fi | |
5746 | fi | |
5747 | JAR=$ac_cv_prog_JAR | |
5748 | if test -n "$JAR"; then | |
5213506e RW |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 |
5750 | $as_echo "$JAR" >&6; } | |
76c6ea0c | 5751 | else |
5213506e RW |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5753 | $as_echo "no" >&6; } | |
76c6ea0c TT |
5754 | fi |
5755 | ||
5213506e | 5756 | |
76c6ea0c TT |
5757 | test -n "$JAR" && break |
5758 | done | |
02809848 | 5759 | test -n "$JAR" || JAR="no" |
ee9dd372 | 5760 | |
02809848 PB |
5761 | # Extract the first word of "zip", so it can be a program name with args. |
5762 | set dummy zip; ac_word=$2 | |
5213506e RW |
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5764 | $as_echo_n "checking for $ac_word... " >&6; } | |
5765 | if test "${ac_cv_path_ZIP+set}" = set; then : | |
5766 | $as_echo_n "(cached) " >&6 | |
02809848 PB |
5767 | else |
5768 | case $ZIP in | |
5769 | [\\/]* | ?:[\\/]*) | |
5770 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. | |
5771 | ;; | |
5772 | *) | |
5773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5774 | for as_dir in $PATH | |
5775 | do | |
5776 | IFS=$as_save_IFS | |
5777 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5778 | for ac_exec_ext in '' $ac_executable_extensions; do |
5779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
02809848 | 5780 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 5781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
02809848 PB |
5782 | break 2 |
5783 | fi | |
5784 | done | |
5213506e RW |
5785 | done |
5786 | IFS=$as_save_IFS | |
02809848 PB |
5787 | |
5788 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no" | |
5789 | ;; | |
5790 | esac | |
5791 | fi | |
5792 | ZIP=$ac_cv_path_ZIP | |
5793 | if test -n "$ZIP"; then | |
5213506e RW |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 |
5795 | $as_echo "$ZIP" >&6; } | |
02809848 | 5796 | else |
5213506e RW |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5798 | $as_echo "no" >&6; } | |
02809848 PB |
5799 | fi |
5800 | ||
5213506e | 5801 | |
02809848 PB |
5802 | # Extract the first word of "unzip", so it can be a program name with args. |
5803 | set dummy unzip; ac_word=$2 | |
5213506e RW |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5805 | $as_echo_n "checking for $ac_word... " >&6; } | |
5806 | if test "${ac_cv_path_UNZIP+set}" = set; then : | |
5807 | $as_echo_n "(cached) " >&6 | |
02809848 PB |
5808 | else |
5809 | case $UNZIP in | |
5810 | [\\/]* | ?:[\\/]*) | |
5811 | ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. | |
5812 | ;; | |
5813 | *) | |
5814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5815 | for as_dir in $PATH | |
5816 | do | |
5817 | IFS=$as_save_IFS | |
5818 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5819 | for ac_exec_ext in '' $ac_executable_extensions; do |
5820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
02809848 | 5821 | ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 5822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
02809848 PB |
5823 | break 2 |
5824 | fi | |
5825 | done | |
5213506e RW |
5826 | done |
5827 | IFS=$as_save_IFS | |
02809848 PB |
5828 | |
5829 | test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip" | |
5830 | ;; | |
5831 | esac | |
5832 | fi | |
5833 | UNZIP=$ac_cv_path_UNZIP | |
5834 | if test -n "$UNZIP"; then | |
5213506e RW |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 |
5836 | $as_echo "$UNZIP" >&6; } | |
02809848 | 5837 | else |
5213506e RW |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5839 | $as_echo "no" >&6; } | |
02809848 PB |
5840 | fi |
5841 | ||
a968c714 | 5842 | |
5213506e | 5843 | |
a968c714 TT |
5844 | # We need a jar that supports -@. This is a GNU extension. |
5845 | if test "$JAR" != no; then | |
5846 | rm -f config-test.jar | |
5847 | echo $srcdir/configure.ac | $JAR -cf@ config-test.jar | |
5848 | if test -f config-test.jar; then | |
5849 | rm -f config-test.jar | |
5850 | else | |
5851 | JAR=no | |
5852 | fi | |
5853 | fi | |
5854 | ||
acd724f6 | 5855 | # Prefer the jar we found, but fall back to our jar script. |
02809848 | 5856 | if test "$JAR" = no; then |
acd724f6 | 5857 | if test "$ZIP" = no; then |
5213506e | 5858 | as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5 |
acd724f6 TT |
5859 | else |
5860 | # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava | |
5861 | JAR=`pwd`/scripts/jar | |
02809848 | 5862 | fi |
02809848 PB |
5863 | fi |
5864 | ||
a3ffcff3 | 5865 | |
ee9dd372 TT |
5866 | |
5867 | ||
5213506e RW |
5868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
5869 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
5870 | # Check whether --enable-maintainer-mode was given. | |
5871 | if test "${enable_maintainer_mode+set}" = set; then : | |
5872 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee9dd372 TT |
5873 | else |
5874 | USE_MAINTAINER_MODE=no | |
5213506e | 5875 | fi |
ee9dd372 | 5876 | |
5213506e RW |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
5878 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
5879 | if test $USE_MAINTAINER_MODE = yes; then | |
ee9dd372 TT |
5880 | MAINTAINER_MODE_TRUE= |
5881 | MAINTAINER_MODE_FALSE='#' | |
5882 | else | |
5883 | MAINTAINER_MODE_TRUE='#' | |
5884 | MAINTAINER_MODE_FALSE= | |
5885 | fi | |
e3f92d3b | 5886 | |
ee9dd372 | 5887 | MAINT=$MAINTAINER_MODE_TRUE |
36609570 | 5888 | |
0659e0e3 | 5889 | |
ee9dd372 | 5890 | |
ee9dd372 | 5891 | |
ee9dd372 TT |
5892 | |
5893 | # configure.host sets the following important variables | |
5894 | # libgcj_cflags - host specific C compiler flags | |
5895 | # libgcj_cxxflags - host specific C++ compiler flags | |
5896 | # libgcj_javaflags - host specific Java compiler flags | |
c4f0333b | 5897 | # libgcj_sublib_ltflags - host specific Libtool flags |
474b97ce DK |
5898 | # libgcj_sublib_core_extra_deps - host specific extra |
5899 | # dependencies for core sublib | |
5900 | # (these last two only used when building sublibs) | |
6a92b6c7 | 5901 | # and a number of others; see the list at the start of the file. |
ee9dd372 TT |
5902 | |
5903 | libgcj_cflags= | |
5904 | libgcj_cxxflags= | |
5905 | libgcj_javaflags= | |
c4f0333b | 5906 | libgcj_sublib_ltflags= |
474b97ce | 5907 | libgcj_sublib_core_extra_deps= |
ee9dd372 | 5908 | |
2ee7cd3e | 5909 | . ${srcdir}/configure.host |
ee9dd372 | 5910 | |
5213506e RW |
5911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5912 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5913 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
5914 | $as_echo_n "(cached) " >&6 | |
76b972d6 L |
5915 | else |
5916 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5917 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5918 | acl_cv_prog_gnu_ld=yes | |
5919 | else | |
5920 | acl_cv_prog_gnu_ld=no | |
5921 | fi | |
5922 | fi | |
5213506e RW |
5923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
5924 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
76b972d6 L |
5925 | with_gnu_ld=$acl_cv_prog_gnu_ld |
5926 | ||
5213506e RW |
5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5 |
5928 | $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; } | |
5929 | if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then : | |
5930 | $as_echo_n "(cached) " >&6 | |
76b972d6 L |
5931 | else |
5932 | ||
5933 | acl_cv_prog_gnu_ld_symbolic=no | |
5934 | ||
5935 | if test x"$with_gnu_ld" = x"yes"; then | |
5936 | if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then | |
5937 | acl_cv_prog_gnu_ld_symbolic=yes | |
5938 | fi | |
5939 | fi | |
5940 | fi | |
5213506e RW |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5 |
5942 | $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; } | |
76b972d6 L |
5943 | if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then |
5944 | SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions" | |
5945 | else | |
5946 | SYMBOLIC_LDFLAGS='' | |
5947 | fi | |
5948 | ||
5949 | libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS | |
5950 | if test -z "$libgcj_ld_symbolic"; then | |
5951 | libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS | |
5952 | fi | |
5953 | ||
ee9dd372 TT |
5954 | LIBGCJ_CFLAGS="${libgcj_cflags}" |
5955 | LIBGCJ_CXXFLAGS="${libgcj_cxxflags}" | |
5956 | LIBGCJ_JAVAFLAGS="${libgcj_javaflags}" | |
c4f0333b | 5957 | LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}" |
474b97ce | 5958 | LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}" |
36739040 | 5959 | LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}" |
76b972d6 L |
5960 | LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}" |
5961 | ||
36739040 | 5962 | |
ee9dd372 TT |
5963 | |
5964 | ||
5965 | ||
5966 | ||
c4f0333b | 5967 | |
474b97ce | 5968 | |
16dab3e2 TF |
5969 | # Only use libltdl for non-newlib builds. |
5970 | if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then | |
5213506e RW |
5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
5972 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
16dab3e2 TF |
5973 | library_names_spec= |
5974 | libname_spec='lib$name' | |
5975 | soname_spec= | |
5976 | shrext=".so" | |
5977 | postinstall_cmds= | |
5978 | postuninstall_cmds= | |
5979 | finish_cmds= | |
5980 | finish_eval= | |
5981 | shlibpath_var= | |
5982 | shlibpath_overrides_runpath=unknown | |
5983 | version_type=none | |
5984 | dynamic_linker="$host_os ld.so" | |
5985 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
5986 | if test "$GCC" = yes; then | |
ab408bac | 5987 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"` |
16dab3e2 TF |
5988 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
5989 | # if the path contains ";" then we assume it to be the separator | |
5990 | # otherwise default to the standard path separator (i.e. ":") - it is | |
5991 | # assumed that no part of a normal pathname contains ";" but that should | |
5992 | # okay in the real world where ";" in dirpaths is itself problematic. | |
ab408bac | 5993 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` |
16dab3e2 | 5994 | else |
ab408bac | 5995 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` |
16dab3e2 TF |
5996 | fi |
5997 | else | |
5998 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
5999 | fi | |
6000 | need_lib_prefix=unknown | |
6001 | hardcode_into_libs=no | |
6002 | ||
6003 | # when you set need_version to no, make sure it does not cause -set_version | |
6004 | # flags to be left without arguments | |
6005 | need_version=unknown | |
6006 | ||
6007 | case $host_os in | |
6008 | aix3*) | |
6009 | version_type=linux | |
6010 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
6011 | shlibpath_var=LIBPATH | |
6012 | ||
6013 | # AIX 3 has no versioning support, so we append a major version to the name. | |
6014 | soname_spec='${libname}${release}${shared_ext}$major' | |
6015 | ;; | |
6016 | ||
ed44a2c7 | 6017 | aix[4-9]*) |
16dab3e2 TF |
6018 | version_type=linux |
6019 | need_lib_prefix=no | |
6020 | need_version=no | |
6021 | hardcode_into_libs=yes | |
6022 | if test "$host_cpu" = ia64; then | |
6023 | # AIX 5 supports IA64 | |
6024 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
6025 | shlibpath_var=LD_LIBRARY_PATH | |
6026 | else | |
6027 | # With GCC up to 2.95.x, collect2 would create an import file | |
6028 | # for dependence libraries. The import file would start with | |
6029 | # the line `#! .'. This would cause the generated library to | |
6030 | # depend on `.', always an invalid library. This was fixed in | |
6031 | # development snapshots of GCC prior to 3.0. | |
6032 | case $host_os in | |
6033 | aix4 | aix4.[01] | aix4.[01].*) | |
6034 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
6035 | echo ' yes ' | |
6036 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
6037 | : | |
6038 | else | |
6039 | can_build_shared=no | |
6040 | fi | |
6041 | ;; | |
6042 | esac | |
6043 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
6044 | # soname into executable. Probably we can add versioning support to | |
6045 | # collect2, so additional links can be useful in future. | |
6046 | if test "$aix_use_runtimelinking" = yes; then | |
6047 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
6048 | # instead of lib<name>.a to let people know that these are not | |
6049 | # typical AIX shared libraries. | |
6050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6051 | else | |
6052 | # We preserve .a as extension for shared libraries through AIX4.2 | |
6053 | # and later when we are not doing run time linking. | |
6054 | library_names_spec='${libname}${release}.a $libname.a' | |
6055 | soname_spec='${libname}${release}${shared_ext}$major' | |
6056 | fi | |
6057 | shlibpath_var=LIBPATH | |
6058 | fi | |
6059 | ;; | |
6060 | ||
6061 | amigaos*) | |
6062 | library_names_spec='$libname.ixlibrary $libname.a' | |
6063 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
6064 | 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' | |
6065 | ;; | |
6066 | ||
6067 | beos*) | |
6068 | library_names_spec='${libname}${shared_ext}' | |
6069 | dynamic_linker="$host_os ld.so" | |
6070 | shlibpath_var=LIBRARY_PATH | |
6071 | ;; | |
6072 | ||
6073 | bsdi4*) | |
6074 | version_type=linux | |
6075 | need_version=no | |
6076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6077 | soname_spec='${libname}${release}${shared_ext}$major' | |
6078 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
6079 | shlibpath_var=LD_LIBRARY_PATH | |
6080 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
6081 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
6082 | # the default ld.so.conf also contains /usr/contrib/lib and | |
6083 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
6084 | # libtool to hard-code these into programs | |
6085 | ;; | |
6086 | ||
6087 | cygwin* | mingw* | pw32*) | |
6088 | version_type=windows | |
6089 | shrext=".dll" | |
6090 | need_version=no | |
6091 | need_lib_prefix=no | |
6092 | ||
6093 | case $GCC,$host_os in | |
6094 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
6095 | library_names_spec='$libname.dll.a' | |
6096 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
6097 | postinstall_cmds='base_file=`basename \${file}`~ | |
6098 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
6099 | dldir=$destdir/`dirname \$dlpath`~ | |
6100 | test -d \$dldir || mkdir -p \$dldir~ | |
6101 | $install_prog $dir/$dlname \$dldir/$dlname' | |
6102 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
6103 | dlpath=$dir/\$dldll~ | |
6104 | $rm \$dlpath' | |
6105 | shlibpath_overrides_runpath=yes | |
6106 | ||
6107 | case $host_os in | |
6108 | cygwin*) | |
6109 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
ab408bac | 6110 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
16dab3e2 TF |
6111 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
6112 | ;; | |
6113 | mingw*) | |
6114 | # MinGW DLLs use traditional 'lib' prefix | |
ab408bac JJ |
6115 | soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
6116 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"` | |
16dab3e2 TF |
6117 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
6118 | # It is most probably a Windows format PATH printed by | |
6119 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
6120 | # path with ; separators, and with drive letters. We can handle the | |
6121 | # drive letters (cygwin fileutils understands them), so leave them, | |
6122 | # especially as we might pass files found there to a mingw objdump, | |
6123 | # which wouldn't understand a cygwinified path. Ahh. | |
ab408bac | 6124 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` |
16dab3e2 | 6125 | else |
ab408bac | 6126 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` |
16dab3e2 TF |
6127 | fi |
6128 | ;; | |
6129 | pw32*) | |
6130 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
ab408bac | 6131 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}' |
16dab3e2 TF |
6132 | ;; |
6133 | esac | |
6134 | ;; | |
6135 | ||
6136 | *) | |
ab408bac | 6137 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
16dab3e2 TF |
6138 | ;; |
6139 | esac | |
6140 | dynamic_linker='Win32 ld.exe' | |
6141 | # FIXME: first we should search . and the directory the executable is in | |
6142 | shlibpath_var=PATH | |
6143 | ;; | |
6144 | ||
6145 | darwin* | rhapsody*) | |
6146 | dynamic_linker="$host_os dyld" | |
6147 | version_type=darwin | |
6148 | need_lib_prefix=no | |
6149 | need_version=no | |
6150 | # FIXME: Relying on posixy $() will cause problems for | |
6151 | # cross-compilation, but unfortunately the echo tests do not | |
6152 | # yet detect zsh echo's removal of \ escapes. | |
6153 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
6154 | soname_spec='${libname}${release}${major}$shared_ext' | |
6155 | shlibpath_overrides_runpath=yes | |
6156 | shlibpath_var=DYLD_LIBRARY_PATH | |
6157 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' | |
6158 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
6159 | if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then | |
6160 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
6161 | fi | |
6162 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
6163 | ;; | |
6164 | ||
6165 | dgux*) | |
6166 | version_type=linux | |
6167 | need_lib_prefix=no | |
6168 | need_version=no | |
6169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
6170 | soname_spec='${libname}${release}${shared_ext}$major' | |
6171 | shlibpath_var=LD_LIBRARY_PATH | |
6172 | ;; | |
6173 | ||
6174 | freebsd1*) | |
6175 | dynamic_linker=no | |
6176 | ;; | |
6177 | ||
6178 | freebsd*) | |
6179 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
6180 | version_type=freebsd-$objformat | |
6181 | case $version_type in | |
6182 | freebsd-elf*) | |
6183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
6184 | need_version=no | |
6185 | need_lib_prefix=no | |
6186 | ;; | |
6187 | freebsd-*) | |
6188 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
6189 | need_version=yes | |
6190 | ;; | |
6191 | esac | |
6192 | shlibpath_var=LD_LIBRARY_PATH | |
6193 | case $host_os in | |
6194 | freebsd2*) | |
6195 | shlibpath_overrides_runpath=yes | |
6196 | ;; | |
6197 | freebsd3.01* | freebsdelf3.01*) | |
6198 | shlibpath_overrides_runpath=yes | |
6199 | hardcode_into_libs=yes | |
6200 | ;; | |
6201 | *) # from 3.2 on | |
6202 | shlibpath_overrides_runpath=no | |
6203 | hardcode_into_libs=yes | |
6204 | ;; | |
6205 | esac | |
6206 | ;; | |
ee9dd372 | 6207 | |
16dab3e2 TF |
6208 | gnu*) |
6209 | version_type=linux | |
6210 | need_lib_prefix=no | |
6211 | need_version=no | |
6212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
6213 | soname_spec='${libname}${release}${shared_ext}$major' | |
6214 | shlibpath_var=LD_LIBRARY_PATH | |
6215 | hardcode_into_libs=yes | |
6216 | ;; | |
6217 | ||
6218 | hpux9* | hpux10* | hpux11*) | |
6219 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
6220 | # link against other versions. | |
6221 | version_type=sunos | |
6222 | need_lib_prefix=no | |
6223 | need_version=no | |
6224 | case "$host_cpu" in | |
6225 | ia64*) | |
6226 | shrext='.so' | |
6227 | hardcode_into_libs=yes | |
6228 | dynamic_linker="$host_os dld.so" | |
6229 | shlibpath_var=LD_LIBRARY_PATH | |
6230 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
6231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6232 | soname_spec='${libname}${release}${shared_ext}$major' | |
6233 | if test "X$HPUX_IA64_MODE" = X32; then | |
6234 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
6235 | else | |
6236 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
6237 | fi | |
6238 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
6239 | ;; | |
6240 | hppa*64*) | |
6241 | shrext='.sl' | |
6242 | hardcode_into_libs=yes | |
6243 | dynamic_linker="$host_os dld.sl" | |
6244 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
6245 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
6246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6247 | soname_spec='${libname}${release}${shared_ext}$major' | |
6248 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
6249 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
6250 | ;; | |
6251 | *) | |
6252 | shrext='.sl' | |
6253 | dynamic_linker="$host_os dld.sl" | |
6254 | shlibpath_var=SHLIB_PATH | |
6255 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
6256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6257 | soname_spec='${libname}${release}${shared_ext}$major' | |
6258 | ;; | |
6259 | esac | |
6260 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
6261 | postinstall_cmds='chmod 555 $lib' | |
6262 | ;; | |
6263 | ||
6264 | irix5* | irix6* | nonstopux*) | |
6265 | case $host_os in | |
6266 | nonstopux*) version_type=nonstopux ;; | |
6267 | *) | |
6268 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6269 | version_type=linux | |
6270 | else | |
6271 | version_type=irix | |
6272 | fi ;; | |
6273 | esac | |
6274 | need_lib_prefix=no | |
6275 | need_version=no | |
6276 | soname_spec='${libname}${release}${shared_ext}$major' | |
6277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
6278 | case $host_os in | |
6279 | irix5* | nonstopux*) | |
6280 | libsuff= shlibsuff= | |
6281 | ;; | |
6282 | *) | |
6283 | case $LD in # libtool.m4 will add one of these switches to LD | |
6284 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
6285 | libsuff= shlibsuff= libmagic=32-bit;; | |
6286 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
6287 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
6288 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
6289 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
6290 | *) libsuff= shlibsuff= libmagic=never-match;; | |
6291 | esac | |
6292 | ;; | |
6293 | esac | |
6294 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
6295 | shlibpath_overrides_runpath=no | |
6296 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
6297 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
6298 | hardcode_into_libs=yes | |
6299 | ;; | |
6300 | ||
6301 | # No shared lib support for Linux oldld, aout, or coff. | |
6302 | linux*oldld* | linux*aout* | linux*coff*) | |
6303 | dynamic_linker=no | |
6304 | ;; | |
6305 | ||
6306 | # This must be Linux ELF. | |
94ba45df | 6307 | linux*|k*bsd*-gnu) |
16dab3e2 TF |
6308 | version_type=linux |
6309 | need_lib_prefix=no | |
6310 | need_version=no | |
6311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6312 | soname_spec='${libname}${release}${shared_ext}$major' | |
6313 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
6314 | shlibpath_var=LD_LIBRARY_PATH | |
6315 | shlibpath_overrides_runpath=no | |
6316 | # This implies no fast_install, which is unacceptable. | |
6317 | # Some rework will be needed to allow for fast_install | |
6318 | # before this can be enabled. | |
6319 | hardcode_into_libs=yes | |
6320 | ||
6321 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
6322 | # powerpc, because MkLinux only supported shared libraries with the | |
6323 | # GNU dynamic linker. Since this was broken with cross compilers, | |
6324 | # most powerpc-linux boxes support dynamic linking these days and | |
6325 | # people can always --disable-shared, the test was removed, and we | |
6326 | # assume the GNU/Linux dynamic linker is in use. | |
6327 | dynamic_linker='GNU/Linux ld.so' | |
6328 | ;; | |
6329 | ||
6330 | netbsd*) | |
6331 | version_type=sunos | |
6332 | need_lib_prefix=no | |
6333 | need_version=no | |
6334 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6335 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
6336 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
6337 | dynamic_linker='NetBSD (a.out) ld.so' | |
6338 | else | |
6339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' | |
6340 | soname_spec='${libname}${release}${shared_ext}$major' | |
6341 | dynamic_linker='NetBSD ld.elf_so' | |
6342 | fi | |
6343 | shlibpath_var=LD_LIBRARY_PATH | |
6344 | shlibpath_overrides_runpath=yes | |
6345 | hardcode_into_libs=yes | |
6346 | ;; | |
6347 | ||
6348 | newsos6) | |
6349 | version_type=linux | |
6350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6351 | shlibpath_var=LD_LIBRARY_PATH | |
6352 | shlibpath_overrides_runpath=yes | |
6353 | ;; | |
6354 | ||
6355 | nto-qnx) | |
6356 | version_type=linux | |
6357 | need_lib_prefix=no | |
6358 | need_version=no | |
6359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6360 | soname_spec='${libname}${release}${shared_ext}$major' | |
6361 | shlibpath_var=LD_LIBRARY_PATH | |
6362 | shlibpath_overrides_runpath=yes | |
6363 | ;; | |
6364 | ||
6365 | openbsd*) | |
6366 | version_type=sunos | |
6367 | need_lib_prefix=no | |
6368 | need_version=no | |
6369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
6370 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
6371 | shlibpath_var=LD_LIBRARY_PATH | |
6372 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6373 | case $host_os in | |
6374 | openbsd2.[89] | openbsd2.[89].*) | |
6375 | shlibpath_overrides_runpath=no | |
6376 | ;; | |
6377 | *) | |
6378 | shlibpath_overrides_runpath=yes | |
6379 | ;; | |
6380 | esac | |
6381 | else | |
6382 | shlibpath_overrides_runpath=yes | |
6383 | fi | |
6384 | ;; | |
6385 | ||
6386 | os2*) | |
6387 | libname_spec='$name' | |
6388 | shrext=".dll" | |
6389 | need_lib_prefix=no | |
6390 | library_names_spec='$libname${shared_ext} $libname.a' | |
6391 | dynamic_linker='OS/2 ld.exe' | |
6392 | shlibpath_var=LIBPATH | |
6393 | ;; | |
6394 | ||
6395 | osf3* | osf4* | osf5*) | |
6396 | version_type=osf | |
6397 | need_lib_prefix=no | |
6398 | need_version=no | |
6399 | soname_spec='${libname}${release}${shared_ext}$major' | |
6400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6401 | shlibpath_var=LD_LIBRARY_PATH | |
6402 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
6403 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
6404 | ;; | |
6405 | ||
6406 | sco3.2v5*) | |
6407 | version_type=osf | |
6408 | soname_spec='${libname}${release}${shared_ext}$major' | |
6409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6410 | shlibpath_var=LD_LIBRARY_PATH | |
6411 | ;; | |
6412 | ||
6413 | solaris*) | |
6414 | version_type=linux | |
6415 | need_lib_prefix=no | |
6416 | need_version=no | |
6417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6418 | soname_spec='${libname}${release}${shared_ext}$major' | |
6419 | shlibpath_var=LD_LIBRARY_PATH | |
6420 | shlibpath_overrides_runpath=yes | |
6421 | hardcode_into_libs=yes | |
6422 | # ldd complains unless libraries are executable | |
6423 | postinstall_cmds='chmod +x $lib' | |
6424 | ;; | |
6425 | ||
6426 | sunos4*) | |
6427 | version_type=sunos | |
6428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
6429 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
6430 | shlibpath_var=LD_LIBRARY_PATH | |
6431 | shlibpath_overrides_runpath=yes | |
6432 | if test "$with_gnu_ld" = yes; then | |
6433 | need_lib_prefix=no | |
6434 | fi | |
6435 | need_version=yes | |
6436 | ;; | |
6437 | ||
6438 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6439 | version_type=linux | |
6440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6441 | soname_spec='${libname}${release}${shared_ext}$major' | |
6442 | shlibpath_var=LD_LIBRARY_PATH | |
6443 | case $host_vendor in | |
6444 | sni) | |
6445 | shlibpath_overrides_runpath=no | |
6446 | need_lib_prefix=no | |
6447 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
6448 | runpath_var=LD_RUN_PATH | |
6449 | ;; | |
6450 | siemens) | |
6451 | need_lib_prefix=no | |
6452 | ;; | |
6453 | motorola) | |
6454 | need_lib_prefix=no | |
6455 | need_version=no | |
6456 | shlibpath_overrides_runpath=no | |
6457 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
6458 | ;; | |
6459 | esac | |
6460 | ;; | |
6461 | ||
6462 | sysv4*MP*) | |
6463 | if test -d /usr/nec ;then | |
6464 | version_type=linux | |
6465 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
6466 | soname_spec='$libname${shared_ext}.$major' | |
6467 | shlibpath_var=LD_LIBRARY_PATH | |
6468 | fi | |
6469 | ;; | |
6470 | ||
6471 | uts4*) | |
6472 | version_type=linux | |
6473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
6474 | soname_spec='${libname}${release}${shared_ext}$major' | |
6475 | shlibpath_var=LD_LIBRARY_PATH | |
6476 | ;; | |
6477 | ||
6478 | *) | |
6479 | dynamic_linker=no | |
6480 | ;; | |
6481 | esac | |
5213506e RW |
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
6483 | $as_echo "$dynamic_linker" >&6; } | |
16dab3e2 TF |
6484 | test "$dynamic_linker" = no && can_build_shared=no |
6485 | ||
6486 | ||
5213506e RW |
6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5 |
6488 | $as_echo_n "checking which variable specifies run-time library path... " >&6; } | |
6489 | if test "${libltdl_cv_shlibpath_var+set}" = set; then : | |
6490 | $as_echo_n "(cached) " >&6 | |
16dab3e2 TF |
6491 | else |
6492 | libltdl_cv_shlibpath_var="$shlibpath_var" | |
6493 | fi | |
5213506e RW |
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5 |
6495 | $as_echo "$libltdl_cv_shlibpath_var" >&6; } | |
16dab3e2 TF |
6496 | if test -n "$libltdl_cv_shlibpath_var"; then |
6497 | ||
6498 | cat >>confdefs.h <<_ACEOF | |
6499 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | |
6500 | _ACEOF | |
6501 | ||
6502 | fi | |
6503 | ||
6504 | fi | |
6505 | ||
5213506e | 6506 | ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h" |
ee9dd372 | 6507 | |
b0fa81ee | 6508 | |
6a92b6c7 DK |
6509 | # Possibly build libgcj as many sub-libraries. |
6510 | # Check whether --enable-libgcj-sublibs was given. | |
6511 | if test "${enable_libgcj_sublibs+set}" = set; then : | |
6512 | enableval=$enable_libgcj_sublibs; | |
6513 | fi | |
6514 | ||
6515 | ||
6516 | if test -z "$enable_libgcj_sublibs"; then | |
6517 | enable_libgcj_sublibs=$enable_libgcj_sublibs_default | |
6518 | fi | |
6519 | if test "$enable_libgcj_sublibs" = yes; then | |
6520 | BUILD_SUBLIBS_TRUE= | |
6521 | BUILD_SUBLIBS_FALSE='#' | |
6522 | else | |
6523 | BUILD_SUBLIBS_TRUE='#' | |
6524 | BUILD_SUBLIBS_FALSE= | |
6525 | fi | |
6526 | ||
6527 | if test "$enable_libgcj_sublibs" = yes ; then | |
6528 | # In theory we could make do with only one override and simply | |
6529 | # tag "_bc" onto the end of it when we use it to generate the | |
6530 | # spec, but that's an ugly thing to do when there are multiple | |
6531 | # words in the string and you're relying on the ordering to | |
6532 | # append the correct one. | |
6533 | libgcj_spec_lgcj_override="-lgcj-noncore -lgcj" | |
6534 | libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc" | |
6535 | fi | |
6536 | ||
6537 | ||
b0fa81ee TT |
6538 | # See if the user has requested runtime debugging. |
6539 | LIBGCJDEBUG="disable" | |
6540 | ||
5213506e RW |
6541 | # Check whether --enable-libgcj-debug was given. |
6542 | if test "${enable_libgcj_debug+set}" = set; then : | |
6543 | enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then | |
b0fa81ee | 6544 | |
5213506e | 6545 | $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h |
b0fa81ee TT |
6546 | |
6547 | LIBGCJDEBUG="enable" | |
6548 | fi | |
5213506e RW |
6549 | fi |
6550 | ||
b0fa81ee | 6551 | |
97b8365c | 6552 | |
5213506e RW |
6553 | # Check whether --with-escher was given. |
6554 | if test "${with_escher+set}" = set; then : | |
6555 | withval=$with_escher; | |
6556 | fi | |
97b8365c | 6557 | |
97b8365c TT |
6558 | case "$with_escher" in |
6559 | "") | |
6560 | use_escher=false | |
6561 | ;; | |
6562 | "no") | |
6563 | use_escher=false | |
6564 | ;; | |
6565 | "yes") | |
5213506e | 6566 | as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5 |
97b8365c TT |
6567 | ;; |
6568 | *) | |
6569 | use_escher=true | |
6570 | ;; | |
6571 | esac | |
6572 | ||
b0fa81ee | 6573 | # Determine which AWT peer libraries to build |
5213506e RW |
6574 | # Check whether --enable-java-awt was given. |
6575 | if test "${enable_java_awt+set}" = set; then : | |
6576 | enableval=$enable_java_awt; | |
6577 | fi | |
b0fa81ee | 6578 | |
b0fa81ee TT |
6579 | |
6580 | peerlibs="`echo ${enable_java_awt} | tr ',' ' '`" | |
6581 | use_xlib_awt="" | |
6582 | use_gtk_awt="" | |
ab3fa9d3 | 6583 | use_qt_awt="" |
97b8365c | 6584 | use_x_awt="" |
b0fa81ee TT |
6585 | # The default toolkit to use is the first one specified. |
6586 | TOOLKIT= | |
6587 | ||
6588 | ||
6589 | for peer in $peerlibs ; do | |
6590 | case $peer in | |
6591 | xlib) | |
6592 | if test "$no_x" = yes; then | |
6593 | echo "*** xlib peers requested but no X library available" 1>&2 | |
6594 | exit 1 | |
6595 | else | |
9365047a TT |
6596 | use_xlib_awt="yes" |
6597 | if test -z "$TOOLKIT"; then | |
6598 | TOOLKIT=gnu.awt.xlib.XToolkit | |
6599 | fi | |
b0fa81ee TT |
6600 | fi |
6601 | ;; | |
6602 | gtk) | |
6603 | if test "$no_x" = yes; then | |
ab3fa9d3 | 6604 | echo "*** gtk peers requested but no X library available" 1>&2 |
b0fa81ee TT |
6605 | exit 1 |
6606 | else | |
6607 | use_gtk_awt=yes | |
6608 | if test -z "$TOOLKIT"; then | |
6609 | TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit | |
6610 | fi | |
6611 | fi | |
6612 | ;; | |
ab3fa9d3 TT |
6613 | qt) |
6614 | if test "$no_x" = yes; then | |
6615 | # Perhaps we should admit the possibility of embedded Qt. | |
6616 | echo "*** Qt peers requested but no X library available" 1>&2 | |
6617 | exit 1 | |
6618 | else | |
6619 | use_qt_awt=yes | |
6620 | if test -z "$TOOLKIT"; then | |
6621 | TOOLKIT=gnu.java.awt.peer.qt.QtToolkit | |
6622 | fi | |
6623 | fi | |
6624 | ;; | |
97b8365c TT |
6625 | x) |
6626 | use_x_awt=yes | |
6627 | if test -z "$TOOLKIT"; then | |
6628 | TOOLKIT=gnu.java.awt.peer.x.XToolkit | |
6629 | fi | |
6630 | ;; | |
b0fa81ee TT |
6631 | no) |
6632 | use_xlib_awt= | |
6633 | use_gtk_awt= | |
ab3fa9d3 | 6634 | use_qt_awt= |
97b8365c | 6635 | use_x_awt= |
b0fa81ee TT |
6636 | break |
6637 | ;; | |
6638 | *) | |
6639 | echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2 | |
6640 | exit 1 | |
6641 | esac | |
6642 | done | |
6643 | ||
5213506e | 6644 | if test "$use_xlib_awt" = yes; then |
b0fa81ee TT |
6645 | XLIB_AWT_TRUE= |
6646 | XLIB_AWT_FALSE='#' | |
6647 | else | |
6648 | XLIB_AWT_TRUE='#' | |
6649 | XLIB_AWT_FALSE= | |
6650 | fi | |
6651 | ||
5213506e | 6652 | if test "$use_x_awt" = yes; then |
97b8365c TT |
6653 | X_AWT_TRUE= |
6654 | X_AWT_FALSE='#' | |
6655 | else | |
6656 | X_AWT_TRUE='#' | |
6657 | X_AWT_FALSE= | |
6658 | fi | |
6659 | ||
6660 | ||
6661 | ||
6662 | cat >>confdefs.h <<_ACEOF | |
6663 | #define AWT_TOOLKIT "$TOOLKIT" | |
6664 | _ACEOF | |
6665 | ||
6666 | ||
f3392d53 RW |
6667 | expanded_prefix=$prefix |
6668 | if test "X$prefix" = XNONE; then | |
6669 | expanded_prefix=${ac_default_prefix} | |
6670 | fi | |
6671 | ||
97b8365c TT |
6672 | |
6673 | cat >>confdefs.h <<_ACEOF | |
f3392d53 | 6674 | #define LIBGCJ_PREFIX "$expanded_prefix" |
97b8365c TT |
6675 | _ACEOF |
6676 | ||
6677 | ||
9365047a TT |
6678 | # Create standard.omit based on decisions we just made. |
6679 | cp $srcdir/standard.omit.in standard.omit | |
6680 | if test "$use_xlib_awt" != yes; then | |
6681 | echo gnu/awt/xlib >> standard.omit | |
6682 | echo gnu/gcj/xlib >> standard.omit | |
6683 | fi | |
97b8365c TT |
6684 | if test "$use_x_awt" != yes; then |
6685 | echo gnu/java/awt/peer/x >> standard.omit | |
6686 | fi | |
b0fa81ee | 6687 | |
7f40378f | 6688 | # Tools that need to be compiled against classpath's tools classes |
ded63764 | 6689 | : > vm-tools-packages |
7f40378f DD |
6690 | for package in gnu/gcj/tools/gc_analyze ; do |
6691 | echo $package >> standard.omit | |
6692 | echo $package >> vm-tools-packages | |
6693 | done | |
6694 | ||
b0fa81ee TT |
6695 | if test -z "${with_multisubdir}"; then |
6696 | builddotdot=. | |
6697 | else | |
6698 | builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'` | |
6699 | fi | |
6700 | ||
6701 | NATIVE=yes | |
6702 | ||
97b8365c | 6703 | # Which gcj and host gcj (for ecjx) do we use? |
b0fa81ee | 6704 | which_gcj=default |
97b8365c TT |
6705 | host_exeext=${ac_exeext} |
6706 | GCJ_FOR_ECJX= | |
b0fa81ee TT |
6707 | built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`" |
6708 | if test -n "${with_cross_host}"; then | |
6709 | # We are being configured with a cross compiler. We can't | |
6710 | # use ac_exeext, because that is for the target platform. | |
6711 | NATIVE=no | |
6712 | cross_host_exeext= | |
97b8365c | 6713 | GCJ_FOR_ECJX="${with_cross_host}-gcj" |
b0fa81ee TT |
6714 | case "${with_cross_host}" in |
6715 | *mingw* | *cygwin*) | |
6716 | cross_host_exeext=.exe | |
6717 | ;; | |
6718 | esac | |
97b8365c | 6719 | host_exeext=${cross_host_exeext} |
b0fa81ee TT |
6720 | if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then |
6721 | if test x"$build_noncanonical" = x"$with_cross_host"; then | |
6722 | # Ordinary cross (host!=target and host=build) | |
6723 | which_gcj=built | |
6724 | else | |
6725 | # Canadian cross (host!=target and host!=build) | |
6726 | which_gcj=cross | |
6727 | fi | |
6728 | else | |
6729 | which_gcj=cross | |
6730 | fi | |
6731 | else | |
6732 | # We are being configured with a native or crossed-native compiler | |
6733 | if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then | |
6734 | if test x"$build" = x"$host"; then | |
6735 | # True native build (host=target and host=build) | |
6736 | which_gcj=built | |
6737 | else | |
6738 | # Crossed-native build (host=target and host!=build) | |
6739 | which_gcj=cross | |
6740 | fi | |
6741 | else | |
6742 | which_gcj=path | |
6743 | fi | |
6744 | fi | |
4a4a4e99 AO |
6745 | libgcjdir=`${PWDCMD-pwd}` |
6746 | case $GCJ in | |
6747 | *" -B"*) | |
6748 | # Just in case there is a comma in the build dir, quote it for the | |
6749 | # sed command below. | |
6750 | case $libgcjdir in | |
6751 | *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;; | |
6752 | *) qlibgcjdir=$libgcjdir;; | |
6753 | esac | |
6754 | GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"` | |
6755 | ;; | |
6756 | *) | |
6757 | GCJ=$GCJ" -B$libgcjdir/" | |
6758 | ;; | |
6759 | esac | |
b0fa81ee TT |
6760 | case "${which_gcj}" in |
6761 | built) | |
b0fa81ee | 6762 | GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh' |
b0fa81ee TT |
6763 | ;; |
6764 | cross) | |
6765 | if test "x${with_newlib}" = "xyes"; then | |
6766 | # FIXME (comment): Why is this needed? | |
6767 | GCC_UNWIND_INCLUDE= | |
b0fa81ee | 6768 | fi |
bf654c94 | 6769 | GCJH='$(target_noncanonical)-gcjh' |
b0fa81ee TT |
6770 | ;; |
6771 | path) | |
b0fa81ee TT |
6772 | GCJH=gcjh |
6773 | ;; | |
6774 | esac | |
e0441a5b MK |
6775 | JAVAC="$GCJ -C" |
6776 | export JAVAC | |
b0fa81ee TT |
6777 | |
6778 | ||
6779 | ||
97b8365c TT |
6780 | |
6781 | ||
b0fa81ee TT |
6782 | # Create it, so that compile/link tests don't fail |
6783 | test -f libgcj.spec || touch libgcj.spec | |
6784 | ||
6785 | ||
6786 | ||
6787 | # Set up to configure Classpath. | |
6788 | # FIXME: no supported way to pass args in autoconf. | |
97b8365c TT |
6789 | # Disable tool wrappers to avoid ltdl.h configure check. |
6790 | ac_configure_args="$ac_configure_args --disable-tool-wrappers" | |
b0fa81ee TT |
6791 | ac_configure_args="$ac_configure_args --disable-load-library" |
6792 | ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug" | |
6793 | ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT" | |
6794 | dir1=`cd $srcdir && pwd` | |
6795 | dir2=`pwd` | |
6796 | ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2" | |
6797 | ac_configure_args="$ac_configure_args --disable-core-jni" | |
6798 | ac_configure_args="$ac_configure_args --disable-examples" | |
6799 | ac_configure_args="$ac_configure_args --with-glibj=build" | |
34677bae | 6800 | if test "$browser_plugin_enabled" != yes; then |
648e8d6d | 6801 | ac_configure_args="$ac_configure_args --disable-plugin" |
34677bae MK |
6802 | else |
6803 | ac_configure_args="$ac_configure_args --enable-plugin" | |
648e8d6d | 6804 | fi |
ac1ed908 MW |
6805 | if test "$gconf_enabled" != yes; then |
6806 | ac_configure_args="$ac_configure_args --disable-gconf-peer" | |
6807 | ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory" | |
6808 | fi | |
b0fa81ee | 6809 | if test "$use_gtk_awt" != yes; then |
97b8365c | 6810 | ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin" |
b0fa81ee | 6811 | fi |
ab3fa9d3 TT |
6812 | if test "$use_qt_awt" != yes; then |
6813 | ac_configure_args="$ac_configure_args --disable-qt-peer" | |
e0f7b260 TT |
6814 | else |
6815 | # We need this as qt is disabled by default in classpath. | |
6816 | ac_configure_args="$ac_configure_args --enable-qt-peer" | |
ab3fa9d3 | 6817 | fi |
97b8365c TT |
6818 | if test "$use_x_awt" != yes; then |
6819 | ac_configure_args="$ac_configure_args --without-escher" | |
6820 | else | |
6821 | # We need this as escher is disabled by default in classpath. | |
6822 | if test "$use_escher" != true; then | |
5213506e | 6823 | as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5 |
97b8365c TT |
6824 | else |
6825 | ac_configure_args="$ac_configure_args --with-escher=$with_escher" | |
6826 | fi | |
6827 | fi | |
cd6d4007 MK |
6828 | if test "x$BUILD_GJDOC" = xno; then |
6829 | ac_configure_args="$ac_configure_args --disable-gjdoc" | |
6830 | fi | |
97b8365c | 6831 | # -Werror causes unavoidable problems in code using alsa. |
e0441a5b | 6832 | ac_configure_args="$ac_configure_args --disable-regen-headers" |
97b8365c | 6833 | ac_configure_args="$ac_configure_args --disable-Werror" |
b0fa81ee | 6834 | |
d6f6aaf6 | 6835 | # Only use libltdl for non-newlib builds. |
2d29f3a1 | 6836 | if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then |
52a11cbf | 6837 | case $enable_ltdl_convenience in |
5213506e | 6838 | no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;; |
7af85558 TT |
6839 | "") enable_ltdl_convenience=yes |
6840 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
6841 | esac | |
6d0860ee | 6842 | LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la |
1cf3d07d SE |
6843 | LTDLINCL='-I${top_srcdir}/''libltdl' |
6844 | # For backwards non-gettext consistent compatibility... | |
6845 | INCLTDL="$LTDLINCL" | |
6846 | ||
6847 | enable_dlopen=yes | |
6848 | ||
7af85558 | 6849 | |
ed698112 | 6850 | |
7af85558 | 6851 | DIRLTDL=libltdl |
ed698112 | 6852 | |
5213506e | 6853 | $as_echo "#define USE_LTDL 1" >>confdefs.h |
7af85558 TT |
6854 | |
6855 | # Sigh. Libtool's macro doesn't do the right thing. | |
6856 | INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL" | |
7f7ba9bf | 6857 | # FIXME: this is a hack. |
1e6347d8 | 6858 | sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`" |
f1eba847 | 6859 | ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir" |
7af85558 TT |
6860 | fi |
6861 | ||
6862 | ||
6863 | ||
0da7a284 PG |
6864 | case `pwd` in |
6865 | *\ * | *\ *) | |
5213506e RW |
6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
6867 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
0da7a284 | 6868 | esac |
1cf3d07d SE |
6869 | |
6870 | ||
1cf3d07d | 6871 | |
43e02a8a RW |
6872 | macro_version='2.2.7a' |
6873 | macro_revision='1.3134' | |
1cf3d07d SE |
6874 | |
6875 | ||
6876 | ||
6877 | ||
6878 | ||
6879 | ||
02809848 | 6880 | |
1cf3d07d SE |
6881 | |
6882 | ||
6883 | ||
6884 | ||
6885 | ||
6886 | ||
0da7a284 | 6887 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d | 6888 | |
43e02a8a RW |
6889 | # Backslashify metacharacters that are still active within |
6890 | # double-quoted strings. | |
6891 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6892 | ||
6893 | # Same as above, but do not quote variable references. | |
6894 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6895 | ||
6896 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6897 | # double_quote_subst'ed string. | |
6898 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6899 | ||
6900 | # Sed substitution to delay expansion of an escaped single quote. | |
6901 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6902 | ||
6903 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6904 | no_glob_subst='s/\*/\\\*/g' | |
6905 | ||
6906 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6907 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6908 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
6909 | ||
6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
6911 | $as_echo_n "checking how to print strings... " >&6; } | |
6912 | # Test print first, because it will be a builtin if present. | |
6913 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6914 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6915 | ECHO='print -r --' | |
6916 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6917 | ECHO='printf %s\n' | |
6918 | else | |
6919 | # Use this function as a fallback that always works. | |
6920 | func_fallback_echo () | |
6921 | { | |
6922 | eval 'cat <<_LTECHO_EOF | |
6923 | $1 | |
6924 | _LTECHO_EOF' | |
6925 | } | |
6926 | ECHO='func_fallback_echo' | |
6927 | fi | |
6928 | ||
6929 | # func_echo_all arg... | |
6930 | # Invoke $ECHO with all args, space-separated. | |
6931 | func_echo_all () | |
6932 | { | |
6933 | $ECHO "" | |
6934 | } | |
6935 | ||
6936 | case "$ECHO" in | |
6937 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6938 | $as_echo "printf" >&6; } ;; | |
6939 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6940 | $as_echo "print -r" >&6; } ;; | |
6941 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6942 | $as_echo "cat" >&6; } ;; | |
6943 | esac | |
6944 | ||
6945 | ||
6946 | ||
6947 | ||
6948 | ||
6949 | ||
6950 | ||
6951 | ||
6952 | ||
6953 | ||
6954 | ||
6955 | ||
6956 | ||
6957 | ||
5213506e RW |
6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
6959 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6960 | if test "${ac_cv_path_SED+set}" = set; then : | |
6961 | $as_echo_n "(cached) " >&6 | |
6962 | else | |
6963 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6964 | for ac_i in 1 2 3 4 5 6 7; do | |
6965 | ac_script="$ac_script$as_nl$ac_script" | |
6966 | done | |
6967 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6968 | { ac_script=; unset ac_script;} | |
6969 | if test -z "$SED"; then | |
6970 | ac_path_SED_found=false | |
6971 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1cf3d07d SE |
6973 | for as_dir in $PATH |
6974 | do | |
6975 | IFS=$as_save_IFS | |
6976 | test -z "$as_dir" && as_dir=. | |
5213506e | 6977 | for ac_prog in sed gsed; do |
1cf3d07d | 6978 | for ac_exec_ext in '' $ac_executable_extensions; do |
5213506e RW |
6979 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
6980 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
6981 | # Check for GNU ac_path_SED and select it if it is found. | |
6982 | # Check for GNU $ac_path_SED | |
6983 | case `"$ac_path_SED" --version 2>&1` in | |
6984 | *GNU*) | |
6985 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6986 | *) | |
6987 | ac_count=0 | |
6988 | $as_echo_n 0123456789 >"conftest.in" | |
6989 | while : | |
6990 | do | |
6991 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6992 | mv "conftest.tmp" "conftest.in" | |
6993 | cp "conftest.in" "conftest.nl" | |
6994 | $as_echo '' >> "conftest.nl" | |
6995 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6996 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6997 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6998 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6999 | # Best one so far, save it but keep looking for a better one | |
7000 | ac_cv_path_SED="$ac_path_SED" | |
7001 | ac_path_SED_max=$ac_count | |
7002 | fi | |
7003 | # 10*(2^10) chars as input seems more than enough | |
7004 | test $ac_count -gt 10 && break | |
7005 | done | |
7006 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7007 | esac | |
7008 | ||
7009 | $ac_path_SED_found && break 3 | |
1cf3d07d SE |
7010 | done |
7011 | done | |
5213506e | 7012 | done |
1cf3d07d | 7013 | IFS=$as_save_IFS |
5213506e RW |
7014 | if test -z "$ac_cv_path_SED"; then |
7015 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
1cf3d07d | 7016 | fi |
5213506e RW |
7017 | else |
7018 | ac_cv_path_SED=$SED | |
1cf3d07d SE |
7019 | fi |
7020 | ||
5213506e RW |
7021 | fi |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
7023 | $as_echo "$ac_cv_path_SED" >&6; } | |
7024 | SED="$ac_cv_path_SED" | |
7025 | rm -f conftest.sed | |
1cf3d07d SE |
7026 | |
7027 | test -z "$SED" && SED=sed | |
7028 | Xsed="$SED -e 1s/^X//" | |
7029 | ||
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | ||
7035 | ||
7036 | ||
7037 | ||
7038 | ||
7039 | ||
5213506e RW |
7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
7041 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
7042 | if test "${ac_cv_path_GREP+set}" = set; then : | |
7043 | $as_echo_n "(cached) " >&6 | |
7044 | else | |
7045 | if test -z "$GREP"; then | |
7046 | ac_path_GREP_found=false | |
7047 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7049 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
7050 | do | |
7051 | IFS=$as_save_IFS | |
7052 | test -z "$as_dir" && as_dir=. | |
7053 | for ac_prog in grep ggrep; do | |
7054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7055 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
7056 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
7057 | # Check for GNU ac_path_GREP and select it if it is found. | |
7058 | # Check for GNU $ac_path_GREP | |
7059 | case `"$ac_path_GREP" --version 2>&1` in | |
7060 | *GNU*) | |
7061 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
7062 | *) | |
7063 | ac_count=0 | |
7064 | $as_echo_n 0123456789 >"conftest.in" | |
7065 | while : | |
7066 | do | |
7067 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7068 | mv "conftest.tmp" "conftest.in" | |
7069 | cp "conftest.in" "conftest.nl" | |
7070 | $as_echo 'GREP' >> "conftest.nl" | |
7071 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7072 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7073 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7074 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
7075 | # Best one so far, save it but keep looking for a better one | |
7076 | ac_cv_path_GREP="$ac_path_GREP" | |
7077 | ac_path_GREP_max=$ac_count | |
7078 | fi | |
7079 | # 10*(2^10) chars as input seems more than enough | |
7080 | test $ac_count -gt 10 && break | |
7081 | done | |
7082 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7083 | esac | |
7084 | ||
7085 | $ac_path_GREP_found && break 3 | |
7086 | done | |
7087 | done | |
7088 | done | |
7089 | IFS=$as_save_IFS | |
7090 | if test -z "$ac_cv_path_GREP"; then | |
7091 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7092 | fi | |
7093 | else | |
7094 | ac_cv_path_GREP=$GREP | |
7095 | fi | |
7096 | ||
7097 | fi | |
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
7099 | $as_echo "$ac_cv_path_GREP" >&6; } | |
7100 | GREP="$ac_cv_path_GREP" | |
7101 | ||
7102 | ||
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
7104 | $as_echo_n "checking for egrep... " >&6; } | |
7105 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
7106 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 7107 | else |
5213506e RW |
7108 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
7109 | then ac_cv_path_EGREP="$GREP -E" | |
7110 | else | |
7111 | if test -z "$EGREP"; then | |
7112 | ac_path_EGREP_found=false | |
7113 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7115 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
7116 | do | |
7117 | IFS=$as_save_IFS | |
7118 | test -z "$as_dir" && as_dir=. | |
7119 | for ac_prog in egrep; do | |
7120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7121 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
7122 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
7123 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7124 | # Check for GNU $ac_path_EGREP | |
7125 | case `"$ac_path_EGREP" --version 2>&1` in | |
7126 | *GNU*) | |
7127 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
7128 | *) | |
7129 | ac_count=0 | |
7130 | $as_echo_n 0123456789 >"conftest.in" | |
7131 | while : | |
7132 | do | |
7133 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7134 | mv "conftest.tmp" "conftest.in" | |
7135 | cp "conftest.in" "conftest.nl" | |
7136 | $as_echo 'EGREP' >> "conftest.nl" | |
7137 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7138 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7139 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7140 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
7141 | # Best one so far, save it but keep looking for a better one | |
7142 | ac_cv_path_EGREP="$ac_path_EGREP" | |
7143 | ac_path_EGREP_max=$ac_count | |
1cf3d07d | 7144 | fi |
5213506e RW |
7145 | # 10*(2^10) chars as input seems more than enough |
7146 | test $ac_count -gt 10 && break | |
7147 | done | |
7148 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7149 | esac | |
7150 | ||
7151 | $ac_path_EGREP_found && break 3 | |
7152 | done | |
7153 | done | |
7154 | done | |
7155 | IFS=$as_save_IFS | |
7156 | if test -z "$ac_cv_path_EGREP"; then | |
7157 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7158 | fi | |
7159 | else | |
7160 | ac_cv_path_EGREP=$EGREP | |
7161 | fi | |
7162 | ||
7163 | fi | |
1cf3d07d | 7164 | fi |
5213506e RW |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
7166 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
7167 | EGREP="$ac_cv_path_EGREP" | |
1cf3d07d SE |
7168 | |
7169 | ||
5213506e RW |
7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
7171 | $as_echo_n "checking for fgrep... " >&6; } | |
7172 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
7173 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 7174 | else |
5213506e RW |
7175 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
7176 | then ac_cv_path_FGREP="$GREP -F" | |
7177 | else | |
7178 | if test -z "$FGREP"; then | |
7179 | ac_path_FGREP_found=false | |
7180 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7182 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
7183 | do | |
7184 | IFS=$as_save_IFS | |
7185 | test -z "$as_dir" && as_dir=. | |
7186 | for ac_prog in fgrep; do | |
7187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7188 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
7189 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
7190 | # Check for GNU ac_path_FGREP and select it if it is found. | |
7191 | # Check for GNU $ac_path_FGREP | |
7192 | case `"$ac_path_FGREP" --version 2>&1` in | |
7193 | *GNU*) | |
7194 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
7195 | *) | |
7196 | ac_count=0 | |
7197 | $as_echo_n 0123456789 >"conftest.in" | |
7198 | while : | |
7199 | do | |
7200 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7201 | mv "conftest.tmp" "conftest.in" | |
7202 | cp "conftest.in" "conftest.nl" | |
7203 | $as_echo 'FGREP' >> "conftest.nl" | |
7204 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7205 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7206 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7207 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
7208 | # Best one so far, save it but keep looking for a better one | |
7209 | ac_cv_path_FGREP="$ac_path_FGREP" | |
7210 | ac_path_FGREP_max=$ac_count | |
1cf3d07d | 7211 | fi |
5213506e RW |
7212 | # 10*(2^10) chars as input seems more than enough |
7213 | test $ac_count -gt 10 && break | |
7214 | done | |
7215 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7216 | esac | |
7217 | ||
7218 | $ac_path_FGREP_found && break 3 | |
7219 | done | |
7220 | done | |
7221 | done | |
7222 | IFS=$as_save_IFS | |
7223 | if test -z "$ac_cv_path_FGREP"; then | |
7224 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7225 | fi | |
7226 | else | |
7227 | ac_cv_path_FGREP=$FGREP | |
7228 | fi | |
7229 | ||
7230 | fi | |
1cf3d07d | 7231 | fi |
5213506e RW |
7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
7233 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
7234 | FGREP="$ac_cv_path_FGREP" | |
1cf3d07d SE |
7235 | |
7236 | ||
7237 | test -z "$GREP" && GREP=grep | |
7238 | ||
7239 | ||
7240 | ||
7241 | ||
7242 | ||
7243 | ||
7244 | ||
7245 | ||
7246 | ||
7247 | ||
7248 | ||
7249 | ||
7250 | ||
7251 | ||
7252 | ||
7253 | ||
7254 | ||
7255 | ||
7256 | ||
5213506e RW |
7257 | # Check whether --with-gnu-ld was given. |
7258 | if test "${with_gnu_ld+set}" = set; then : | |
7259 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
a3ffcff3 TT |
7260 | else |
7261 | with_gnu_ld=no | |
5213506e RW |
7262 | fi |
7263 | ||
a3ffcff3 | 7264 | ac_prog=ld |
52a11cbf | 7265 | if test "$GCC" = yes; then |
a3ffcff3 | 7266 | # Check if gcc -print-prog-name=ld gives a path. |
5213506e RW |
7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
7268 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6d0860ee AO |
7269 | case $host in |
7270 | *-*-mingw*) | |
7271 | # gcc leaves a trailing carriage return which upsets mingw | |
7272 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7273 | *) | |
7274 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7275 | esac | |
52a11cbf | 7276 | case $ac_prog in |
01b02b11 | 7277 | # Accept absolute paths. |
1cf3d07d | 7278 | [\\/]* | ?:[\\/]*) |
01b02b11 | 7279 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
7280 | # Canonicalize the pathname of ld |
7281 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
7282 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
7283 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
01b02b11 TT |
7284 | done |
7285 | test -z "$LD" && LD="$ac_prog" | |
7286 | ;; | |
a3ffcff3 TT |
7287 | "") |
7288 | # If it fails, then pretend we aren't using GCC. | |
7289 | ac_prog=ld | |
7290 | ;; | |
7291 | *) | |
7292 | # If it is relative, then search for the first ld in PATH. | |
7293 | with_gnu_ld=unknown | |
7294 | ;; | |
7295 | esac | |
7296 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
7298 | $as_echo_n "checking for GNU ld... " >&6; } | |
a3ffcff3 | 7299 | else |
5213506e RW |
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
7301 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a3ffcff3 | 7302 | fi |
5213506e RW |
7303 | if test "${lt_cv_path_LD+set}" = set; then : |
7304 | $as_echo_n "(cached) " >&6 | |
a3ffcff3 TT |
7305 | else |
7306 | if test -z "$LD"; then | |
1cf3d07d | 7307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
a3ffcff3 | 7308 | for ac_dir in $PATH; do |
1cf3d07d | 7309 | IFS="$lt_save_ifs" |
a3ffcff3 | 7310 | test -z "$ac_dir" && ac_dir=. |
7af85558 | 7311 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
52a11cbf | 7312 | lt_cv_path_LD="$ac_dir/$ac_prog" |
a3ffcff3 | 7313 | # Check to see if the program is GNU ld. I'd rather use --version, |
1cf3d07d | 7314 | # but apparently some variants of GNU ld only accept -v. |
a3ffcff3 | 7315 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
7316 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
7317 | *GNU* | *'with BFD'*) | |
a3ffcff3 | 7318 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
7319 | ;; |
7320 | *) | |
01b02b11 | 7321 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
7322 | ;; |
7323 | esac | |
a3ffcff3 TT |
7324 | fi |
7325 | done | |
1cf3d07d | 7326 | IFS="$lt_save_ifs" |
a3ffcff3 | 7327 | else |
52a11cbf | 7328 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
a3ffcff3 TT |
7329 | fi |
7330 | fi | |
7331 | ||
52a11cbf | 7332 | LD="$lt_cv_path_LD" |
a3ffcff3 | 7333 | if test -n "$LD"; then |
5213506e RW |
7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
7335 | $as_echo "$LD" >&6; } | |
a3ffcff3 | 7336 | else |
5213506e RW |
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7338 | $as_echo "no" >&6; } | |
a3ffcff3 | 7339 | fi |
5213506e RW |
7340 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
7342 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
7343 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
7344 | $as_echo_n "(cached) " >&6 | |
a3ffcff3 | 7345 | else |
1cf3d07d SE |
7346 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
7347 | case `$LD -v 2>&1 </dev/null` in | |
7348 | *GNU* | *'with BFD'*) | |
52a11cbf | 7349 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
7350 | ;; |
7351 | *) | |
52a11cbf | 7352 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
7353 | ;; |
7354 | esac | |
a3ffcff3 | 7355 | fi |
5213506e RW |
7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
7357 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
52a11cbf | 7358 | with_gnu_ld=$lt_cv_prog_gnu_ld |
6d0860ee AO |
7359 | |
7360 | ||
a3ffcff3 | 7361 | |
1cf3d07d SE |
7362 | |
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | ||
5213506e RW |
7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
7369 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
7370 | if test "${lt_cv_path_NM+set}" = set; then : | |
7371 | $as_echo_n "(cached) " >&6 | |
a3ffcff3 TT |
7372 | else |
7373 | if test -n "$NM"; then | |
7374 | # Let the user override the test. | |
52a11cbf | 7375 | lt_cv_path_NM="$NM" |
a3ffcff3 | 7376 | else |
1cf3d07d SE |
7377 | lt_nm_to_check="${ac_tool_prefix}nm" |
7378 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
7379 | lt_nm_to_check="$lt_nm_to_check nm" | |
7380 | fi | |
7381 | for lt_tmp_nm in $lt_nm_to_check; do | |
7382 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7383 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
7384 | IFS="$lt_save_ifs" | |
7385 | test -z "$ac_dir" && ac_dir=. | |
7386 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
7387 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
7388 | # Check to see if the nm accepts a BSD-compat flag. | |
7389 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
7390 | # nm: unknown option "B" ignored | |
7391 | # Tru64's nm complains that /dev/null is an invalid object file | |
7392 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
7393 | */dev/null* | *'Invalid file or object type'*) | |
7394 | lt_cv_path_NM="$tmp_nm -B" | |
7395 | break | |
7396 | ;; | |
7397 | *) | |
7398 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
7399 | */dev/null*) | |
7400 | lt_cv_path_NM="$tmp_nm -p" | |
7401 | break | |
7402 | ;; | |
7403 | *) | |
7404 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
7405 | continue # so that we can try to find one that supports BSD flags | |
7406 | ;; | |
7407 | esac | |
7408 | ;; | |
7409 | esac | |
a3ffcff3 | 7410 | fi |
1cf3d07d SE |
7411 | done |
7412 | IFS="$lt_save_ifs" | |
a3ffcff3 | 7413 | done |
1cf3d07d | 7414 | : ${lt_cv_path_NM=no} |
a3ffcff3 TT |
7415 | fi |
7416 | fi | |
5213506e RW |
7417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
7418 | $as_echo "$lt_cv_path_NM" >&6; } | |
1cf3d07d SE |
7419 | if test "$lt_cv_path_NM" != "no"; then |
7420 | NM="$lt_cv_path_NM" | |
7421 | else | |
7422 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
43e02a8a RW |
7423 | if test -n "$DUMPBIN"; then : |
7424 | # Let the user override the test. | |
7425 | else | |
7426 | if test -n "$ac_tool_prefix"; then | |
7427 | for ac_prog in dumpbin "link -dump" | |
1cf3d07d SE |
7428 | do |
7429 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7430 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7432 | $as_echo_n "checking for $ac_word... " >&6; } | |
7433 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
7434 | $as_echo_n "(cached) " >&6 | |
6d0860ee | 7435 | else |
1cf3d07d SE |
7436 | if test -n "$DUMPBIN"; then |
7437 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
7438 | else | |
7439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7440 | for as_dir in $PATH | |
7441 | do | |
7442 | IFS=$as_save_IFS | |
7443 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7444 | for ac_exec_ext in '' $ac_executable_extensions; do |
7445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 7446 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5213506e | 7447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
7448 | break 2 |
7449 | fi | |
7450 | done | |
5213506e RW |
7451 | done |
7452 | IFS=$as_save_IFS | |
6d0860ee | 7453 | |
1cf3d07d SE |
7454 | fi |
7455 | fi | |
7456 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
7457 | if test -n "$DUMPBIN"; then | |
5213506e RW |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
7459 | $as_echo "$DUMPBIN" >&6; } | |
1cf3d07d | 7460 | else |
5213506e RW |
7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7462 | $as_echo "no" >&6; } | |
1cf3d07d | 7463 | fi |
52a11cbf | 7464 | |
5213506e | 7465 | |
1cf3d07d SE |
7466 | test -n "$DUMPBIN" && break |
7467 | done | |
7468 | fi | |
7469 | if test -z "$DUMPBIN"; then | |
7470 | ac_ct_DUMPBIN=$DUMPBIN | |
43e02a8a | 7471 | for ac_prog in dumpbin "link -dump" |
1cf3d07d SE |
7472 | do |
7473 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7474 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7476 | $as_echo_n "checking for $ac_word... " >&6; } | |
7477 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
7478 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7479 | else |
7480 | if test -n "$ac_ct_DUMPBIN"; then | |
7481 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
7482 | else | |
7483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7484 | for as_dir in $PATH | |
7485 | do | |
7486 | IFS=$as_save_IFS | |
7487 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7488 | for ac_exec_ext in '' $ac_executable_extensions; do |
7489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 7490 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5213506e | 7491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d | 7492 | break 2 |
6d0860ee | 7493 | fi |
1cf3d07d | 7494 | done |
5213506e RW |
7495 | done |
7496 | IFS=$as_save_IFS | |
6d0860ee | 7497 | |
1cf3d07d SE |
7498 | fi |
7499 | fi | |
7500 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
7501 | if test -n "$ac_ct_DUMPBIN"; then | |
5213506e RW |
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
7503 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
1cf3d07d | 7504 | else |
5213506e RW |
7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7506 | $as_echo "no" >&6; } | |
1cf3d07d | 7507 | fi |
6d0860ee | 7508 | |
5213506e | 7509 | |
1cf3d07d SE |
7510 | test -n "$ac_ct_DUMPBIN" && break |
7511 | done | |
6d0860ee | 7512 | |
5213506e RW |
7513 | if test "x$ac_ct_DUMPBIN" = x; then |
7514 | DUMPBIN=":" | |
7515 | else | |
7516 | case $cross_compiling:$ac_tool_warned in | |
7517 | yes:) | |
7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7519 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7520 | ac_tool_warned=yes ;; | |
7521 | esac | |
7522 | DUMPBIN=$ac_ct_DUMPBIN | |
7523 | fi | |
1cf3d07d | 7524 | fi |
6d0860ee | 7525 | |
43e02a8a RW |
7526 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
7527 | *COFF*) | |
7528 | DUMPBIN="$DUMPBIN -symbols" | |
7529 | ;; | |
7530 | *) | |
7531 | DUMPBIN=: | |
7532 | ;; | |
7533 | esac | |
7534 | fi | |
6d0860ee | 7535 | |
1cf3d07d SE |
7536 | if test "$DUMPBIN" != ":"; then |
7537 | NM="$DUMPBIN" | |
6d0860ee | 7538 | fi |
1cf3d07d SE |
7539 | fi |
7540 | test -z "$NM" && NM=nm | |
6d0860ee | 7541 | |
6d0860ee | 7542 | |
6d0860ee | 7543 | |
6d0860ee | 7544 | |
3610e0d5 | 7545 | |
7af85558 | 7546 | |
5213506e RW |
7547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
7548 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
7549 | if test "${lt_cv_nm_interface+set}" = set; then : | |
7550 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
7551 | else |
7552 | lt_cv_nm_interface="BSD nm" | |
7553 | echo "int some_variable = 0;" > conftest.$ac_ext | |
43e02a8a | 7554 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
1cf3d07d SE |
7555 | (eval "$ac_compile" 2>conftest.err) |
7556 | cat conftest.err >&5 | |
43e02a8a | 7557 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
7558 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
7559 | cat conftest.err >&5 | |
43e02a8a | 7560 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
1cf3d07d SE |
7561 | cat conftest.out >&5 |
7562 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
7563 | lt_cv_nm_interface="MS dumpbin" | |
7564 | fi | |
7565 | rm -f conftest* | |
6d0860ee | 7566 | fi |
5213506e RW |
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
7568 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6d0860ee | 7569 | |
c69094e1 | 7570 | # find the maximum length of command line arguments |
5213506e RW |
7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
7572 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
7573 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
7574 | $as_echo_n "(cached) " >&6 | |
c69094e1 TT |
7575 | else |
7576 | i=0 | |
7577 | teststring="ABCD" | |
7578 | ||
7579 | case $build_os in | |
7580 | msdosdjgpp*) | |
7581 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
7582 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
7583 | # during glob expansion). Even if it were fixed, the result of this | |
7584 | # check would be larger than it should be. | |
7585 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
7586 | ;; | |
7587 | ||
1cf3d07d SE |
7588 | gnu*) |
7589 | # Under GNU Hurd, this test is not required because there is | |
7590 | # no limit to the length of command line arguments. | |
7591 | # Libtool will interpret -1 as no limit whatsoever | |
7592 | lt_cv_sys_max_cmd_len=-1; | |
7593 | ;; | |
7594 | ||
0da7a284 | 7595 | cygwin* | mingw* | cegcc*) |
c69094e1 TT |
7596 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
7597 | # about 5 minutes as the teststring grows exponentially. | |
7598 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
7599 | # you end up with a "frozen" computer, even though with patience | |
7600 | # the test eventually succeeds (with a max line length of 256k). | |
7601 | # Instead, let's just punt: use the minimum linelength reported by | |
7602 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
7603 | lt_cv_sys_max_cmd_len=8192; | |
7604 | ;; | |
7605 | ||
43e02a8a RW |
7606 | mint*) |
7607 | # On MiNT this can take a long time and run out of memory. | |
7608 | lt_cv_sys_max_cmd_len=8192; | |
7609 | ;; | |
7610 | ||
c69094e1 TT |
7611 | amigaos*) |
7612 | # On AmigaOS with pdksh, this test takes hours, literally. | |
7613 | # So we just punt and use a minimum line length of 8192. | |
7614 | lt_cv_sys_max_cmd_len=8192; | |
7615 | ;; | |
7616 | ||
7617 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
7618 | # This has been around since 386BSD, at least. Likely further. | |
7619 | if test -x /sbin/sysctl; then | |
7620 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
7621 | elif test -x /usr/sbin/sysctl; then | |
7622 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
7623 | else | |
1cf3d07d | 7624 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
c69094e1 TT |
7625 | fi |
7626 | # And add a safety zone | |
7627 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
7628 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7629 | ;; | |
1cf3d07d SE |
7630 | |
7631 | interix*) | |
7632 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
7633 | lt_cv_sys_max_cmd_len=196608 | |
7634 | ;; | |
7635 | ||
7636 | osf*) | |
7637 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
7638 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
7639 | # nice to cause kernel panics so lets avoid the loop below. | |
7640 | # First set a reasonable default. | |
7641 | lt_cv_sys_max_cmd_len=16384 | |
7642 | # | |
7643 | if test -x /sbin/sysconfig; then | |
7644 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
7645 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
7646 | esac | |
7647 | fi | |
7648 | ;; | |
7649 | sco3.2v5*) | |
7650 | lt_cv_sys_max_cmd_len=102400 | |
7651 | ;; | |
7652 | sysv5* | sco5v6* | sysv4.2uw2*) | |
7653 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
7654 | if test -n "$kargmax"; then | |
7655 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
7656 | else | |
7657 | lt_cv_sys_max_cmd_len=32768 | |
7658 | fi | |
7659 | ;; | |
7660 | *) | |
0da7a284 PG |
7661 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
7662 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
7663 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
7664 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
7665 | else | |
7666 | # Make teststring a little bigger before we do anything with it. | |
7667 | # a 1K string should be a reasonable start. | |
7668 | for i in 1 2 3 4 5 6 7 8 ; do | |
7669 | teststring=$teststring$teststring | |
7670 | done | |
7671 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
7672 | # If test is not a shell built-in, we'll probably end up computing a | |
7673 | # maximum length that is only half of the actual maximum length, but | |
7674 | # we can't tell. | |
43e02a8a RW |
7675 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
7676 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
82a6cadf PB |
7677 | test $i != 17 # 1/2 MB should be enough |
7678 | do | |
7679 | i=`expr $i + 1` | |
7680 | teststring=$teststring$teststring | |
7681 | done | |
7682 | # Only check the string length outside the loop. | |
7683 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7684 | teststring= | |
7685 | # Add a significant safety factor because C++ compilers can tack on | |
7686 | # massive amounts of additional arguments before passing them to the | |
7687 | # linker. It appears as though 1/2 is a usable value. | |
7688 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7689 | fi | |
1cf3d07d | 7690 | ;; |
c69094e1 TT |
7691 | esac |
7692 | ||
7693 | fi | |
7694 | ||
1cf3d07d | 7695 | if test -n $lt_cv_sys_max_cmd_len ; then |
5213506e RW |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
7697 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
c69094e1 | 7698 | else |
5213506e RW |
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
7700 | $as_echo "none" >&6; } | |
c69094e1 | 7701 | fi |
1cf3d07d | 7702 | max_cmd_len=$lt_cv_sys_max_cmd_len |
c69094e1 TT |
7703 | |
7704 | ||
1cf3d07d SE |
7705 | |
7706 | ||
7707 | ||
7708 | ||
7709 | : ${CP="cp -f"} | |
7710 | : ${MV="mv -f"} | |
7711 | : ${RM="rm -f"} | |
7712 | ||
5213506e RW |
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
7714 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
1cf3d07d SE |
7715 | # Try some XSI features |
7716 | xsi_shell=no | |
7717 | ( _lt_dummy="a/b/c" | |
7718 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
0da7a284 PG |
7719 | = c,a/b,, \ |
7720 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7721 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d | 7722 | && xsi_shell=yes |
5213506e RW |
7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
7724 | $as_echo "$xsi_shell" >&6; } | |
1cf3d07d SE |
7725 | |
7726 | ||
5213506e RW |
7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
7728 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
1cf3d07d SE |
7729 | lt_shell_append=no |
7730 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7731 | >/dev/null 2>&1 \ | |
7732 | && lt_shell_append=yes | |
5213506e RW |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
7734 | $as_echo "$lt_shell_append" >&6; } | |
1cf3d07d SE |
7735 | |
7736 | ||
7737 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7738 | lt_unset=unset | |
6d0860ee | 7739 | else |
1cf3d07d SE |
7740 | lt_unset=false |
7741 | fi | |
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | # test EBCDIC or ASCII | |
7748 | case `echo X|tr X '\101'` in | |
7749 | A) # ASCII based system | |
7750 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7751 | lt_SP2NL='tr \040 \012' | |
7752 | lt_NL2SP='tr \015\012 \040\040' | |
6d0860ee | 7753 | ;; |
1cf3d07d SE |
7754 | *) # EBCDIC based system |
7755 | lt_SP2NL='tr \100 \n' | |
7756 | lt_NL2SP='tr \r\n \100\100' | |
6d0860ee | 7757 | ;; |
1cf3d07d | 7758 | esac |
6d0860ee | 7759 | |
6d0860ee | 7760 | |
6d0860ee | 7761 | |
1cf3d07d SE |
7762 | |
7763 | ||
7764 | ||
7765 | ||
7766 | ||
7767 | ||
5213506e RW |
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7769 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
7770 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
7771 | $as_echo_n "(cached) " >&6 | |
6d0860ee | 7772 | else |
1cf3d07d | 7773 | lt_cv_ld_reload_flag='-r' |
6d0860ee | 7774 | fi |
5213506e RW |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7776 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
1cf3d07d SE |
7777 | reload_flag=$lt_cv_ld_reload_flag |
7778 | case $reload_flag in | |
7779 | "" | " "*) ;; | |
7780 | *) reload_flag=" $reload_flag" ;; | |
7781 | esac | |
7782 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7783 | case $host_os in | |
7784 | darwin*) | |
7785 | if test "$GCC" = yes; then | |
7786 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7787 | else | |
7788 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7789 | fi | |
7790 | ;; | |
7791 | esac | |
6d0860ee | 7792 | |
1cf3d07d SE |
7793 | |
7794 | ||
7795 | ||
7796 | ||
7797 | ||
7798 | ||
7799 | ||
7800 | ||
0da7a284 PG |
7801 | if test -n "$ac_tool_prefix"; then |
7802 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7803 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5213506e RW |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7805 | $as_echo_n "checking for $ac_word... " >&6; } | |
7806 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
7807 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
7808 | else |
7809 | if test -n "$OBJDUMP"; then | |
7810 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7811 | else | |
7812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7813 | for as_dir in $PATH | |
7814 | do | |
7815 | IFS=$as_save_IFS | |
7816 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7817 | for ac_exec_ext in '' $ac_executable_extensions; do |
7818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 7819 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5213506e | 7820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
7821 | break 2 |
7822 | fi | |
7823 | done | |
5213506e RW |
7824 | done |
7825 | IFS=$as_save_IFS | |
0da7a284 PG |
7826 | |
7827 | fi | |
7828 | fi | |
7829 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7830 | if test -n "$OBJDUMP"; then | |
5213506e RW |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
7832 | $as_echo "$OBJDUMP" >&6; } | |
0da7a284 | 7833 | else |
5213506e RW |
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7835 | $as_echo "no" >&6; } | |
0da7a284 PG |
7836 | fi |
7837 | ||
5213506e | 7838 | |
0da7a284 PG |
7839 | fi |
7840 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
7841 | ac_ct_OBJDUMP=$OBJDUMP | |
7842 | # Extract the first word of "objdump", so it can be a program name with args. | |
7843 | set dummy objdump; ac_word=$2 | |
5213506e RW |
7844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7845 | $as_echo_n "checking for $ac_word... " >&6; } | |
7846 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
7847 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
7848 | else |
7849 | if test -n "$ac_ct_OBJDUMP"; then | |
7850 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
7851 | else | |
7852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7853 | for as_dir in $PATH | |
7854 | do | |
7855 | IFS=$as_save_IFS | |
7856 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7857 | for ac_exec_ext in '' $ac_executable_extensions; do |
7858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 7859 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5213506e | 7860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
7861 | break 2 |
7862 | fi | |
7863 | done | |
5213506e RW |
7864 | done |
7865 | IFS=$as_save_IFS | |
0da7a284 | 7866 | |
0da7a284 PG |
7867 | fi |
7868 | fi | |
7869 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
7870 | if test -n "$ac_ct_OBJDUMP"; then | |
5213506e RW |
7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
7872 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
0da7a284 | 7873 | else |
5213506e RW |
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7875 | $as_echo "no" >&6; } | |
0da7a284 PG |
7876 | fi |
7877 | ||
5213506e RW |
7878 | if test "x$ac_ct_OBJDUMP" = x; then |
7879 | OBJDUMP="false" | |
7880 | else | |
7881 | case $cross_compiling:$ac_tool_warned in | |
7882 | yes:) | |
7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7885 | ac_tool_warned=yes ;; | |
7886 | esac | |
7887 | OBJDUMP=$ac_ct_OBJDUMP | |
7888 | fi | |
0da7a284 PG |
7889 | else |
7890 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
7891 | fi | |
7892 | ||
7893 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7894 | ||
7895 | ||
7896 | ||
7897 | ||
7898 | ||
7899 | ||
7900 | ||
7901 | ||
1cf3d07d | 7902 | |
5213506e RW |
7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7904 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
7905 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
7906 | $as_echo_n "(cached) " >&6 | |
6d0860ee | 7907 | else |
1cf3d07d SE |
7908 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
7909 | lt_cv_file_magic_test_file= | |
7910 | lt_cv_deplibs_check_method='unknown' | |
7911 | # Need to set the preceding variable on all platforms that support | |
7912 | # interlibrary dependencies. | |
7913 | # 'none' -- dependencies not supported. | |
7914 | # `unknown' -- same as none, but documents that we really don't know. | |
7915 | # 'pass_all' -- all dependencies passed with no checks. | |
7916 | # 'test_compile' -- check by making test program. | |
7917 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
7918 | # which responds to the $file_magic_cmd with a given extended regex. | |
7919 | # If you have `file' or equivalent on your system and you're not sure | |
7920 | # whether `pass_all' will *always* work, you probably want this one. | |
7921 | ||
7922 | case $host_os in | |
ed44a2c7 | 7923 | aix[4-9]*) |
1cf3d07d SE |
7924 | lt_cv_deplibs_check_method=pass_all |
7925 | ;; | |
7926 | ||
7927 | beos*) | |
7928 | lt_cv_deplibs_check_method=pass_all | |
7929 | ;; | |
7930 | ||
7931 | bsdi[45]*) | |
7932 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
7933 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7934 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7935 | ;; | |
7936 | ||
7937 | cygwin*) | |
7938 | # func_win32_libid is a shell function defined in ltmain.sh | |
7939 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7940 | lt_cv_file_magic_cmd='func_win32_libid' | |
7941 | ;; | |
7942 | ||
7943 | mingw* | pw32*) | |
7944 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7945 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7946 | # unless we find 'file', for example because we are cross-compiling. | |
43e02a8a RW |
7947 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
7948 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
1cf3d07d SE |
7949 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
7950 | lt_cv_file_magic_cmd='func_win32_libid' | |
7951 | else | |
7952 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7953 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7954 | fi | |
6d0860ee | 7955 | ;; |
1cf3d07d | 7956 | |
43e02a8a | 7957 | cegcc*) |
0da7a284 PG |
7958 | # use the weaker test based on 'objdump'. See mingw*. |
7959 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7960 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7961 | ;; | |
7962 | ||
1cf3d07d SE |
7963 | darwin* | rhapsody*) |
7964 | lt_cv_deplibs_check_method=pass_all | |
7965 | ;; | |
7966 | ||
7967 | freebsd* | dragonfly*) | |
7968 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7969 | case $host_cpu in | |
7970 | i*86 ) | |
7971 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7972 | # Let's accept both of them until this is cleared up. | |
7973 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
7974 | lt_cv_file_magic_cmd=/usr/bin/file | |
7975 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7976 | ;; | |
7977 | esac | |
7978 | else | |
7979 | lt_cv_deplibs_check_method=pass_all | |
7980 | fi | |
6d0860ee | 7981 | ;; |
1cf3d07d SE |
7982 | |
7983 | gnu*) | |
7984 | lt_cv_deplibs_check_method=pass_all | |
7985 | ;; | |
7986 | ||
43e02a8a RW |
7987 | haiku*) |
7988 | lt_cv_deplibs_check_method=pass_all | |
7989 | ;; | |
7990 | ||
1cf3d07d SE |
7991 | hpux10.20* | hpux11*) |
7992 | lt_cv_file_magic_cmd=/usr/bin/file | |
7993 | case $host_cpu in | |
7994 | ia64*) | |
7995 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
7996 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
7997 | ;; | |
7998 | hppa*64*) | |
43e02a8a | 7999 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
1cf3d07d SE |
8000 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
8001 | ;; | |
6d0860ee | 8002 | *) |
43e02a8a | 8003 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
1cf3d07d SE |
8004 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
8005 | ;; | |
8006 | esac | |
8007 | ;; | |
6d0860ee | 8008 | |
1cf3d07d SE |
8009 | interix[3-9]*) |
8010 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
8011 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
8012 | ;; | |
6d0860ee | 8013 | |
1cf3d07d SE |
8014 | irix5* | irix6* | nonstopux*) |
8015 | case $LD in | |
8016 | *-32|*"-32 ") libmagic=32-bit;; | |
8017 | *-n32|*"-n32 ") libmagic=N32;; | |
8018 | *-64|*"-64 ") libmagic=64-bit;; | |
8019 | *) libmagic=never-match;; | |
8020 | esac | |
8021 | lt_cv_deplibs_check_method=pass_all | |
6d0860ee | 8022 | ;; |
6d0860ee | 8023 | |
1cf3d07d | 8024 | # This must be Linux ELF. |
7a9d3fe8 | 8025 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
8026 | lt_cv_deplibs_check_method=pass_all |
8027 | ;; | |
6d0860ee | 8028 | |
1cf3d07d SE |
8029 | netbsd*) |
8030 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
8031 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6d0860ee | 8032 | else |
1cf3d07d | 8033 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
6d0860ee | 8034 | fi |
1cf3d07d SE |
8035 | ;; |
8036 | ||
8037 | newos6*) | |
8038 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
8039 | lt_cv_file_magic_cmd=/usr/bin/file | |
8040 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
8041 | ;; | |
8042 | ||
8043 | *nto* | *qnx*) | |
8044 | lt_cv_deplibs_check_method=pass_all | |
8045 | ;; | |
6d0860ee | 8046 | |
1cf3d07d SE |
8047 | openbsd*) |
8048 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8049 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
8050 | else | |
8051 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6d0860ee AO |
8052 | fi |
8053 | ;; | |
1cf3d07d SE |
8054 | |
8055 | osf3* | osf4* | osf5*) | |
8056 | lt_cv_deplibs_check_method=pass_all | |
8057 | ;; | |
8058 | ||
8059 | rdos*) | |
8060 | lt_cv_deplibs_check_method=pass_all | |
8061 | ;; | |
8062 | ||
8063 | solaris*) | |
8064 | lt_cv_deplibs_check_method=pass_all | |
8065 | ;; | |
8066 | ||
8067 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
8068 | lt_cv_deplibs_check_method=pass_all | |
8069 | ;; | |
8070 | ||
8071 | sysv4 | sysv4.3*) | |
8072 | case $host_vendor in | |
8073 | motorola) | |
8074 | 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]' | |
8075 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
8076 | ;; | |
8077 | ncr) | |
8078 | lt_cv_deplibs_check_method=pass_all | |
8079 | ;; | |
8080 | sequent) | |
8081 | lt_cv_file_magic_cmd='/bin/file' | |
8082 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
8083 | ;; | |
8084 | sni) | |
8085 | lt_cv_file_magic_cmd='/bin/file' | |
8086 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
8087 | lt_cv_file_magic_test_file=/lib/libc.so | |
8088 | ;; | |
8089 | siemens) | |
8090 | lt_cv_deplibs_check_method=pass_all | |
8091 | ;; | |
8092 | pc) | |
8093 | lt_cv_deplibs_check_method=pass_all | |
8094 | ;; | |
8095 | esac | |
8096 | ;; | |
8097 | ||
8098 | tpf*) | |
8099 | lt_cv_deplibs_check_method=pass_all | |
8100 | ;; | |
6d0860ee AO |
8101 | esac |
8102 | ||
1cf3d07d | 8103 | fi |
5213506e RW |
8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8105 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
1cf3d07d SE |
8106 | file_magic_cmd=$lt_cv_file_magic_cmd |
8107 | deplibs_check_method=$lt_cv_deplibs_check_method | |
8108 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | ||
8119 | ||
8120 | ||
ed698112 | 8121 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
8122 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
8123 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8125 | $as_echo_n "checking for $ac_word... " >&6; } | |
8126 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8127 | $as_echo_n "(cached) " >&6 | |
6d0860ee | 8128 | else |
1cf3d07d SE |
8129 | if test -n "$AR"; then |
8130 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6d0860ee | 8131 | else |
ed698112 NN |
8132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8133 | for as_dir in $PATH | |
8134 | do | |
8135 | IFS=$as_save_IFS | |
8136 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8137 | for ac_exec_ext in '' $ac_executable_extensions; do |
8138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 8139 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 8140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
8141 | break 2 |
8142 | fi | |
8143 | done | |
5213506e RW |
8144 | done |
8145 | IFS=$as_save_IFS | |
ed698112 | 8146 | |
6d0860ee AO |
8147 | fi |
8148 | fi | |
1cf3d07d SE |
8149 | AR=$ac_cv_prog_AR |
8150 | if test -n "$AR"; then | |
5213506e RW |
8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8152 | $as_echo "$AR" >&6; } | |
1cf3d07d | 8153 | else |
5213506e RW |
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8155 | $as_echo "no" >&6; } | |
6d0860ee AO |
8156 | fi |
8157 | ||
5213506e | 8158 | |
ed698112 | 8159 | fi |
1cf3d07d SE |
8160 | if test -z "$ac_cv_prog_AR"; then |
8161 | ac_ct_AR=$AR | |
8162 | # Extract the first word of "ar", so it can be a program name with args. | |
8163 | set dummy ar; ac_word=$2 | |
5213506e RW |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8165 | $as_echo_n "checking for $ac_word... " >&6; } | |
8166 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
8167 | $as_echo_n "(cached) " >&6 | |
6d0860ee | 8168 | else |
1cf3d07d SE |
8169 | if test -n "$ac_ct_AR"; then |
8170 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6d0860ee | 8171 | else |
ed698112 NN |
8172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8173 | for as_dir in $PATH | |
8174 | do | |
8175 | IFS=$as_save_IFS | |
8176 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8177 | for ac_exec_ext in '' $ac_executable_extensions; do |
8178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 8179 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 8180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
8181 | break 2 |
8182 | fi | |
8183 | done | |
5213506e RW |
8184 | done |
8185 | IFS=$as_save_IFS | |
ed698112 | 8186 | |
6d0860ee AO |
8187 | fi |
8188 | fi | |
1cf3d07d SE |
8189 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
8190 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8192 | $as_echo "$ac_ct_AR" >&6; } | |
6d0860ee | 8193 | else |
5213506e RW |
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8195 | $as_echo "no" >&6; } | |
6d0860ee AO |
8196 | fi |
8197 | ||
5213506e RW |
8198 | if test "x$ac_ct_AR" = x; then |
8199 | AR="false" | |
8200 | else | |
8201 | case $cross_compiling:$ac_tool_warned in | |
8202 | yes:) | |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8204 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8205 | ac_tool_warned=yes ;; | |
8206 | esac | |
8207 | AR=$ac_ct_AR | |
8208 | fi | |
6d0860ee | 8209 | else |
1cf3d07d | 8210 | AR="$ac_cv_prog_AR" |
6d0860ee AO |
8211 | fi |
8212 | ||
1cf3d07d SE |
8213 | test -z "$AR" && AR=ar |
8214 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
8215 | ||
8216 | ||
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | ||
8223 | ||
8224 | ||
8225 | ||
ed698112 NN |
8226 | if test -n "$ac_tool_prefix"; then |
8227 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6d0860ee | 8228 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5213506e RW |
8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8230 | $as_echo_n "checking for $ac_word... " >&6; } | |
8231 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8232 | $as_echo_n "(cached) " >&6 | |
6d0860ee AO |
8233 | else |
8234 | if test -n "$STRIP"; then | |
8235 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8236 | else | |
ed698112 NN |
8237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8238 | for as_dir in $PATH | |
8239 | do | |
8240 | IFS=$as_save_IFS | |
8241 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8242 | for ac_exec_ext in '' $ac_executable_extensions; do |
8243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 8244 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 8245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
8246 | break 2 |
8247 | fi | |
8248 | done | |
5213506e RW |
8249 | done |
8250 | IFS=$as_save_IFS | |
ed698112 | 8251 | |
6d0860ee AO |
8252 | fi |
8253 | fi | |
ed698112 | 8254 | STRIP=$ac_cv_prog_STRIP |
6d0860ee | 8255 | if test -n "$STRIP"; then |
5213506e RW |
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8257 | $as_echo "$STRIP" >&6; } | |
6d0860ee | 8258 | else |
5213506e RW |
8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8260 | $as_echo "no" >&6; } | |
6d0860ee AO |
8261 | fi |
8262 | ||
5213506e | 8263 | |
ed698112 | 8264 | fi |
6d0860ee | 8265 | if test -z "$ac_cv_prog_STRIP"; then |
ed698112 | 8266 | ac_ct_STRIP=$STRIP |
6d0860ee AO |
8267 | # Extract the first word of "strip", so it can be a program name with args. |
8268 | set dummy strip; ac_word=$2 | |
5213506e RW |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8270 | $as_echo_n "checking for $ac_word... " >&6; } | |
8271 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
8272 | $as_echo_n "(cached) " >&6 | |
6d0860ee | 8273 | else |
ed698112 NN |
8274 | if test -n "$ac_ct_STRIP"; then |
8275 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6d0860ee | 8276 | else |
ed698112 NN |
8277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8278 | for as_dir in $PATH | |
8279 | do | |
8280 | IFS=$as_save_IFS | |
8281 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8282 | for ac_exec_ext in '' $ac_executable_extensions; do |
8283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
ed698112 | 8284 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 8285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
8286 | break 2 |
8287 | fi | |
8288 | done | |
5213506e RW |
8289 | done |
8290 | IFS=$as_save_IFS | |
ed698112 | 8291 | |
6d0860ee AO |
8292 | fi |
8293 | fi | |
ed698112 NN |
8294 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
8295 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8297 | $as_echo "$ac_ct_STRIP" >&6; } | |
6d0860ee | 8298 | else |
5213506e RW |
8299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8300 | $as_echo "no" >&6; } | |
6d0860ee AO |
8301 | fi |
8302 | ||
5213506e RW |
8303 | if test "x$ac_ct_STRIP" = x; then |
8304 | STRIP=":" | |
8305 | else | |
8306 | case $cross_compiling:$ac_tool_warned in | |
8307 | yes:) | |
8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8309 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8310 | ac_tool_warned=yes ;; | |
8311 | esac | |
8312 | STRIP=$ac_ct_STRIP | |
8313 | fi | |
6d0860ee | 8314 | else |
ed698112 | 8315 | STRIP="$ac_cv_prog_STRIP" |
6d0860ee AO |
8316 | fi |
8317 | ||
1cf3d07d | 8318 | test -z "$STRIP" && STRIP=: |
6d0860ee | 8319 | |
ed698112 | 8320 | |
7af85558 | 8321 | |
7af85558 | 8322 | |
a3ffcff3 | 8323 | |
ed698112 | 8324 | |
1cf3d07d SE |
8325 | if test -n "$ac_tool_prefix"; then |
8326 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8327 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8329 | $as_echo_n "checking for $ac_word... " >&6; } | |
8330 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8331 | $as_echo_n "(cached) " >&6 | |
6d0860ee | 8332 | else |
1cf3d07d SE |
8333 | if test -n "$RANLIB"; then |
8334 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8335 | else | |
8336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8337 | for as_dir in $PATH | |
8338 | do | |
8339 | IFS=$as_save_IFS | |
8340 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8341 | for ac_exec_ext in '' $ac_executable_extensions; do |
8342 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 8343 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 8344 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d | 8345 | break 2 |
a3ffcff3 | 8346 | fi |
1cf3d07d | 8347 | done |
5213506e RW |
8348 | done |
8349 | IFS=$as_save_IFS | |
a3ffcff3 | 8350 | |
1cf3d07d SE |
8351 | fi |
8352 | fi | |
8353 | RANLIB=$ac_cv_prog_RANLIB | |
8354 | if test -n "$RANLIB"; then | |
5213506e RW |
8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8356 | $as_echo "$RANLIB" >&6; } | |
1cf3d07d | 8357 | else |
5213506e RW |
8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8359 | $as_echo "no" >&6; } | |
1cf3d07d | 8360 | fi |
f5cc59a7 | 8361 | |
5213506e | 8362 | |
1cf3d07d SE |
8363 | fi |
8364 | if test -z "$ac_cv_prog_RANLIB"; then | |
8365 | ac_ct_RANLIB=$RANLIB | |
8366 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8367 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8369 | $as_echo_n "checking for $ac_word... " >&6; } | |
8370 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
8371 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
8372 | else |
8373 | if test -n "$ac_ct_RANLIB"; then | |
8374 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8375 | else | |
8376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8377 | for as_dir in $PATH | |
8378 | do | |
8379 | IFS=$as_save_IFS | |
8380 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8381 | for ac_exec_ext in '' $ac_executable_extensions; do |
8382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 8383 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 8384 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d | 8385 | break 2 |
54d9d34a | 8386 | fi |
1cf3d07d | 8387 | done |
5213506e RW |
8388 | done |
8389 | IFS=$as_save_IFS | |
54d9d34a | 8390 | |
1cf3d07d SE |
8391 | fi |
8392 | fi | |
8393 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8394 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8396 | $as_echo "$ac_ct_RANLIB" >&6; } | |
01b02b11 | 8397 | else |
5213506e RW |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8399 | $as_echo "no" >&6; } | |
1cf3d07d | 8400 | fi |
ed698112 | 8401 | |
5213506e RW |
8402 | if test "x$ac_ct_RANLIB" = x; then |
8403 | RANLIB=":" | |
8404 | else | |
8405 | case $cross_compiling:$ac_tool_warned in | |
8406 | yes:) | |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8408 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8409 | ac_tool_warned=yes ;; | |
8410 | esac | |
8411 | RANLIB=$ac_ct_RANLIB | |
8412 | fi | |
1cf3d07d SE |
8413 | else |
8414 | RANLIB="$ac_cv_prog_RANLIB" | |
8415 | fi | |
8416 | ||
8417 | test -z "$RANLIB" && RANLIB=: | |
ade710a5 | 8418 | |
ed698112 | 8419 | |
01b02b11 | 8420 | |
01b02b11 | 8421 | |
ed698112 | 8422 | |
6d0860ee | 8423 | |
1cf3d07d | 8424 | # Determine commands to create old-style static archives. |
0da7a284 | 8425 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
8426 | old_postinstall_cmds='chmod 644 $oldlib' |
8427 | old_postuninstall_cmds= | |
8428 | ||
8429 | if test -n "$RANLIB"; then | |
8430 | case $host_os in | |
8431 | openbsd*) | |
8432 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8433 | ;; | |
8434 | *) | |
8435 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8436 | ;; | |
8437 | esac | |
8438 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
01b02b11 | 8439 | fi |
1cf3d07d | 8440 | |
43e02a8a RW |
8441 | case $host_os in |
8442 | darwin*) | |
8443 | lock_old_archive_extraction=yes ;; | |
8444 | *) | |
8445 | lock_old_archive_extraction=no ;; | |
8446 | esac | |
8447 | ||
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
1cf3d07d SE |
8453 | |
8454 | ||
8455 | ||
8456 | ||
8457 | ||
8458 | ||
8459 | ||
8460 | ||
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | # If no C compiler was specified, use CC. | |
8487 | LTCC=${LTCC-"$CC"} | |
8488 | ||
8489 | # If no C compiler flags were specified, use CFLAGS. | |
8490 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8491 | ||
8492 | # Allow CC to be a program name with arguments. | |
8493 | compiler=$CC | |
8494 | ||
8495 | ||
8496 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5213506e RW |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8498 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
8499 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
8500 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
8501 | else |
8502 | ||
8503 | # These are sane defaults that work on at least a few old systems. | |
8504 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8505 | ||
8506 | # Character class describing NM global symbol codes. | |
8507 | symcode='[BCDEGRST]' | |
8508 | ||
8509 | # Regexp to match symbols that can be accessed directly from C. | |
8510 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8511 | ||
8512 | # Define system-specific variables. | |
8513 | case $host_os in | |
8514 | aix*) | |
8515 | symcode='[BCDT]' | |
8516 | ;; | |
0da7a284 | 8517 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8518 | symcode='[ABCDGISTW]' |
8519 | ;; | |
8520 | hpux*) | |
8521 | if test "$host_cpu" = ia64; then | |
8522 | symcode='[ABCDEGRST]' | |
01b02b11 | 8523 | fi |
a3ffcff3 | 8524 | ;; |
1cf3d07d SE |
8525 | irix* | nonstopux*) |
8526 | symcode='[BCDEGRST]' | |
8527 | ;; | |
8528 | osf*) | |
8529 | symcode='[BCDEGQRST]' | |
8530 | ;; | |
8531 | solaris*) | |
8532 | symcode='[BDRT]' | |
8533 | ;; | |
8534 | sco3.2v5*) | |
8535 | symcode='[DT]' | |
8536 | ;; | |
8537 | sysv4.2uw2*) | |
8538 | symcode='[DT]' | |
8539 | ;; | |
8540 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8541 | symcode='[ABDT]' | |
8542 | ;; | |
8543 | sysv4) | |
8544 | symcode='[DFNSTU]' | |
8545 | ;; | |
8546 | esac | |
a3ffcff3 | 8547 | |
1cf3d07d SE |
8548 | # If we're using GNU nm, then use its standard symbol codes. |
8549 | case `$NM -V 2>&1` in | |
8550 | *GNU* | *'with BFD'*) | |
8551 | symcode='[ABCDGIRSTW]' ;; | |
a3ffcff3 TT |
8552 | esac |
8553 | ||
1cf3d07d SE |
8554 | # Transform an extracted symbol line into a proper C declaration. |
8555 | # Some systems (esp. on ia64) link data and code symbols differently, | |
8556 | # so use this general approach. | |
8557 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
01b02b11 | 8558 | |
1cf3d07d SE |
8559 | # Transform an extracted symbol line into symbol name and symbol address |
8560 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
0da7a284 | 8561 | 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'" |
ed698112 | 8562 | |
1cf3d07d SE |
8563 | # Handle CRLF in mingw tool chain |
8564 | opt_cr= | |
8565 | case $build_os in | |
8566 | mingw*) | |
8567 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8568 | ;; | |
8569 | esac | |
ed698112 | 8570 | |
1cf3d07d SE |
8571 | # Try without a prefix underscore, then with it. |
8572 | for ac_symprfx in "" "_"; do | |
8573 | ||
8574 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8575 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8576 | ||
8577 | # Write the raw and C identifiers. | |
8578 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
8579 | # Fake it for dumpbin and say T for any non-static function | |
8580 | # and D for any global variable. | |
8581 | # Also find C++ and __fastcall symbols from MSVC++, | |
8582 | # which start with @ or ?. | |
8583 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
8584 | " {last_section=section; section=\$ 3};"\ | |
8585 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
8586 | " \$ 0!~/External *\|/{next};"\ | |
8587 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
8588 | " {if(hide[section]) next};"\ | |
8589 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
8590 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
8591 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
8592 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
8593 | " ' prfx=^$ac_symprfx" | |
01b02b11 | 8594 | else |
1cf3d07d | 8595 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
01b02b11 | 8596 | fi |
01b02b11 | 8597 | |
1cf3d07d SE |
8598 | # Check to see that the pipe works correctly. |
8599 | pipe_works=no | |
a3ffcff3 | 8600 | |
1cf3d07d SE |
8601 | rm -f conftest* |
8602 | cat > conftest.$ac_ext <<_LT_EOF | |
8603 | #ifdef __cplusplus | |
8604 | extern "C" { | |
8605 | #endif | |
8606 | char nm_test_var; | |
8607 | void nm_test_func(void); | |
8608 | void nm_test_func(void){} | |
8609 | #ifdef __cplusplus | |
8610 | } | |
8611 | #endif | |
8612 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8613 | _LT_EOF | |
01b02b11 | 8614 | |
5213506e | 8615 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8616 | (eval $ac_compile) 2>&5 |
8617 | ac_status=$? | |
5213506e RW |
8618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8619 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8620 | # Now try to grab the symbols. |
8621 | nlist=conftest.nm | |
43e02a8a RW |
8622 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
8623 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
1cf3d07d | 8624 | ac_status=$? |
5213506e RW |
8625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8626 | test $ac_status = 0; } && test -s "$nlist"; then | |
1cf3d07d SE |
8627 | # Try sorting and uniquifying the output. |
8628 | if sort "$nlist" | uniq > "$nlist"T; then | |
8629 | mv -f "$nlist"T "$nlist" | |
8630 | else | |
8631 | rm -f "$nlist"T | |
8632 | fi | |
01b02b11 | 8633 | |
1cf3d07d SE |
8634 | # Make sure that we snagged all the symbols we need. |
8635 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
8636 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
8637 | cat <<_LT_EOF > conftest.$ac_ext | |
8638 | #ifdef __cplusplus | |
8639 | extern "C" { | |
8640 | #endif | |
01b02b11 | 8641 | |
1cf3d07d SE |
8642 | _LT_EOF |
8643 | # Now generate the symbol file. | |
8644 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
01b02b11 | 8645 | |
1cf3d07d | 8646 | cat <<_LT_EOF >> conftest.$ac_ext |
a3ffcff3 | 8647 | |
1cf3d07d SE |
8648 | /* The mapping between symbol names and symbols. */ |
8649 | const struct { | |
8650 | const char *name; | |
8651 | void *address; | |
8652 | } | |
8653 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8654 | { | |
8655 | { "@PROGRAM@", (void *) 0 }, | |
8656 | _LT_EOF | |
8657 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8658 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8659 | {0, (void *) 0} | |
8660 | }; | |
8661 | ||
8662 | /* This works around a problem in FreeBSD linker */ | |
8663 | #ifdef FREEBSD_WORKAROUND | |
8664 | static const void *lt_preloaded_setup() { | |
8665 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8666 | } | |
ed698112 | 8667 | #endif |
1cf3d07d SE |
8668 | |
8669 | #ifdef __cplusplus | |
8670 | } | |
8671 | #endif | |
8672 | _LT_EOF | |
8673 | # Now try linking the two files. | |
8674 | mv conftest.$ac_objext conftstm.$ac_objext | |
8675 | lt_save_LIBS="$LIBS" | |
8676 | lt_save_CFLAGS="$CFLAGS" | |
8677 | LIBS="conftstm.$ac_objext" | |
8678 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5213506e | 8679 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d | 8680 | (eval $ac_link) 2>&5 |
ed698112 | 8681 | ac_status=$? |
5213506e RW |
8682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8683 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
1cf3d07d SE |
8684 | pipe_works=yes |
8685 | fi | |
8686 | LIBS="$lt_save_LIBS" | |
8687 | CFLAGS="$lt_save_CFLAGS" | |
8688 | else | |
8689 | echo "cannot find nm_test_func in $nlist" >&5 | |
8690 | fi | |
8691 | else | |
8692 | echo "cannot find nm_test_var in $nlist" >&5 | |
8693 | fi | |
8694 | else | |
8695 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8696 | fi | |
ed698112 | 8697 | else |
1cf3d07d SE |
8698 | echo "$progname: failed program was:" >&5 |
8699 | cat conftest.$ac_ext >&5 | |
ed698112 | 8700 | fi |
0da7a284 | 8701 | rm -rf conftest* conftst* |
1cf3d07d SE |
8702 | |
8703 | # Do not use the global_symbol_pipe unless it works. | |
8704 | if test "$pipe_works" = yes; then | |
8705 | break | |
8706 | else | |
8707 | lt_cv_sys_global_symbol_pipe= | |
8708 | fi | |
8709 | done | |
8710 | ||
ed698112 | 8711 | fi |
ed698112 | 8712 | |
1cf3d07d SE |
8713 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
8714 | lt_cv_sys_global_symbol_to_cdecl= | |
8715 | fi | |
8716 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5213506e RW |
8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8718 | $as_echo "failed" >&6; } | |
1cf3d07d | 8719 | else |
5213506e RW |
8720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8721 | $as_echo "ok" >&6; } | |
ed698112 | 8722 | fi |
ed698112 | 8723 | |
1cf3d07d SE |
8724 | |
8725 | ||
8726 | ||
8727 | ||
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | ||
8733 | ||
8734 | ||
8735 | ||
8736 | ||
8737 | ||
0da7a284 PG |
8738 | |
8739 | ||
8740 | ||
8741 | ||
8742 | ||
1cf3d07d SE |
8743 | |
8744 | ||
8745 | ||
5213506e RW |
8746 | # Check whether --enable-libtool-lock was given. |
8747 | if test "${enable_libtool_lock+set}" = set; then : | |
8748 | enableval=$enable_libtool_lock; | |
8749 | fi | |
1cf3d07d | 8750 | |
1cf3d07d SE |
8751 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
8752 | ||
8753 | # Some flags need to be propagated to the compiler or linker for good | |
8754 | # libtool support. | |
8755 | case $host in | |
8756 | ia64-*-hpux*) | |
8757 | # Find out which ABI we are using. | |
8758 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8759 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8760 | (eval $ac_compile) 2>&5 |
8761 | ac_status=$? | |
5213506e RW |
8762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8763 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8764 | case `/usr/bin/file conftest.$ac_objext` in |
8765 | *ELF-32*) | |
8766 | HPUX_IA64_MODE="32" | |
8767 | ;; | |
8768 | *ELF-64*) | |
8769 | HPUX_IA64_MODE="64" | |
8770 | ;; | |
8771 | esac | |
8772 | fi | |
8773 | rm -rf conftest* | |
8774 | ;; | |
8775 | *-*-irix6*) | |
8776 | # Find out which ABI we are using. | |
43e02a8a | 8777 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
5213506e | 8778 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8779 | (eval $ac_compile) 2>&5 |
8780 | ac_status=$? | |
5213506e RW |
8781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8782 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8783 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8784 | case `/usr/bin/file conftest.$ac_objext` in | |
8785 | *32-bit*) | |
8786 | LD="${LD-ld} -melf32bsmip" | |
8787 | ;; | |
8788 | *N32*) | |
8789 | LD="${LD-ld} -melf32bmipn32" | |
8790 | ;; | |
8791 | *64-bit*) | |
8792 | LD="${LD-ld} -melf64bmip" | |
8793 | ;; | |
8794 | esac | |
8795 | else | |
8796 | case `/usr/bin/file conftest.$ac_objext` in | |
8797 | *32-bit*) | |
8798 | LD="${LD-ld} -32" | |
8799 | ;; | |
8800 | *N32*) | |
8801 | LD="${LD-ld} -n32" | |
8802 | ;; | |
8803 | *64-bit*) | |
8804 | LD="${LD-ld} -64" | |
8805 | ;; | |
8806 | esac | |
8807 | fi | |
8808 | fi | |
8809 | rm -rf conftest* | |
8810 | ;; | |
8811 | ||
8812 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
8813 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
8814 | # Find out which ABI we are using. | |
8815 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8816 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8817 | (eval $ac_compile) 2>&5 |
8818 | ac_status=$? | |
5213506e RW |
8819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8820 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8821 | case `/usr/bin/file conftest.o` in |
8822 | *32-bit*) | |
8823 | case $host in | |
8824 | x86_64-*kfreebsd*-gnu) | |
8825 | LD="${LD-ld} -m elf_i386_fbsd" | |
8826 | ;; | |
8827 | x86_64-*linux*) | |
8828 | LD="${LD-ld} -m elf_i386" | |
8829 | ;; | |
8830 | ppc64-*linux*|powerpc64-*linux*) | |
8831 | LD="${LD-ld} -m elf32ppclinux" | |
8832 | ;; | |
8833 | s390x-*linux*) | |
8834 | LD="${LD-ld} -m elf_s390" | |
8835 | ;; | |
8836 | sparc64-*linux*) | |
8837 | LD="${LD-ld} -m elf32_sparc" | |
8838 | ;; | |
8839 | esac | |
8840 | ;; | |
8841 | *64-bit*) | |
8842 | case $host in | |
8843 | x86_64-*kfreebsd*-gnu) | |
8844 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8845 | ;; | |
8846 | x86_64-*linux*) | |
8847 | LD="${LD-ld} -m elf_x86_64" | |
8848 | ;; | |
8849 | ppc*-*linux*|powerpc*-*linux*) | |
8850 | LD="${LD-ld} -m elf64ppc" | |
8851 | ;; | |
8852 | s390*-*linux*|s390*-*tpf*) | |
8853 | LD="${LD-ld} -m elf64_s390" | |
8854 | ;; | |
8855 | sparc*-*linux*) | |
8856 | LD="${LD-ld} -m elf64_sparc" | |
8857 | ;; | |
8858 | esac | |
8859 | ;; | |
8860 | esac | |
ed698112 | 8861 | fi |
1cf3d07d SE |
8862 | rm -rf conftest* |
8863 | ;; | |
8864 | ||
8865 | *-*-sco3.2v5*) | |
8866 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8867 | SAVE_CFLAGS="$CFLAGS" | |
8868 | CFLAGS="$CFLAGS -belf" | |
5213506e RW |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8870 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
8871 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
8872 | $as_echo_n "(cached) " >&6 | |
ed698112 | 8873 | else |
1cf3d07d SE |
8874 | ac_ext=c |
8875 | ac_cpp='$CPP $CPPFLAGS' | |
8876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8879 | ||
8880 | if test x$gcc_no_link = xyes; then | |
5213506e | 8881 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ed698112 | 8882 | fi |
5213506e | 8883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
8884 | /* end confdefs.h. */ |
8885 | ||
8886 | int | |
8887 | main () | |
8888 | { | |
8889 | ||
8890 | ; | |
8891 | return 0; | |
8892 | } | |
8893 | _ACEOF | |
5213506e | 8894 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d | 8895 | lt_cv_cc_needs_belf=yes |
ed698112 | 8896 | else |
5213506e | 8897 | lt_cv_cc_needs_belf=no |
ed698112 | 8898 | fi |
5213506e RW |
8899 | rm -f core conftest.err conftest.$ac_objext \ |
8900 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
8901 | ac_ext=c |
8902 | ac_cpp='$CPP $CPPFLAGS' | |
8903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ed698112 | 8906 | |
ed698112 | 8907 | fi |
5213506e RW |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8909 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
1cf3d07d SE |
8910 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
8911 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8912 | CFLAGS="$SAVE_CFLAGS" | |
8913 | fi | |
8914 | ;; | |
8915 | sparc*-*solaris*) | |
8916 | # Find out which ABI we are using. | |
8917 | echo 'int i;' > conftest.$ac_ext | |
5213506e | 8918 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
8919 | (eval $ac_compile) 2>&5 |
8920 | ac_status=$? | |
5213506e RW |
8921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8922 | test $ac_status = 0; }; then | |
1cf3d07d SE |
8923 | case `/usr/bin/file conftest.o` in |
8924 | *64-bit*) | |
8925 | case $lt_cv_prog_gnu_ld in | |
8926 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
0da7a284 PG |
8927 | *) |
8928 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8929 | LD="${LD-ld} -64" | |
8930 | fi | |
8931 | ;; | |
1cf3d07d SE |
8932 | esac |
8933 | ;; | |
8934 | esac | |
8935 | fi | |
8936 | rm -rf conftest* | |
8937 | ;; | |
8938 | esac | |
ed698112 | 8939 | |
1cf3d07d | 8940 | need_locks="$enable_libtool_lock" |
ed698112 | 8941 | |
0da7a284 PG |
8942 | |
8943 | case $host_os in | |
8944 | rhapsody* | darwin*) | |
8945 | if test -n "$ac_tool_prefix"; then | |
8946 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8947 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5213506e RW |
8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8949 | $as_echo_n "checking for $ac_word... " >&6; } | |
8950 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
8951 | $as_echo_n "(cached) " >&6 | |
ed698112 | 8952 | else |
0da7a284 PG |
8953 | if test -n "$DSYMUTIL"; then |
8954 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8955 | else | |
8956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8957 | for as_dir in $PATH | |
ed698112 | 8958 | do |
0da7a284 PG |
8959 | IFS=$as_save_IFS |
8960 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8961 | for ac_exec_ext in '' $ac_executable_extensions; do |
8962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 8963 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
5213506e | 8964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 | 8965 | break 2 |
ed698112 | 8966 | fi |
0da7a284 | 8967 | done |
5213506e RW |
8968 | done |
8969 | IFS=$as_save_IFS | |
ed698112 | 8970 | |
ed698112 | 8971 | fi |
0da7a284 PG |
8972 | fi |
8973 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8974 | if test -n "$DSYMUTIL"; then | |
5213506e RW |
8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8976 | $as_echo "$DSYMUTIL" >&6; } | |
ed698112 | 8977 | else |
5213506e RW |
8978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8979 | $as_echo "no" >&6; } | |
ed698112 | 8980 | fi |
0da7a284 | 8981 | |
5213506e | 8982 | |
0da7a284 PG |
8983 | fi |
8984 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8985 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8986 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8987 | set dummy dsymutil; ac_word=$2 | |
5213506e RW |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8989 | $as_echo_n "checking for $ac_word... " >&6; } | |
8990 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
8991 | $as_echo_n "(cached) " >&6 | |
ed698112 | 8992 | else |
0da7a284 PG |
8993 | if test -n "$ac_ct_DSYMUTIL"; then |
8994 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8995 | else | |
8996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8997 | for as_dir in $PATH | |
8998 | do | |
8999 | IFS=$as_save_IFS | |
9000 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9001 | for ac_exec_ext in '' $ac_executable_extensions; do |
9002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9003 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
5213506e | 9004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
9005 | break 2 |
9006 | fi | |
9007 | done | |
5213506e RW |
9008 | done |
9009 | IFS=$as_save_IFS | |
ed698112 | 9010 | |
0da7a284 PG |
9011 | fi |
9012 | fi | |
9013 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
9014 | if test -n "$ac_ct_DSYMUTIL"; then | |
5213506e RW |
9015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
9016 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
0da7a284 | 9017 | else |
5213506e RW |
9018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9019 | $as_echo "no" >&6; } | |
ed698112 | 9020 | fi |
ed698112 | 9021 | |
5213506e RW |
9022 | if test "x$ac_ct_DSYMUTIL" = x; then |
9023 | DSYMUTIL=":" | |
9024 | else | |
9025 | case $cross_compiling:$ac_tool_warned in | |
9026 | yes:) | |
9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9028 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9029 | ac_tool_warned=yes ;; | |
9030 | esac | |
9031 | DSYMUTIL=$ac_ct_DSYMUTIL | |
9032 | fi | |
0da7a284 PG |
9033 | else |
9034 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
ed698112 NN |
9035 | fi |
9036 | ||
0da7a284 PG |
9037 | if test -n "$ac_tool_prefix"; then |
9038 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
9039 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5213506e RW |
9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9041 | $as_echo_n "checking for $ac_word... " >&6; } | |
9042 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
9043 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9044 | else |
9045 | if test -n "$NMEDIT"; then | |
9046 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
9047 | else | |
9048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9049 | for as_dir in $PATH | |
9050 | do | |
9051 | IFS=$as_save_IFS | |
9052 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9053 | for ac_exec_ext in '' $ac_executable_extensions; do |
9054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9055 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
5213506e | 9056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
9057 | break 2 |
9058 | fi | |
9059 | done | |
5213506e RW |
9060 | done |
9061 | IFS=$as_save_IFS | |
e3f92d3b | 9062 | |
1cf3d07d | 9063 | fi |
0da7a284 PG |
9064 | fi |
9065 | NMEDIT=$ac_cv_prog_NMEDIT | |
9066 | if test -n "$NMEDIT"; then | |
5213506e RW |
9067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
9068 | $as_echo "$NMEDIT" >&6; } | |
e3f92d3b | 9069 | else |
5213506e RW |
9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9071 | $as_echo "no" >&6; } | |
1cf3d07d | 9072 | fi |
0da7a284 | 9073 | |
5213506e | 9074 | |
0da7a284 PG |
9075 | fi |
9076 | if test -z "$ac_cv_prog_NMEDIT"; then | |
9077 | ac_ct_NMEDIT=$NMEDIT | |
9078 | # Extract the first word of "nmedit", so it can be a program name with args. | |
9079 | set dummy nmedit; ac_word=$2 | |
5213506e RW |
9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9081 | $as_echo_n "checking for $ac_word... " >&6; } | |
9082 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
9083 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9084 | else |
9085 | if test -n "$ac_ct_NMEDIT"; then | |
9086 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
9087 | else | |
9088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9089 | for as_dir in $PATH | |
e3f92d3b | 9090 | do |
0da7a284 PG |
9091 | IFS=$as_save_IFS |
9092 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9093 | for ac_exec_ext in '' $ac_executable_extensions; do |
9094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9095 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
5213506e | 9096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 | 9097 | break 2 |
e3f92d3b | 9098 | fi |
0da7a284 | 9099 | done |
5213506e RW |
9100 | done |
9101 | IFS=$as_save_IFS | |
0da7a284 | 9102 | |
e3f92d3b | 9103 | fi |
0da7a284 PG |
9104 | fi |
9105 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
9106 | if test -n "$ac_ct_NMEDIT"; then | |
5213506e RW |
9107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
9108 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
1cf3d07d | 9109 | else |
5213506e RW |
9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9111 | $as_echo "no" >&6; } | |
e3f92d3b MK |
9112 | fi |
9113 | ||
5213506e RW |
9114 | if test "x$ac_ct_NMEDIT" = x; then |
9115 | NMEDIT=":" | |
9116 | else | |
9117 | case $cross_compiling:$ac_tool_warned in | |
9118 | yes:) | |
9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9121 | ac_tool_warned=yes ;; | |
9122 | esac | |
9123 | NMEDIT=$ac_ct_NMEDIT | |
9124 | fi | |
e3f92d3b | 9125 | else |
0da7a284 | 9126 | NMEDIT="$ac_cv_prog_NMEDIT" |
e3f92d3b | 9127 | fi |
0da7a284 PG |
9128 | |
9129 | if test -n "$ac_tool_prefix"; then | |
9130 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
9131 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9133 | $as_echo_n "checking for $ac_word... " >&6; } | |
9134 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
9135 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 9136 | else |
0da7a284 PG |
9137 | if test -n "$LIPO"; then |
9138 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
9139 | else | |
9140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9141 | for as_dir in $PATH | |
9142 | do | |
9143 | IFS=$as_save_IFS | |
9144 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9145 | for ac_exec_ext in '' $ac_executable_extensions; do |
9146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9147 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 9148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
9149 | break 2 |
9150 | fi | |
9151 | done | |
5213506e RW |
9152 | done |
9153 | IFS=$as_save_IFS | |
e3f92d3b MK |
9154 | |
9155 | fi | |
0da7a284 PG |
9156 | fi |
9157 | LIPO=$ac_cv_prog_LIPO | |
9158 | if test -n "$LIPO"; then | |
5213506e RW |
9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
9160 | $as_echo "$LIPO" >&6; } | |
e3f92d3b | 9161 | else |
5213506e RW |
9162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9163 | $as_echo "no" >&6; } | |
1cf3d07d | 9164 | fi |
6d0860ee | 9165 | |
5213506e | 9166 | |
0da7a284 PG |
9167 | fi |
9168 | if test -z "$ac_cv_prog_LIPO"; then | |
9169 | ac_ct_LIPO=$LIPO | |
9170 | # Extract the first word of "lipo", so it can be a program name with args. | |
9171 | set dummy lipo; ac_word=$2 | |
5213506e RW |
9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9173 | $as_echo_n "checking for $ac_word... " >&6; } | |
9174 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
9175 | $as_echo_n "(cached) " >&6 | |
e3f92d3b | 9176 | else |
0da7a284 PG |
9177 | if test -n "$ac_ct_LIPO"; then |
9178 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
9179 | else | |
9180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9181 | for as_dir in $PATH | |
9182 | do | |
9183 | IFS=$as_save_IFS | |
9184 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9185 | for ac_exec_ext in '' $ac_executable_extensions; do |
9186 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9187 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 9188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
9189 | break 2 |
9190 | fi | |
9191 | done | |
5213506e RW |
9192 | done |
9193 | IFS=$as_save_IFS | |
0da7a284 | 9194 | |
0da7a284 PG |
9195 | fi |
9196 | fi | |
9197 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
9198 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
9200 | $as_echo "$ac_ct_LIPO" >&6; } | |
0da7a284 | 9201 | else |
5213506e RW |
9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9203 | $as_echo "no" >&6; } | |
0da7a284 PG |
9204 | fi |
9205 | ||
5213506e RW |
9206 | if test "x$ac_ct_LIPO" = x; then |
9207 | LIPO=":" | |
9208 | else | |
9209 | case $cross_compiling:$ac_tool_warned in | |
9210 | yes:) | |
9211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9212 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9213 | ac_tool_warned=yes ;; | |
9214 | esac | |
9215 | LIPO=$ac_ct_LIPO | |
9216 | fi | |
0da7a284 PG |
9217 | else |
9218 | LIPO="$ac_cv_prog_LIPO" | |
9219 | fi | |
9220 | ||
9221 | if test -n "$ac_tool_prefix"; then | |
9222 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
9223 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5213506e RW |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9225 | $as_echo_n "checking for $ac_word... " >&6; } | |
9226 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
9227 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9228 | else |
9229 | if test -n "$OTOOL"; then | |
9230 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
9231 | else | |
9232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9233 | for as_dir in $PATH | |
9234 | do | |
9235 | IFS=$as_save_IFS | |
9236 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9237 | for ac_exec_ext in '' $ac_executable_extensions; do |
9238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9239 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
5213506e | 9240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
9241 | break 2 |
9242 | fi | |
9243 | done | |
5213506e RW |
9244 | done |
9245 | IFS=$as_save_IFS | |
0da7a284 PG |
9246 | |
9247 | fi | |
9248 | fi | |
9249 | OTOOL=$ac_cv_prog_OTOOL | |
9250 | if test -n "$OTOOL"; then | |
5213506e RW |
9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
9252 | $as_echo "$OTOOL" >&6; } | |
0da7a284 | 9253 | else |
5213506e RW |
9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9255 | $as_echo "no" >&6; } | |
0da7a284 PG |
9256 | fi |
9257 | ||
5213506e | 9258 | |
0da7a284 PG |
9259 | fi |
9260 | if test -z "$ac_cv_prog_OTOOL"; then | |
9261 | ac_ct_OTOOL=$OTOOL | |
9262 | # Extract the first word of "otool", so it can be a program name with args. | |
9263 | set dummy otool; ac_word=$2 | |
5213506e RW |
9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9265 | $as_echo_n "checking for $ac_word... " >&6; } | |
9266 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
9267 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9268 | else |
9269 | if test -n "$ac_ct_OTOOL"; then | |
9270 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
9271 | else | |
9272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9273 | for as_dir in $PATH | |
9274 | do | |
9275 | IFS=$as_save_IFS | |
9276 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9277 | for ac_exec_ext in '' $ac_executable_extensions; do |
9278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9279 | ac_cv_prog_ac_ct_OTOOL="otool" |
5213506e | 9280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
9281 | break 2 |
9282 | fi | |
9283 | done | |
5213506e RW |
9284 | done |
9285 | IFS=$as_save_IFS | |
0da7a284 | 9286 | |
0da7a284 PG |
9287 | fi |
9288 | fi | |
9289 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
9290 | if test -n "$ac_ct_OTOOL"; then | |
5213506e RW |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
9292 | $as_echo "$ac_ct_OTOOL" >&6; } | |
0da7a284 | 9293 | else |
5213506e RW |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9295 | $as_echo "no" >&6; } | |
0da7a284 PG |
9296 | fi |
9297 | ||
5213506e RW |
9298 | if test "x$ac_ct_OTOOL" = x; then |
9299 | OTOOL=":" | |
9300 | else | |
9301 | case $cross_compiling:$ac_tool_warned in | |
9302 | yes:) | |
9303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9304 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9305 | ac_tool_warned=yes ;; | |
9306 | esac | |
9307 | OTOOL=$ac_ct_OTOOL | |
9308 | fi | |
0da7a284 PG |
9309 | else |
9310 | OTOOL="$ac_cv_prog_OTOOL" | |
9311 | fi | |
9312 | ||
9313 | if test -n "$ac_tool_prefix"; then | |
9314 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
9315 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5213506e RW |
9316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9317 | $as_echo_n "checking for $ac_word... " >&6; } | |
9318 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
9319 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9320 | else |
9321 | if test -n "$OTOOL64"; then | |
9322 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
9323 | else | |
9324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9325 | for as_dir in $PATH | |
9326 | do | |
9327 | IFS=$as_save_IFS | |
9328 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9329 | for ac_exec_ext in '' $ac_executable_extensions; do |
9330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9331 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
5213506e | 9332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
9333 | break 2 |
9334 | fi | |
9335 | done | |
5213506e RW |
9336 | done |
9337 | IFS=$as_save_IFS | |
0da7a284 PG |
9338 | |
9339 | fi | |
9340 | fi | |
9341 | OTOOL64=$ac_cv_prog_OTOOL64 | |
9342 | if test -n "$OTOOL64"; then | |
5213506e RW |
9343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
9344 | $as_echo "$OTOOL64" >&6; } | |
0da7a284 | 9345 | else |
5213506e RW |
9346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9347 | $as_echo "no" >&6; } | |
0da7a284 PG |
9348 | fi |
9349 | ||
5213506e | 9350 | |
0da7a284 PG |
9351 | fi |
9352 | if test -z "$ac_cv_prog_OTOOL64"; then | |
9353 | ac_ct_OTOOL64=$OTOOL64 | |
9354 | # Extract the first word of "otool64", so it can be a program name with args. | |
9355 | set dummy otool64; ac_word=$2 | |
5213506e RW |
9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9357 | $as_echo_n "checking for $ac_word... " >&6; } | |
9358 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
9359 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9360 | else |
9361 | if test -n "$ac_ct_OTOOL64"; then | |
9362 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
9363 | else | |
9364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9365 | for as_dir in $PATH | |
9366 | do | |
9367 | IFS=$as_save_IFS | |
9368 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9369 | for ac_exec_ext in '' $ac_executable_extensions; do |
9370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0da7a284 | 9371 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
5213506e | 9372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0da7a284 PG |
9373 | break 2 |
9374 | fi | |
9375 | done | |
5213506e RW |
9376 | done |
9377 | IFS=$as_save_IFS | |
0da7a284 | 9378 | |
0da7a284 PG |
9379 | fi |
9380 | fi | |
9381 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
9382 | if test -n "$ac_ct_OTOOL64"; then | |
5213506e RW |
9383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
9384 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
0da7a284 | 9385 | else |
5213506e RW |
9386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9387 | $as_echo "no" >&6; } | |
0da7a284 PG |
9388 | fi |
9389 | ||
5213506e RW |
9390 | if test "x$ac_ct_OTOOL64" = x; then |
9391 | OTOOL64=":" | |
9392 | else | |
9393 | case $cross_compiling:$ac_tool_warned in | |
9394 | yes:) | |
9395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9396 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9397 | ac_tool_warned=yes ;; | |
9398 | esac | |
9399 | OTOOL64=$ac_ct_OTOOL64 | |
9400 | fi | |
0da7a284 PG |
9401 | else |
9402 | OTOOL64="$ac_cv_prog_OTOOL64" | |
9403 | fi | |
9404 | ||
9405 | ||
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
5213506e RW |
9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
9432 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
9433 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
9434 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9435 | else |
9436 | lt_cv_apple_cc_single_mod=no | |
9437 | if test -z "${LT_MULTI_MODULE}"; then | |
9438 | # By default we will add the -single_module flag. You can override | |
9439 | # by either setting the environment variable LT_MULTI_MODULE | |
9440 | # non-empty at configure time, or by adding -multi_module to the | |
9441 | # link flags. | |
9442 | rm -rf libconftest.dylib* | |
9443 | echo "int foo(void){return 1;}" > conftest.c | |
9444 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9445 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
9446 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
9447 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
9448 | _lt_result=$? | |
9449 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
9450 | lt_cv_apple_cc_single_mod=yes | |
9451 | else | |
9452 | cat conftest.err >&5 | |
9453 | fi | |
9454 | rm -rf libconftest.dylib* | |
9455 | rm -f conftest.* | |
9456 | fi | |
9457 | fi | |
5213506e RW |
9458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
9459 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
9461 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
9462 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
9463 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9464 | else |
9465 | lt_cv_ld_exported_symbols_list=no | |
9466 | save_LDFLAGS=$LDFLAGS | |
9467 | echo "_main" > conftest.sym | |
9468 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
9469 | if test x$gcc_no_link = xyes; then | |
5213506e | 9470 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
0da7a284 | 9471 | fi |
5213506e | 9472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0da7a284 | 9473 | /* end confdefs.h. */ |
e3f92d3b MK |
9474 | |
9475 | int | |
9476 | main () | |
9477 | { | |
9478 | ||
9479 | ; | |
9480 | return 0; | |
9481 | } | |
9482 | _ACEOF | |
5213506e | 9483 | if ac_fn_c_try_link "$LINENO"; then : |
0da7a284 | 9484 | lt_cv_ld_exported_symbols_list=yes |
e3f92d3b | 9485 | else |
5213506e | 9486 | lt_cv_ld_exported_symbols_list=no |
e3f92d3b | 9487 | fi |
5213506e RW |
9488 | rm -f core conftest.err conftest.$ac_objext \ |
9489 | conftest$ac_exeext conftest.$ac_ext | |
0da7a284 | 9490 | LDFLAGS="$save_LDFLAGS" |
ed698112 | 9491 | |
e3f92d3b | 9492 | fi |
5213506e RW |
9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9494 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
43e02a8a RW |
9495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
9496 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
9497 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
9498 | $as_echo_n "(cached) " >&6 | |
9499 | else | |
9500 | lt_cv_ld_force_load=no | |
9501 | cat > conftest.c << _LT_EOF | |
9502 | int forced_loaded() { return 2;} | |
9503 | _LT_EOF | |
9504 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
9505 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
9506 | echo "$AR cru libconftest.a conftest.o" >&5 | |
9507 | $AR cru libconftest.a conftest.o 2>&5 | |
9508 | cat > conftest.c << _LT_EOF | |
9509 | int main() { return 0;} | |
9510 | _LT_EOF | |
9511 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
9512 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
9513 | _lt_result=$? | |
9514 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
9515 | lt_cv_ld_force_load=yes | |
9516 | else | |
9517 | cat conftest.err >&5 | |
9518 | fi | |
9519 | rm -f conftest.err libconftest.a conftest conftest.c | |
9520 | rm -rf conftest.dSYM | |
9521 | ||
9522 | fi | |
9523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
9524 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
0da7a284 PG |
9525 | case $host_os in |
9526 | rhapsody* | darwin1.[012]) | |
9527 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
9528 | darwin1.*) | |
9529 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
9530 | darwin*) # darwin 5.x on | |
9531 | # if running on 10.5 or later, the deployment target defaults | |
9532 | # to the OS version, if on x86, and 10.4, the deployment | |
9533 | # target defaults to 10.4. Don't you love it? | |
9534 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
9535 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
9536 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
9537 | 10.[012]*) | |
9538 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
9539 | 10.*) | |
9540 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
9541 | esac | |
9542 | ;; | |
9543 | esac | |
9544 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
9545 | _lt_dar_single_mod='$single_module' | |
9546 | fi | |
9547 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
9548 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
9549 | else | |
9550 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
9551 | fi | |
43e02a8a | 9552 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
0da7a284 PG |
9553 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
9554 | else | |
9555 | _lt_dsymutil= | |
9556 | fi | |
9557 | ;; | |
9558 | esac | |
ed698112 | 9559 | |
0da7a284 PG |
9560 | ac_ext=c |
9561 | ac_cpp='$CPP $CPPFLAGS' | |
9562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
9565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
9566 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
0da7a284 PG |
9567 | # On Suns, sometimes $CPP names a directory. |
9568 | if test -n "$CPP" && test -d "$CPP"; then | |
9569 | CPP= | |
e3f92d3b | 9570 | fi |
0da7a284 | 9571 | if test -z "$CPP"; then |
5213506e RW |
9572 | if test "${ac_cv_prog_CPP+set}" = set; then : |
9573 | $as_echo_n "(cached) " >&6 | |
0da7a284 PG |
9574 | else |
9575 | # Double quotes because CPP needs to be expanded | |
9576 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
9577 | do | |
9578 | ac_preproc_ok=false | |
9579 | for ac_c_preproc_warn_flag in '' yes | |
9580 | do | |
9581 | # Use a header file that comes with gcc, so configuring glibc | |
9582 | # with a fresh cross-compiler works. | |
9583 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9584 | # <limits.h> exists even on freestanding compilers. | |
9585 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
9586 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 9587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 9588 | /* end confdefs.h. */ |
0da7a284 PG |
9589 | #ifdef __STDC__ |
9590 | # include <limits.h> | |
9591 | #else | |
9592 | # include <assert.h> | |
9593 | #endif | |
9594 | Syntax error | |
9595 | _ACEOF | |
5213506e | 9596 | if ac_fn_c_try_cpp "$LINENO"; then : |
0da7a284 | 9597 | |
5213506e | 9598 | else |
0da7a284 PG |
9599 | # Broken: fails on valid input. |
9600 | continue | |
ee9dd372 | 9601 | fi |
0da7a284 PG |
9602 | rm -f conftest.err conftest.$ac_ext |
9603 | ||
5213506e | 9604 | # OK, works on sane cases. Now check whether nonexistent headers |
0da7a284 | 9605 | # can be detected and how. |
5213506e | 9606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0da7a284 PG |
9607 | /* end confdefs.h. */ |
9608 | #include <ac_nonexistent.h> | |
9609 | _ACEOF | |
5213506e | 9610 | if ac_fn_c_try_cpp "$LINENO"; then : |
0da7a284 PG |
9611 | # Broken: success on invalid input. |
9612 | continue | |
9613 | else | |
0da7a284 PG |
9614 | # Passes both tests. |
9615 | ac_preproc_ok=: | |
9616 | break | |
ffccc6be | 9617 | fi |
0da7a284 | 9618 | rm -f conftest.err conftest.$ac_ext |
ed698112 | 9619 | |
0da7a284 PG |
9620 | done |
9621 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
9622 | rm -f conftest.err conftest.$ac_ext | |
5213506e | 9623 | if $ac_preproc_ok; then : |
0da7a284 PG |
9624 | break |
9625 | fi | |
9626 | ||
9627 | done | |
9628 | ac_cv_prog_CPP=$CPP | |
9629 | ||
9630 | fi | |
9631 | CPP=$ac_cv_prog_CPP | |
1cf3d07d | 9632 | else |
0da7a284 PG |
9633 | ac_cv_prog_CPP=$CPP |
9634 | fi | |
5213506e RW |
9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
9636 | $as_echo "$CPP" >&6; } | |
0da7a284 PG |
9637 | ac_preproc_ok=false |
9638 | for ac_c_preproc_warn_flag in '' yes | |
9639 | do | |
9640 | # Use a header file that comes with gcc, so configuring glibc | |
9641 | # with a fresh cross-compiler works. | |
9642 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9643 | # <limits.h> exists even on freestanding compilers. | |
9644 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
9645 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 9646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 9647 | /* end confdefs.h. */ |
0da7a284 PG |
9648 | #ifdef __STDC__ |
9649 | # include <limits.h> | |
1cf3d07d | 9650 | #else |
0da7a284 | 9651 | # include <assert.h> |
1cf3d07d | 9652 | #endif |
0da7a284 | 9653 | Syntax error |
1cf3d07d | 9654 | _ACEOF |
5213506e | 9655 | if ac_fn_c_try_cpp "$LINENO"; then : |
ffccc6be | 9656 | |
5213506e | 9657 | else |
0da7a284 PG |
9658 | # Broken: fails on valid input. |
9659 | continue | |
1cf3d07d | 9660 | fi |
0da7a284 | 9661 | rm -f conftest.err conftest.$ac_ext |
ed698112 | 9662 | |
5213506e | 9663 | # OK, works on sane cases. Now check whether nonexistent headers |
0da7a284 | 9664 | # can be detected and how. |
5213506e | 9665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0da7a284 PG |
9666 | /* end confdefs.h. */ |
9667 | #include <ac_nonexistent.h> | |
9668 | _ACEOF | |
5213506e | 9669 | if ac_fn_c_try_cpp "$LINENO"; then : |
0da7a284 PG |
9670 | # Broken: success on invalid input. |
9671 | continue | |
9672 | else | |
0da7a284 PG |
9673 | # Passes both tests. |
9674 | ac_preproc_ok=: | |
9675 | break | |
9676 | fi | |
9677 | rm -f conftest.err conftest.$ac_ext | |
97b8365c | 9678 | |
0da7a284 PG |
9679 | done |
9680 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
9681 | rm -f conftest.err conftest.$ac_ext | |
5213506e RW |
9682 | if $ac_preproc_ok; then : |
9683 | ||
0da7a284 | 9684 | else |
5213506e RW |
9685 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
9686 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9687 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
9688 | See \`config.log' for more details." "$LINENO" 5; } | |
0da7a284 | 9689 | fi |
97b8365c | 9690 | |
0da7a284 PG |
9691 | ac_ext=c |
9692 | ac_cpp='$CPP $CPPFLAGS' | |
9693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
97b8365c TT |
9696 | |
9697 | ||
5213506e RW |
9698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
9699 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
9700 | if test "${ac_cv_header_stdc+set}" = set; then : | |
9701 | $as_echo_n "(cached) " >&6 | |
97b8365c | 9702 | else |
5213506e | 9703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 9704 | /* end confdefs.h. */ |
0da7a284 PG |
9705 | #include <stdlib.h> |
9706 | #include <stdarg.h> | |
9707 | #include <string.h> | |
9708 | #include <float.h> | |
97b8365c | 9709 | |
0da7a284 PG |
9710 | int |
9711 | main () | |
9712 | { | |
9713 | ||
9714 | ; | |
9715 | return 0; | |
9716 | } | |
1cf3d07d | 9717 | _ACEOF |
5213506e | 9718 | if ac_fn_c_try_compile "$LINENO"; then : |
0da7a284 | 9719 | ac_cv_header_stdc=yes |
c33b7bf0 | 9720 | else |
5213506e | 9721 | ac_cv_header_stdc=no |
0da7a284 | 9722 | fi |
5213506e | 9723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0da7a284 PG |
9724 | |
9725 | if test $ac_cv_header_stdc = yes; then | |
9726 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5213506e | 9727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0da7a284 PG |
9728 | /* end confdefs.h. */ |
9729 | #include <string.h> | |
9730 | ||
9731 | _ACEOF | |
9732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
9733 | $EGREP "memchr" >/dev/null 2>&1; then : |
9734 | ||
0da7a284 PG |
9735 | else |
9736 | ac_cv_header_stdc=no | |
9737 | fi | |
9738 | rm -f conftest* | |
9739 | ||
9740 | fi | |
9741 | ||
9742 | if test $ac_cv_header_stdc = yes; then | |
9743 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5213506e | 9744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0da7a284 PG |
9745 | /* end confdefs.h. */ |
9746 | #include <stdlib.h> | |
9747 | ||
9748 | _ACEOF | |
9749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e RW |
9750 | $EGREP "free" >/dev/null 2>&1; then : |
9751 | ||
0da7a284 PG |
9752 | else |
9753 | ac_cv_header_stdc=no | |
9754 | fi | |
9755 | rm -f conftest* | |
9756 | ||
9757 | fi | |
9758 | ||
9759 | if test $ac_cv_header_stdc = yes; then | |
9760 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5213506e | 9761 | if test "$cross_compiling" = yes; then : |
0da7a284 PG |
9762 | : |
9763 | else | |
5213506e | 9764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0da7a284 PG |
9765 | /* end confdefs.h. */ |
9766 | #include <ctype.h> | |
5213506e | 9767 | #include <stdlib.h> |
0da7a284 PG |
9768 | #if ((' ' & 0x0FF) == 0x020) |
9769 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9770 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9771 | #else | |
9772 | # define ISLOWER(c) \ | |
9773 | (('a' <= (c) && (c) <= 'i') \ | |
9774 | || ('j' <= (c) && (c) <= 'r') \ | |
9775 | || ('s' <= (c) && (c) <= 'z')) | |
9776 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
9777 | #endif | |
9778 | ||
9779 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9780 | int | |
9781 | main () | |
9782 | { | |
9783 | int i; | |
9784 | for (i = 0; i < 256; i++) | |
9785 | if (XOR (islower (i), ISLOWER (i)) | |
9786 | || toupper (i) != TOUPPER (i)) | |
5213506e RW |
9787 | return 2; |
9788 | return 0; | |
0da7a284 PG |
9789 | } |
9790 | _ACEOF | |
5213506e | 9791 | if ac_fn_c_try_run "$LINENO"; then : |
0da7a284 | 9792 | |
5213506e RW |
9793 | else |
9794 | ac_cv_header_stdc=no | |
0da7a284 | 9795 | fi |
5213506e RW |
9796 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
9797 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
0da7a284 | 9798 | fi |
5213506e | 9799 | |
0da7a284 PG |
9800 | fi |
9801 | fi | |
5213506e RW |
9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
9803 | $as_echo "$ac_cv_header_stdc" >&6; } | |
0da7a284 PG |
9804 | if test $ac_cv_header_stdc = yes; then |
9805 | ||
5213506e | 9806 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
0da7a284 PG |
9807 | |
9808 | fi | |
9809 | ||
9810 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
0da7a284 PG |
9811 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
9812 | inttypes.h stdint.h unistd.h | |
5213506e RW |
9813 | do : |
9814 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9815 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
9816 | " | |
9817 | eval as_val=\$$as_ac_Header | |
9818 | if test "x$as_val" = x""yes; then : | |
1cf3d07d | 9819 | cat >>confdefs.h <<_ACEOF |
5213506e | 9820 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1cf3d07d | 9821 | _ACEOF |
c33b7bf0 | 9822 | |
c33b7bf0 TF |
9823 | fi |
9824 | ||
1cf3d07d | 9825 | done |
c33b7bf0 TF |
9826 | |
9827 | ||
1cf3d07d | 9828 | for ac_header in dlfcn.h |
5213506e RW |
9829 | do : |
9830 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9831 | " | |
9832 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
1cf3d07d | 9833 | cat >>confdefs.h <<_ACEOF |
5213506e | 9834 | #define HAVE_DLFCN_H 1 |
ed347998 HB |
9835 | _ACEOF |
9836 | ||
1cf3d07d | 9837 | fi |
ed698112 | 9838 | |
1cf3d07d | 9839 | done |
58eb6e7c | 9840 | |
b2ae5f70 | 9841 | |
58eb6e7c | 9842 | |
3cf88fb4 | 9843 | |
3cf88fb4 | 9844 | |
5213506e | 9845 | |
43e02a8a | 9846 | # Set options |
c8fb9813 | 9847 | |
43e02a8a RW |
9848 | |
9849 | ||
9850 | ||
9851 | enable_win32_dll=no | |
9852 | ||
9853 | ||
9854 | # Check whether --enable-shared was given. | |
9855 | if test "${enable_shared+set}" = set; then : | |
9856 | enableval=$enable_shared; p=${PACKAGE-default} | |
9857 | case $enableval in | |
9858 | yes) enable_shared=yes ;; | |
9859 | no) enable_shared=no ;; | |
9860 | *) | |
9861 | enable_shared=no | |
9862 | # Look at the argument we got. We use all the common list separators. | |
9863 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9864 | for pkg in $enableval; do | |
9865 | IFS="$lt_save_ifs" | |
9866 | if test "X$pkg" = "X$p"; then | |
9867 | enable_shared=yes | |
9868 | fi | |
9869 | done | |
9870 | IFS="$lt_save_ifs" | |
9871 | ;; | |
9872 | esac | |
60c7f4ef | 9873 | else |
43e02a8a | 9874 | enable_shared=yes |
5213506e RW |
9875 | fi |
9876 | ||
f1a66265 GK |
9877 | |
9878 | ||
ed698112 | 9879 | |
ed698112 | 9880 | |
ee9dd372 | 9881 | |
ee9dd372 TT |
9882 | |
9883 | ||
ee9dd372 | 9884 | |
5213506e RW |
9885 | # Check whether --enable-static was given. |
9886 | if test "${enable_static+set}" = set; then : | |
9887 | enableval=$enable_static; p=${PACKAGE-default} | |
0da7a284 PG |
9888 | case $enableval in |
9889 | yes) enable_static=yes ;; | |
9890 | no) enable_static=no ;; | |
9891 | *) | |
9892 | enable_static=no | |
9893 | # Look at the argument we got. We use all the common list separators. | |
9894 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9895 | for pkg in $enableval; do | |
9896 | IFS="$lt_save_ifs" | |
9897 | if test "X$pkg" = "X$p"; then | |
9898 | enable_static=yes | |
9899 | fi | |
9900 | done | |
9901 | IFS="$lt_save_ifs" | |
9902 | ;; | |
9903 | esac | |
9904 | else | |
9905 | enable_static=yes | |
5213506e RW |
9906 | fi |
9907 | ||
ee9dd372 | 9908 | |
42962a48 TT |
9909 | |
9910 | ||
614c0fc2 | 9911 | |
9b5f18b1 MK |
9912 | |
9913 | ||
614c0fc2 | 9914 | |
9b5f18b1 MK |
9915 | |
9916 | ||
5213506e RW |
9917 | # Check whether --with-pic was given. |
9918 | if test "${with_pic+set}" = set; then : | |
9919 | withval=$with_pic; pic_mode="$withval" | |
0da7a284 PG |
9920 | else |
9921 | pic_mode=default | |
5213506e RW |
9922 | fi |
9923 | ||
614c0fc2 | 9924 | |
0da7a284 | 9925 | test -z "$pic_mode" && pic_mode=default |
4ba6d1c3 | 9926 | |
463c03f1 | 9927 | |
76c88fd9 | 9928 | |
4ba6d1c3 | 9929 | |
f994389b TT |
9930 | |
9931 | ||
0f9c645e | 9932 | |
5213506e RW |
9933 | # Check whether --enable-fast-install was given. |
9934 | if test "${enable_fast_install+set}" = set; then : | |
9935 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
0da7a284 PG |
9936 | case $enableval in |
9937 | yes) enable_fast_install=yes ;; | |
9938 | no) enable_fast_install=no ;; | |
9939 | *) | |
9940 | enable_fast_install=no | |
9941 | # Look at the argument we got. We use all the common list separators. | |
9942 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9943 | for pkg in $enableval; do | |
9944 | IFS="$lt_save_ifs" | |
9945 | if test "X$pkg" = "X$p"; then | |
9946 | enable_fast_install=yes | |
9947 | fi | |
9948 | done | |
9949 | IFS="$lt_save_ifs" | |
9950 | ;; | |
9951 | esac | |
9952 | else | |
9953 | enable_fast_install=yes | |
5213506e RW |
9954 | fi |
9955 | ||
0f9c645e | 9956 | |
ed698112 | 9957 | |
f994389b | 9958 | |
f994389b | 9959 | |
0f9c645e | 9960 | |
f994389b | 9961 | |
ed698112 | 9962 | |
02809848 | 9963 | |
ee9dd372 | 9964 | |
1cf3d07d | 9965 | |
0da7a284 PG |
9966 | # This can be used to rebuild libtool when needed |
9967 | LIBTOOL_DEPS="$ltmain" | |
9968 | ||
9969 | # Always use our own libtool. | |
9970 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ||
9987 | ||
9988 | ||
9989 | ||
9990 | ||
9991 | ||
9992 | ||
9993 | ||
43e02a8a | 9994 | |
0da7a284 PG |
9995 | |
9996 | ||
9997 | test -z "$LN_S" && LN_S="ln -s" | |
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | ||
10008 | ||
10009 | ||
10010 | ||
10011 | ||
10012 | if test -n "${ZSH_VERSION+set}" ; then | |
10013 | setopt NO_GLOB_SUBST | |
10014 | fi | |
10015 | ||
5213506e RW |
10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
10017 | $as_echo_n "checking for objdir... " >&6; } | |
10018 | if test "${lt_cv_objdir+set}" = set; then : | |
10019 | $as_echo_n "(cached) " >&6 | |
5aac1dac | 10020 | else |
1cf3d07d SE |
10021 | rm -f .libs 2>/dev/null |
10022 | mkdir .libs 2>/dev/null | |
10023 | if test -d .libs; then | |
10024 | lt_cv_objdir=.libs | |
10025 | else | |
10026 | # MS-DOS does not allow filenames that begin with a dot. | |
10027 | lt_cv_objdir=_libs | |
10028 | fi | |
10029 | rmdir .libs 2>/dev/null | |
5aac1dac | 10030 | fi |
5213506e RW |
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
10032 | $as_echo "$lt_cv_objdir" >&6; } | |
1cf3d07d | 10033 | objdir=$lt_cv_objdir |
ee9dd372 | 10034 | |
ed698112 | 10035 | |
ed698112 | 10036 | |
ed698112 | 10037 | |
ed698112 | 10038 | |
1cf3d07d SE |
10039 | cat >>confdefs.h <<_ACEOF |
10040 | #define LT_OBJDIR "$lt_cv_objdir/" | |
10041 | _ACEOF | |
ed698112 | 10042 | |
ed698112 | 10043 | |
ed698112 | 10044 | |
ed698112 | 10045 | |
1cf3d07d SE |
10046 | case $host_os in |
10047 | aix3*) | |
10048 | # AIX sometimes has problems with the GCC collect2 program. For some | |
10049 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
10050 | # vanish in a puff of smoke. | |
10051 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
10052 | COLLECT_NAMES= | |
10053 | export COLLECT_NAMES | |
ed698112 | 10054 | fi |
1cf3d07d SE |
10055 | ;; |
10056 | esac | |
10057 | ||
1cf3d07d SE |
10058 | # Global variables: |
10059 | ofile=libtool | |
10060 | can_build_shared=yes | |
10061 | ||
10062 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
10063 | # which needs '.lib'). | |
10064 | libext=a | |
10065 | ||
10066 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
10067 | ||
10068 | old_CC="$CC" | |
10069 | old_CFLAGS="$CFLAGS" | |
10070 | ||
10071 | # Set sane defaults for various variables | |
10072 | test -z "$CC" && CC=cc | |
10073 | test -z "$LTCC" && LTCC=$CC | |
10074 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
10075 | test -z "$LD" && LD=ld | |
10076 | test -z "$ac_objext" && ac_objext=o | |
10077 | ||
10078 | for cc_temp in $compiler""; do | |
10079 | case $cc_temp in | |
10080 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10081 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10082 | \-*) ;; | |
10083 | *) break;; | |
10084 | esac | |
ed698112 | 10085 | done |
43e02a8a | 10086 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
ee9dd372 | 10087 | |
1cf3d07d SE |
10088 | |
10089 | # Only perform the check for file, if the check method requires it | |
10090 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
10091 | case $deplibs_check_method in | |
10092 | file_magic*) | |
10093 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5213506e RW |
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
10095 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
10096 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
10097 | $as_echo_n "(cached) " >&6 | |
5aac1dac | 10098 | else |
1cf3d07d SE |
10099 | case $MAGIC_CMD in |
10100 | [\\/*] | ?:[\\/]*) | |
10101 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
10102 | ;; | |
10103 | *) | |
10104 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
10105 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10106 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
10107 | for ac_dir in $ac_dummy; do | |
10108 | IFS="$lt_save_ifs" | |
10109 | test -z "$ac_dir" && ac_dir=. | |
10110 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
10111 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
10112 | if test -n "$file_magic_test_file"; then | |
10113 | case $deplibs_check_method in | |
10114 | "file_magic "*) | |
10115 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
10116 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
10117 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
10118 | $EGREP "$file_magic_regex" > /dev/null; then | |
10119 | : | |
10120 | else | |
10121 | cat <<_LT_EOF 1>&2 | |
ed698112 | 10122 | |
1cf3d07d SE |
10123 | *** Warning: the command libtool uses to detect shared libraries, |
10124 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
10125 | *** The result is that libtool may fail to recognize shared libraries | |
10126 | *** as such. This will affect the creation of libtool libraries that | |
10127 | *** depend on shared libraries, but programs linked with such libtool | |
10128 | *** libraries will work regardless of this problem. Nevertheless, you | |
10129 | *** may want to report the problem to your system manager and/or to | |
10130 | *** bug-libtool@gnu.org | |
10131 | ||
10132 | _LT_EOF | |
10133 | fi ;; | |
10134 | esac | |
10135 | fi | |
10136 | break | |
5aac1dac TT |
10137 | fi |
10138 | done | |
1cf3d07d SE |
10139 | IFS="$lt_save_ifs" |
10140 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
10141 | ;; | |
10142 | esac | |
5aac1dac | 10143 | fi |
ee9dd372 | 10144 | |
1cf3d07d SE |
10145 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
10146 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
10148 | $as_echo "$MAGIC_CMD" >&6; } | |
5aac1dac | 10149 | else |
5213506e RW |
10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10151 | $as_echo "no" >&6; } | |
5aac1dac | 10152 | fi |
ed698112 | 10153 | |
ee9dd372 | 10154 | |
f994389b | 10155 | |
ed698112 | 10156 | |
ee9dd372 | 10157 | |
1cf3d07d SE |
10158 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
10159 | if test -n "$ac_tool_prefix"; then | |
5213506e RW |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
10161 | $as_echo_n "checking for file... " >&6; } | |
10162 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
10163 | $as_echo_n "(cached) " >&6 | |
5aac1dac | 10164 | else |
1cf3d07d SE |
10165 | case $MAGIC_CMD in |
10166 | [\\/*] | ?:[\\/]*) | |
10167 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
10168 | ;; | |
10169 | *) | |
10170 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
10171 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10172 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
10173 | for ac_dir in $ac_dummy; do | |
10174 | IFS="$lt_save_ifs" | |
10175 | test -z "$ac_dir" && ac_dir=. | |
10176 | if test -f $ac_dir/file; then | |
10177 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
10178 | if test -n "$file_magic_test_file"; then | |
10179 | case $deplibs_check_method in | |
10180 | "file_magic "*) | |
10181 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
10182 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
10183 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
10184 | $EGREP "$file_magic_regex" > /dev/null; then | |
10185 | : | |
10186 | else | |
10187 | cat <<_LT_EOF 1>&2 | |
ee9dd372 | 10188 | |
1cf3d07d SE |
10189 | *** Warning: the command libtool uses to detect shared libraries, |
10190 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
10191 | *** The result is that libtool may fail to recognize shared libraries | |
10192 | *** as such. This will affect the creation of libtool libraries that | |
10193 | *** depend on shared libraries, but programs linked with such libtool | |
10194 | *** libraries will work regardless of this problem. Nevertheless, you | |
10195 | *** may want to report the problem to your system manager and/or to | |
10196 | *** bug-libtool@gnu.org | |
7f6e0fe6 | 10197 | |
1cf3d07d SE |
10198 | _LT_EOF |
10199 | fi ;; | |
10200 | esac | |
10201 | fi | |
10202 | break | |
10203 | fi | |
10204 | done | |
10205 | IFS="$lt_save_ifs" | |
10206 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
10207 | ;; | |
10208 | esac | |
10209 | fi | |
7f6e0fe6 | 10210 | |
1cf3d07d SE |
10211 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
10212 | if test -n "$MAGIC_CMD"; then | |
5213506e RW |
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
10214 | $as_echo "$MAGIC_CMD" >&6; } | |
5aac1dac | 10215 | else |
5213506e RW |
10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10217 | $as_echo "no" >&6; } | |
ed698112 | 10218 | fi |
7f6e0fe6 | 10219 | |
ee9dd372 | 10220 | |
1cf3d07d SE |
10221 | else |
10222 | MAGIC_CMD=: | |
10223 | fi | |
10224 | fi | |
10225 | ||
10226 | fi | |
10227 | ;; | |
10228 | esac | |
10229 | ||
10230 | # Use C for the default configuration in the libtool script | |
10231 | ||
10232 | lt_save_CC="$CC" | |
10233 | ac_ext=c | |
10234 | ac_cpp='$CPP $CPPFLAGS' | |
10235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10238 | ||
10239 | ||
10240 | # Source file extension for C test sources. | |
10241 | ac_ext=c | |
10242 | ||
10243 | # Object file extension for compiled C test sources. | |
10244 | objext=o | |
10245 | objext=$objext | |
10246 | ||
10247 | # Code to be used in simple compile tests | |
10248 | lt_simple_compile_test_code="int some_variable = 0;" | |
10249 | ||
10250 | # Code to be used in simple link tests | |
10251 | lt_simple_link_test_code='int main(){return(0);}' | |
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | ||
10259 | # If no C compiler was specified, use CC. | |
10260 | LTCC=${LTCC-"$CC"} | |
10261 | ||
10262 | # If no C compiler flags were specified, use CFLAGS. | |
10263 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10264 | ||
10265 | # Allow CC to be a program name with arguments. | |
10266 | compiler=$CC | |
10267 | ||
10268 | # Save the default compiler, since it gets overwritten when the other | |
10269 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
10270 | compiler_DEFAULT=$CC | |
10271 | ||
10272 | # save warnings/boilerplate of simple test code | |
10273 | ac_outfile=conftest.$ac_objext | |
10274 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10275 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10276 | _lt_compiler_boilerplate=`cat conftest.err` | |
10277 | $RM conftest* | |
10278 | ||
10279 | ac_outfile=conftest.$ac_objext | |
10280 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10281 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10282 | _lt_linker_boilerplate=`cat conftest.err` | |
0da7a284 | 10283 | $RM -r conftest* |
1cf3d07d SE |
10284 | |
10285 | ||
10286 | ## CAVEAT EMPTOR: | |
10287 | ## There is no encapsulation within the following macros, do not change | |
10288 | ## the running order or otherwise move them around unless you know exactly | |
10289 | ## what you are doing... | |
10290 | if test -n "$compiler"; then | |
10291 | ||
10292 | lt_prog_compiler_no_builtin_flag= | |
10293 | ||
10294 | if test "$GCC" = yes; then | |
43e02a8a RW |
10295 | case $cc_basename in |
10296 | nvcc*) | |
10297 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
10298 | *) | |
10299 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
10300 | esac | |
1cf3d07d | 10301 | |
5213506e RW |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
10303 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
10304 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
10305 | $as_echo_n "(cached) " >&6 | |
5aac1dac | 10306 | else |
1cf3d07d SE |
10307 | lt_cv_prog_compiler_rtti_exceptions=no |
10308 | ac_outfile=conftest.$ac_objext | |
10309 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10310 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
10311 | # Insert the option either (1) after the last *FLAGS variable, or | |
10312 | # (2) before a word containing "conftest.", or (3) at the end. | |
10313 | # Note that $ac_compile itself does not contain backslashes and begins | |
10314 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10315 | # The option is referenced via a variable to avoid confusing sed. | |
10316 | lt_compile=`echo "$ac_compile" | $SED \ | |
10317 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10318 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10319 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10320 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10321 | (eval "$lt_compile" 2>conftest.err) |
10322 | ac_status=$? | |
10323 | cat conftest.err >&5 | |
43e02a8a | 10324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10325 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10326 | # The compiler can only warn and ignore the option if not recognized | |
10327 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 10328 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
10329 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10330 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10331 | lt_cv_prog_compiler_rtti_exceptions=yes | |
10332 | fi | |
10333 | fi | |
10334 | $RM conftest* | |
ed698112 | 10335 | |
5aac1dac | 10336 | fi |
5213506e RW |
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
10338 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
ee9dd372 | 10339 | |
1cf3d07d SE |
10340 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
10341 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
10342 | else | |
10343 | : | |
10344 | fi | |
ee9dd372 | 10345 | |
ed698112 | 10346 | fi |
ed698112 | 10347 | |
ee9dd372 | 10348 | |
1cf3d07d SE |
10349 | |
10350 | ||
10351 | ||
10352 | ||
10353 | lt_prog_compiler_wl= | |
10354 | lt_prog_compiler_pic= | |
10355 | lt_prog_compiler_static= | |
10356 | ||
5213506e RW |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
10358 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
1cf3d07d SE |
10359 | |
10360 | if test "$GCC" = yes; then | |
10361 | lt_prog_compiler_wl='-Wl,' | |
10362 | lt_prog_compiler_static='-static' | |
10363 | ||
10364 | case $host_os in | |
10365 | aix*) | |
10366 | # All AIX code is PIC. | |
10367 | if test "$host_cpu" = ia64; then | |
10368 | # AIX 5 now supports IA64 processor | |
10369 | lt_prog_compiler_static='-Bstatic' | |
10370 | fi | |
10371 | ;; | |
10372 | ||
10373 | amigaos*) | |
0da7a284 PG |
10374 | case $host_cpu in |
10375 | powerpc) | |
10376 | # see comment about AmigaOS4 .so support | |
10377 | lt_prog_compiler_pic='-fPIC' | |
10378 | ;; | |
10379 | m68k) | |
10380 | # FIXME: we need at least 68020 code to build shared libraries, but | |
10381 | # adding the `-m68020' flag to GCC prevents building anything better, | |
10382 | # like `-m68040'. | |
10383 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
10384 | ;; | |
10385 | esac | |
1cf3d07d SE |
10386 | ;; |
10387 | ||
10388 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
10389 | # PIC is the default for these OSes. | |
10390 | ;; | |
10391 | ||
0da7a284 | 10392 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
10393 | # This hack is so that the source file can tell whether it is being |
10394 | # built for inclusion in a dll (and should export symbols for example). | |
10395 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
10396 | # (--disable-auto-import) libraries | |
10397 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
10398 | ;; | |
10399 | ||
10400 | darwin* | rhapsody*) | |
10401 | # PIC is the default on this platform | |
10402 | # Common symbols not allowed in MH_DYLIB files | |
10403 | lt_prog_compiler_pic='-fno-common' | |
10404 | ;; | |
10405 | ||
43e02a8a RW |
10406 | haiku*) |
10407 | # PIC is the default for Haiku. | |
10408 | # The "-static" flag exists, but is broken. | |
10409 | lt_prog_compiler_static= | |
10410 | ;; | |
10411 | ||
1cf3d07d | 10412 | hpux*) |
0da7a284 PG |
10413 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
10414 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
10415 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 10416 | case $host_cpu in |
0da7a284 | 10417 | hppa*64*) |
1cf3d07d SE |
10418 | # +Z the default |
10419 | ;; | |
10420 | *) | |
10421 | lt_prog_compiler_pic='-fPIC' | |
10422 | ;; | |
10423 | esac | |
10424 | ;; | |
10425 | ||
10426 | interix[3-9]*) | |
10427 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
10428 | # Instead, we relocate shared libraries at runtime. | |
10429 | ;; | |
10430 | ||
10431 | msdosdjgpp*) | |
10432 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
10433 | # on systems that don't support them. | |
10434 | lt_prog_compiler_can_build_shared=no | |
10435 | enable_shared=no | |
10436 | ;; | |
10437 | ||
10438 | *nto* | *qnx*) | |
10439 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10440 | # it will coredump. | |
10441 | lt_prog_compiler_pic='-fPIC -shared' | |
10442 | ;; | |
10443 | ||
10444 | sysv4*MP*) | |
10445 | if test -d /usr/nec; then | |
10446 | lt_prog_compiler_pic=-Kconform_pic | |
10447 | fi | |
10448 | ;; | |
10449 | ||
10450 | *) | |
10451 | lt_prog_compiler_pic='-fPIC' | |
10452 | ;; | |
10453 | esac | |
43e02a8a RW |
10454 | |
10455 | case $cc_basename in | |
10456 | nvcc*) # Cuda Compiler Driver 2.2 | |
10457 | lt_prog_compiler_wl='-Xlinker ' | |
10458 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
10459 | ;; | |
10460 | esac | |
1cf3d07d SE |
10461 | else |
10462 | # PORTME Check for flag to pass linker flags through the system compiler. | |
10463 | case $host_os in | |
10464 | aix*) | |
10465 | lt_prog_compiler_wl='-Wl,' | |
10466 | if test "$host_cpu" = ia64; then | |
10467 | # AIX 5 now supports IA64 processor | |
10468 | lt_prog_compiler_static='-Bstatic' | |
10469 | else | |
10470 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
10471 | fi | |
10472 | ;; | |
1cf3d07d | 10473 | |
0da7a284 | 10474 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
10475 | # This hack is so that the source file can tell whether it is being |
10476 | # built for inclusion in a dll (and should export symbols for example). | |
10477 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
10478 | ;; | |
10479 | ||
10480 | hpux9* | hpux10* | hpux11*) | |
10481 | lt_prog_compiler_wl='-Wl,' | |
10482 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
10483 | # not for PA HP-UX. | |
10484 | case $host_cpu in | |
10485 | hppa*64*|ia64*) | |
10486 | # +Z the default | |
10487 | ;; | |
10488 | *) | |
10489 | lt_prog_compiler_pic='+Z' | |
10490 | ;; | |
10491 | esac | |
10492 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
10493 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
10494 | ;; | |
10495 | ||
10496 | irix5* | irix6* | nonstopux*) | |
10497 | lt_prog_compiler_wl='-Wl,' | |
10498 | # PIC (with -KPIC) is the default. | |
10499 | lt_prog_compiler_static='-non_shared' | |
10500 | ;; | |
10501 | ||
7a9d3fe8 | 10502 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 10503 | case $cc_basename in |
0da7a284 PG |
10504 | # old Intel for x86_64 which still supported -KPIC. |
10505 | ecc*) | |
1cf3d07d SE |
10506 | lt_prog_compiler_wl='-Wl,' |
10507 | lt_prog_compiler_pic='-KPIC' | |
10508 | lt_prog_compiler_static='-static' | |
10509 | ;; | |
0da7a284 PG |
10510 | # icc used to be incompatible with GCC. |
10511 | # ICC 10 doesn't accept -KPIC any more. | |
10512 | icc* | ifort*) | |
10513 | lt_prog_compiler_wl='-Wl,' | |
10514 | lt_prog_compiler_pic='-fPIC' | |
10515 | lt_prog_compiler_static='-static' | |
10516 | ;; | |
10517 | # Lahey Fortran 8.1. | |
10518 | lf95*) | |
10519 | lt_prog_compiler_wl='-Wl,' | |
10520 | lt_prog_compiler_pic='--shared' | |
10521 | lt_prog_compiler_static='--static' | |
10522 | ;; | |
43e02a8a | 10523 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
10524 | # Portland Group compilers (*not* the Pentium gcc compiler, |
10525 | # which looks to be a dead project) | |
10526 | lt_prog_compiler_wl='-Wl,' | |
10527 | lt_prog_compiler_pic='-fpic' | |
10528 | lt_prog_compiler_static='-Bstatic' | |
10529 | ;; | |
10530 | ccc*) | |
10531 | lt_prog_compiler_wl='-Wl,' | |
10532 | # All Alpha code is PIC. | |
10533 | lt_prog_compiler_static='-non_shared' | |
10534 | ;; | |
43e02a8a RW |
10535 | xl* | bgxl* | bgf* | mpixl*) |
10536 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
0da7a284 PG |
10537 | lt_prog_compiler_wl='-Wl,' |
10538 | lt_prog_compiler_pic='-qpic' | |
10539 | lt_prog_compiler_static='-qstaticlink' | |
10540 | ;; | |
1cf3d07d SE |
10541 | *) |
10542 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
10543 | *Sun\ F* | *Sun*Fortran*) |
10544 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
10545 | lt_prog_compiler_pic='-KPIC' |
10546 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 10547 | lt_prog_compiler_wl='' |
1cf3d07d | 10548 | ;; |
43e02a8a RW |
10549 | *Sun\ C*) |
10550 | # Sun C 5.9 | |
1cf3d07d SE |
10551 | lt_prog_compiler_pic='-KPIC' |
10552 | lt_prog_compiler_static='-Bstatic' | |
43e02a8a | 10553 | lt_prog_compiler_wl='-Wl,' |
1cf3d07d SE |
10554 | ;; |
10555 | esac | |
10556 | ;; | |
10557 | esac | |
10558 | ;; | |
10559 | ||
10560 | newsos6) | |
10561 | lt_prog_compiler_pic='-KPIC' | |
10562 | lt_prog_compiler_static='-Bstatic' | |
10563 | ;; | |
10564 | ||
10565 | *nto* | *qnx*) | |
10566 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10567 | # it will coredump. | |
10568 | lt_prog_compiler_pic='-fPIC -shared' | |
10569 | ;; | |
10570 | ||
10571 | osf3* | osf4* | osf5*) | |
10572 | lt_prog_compiler_wl='-Wl,' | |
10573 | # All OSF/1 code is PIC. | |
10574 | lt_prog_compiler_static='-non_shared' | |
10575 | ;; | |
10576 | ||
10577 | rdos*) | |
10578 | lt_prog_compiler_static='-non_shared' | |
10579 | ;; | |
10580 | ||
10581 | solaris*) | |
10582 | lt_prog_compiler_pic='-KPIC' | |
10583 | lt_prog_compiler_static='-Bstatic' | |
10584 | case $cc_basename in | |
10585 | f77* | f90* | f95*) | |
10586 | lt_prog_compiler_wl='-Qoption ld ';; | |
10587 | *) | |
10588 | lt_prog_compiler_wl='-Wl,';; | |
10589 | esac | |
10590 | ;; | |
10591 | ||
10592 | sunos4*) | |
10593 | lt_prog_compiler_wl='-Qoption ld ' | |
10594 | lt_prog_compiler_pic='-PIC' | |
10595 | lt_prog_compiler_static='-Bstatic' | |
10596 | ;; | |
10597 | ||
10598 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
10599 | lt_prog_compiler_wl='-Wl,' | |
10600 | lt_prog_compiler_pic='-KPIC' | |
10601 | lt_prog_compiler_static='-Bstatic' | |
10602 | ;; | |
10603 | ||
10604 | sysv4*MP*) | |
10605 | if test -d /usr/nec ;then | |
10606 | lt_prog_compiler_pic='-Kconform_pic' | |
10607 | lt_prog_compiler_static='-Bstatic' | |
10608 | fi | |
10609 | ;; | |
10610 | ||
10611 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10612 | lt_prog_compiler_wl='-Wl,' | |
10613 | lt_prog_compiler_pic='-KPIC' | |
10614 | lt_prog_compiler_static='-Bstatic' | |
10615 | ;; | |
10616 | ||
10617 | unicos*) | |
10618 | lt_prog_compiler_wl='-Wl,' | |
10619 | lt_prog_compiler_can_build_shared=no | |
10620 | ;; | |
10621 | ||
10622 | uts4*) | |
10623 | lt_prog_compiler_pic='-pic' | |
10624 | lt_prog_compiler_static='-Bstatic' | |
10625 | ;; | |
10626 | ||
10627 | *) | |
10628 | lt_prog_compiler_can_build_shared=no | |
10629 | ;; | |
10630 | esac | |
10631 | fi | |
10632 | ||
10633 | case $host_os in | |
10634 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10635 | *djgpp*) | |
10636 | lt_prog_compiler_pic= | |
10637 | ;; | |
10638 | *) | |
10639 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10640 | ;; | |
10641 | esac | |
5213506e RW |
10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
10643 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
1cf3d07d SE |
10644 | |
10645 | ||
10646 | ||
10647 | ||
10648 | ||
10649 | ||
10650 | # | |
10651 | # Check to make sure the PIC flag actually works. | |
10652 | # | |
10653 | if test -n "$lt_prog_compiler_pic"; then | |
5213506e RW |
10654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
10655 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
10656 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
10657 | $as_echo_n "(cached) " >&6 | |
5aac1dac | 10658 | else |
0da7a284 | 10659 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
10660 | ac_outfile=conftest.$ac_objext |
10661 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10662 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10663 | # Insert the option either (1) after the last *FLAGS variable, or | |
10664 | # (2) before a word containing "conftest.", or (3) at the end. | |
10665 | # Note that $ac_compile itself does not contain backslashes and begins | |
10666 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10667 | # The option is referenced via a variable to avoid confusing sed. | |
10668 | lt_compile=`echo "$ac_compile" | $SED \ | |
10669 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10670 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10671 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10672 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10673 | (eval "$lt_compile" 2>conftest.err) |
10674 | ac_status=$? | |
10675 | cat conftest.err >&5 | |
43e02a8a | 10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10677 | if (exit $ac_status) && test -s "$ac_outfile"; then |
10678 | # The compiler can only warn and ignore the option if not recognized | |
10679 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 10680 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
10681 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10682 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
0da7a284 | 10683 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
10684 | fi |
10685 | fi | |
10686 | $RM conftest* | |
10687 | ||
ed698112 | 10688 | fi |
5213506e RW |
10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
10690 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
45597167 | 10691 | |
0da7a284 | 10692 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
10693 | case $lt_prog_compiler_pic in |
10694 | "" | " "*) ;; | |
10695 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10696 | esac | |
ed698112 | 10697 | else |
1cf3d07d SE |
10698 | lt_prog_compiler_pic= |
10699 | lt_prog_compiler_can_build_shared=no | |
10700 | fi | |
ed698112 | 10701 | |
ed698112 | 10702 | fi |
1cf3d07d SE |
10703 | |
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | # | |
10710 | # Check to make sure the static flag actually works. | |
10711 | # | |
10712 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
5213506e RW |
10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
10714 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
10715 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
10716 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 10717 | else |
0da7a284 | 10718 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
10719 | save_LDFLAGS="$LDFLAGS" |
10720 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10721 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10722 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10723 | # The linker can only warn and ignore the option if not recognized | |
10724 | # So say no if there are warnings | |
10725 | if test -s conftest.err; then | |
10726 | # Append any errors to the config.log. | |
10727 | cat conftest.err 1>&5 | |
43e02a8a | 10728 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
10729 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10730 | if diff conftest.exp conftest.er2 >/dev/null; then | |
0da7a284 | 10731 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10732 | fi |
10733 | else | |
0da7a284 | 10734 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
10735 | fi |
10736 | fi | |
0da7a284 | 10737 | $RM -r conftest* |
1cf3d07d SE |
10738 | LDFLAGS="$save_LDFLAGS" |
10739 | ||
ed698112 | 10740 | fi |
5213506e RW |
10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
10742 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
1cf3d07d | 10743 | |
0da7a284 | 10744 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
10745 | : |
10746 | else | |
10747 | lt_prog_compiler_static= | |
5aac1dac | 10748 | fi |
45597167 | 10749 | |
1cf3d07d SE |
10750 | |
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
5213506e RW |
10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10757 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10758 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
10759 | $as_echo_n "(cached) " >&6 | |
5aac1dac | 10760 | else |
1cf3d07d SE |
10761 | lt_cv_prog_compiler_c_o=no |
10762 | $RM -r conftest 2>/dev/null | |
10763 | mkdir conftest | |
10764 | cd conftest | |
10765 | mkdir out | |
10766 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10767 | ||
10768 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10769 | # Insert the option either (1) after the last *FLAGS variable, or | |
10770 | # (2) before a word containing "conftest.", or (3) at the end. | |
10771 | # Note that $ac_compile itself does not contain backslashes and begins | |
10772 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10773 | lt_compile=`echo "$ac_compile" | $SED \ | |
10774 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10775 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10776 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10777 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10778 | (eval "$lt_compile" 2>out/conftest.err) |
10779 | ac_status=$? | |
10780 | cat out/conftest.err >&5 | |
43e02a8a | 10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10782 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10783 | then | |
10784 | # The compiler can only warn and ignore the option if not recognized | |
10785 | # So say no if there are warnings | |
43e02a8a | 10786 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10787 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10788 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10789 | lt_cv_prog_compiler_c_o=yes | |
10790 | fi | |
10791 | fi | |
10792 | chmod u+w . 2>&5 | |
10793 | $RM conftest* | |
10794 | # SGI C++ compiler will create directory out/ii_files/ for | |
10795 | # template instantiation | |
10796 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10797 | $RM out/* && rmdir out | |
10798 | cd .. | |
10799 | $RM -r conftest | |
10800 | $RM conftest* | |
10801 | ||
ed698112 | 10802 | fi |
5213506e RW |
10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10804 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
ed698112 | 10805 | |
ed698112 | 10806 | |
cf6b8de4 TT |
10807 | |
10808 | ||
1cf3d07d SE |
10809 | |
10810 | ||
5213506e RW |
10811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
10812 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10813 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
10814 | $as_echo_n "(cached) " >&6 | |
ed698112 | 10815 | else |
1cf3d07d SE |
10816 | lt_cv_prog_compiler_c_o=no |
10817 | $RM -r conftest 2>/dev/null | |
10818 | mkdir conftest | |
10819 | cd conftest | |
10820 | mkdir out | |
10821 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10822 | ||
10823 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10824 | # Insert the option either (1) after the last *FLAGS variable, or | |
10825 | # (2) before a word containing "conftest.", or (3) at the end. | |
10826 | # Note that $ac_compile itself does not contain backslashes and begins | |
10827 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10828 | lt_compile=`echo "$ac_compile" | $SED \ | |
10829 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10830 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10831 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 10832 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
10833 | (eval "$lt_compile" 2>out/conftest.err) |
10834 | ac_status=$? | |
10835 | cat out/conftest.err >&5 | |
43e02a8a | 10836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
10837 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
10838 | then | |
10839 | # The compiler can only warn and ignore the option if not recognized | |
10840 | # So say no if there are warnings | |
43e02a8a | 10841 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
10842 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
10843 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10844 | lt_cv_prog_compiler_c_o=yes | |
10845 | fi | |
10846 | fi | |
10847 | chmod u+w . 2>&5 | |
10848 | $RM conftest* | |
10849 | # SGI C++ compiler will create directory out/ii_files/ for | |
10850 | # template instantiation | |
10851 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10852 | $RM out/* && rmdir out | |
10853 | cd .. | |
10854 | $RM -r conftest | |
10855 | $RM conftest* | |
10856 | ||
10857 | fi | |
5213506e RW |
10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
10859 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
1cf3d07d SE |
10860 | |
10861 | ||
10862 | ||
10863 | ||
10864 | hard_links="nottested" | |
10865 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10866 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
10867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
10868 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
10869 | hard_links=yes |
10870 | $RM conftest* | |
10871 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10872 | touch conftest.a | |
10873 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10874 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
10876 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 10877 | if test "$hard_links" = no; then |
5213506e RW |
10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
10879 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
10880 | need_locks=warn |
10881 | fi | |
10882 | else | |
10883 | need_locks=no | |
10884 | fi | |
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
5213506e RW |
10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10892 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
10893 | |
10894 | runpath_var= | |
10895 | allow_undefined_flag= | |
10896 | always_export_symbols=no | |
10897 | archive_cmds= | |
10898 | archive_expsym_cmds= | |
10899 | compiler_needs_object=no | |
10900 | enable_shared_with_static_runtimes=no | |
10901 | export_dynamic_flag_spec= | |
10902 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10903 | hardcode_automatic=no | |
10904 | hardcode_direct=no | |
10905 | hardcode_direct_absolute=no | |
10906 | hardcode_libdir_flag_spec= | |
10907 | hardcode_libdir_flag_spec_ld= | |
10908 | hardcode_libdir_separator= | |
10909 | hardcode_minus_L=no | |
10910 | hardcode_shlibpath_var=unsupported | |
10911 | inherit_rpath=no | |
10912 | link_all_deplibs=unknown | |
10913 | module_cmds= | |
10914 | module_expsym_cmds= | |
10915 | old_archive_from_new_cmds= | |
10916 | old_archive_from_expsyms_cmds= | |
10917 | thread_safe_flag_spec= | |
10918 | whole_archive_flag_spec= | |
10919 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10920 | # included in the symbol list | |
10921 | include_expsyms= | |
10922 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10923 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10924 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10925 | # as well as any symbol that contains `d'. | |
0da7a284 | 10926 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
10927 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
10928 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10929 | # the symbol is explicitly referenced. Since portable code cannot | |
10930 | # rely on this symbol name, it's probably fine to never include it in | |
10931 | # preloaded symbol tables. | |
0da7a284 | 10932 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
10933 | extract_expsyms_cmds= |
10934 | ||
10935 | case $host_os in | |
0da7a284 | 10936 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10937 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
10938 | # When not using gcc, we currently assume that we are using | |
10939 | # Microsoft Visual C++. | |
10940 | if test "$GCC" != yes; then | |
10941 | with_gnu_ld=no | |
10942 | fi | |
10943 | ;; | |
10944 | interix*) | |
10945 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10946 | with_gnu_ld=yes | |
10947 | ;; | |
10948 | openbsd*) | |
10949 | with_gnu_ld=no | |
10950 | ;; | |
10951 | esac | |
10952 | ||
10953 | ld_shlibs=yes | |
43e02a8a RW |
10954 | |
10955 | # On some targets, GNU ld is compatible enough with the native linker | |
10956 | # that we're better off using the native interface for both. | |
10957 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 10958 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
10959 | case $host_os in |
10960 | aix*) | |
10961 | # The AIX port of GNU ld has always aspired to compatibility | |
10962 | # with the native linker. However, as the warning in the GNU ld | |
10963 | # block says, versions before 2.19.5* couldn't really create working | |
10964 | # shared libraries, regardless of the interface used. | |
10965 | case `$LD -v 2>&1` in | |
10966 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10967 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10968 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10969 | *) | |
10970 | lt_use_gnu_ld_interface=yes | |
10971 | ;; | |
10972 | esac | |
10973 | ;; | |
10974 | *) | |
10975 | lt_use_gnu_ld_interface=yes | |
10976 | ;; | |
10977 | esac | |
10978 | fi | |
10979 | ||
10980 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
10981 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10982 | wlarc='${wl}' | |
10983 | ||
10984 | # Set some defaults for GNU ld with shared library support. These | |
10985 | # are reset later if shared libraries are not supported. Putting them | |
10986 | # here allows them to be overridden if necessary. | |
10987 | runpath_var=LD_RUN_PATH | |
10988 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10989 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10990 | # ancient GNU ld didn't support --whole-archive et. al. | |
10991 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10992 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10993 | else | |
10994 | whole_archive_flag_spec= | |
10995 | fi | |
10996 | supports_anon_versioning=no | |
10997 | case `$LD -v 2>&1` in | |
43e02a8a | 10998 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
10999 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
11000 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
11001 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
11002 | *\ 2.11.*) ;; # other 2.11 versions | |
11003 | *) supports_anon_versioning=yes ;; | |
11004 | esac | |
11005 | ||
11006 | # See if GNU ld supports shared libraries. | |
11007 | case $host_os in | |
ed44a2c7 | 11008 | aix[3-9]*) |
1cf3d07d SE |
11009 | # On AIX/PPC, the GNU linker is very broken |
11010 | if test "$host_cpu" != ia64; then | |
11011 | ld_shlibs=no | |
11012 | cat <<_LT_EOF 1>&2 | |
11013 | ||
43e02a8a | 11014 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
11015 | *** to be unable to reliably create shared libraries on AIX. |
11016 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
11017 | *** really care for shared libraries, you may want to install binutils |
11018 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
11019 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
11020 | |
11021 | _LT_EOF | |
11022 | fi | |
11023 | ;; | |
11024 | ||
11025 | amigaos*) | |
0da7a284 PG |
11026 | case $host_cpu in |
11027 | powerpc) | |
11028 | # see comment about AmigaOS4 .so support | |
11029 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11030 | archive_expsym_cmds='' | |
11031 | ;; | |
11032 | m68k) | |
11033 | 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)' | |
11034 | hardcode_libdir_flag_spec='-L$libdir' | |
11035 | hardcode_minus_L=yes | |
11036 | ;; | |
11037 | esac | |
1cf3d07d SE |
11038 | ;; |
11039 | ||
11040 | beos*) | |
11041 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11042 | allow_undefined_flag=unsupported | |
11043 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11044 | # support --undefined. This deserves some investigation. FIXME | |
11045 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11046 | else | |
11047 | ld_shlibs=no | |
11048 | fi | |
11049 | ;; | |
11050 | ||
0da7a284 | 11051 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11052 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
11053 | # as there is no search path for DLLs. | |
11054 | hardcode_libdir_flag_spec='-L$libdir' | |
43e02a8a | 11055 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
1cf3d07d SE |
11056 | allow_undefined_flag=unsupported |
11057 | always_export_symbols=no | |
11058 | enable_shared_with_static_runtimes=yes | |
11059 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
11060 | ||
11061 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
11062 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11063 | # If the export-symbols file already is a .def file (1st line | |
11064 | # is EXPORTS), use it as is; otherwise, prepend... | |
11065 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11066 | cp $export_symbols $output_objdir/$soname.def; | |
11067 | else | |
11068 | echo EXPORTS > $output_objdir/$soname.def; | |
11069 | cat $export_symbols >> $output_objdir/$soname.def; | |
11070 | fi~ | |
11071 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
11072 | else | |
11073 | ld_shlibs=no | |
11074 | fi | |
11075 | ;; | |
11076 | ||
43e02a8a RW |
11077 | haiku*) |
11078 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11079 | link_all_deplibs=yes | |
11080 | ;; | |
11081 | ||
1cf3d07d SE |
11082 | interix[3-9]*) |
11083 | hardcode_direct=no | |
11084 | hardcode_shlibpath_var=no | |
11085 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11086 | export_dynamic_flag_spec='${wl}-E' | |
11087 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11088 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11089 | # default) and relocated if they conflict, which is a slow very memory | |
11090 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11091 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11092 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11093 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11094 | 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' | |
11095 | ;; | |
11096 | ||
7a9d3fe8 | 11097 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
11098 | tmp_diet=no |
11099 | if test "$host_os" = linux-dietlibc; then | |
11100 | case $cc_basename in | |
11101 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
11102 | esac | |
11103 | fi | |
11104 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
11105 | && test "$tmp_diet" = no | |
11106 | then | |
11107 | tmp_addflag= | |
0da7a284 | 11108 | tmp_sharedflag='-shared' |
1cf3d07d SE |
11109 | case $cc_basename,$host_cpu in |
11110 | pgcc*) # Portland Group C compiler | |
43e02a8a | 11111 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
11112 | tmp_addflag=' $pic_flag' |
11113 | ;; | |
43e02a8a RW |
11114 | pgf77* | pgf90* | pgf95* | pgfortran*) |
11115 | # Portland Group f77 and f90 compilers | |
11116 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
1cf3d07d SE |
11117 | tmp_addflag=' $pic_flag -Mnomain' ;; |
11118 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
11119 | tmp_addflag=' -i_dynamic' ;; | |
11120 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
11121 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
11122 | ifc* | ifort*) # Intel Fortran compiler | |
11123 | tmp_addflag=' -nofor_main' ;; | |
0da7a284 PG |
11124 | lf95*) # Lahey Fortran 8.1 |
11125 | whole_archive_flag_spec= | |
11126 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 11127 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
0da7a284 PG |
11128 | tmp_sharedflag='-qmkshrobj' |
11129 | tmp_addflag= ;; | |
43e02a8a RW |
11130 | nvcc*) # Cuda Compiler Driver 2.2 |
11131 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
11132 | compiler_needs_object=yes | |
11133 | ;; | |
1cf3d07d SE |
11134 | esac |
11135 | case `$CC -V 2>&1 | sed 5q` in | |
11136 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 11137 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
11138 | compiler_needs_object=yes |
11139 | tmp_sharedflag='-G' ;; | |
11140 | *Sun\ F*) # Sun Fortran 8.3 | |
11141 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
11142 | esac |
11143 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11144 | ||
11145 | if test "x$supports_anon_versioning" = xyes; then | |
11146 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
11147 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
11148 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11149 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
11150 | fi | |
0da7a284 PG |
11151 | |
11152 | case $cc_basename in | |
43e02a8a | 11153 | xlf* | bgf* | bgxlf* | mpixlf*) |
0da7a284 PG |
11154 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
11155 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
11156 | hardcode_libdir_flag_spec= | |
11157 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
11158 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
11159 | if test "x$supports_anon_versioning" = xyes; then | |
11160 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
11161 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
11162 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11163 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
11164 | fi | |
11165 | ;; | |
11166 | esac | |
1cf3d07d SE |
11167 | else |
11168 | ld_shlibs=no | |
11169 | fi | |
11170 | ;; | |
11171 | ||
11172 | netbsd*) | |
11173 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11174 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
11175 | wlarc= | |
11176 | else | |
11177 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11178 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11179 | fi | |
11180 | ;; | |
11181 | ||
11182 | solaris*) | |
11183 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
11184 | ld_shlibs=no | |
11185 | cat <<_LT_EOF 1>&2 | |
11186 | ||
11187 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
11188 | *** create shared libraries on Solaris systems. Therefore, libtool | |
11189 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
11190 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
11191 | *** your PATH or compiler configuration so that the native linker is | |
11192 | *** used, and then restart. | |
11193 | ||
11194 | _LT_EOF | |
11195 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11196 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11197 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11198 | else | |
11199 | ld_shlibs=no | |
11200 | fi | |
11201 | ;; | |
11202 | ||
11203 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
11204 | case `$LD -v 2>&1` in | |
11205 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
11206 | ld_shlibs=no | |
11207 | cat <<_LT_EOF 1>&2 | |
11208 | ||
11209 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
11210 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
11211 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
11212 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
11213 | *** your PATH or compiler configuration so that the native linker is | |
11214 | *** used, and then restart. | |
11215 | ||
11216 | _LT_EOF | |
11217 | ;; | |
11218 | *) | |
11219 | # For security reasons, it is highly recommended that you always | |
11220 | # use absolute paths for naming shared libraries, and exclude the | |
11221 | # DT_RUNPATH tag from executables and libraries. But doing so | |
11222 | # requires that you compile everything twice, which is a pain. | |
11223 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11224 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11225 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11226 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11227 | else | |
11228 | ld_shlibs=no | |
11229 | fi | |
11230 | ;; | |
11231 | esac | |
11232 | ;; | |
11233 | ||
11234 | sunos4*) | |
11235 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11236 | wlarc= | |
11237 | hardcode_direct=yes | |
11238 | hardcode_shlibpath_var=no | |
11239 | ;; | |
11240 | ||
11241 | *) | |
11242 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11243 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11244 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11245 | else | |
11246 | ld_shlibs=no | |
11247 | fi | |
11248 | ;; | |
11249 | esac | |
11250 | ||
11251 | if test "$ld_shlibs" = no; then | |
11252 | runpath_var= | |
11253 | hardcode_libdir_flag_spec= | |
11254 | export_dynamic_flag_spec= | |
11255 | whole_archive_flag_spec= | |
11256 | fi | |
11257 | else | |
11258 | # PORTME fill in a description of your system's linker (not GNU ld) | |
11259 | case $host_os in | |
11260 | aix3*) | |
11261 | allow_undefined_flag=unsupported | |
11262 | always_export_symbols=yes | |
11263 | 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' | |
11264 | # Note: this linker hardcodes the directories in LIBPATH if there | |
11265 | # are no directories specified by -L. | |
11266 | hardcode_minus_L=yes | |
11267 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
11268 | # Neither direct hardcoding nor static linking is supported with a | |
11269 | # broken collect2. | |
11270 | hardcode_direct=unsupported | |
11271 | fi | |
11272 | ;; | |
11273 | ||
ed44a2c7 | 11274 | aix[4-9]*) |
1cf3d07d SE |
11275 | if test "$host_cpu" = ia64; then |
11276 | # On IA64, the linker does run time linking by default, so we don't | |
11277 | # have to do anything special. | |
11278 | aix_use_runtimelinking=no | |
11279 | exp_sym_flag='-Bexport' | |
11280 | no_entry_flag="" | |
11281 | else | |
11282 | # If we're using GNU nm, then we don't want the "-C" option. | |
11283 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
11284 | # Also, AIX nm treats weak defined symbols like other global |
11285 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 11286 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 11287 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d SE |
11288 | else |
11289 | 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' | |
11290 | fi | |
11291 | aix_use_runtimelinking=no | |
11292 | ||
11293 | # Test if we are trying to use run time linking or normal | |
11294 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11295 | # need to do runtime linking. | |
ed44a2c7 | 11296 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
11297 | for ld_flag in $LDFLAGS; do |
11298 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
11299 | aix_use_runtimelinking=yes | |
11300 | break | |
11301 | fi | |
11302 | done | |
11303 | ;; | |
11304 | esac | |
11305 | ||
11306 | exp_sym_flag='-bexport' | |
11307 | no_entry_flag='-bnoentry' | |
11308 | fi | |
11309 | ||
11310 | # When large executables or shared objects are built, AIX ld can | |
11311 | # have problems creating the table of contents. If linking a library | |
11312 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11313 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11314 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11315 | ||
11316 | archive_cmds='' | |
11317 | hardcode_direct=yes | |
11318 | hardcode_direct_absolute=yes | |
11319 | hardcode_libdir_separator=':' | |
11320 | link_all_deplibs=yes | |
11321 | file_list_spec='${wl}-f,' | |
11322 | ||
11323 | if test "$GCC" = yes; then | |
11324 | case $host_os in aix4.[012]|aix4.[012].*) | |
11325 | # We only want to do this on AIX 4.2 and lower, the check | |
11326 | # below for broken collect2 doesn't work under 4.3+ | |
11327 | collect2name=`${CC} -print-prog-name=collect2` | |
11328 | if test -f "$collect2name" && | |
11329 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11330 | then | |
11331 | # We have reworked collect2 | |
11332 | : | |
11333 | else | |
11334 | # We have old collect2 | |
11335 | hardcode_direct=unsupported | |
11336 | # It fails to find uninstalled libraries when the uninstalled | |
11337 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11338 | # to unsupported forces relinking | |
11339 | hardcode_minus_L=yes | |
11340 | hardcode_libdir_flag_spec='-L$libdir' | |
11341 | hardcode_libdir_separator= | |
11342 | fi | |
11343 | ;; | |
11344 | esac | |
11345 | shared_flag='-shared' | |
11346 | if test "$aix_use_runtimelinking" = yes; then | |
11347 | shared_flag="$shared_flag "'${wl}-G' | |
11348 | fi | |
11349 | else | |
11350 | # not using gcc | |
11351 | if test "$host_cpu" = ia64; then | |
11352 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11353 | # chokes on -Wl,-G. The following line is correct: | |
11354 | shared_flag='-G' | |
11355 | else | |
11356 | if test "$aix_use_runtimelinking" = yes; then | |
11357 | shared_flag='${wl}-G' | |
11358 | else | |
11359 | shared_flag='${wl}-bM:SRE' | |
11360 | fi | |
11361 | fi | |
11362 | fi | |
11363 | ||
0da7a284 | 11364 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
11365 | # It seems that -bexpall does not export symbols beginning with |
11366 | # underscore (_), so it is better to generate a list of symbols to export. | |
11367 | always_export_symbols=yes | |
11368 | if test "$aix_use_runtimelinking" = yes; then | |
11369 | # Warning - without using the other runtime loading flags (-brtl), | |
11370 | # -berok will link without error, but may produce a broken library. | |
11371 | allow_undefined_flag='-berok' | |
11372 | # Determine the default libpath from the value encoded in an | |
11373 | # empty executable. | |
11374 | if test x$gcc_no_link = xyes; then | |
5213506e | 11375 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ed698112 | 11376 | fi |
5213506e | 11377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 | 11378 | /* end confdefs.h. */ |
ee9dd372 | 11379 | |
ed698112 NN |
11380 | int |
11381 | main () | |
11382 | { | |
1cf3d07d | 11383 | |
ed698112 NN |
11384 | ; |
11385 | return 0; | |
11386 | } | |
11387 | _ACEOF | |
5213506e | 11388 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11389 | |
11390 | lt_aix_libpath_sed=' | |
11391 | /Import File Strings/,/^$/ { | |
11392 | /^0/ { | |
11393 | s/^0 *\(.*\)$/\1/ | |
11394 | p | |
11395 | } | |
11396 | }' | |
11397 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11398 | # Check for a 64-bit object if we didn't find anything. | |
11399 | if test -z "$aix_libpath"; then | |
11400 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11401 | fi | |
ed698112 | 11402 | fi |
5213506e RW |
11403 | rm -f core conftest.err conftest.$ac_objext \ |
11404 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d | 11405 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
ee9dd372 | 11406 | |
1cf3d07d | 11407 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
43e02a8a | 11408 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1cf3d07d SE |
11409 | else |
11410 | if test "$host_cpu" = ia64; then | |
11411 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
11412 | allow_undefined_flag="-z nodefs" | |
11413 | 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" | |
11414 | else | |
11415 | # Determine the default libpath from the value encoded in an | |
11416 | # empty executable. | |
11417 | if test x$gcc_no_link = xyes; then | |
5213506e | 11418 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ed698112 | 11419 | fi |
5213506e | 11420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 NN |
11421 | /* end confdefs.h. */ |
11422 | ||
ed698112 NN |
11423 | int |
11424 | main () | |
11425 | { | |
1cf3d07d | 11426 | |
ed698112 NN |
11427 | ; |
11428 | return 0; | |
11429 | } | |
11430 | _ACEOF | |
5213506e | 11431 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
11432 | |
11433 | lt_aix_libpath_sed=' | |
11434 | /Import File Strings/,/^$/ { | |
11435 | /^0/ { | |
11436 | s/^0 *\(.*\)$/\1/ | |
11437 | p | |
11438 | } | |
11439 | }' | |
11440 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11441 | # Check for a 64-bit object if we didn't find anything. | |
11442 | if test -z "$aix_libpath"; then | |
11443 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11444 | fi | |
ed698112 | 11445 | fi |
5213506e RW |
11446 | rm -f core conftest.err conftest.$ac_objext \ |
11447 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11448 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11449 | ||
11450 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11451 | # Warning - without using the other run time loading flags, | |
11452 | # -berok will link without error, but may produce a broken library. | |
11453 | no_undefined_flag=' ${wl}-bernotok' | |
11454 | allow_undefined_flag=' ${wl}-berok' | |
43e02a8a RW |
11455 | if test "$with_gnu_ld" = yes; then |
11456 | # We only use this code for GNU lds that support --whole-archive. | |
11457 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11458 | else | |
11459 | # Exported symbols can be pulled into shared objects from archives | |
11460 | whole_archive_flag_spec='$convenience' | |
11461 | fi | |
1cf3d07d SE |
11462 | archive_cmds_need_lc=yes |
11463 | # This is similar to how AIX traditionally builds its shared libraries. | |
11464 | 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' | |
11465 | fi | |
11466 | fi | |
11467 | ;; | |
fe5e3b97 | 11468 | |
1cf3d07d | 11469 | amigaos*) |
0da7a284 PG |
11470 | case $host_cpu in |
11471 | powerpc) | |
11472 | # see comment about AmigaOS4 .so support | |
11473 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11474 | archive_expsym_cmds='' | |
11475 | ;; | |
11476 | m68k) | |
11477 | 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)' | |
11478 | hardcode_libdir_flag_spec='-L$libdir' | |
11479 | hardcode_minus_L=yes | |
11480 | ;; | |
11481 | esac | |
1cf3d07d SE |
11482 | ;; |
11483 | ||
11484 | bsdi[45]*) | |
11485 | export_dynamic_flag_spec=-rdynamic | |
11486 | ;; | |
11487 | ||
0da7a284 | 11488 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11489 | # When not using gcc, we currently assume that we are using |
11490 | # Microsoft Visual C++. | |
11491 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
11492 | # no search path for DLLs. | |
11493 | hardcode_libdir_flag_spec=' ' | |
11494 | allow_undefined_flag=unsupported | |
11495 | # Tell ltmain to make .lib files, not .a files. | |
11496 | libext=lib | |
11497 | # Tell ltmain to make .dll files, not .so files. | |
11498 | shrext_cmds=".dll" | |
11499 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 11500 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
11501 | # The linker will automatically build a .lib file if we build a DLL. |
11502 | old_archive_from_new_cmds='true' | |
11503 | # FIXME: Should let the user specify the lib program. | |
11504 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
11505 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
11506 | enable_shared_with_static_runtimes=yes | |
11507 | ;; | |
11508 | ||
11509 | darwin* | rhapsody*) | |
fe5e3b97 | 11510 | |
0da7a284 PG |
11511 | |
11512 | archive_cmds_need_lc=no | |
11513 | hardcode_direct=no | |
11514 | hardcode_automatic=yes | |
11515 | hardcode_shlibpath_var=unsupported | |
43e02a8a RW |
11516 | if test "$lt_cv_ld_force_load" = "yes"; then |
11517 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
11518 | else | |
11519 | whole_archive_flag_spec='' | |
11520 | fi | |
0da7a284 PG |
11521 | link_all_deplibs=yes |
11522 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
11523 | case $cc_basename in | |
11524 | ifort*) _lt_dar_can_shared=yes ;; | |
11525 | *) _lt_dar_can_shared=$GCC ;; | |
11526 | esac | |
11527 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 11528 | output_verbose_link_cmd=func_echo_all |
0da7a284 PG |
11529 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
11530 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11531 | 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}" | |
11532 | 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}" | |
11533 | ||
11534 | else | |
11535 | ld_shlibs=no | |
11536 | fi | |
11537 | ||
1cf3d07d | 11538 | ;; |
5aac1dac | 11539 | |
1cf3d07d SE |
11540 | dgux*) |
11541 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11542 | hardcode_libdir_flag_spec='-L$libdir' | |
11543 | hardcode_shlibpath_var=no | |
11544 | ;; | |
ed698112 | 11545 | |
1cf3d07d SE |
11546 | freebsd1*) |
11547 | ld_shlibs=no | |
11548 | ;; | |
ed698112 | 11549 | |
1cf3d07d SE |
11550 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
11551 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
11552 | # does not break anything, and helps significantly (at the cost of a little | |
11553 | # extra space). | |
11554 | freebsd2.2*) | |
11555 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
11556 | hardcode_libdir_flag_spec='-R$libdir' | |
11557 | hardcode_direct=yes | |
11558 | hardcode_shlibpath_var=no | |
11559 | ;; | |
ee9dd372 | 11560 | |
1cf3d07d SE |
11561 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
11562 | freebsd2*) | |
11563 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11564 | hardcode_direct=yes | |
11565 | hardcode_minus_L=yes | |
11566 | hardcode_shlibpath_var=no | |
11567 | ;; | |
ee9dd372 | 11568 | |
1cf3d07d SE |
11569 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
11570 | freebsd* | dragonfly*) | |
11571 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
11572 | hardcode_libdir_flag_spec='-R$libdir' | |
11573 | hardcode_direct=yes | |
11574 | hardcode_shlibpath_var=no | |
11575 | ;; | |
ee9dd372 | 11576 | |
1cf3d07d SE |
11577 | hpux9*) |
11578 | if test "$GCC" = yes; then | |
11579 | 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' | |
11580 | else | |
11581 | 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' | |
11582 | fi | |
11583 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11584 | hardcode_libdir_separator=: | |
11585 | hardcode_direct=yes | |
11586 | ||
11587 | # hardcode_minus_L: Not really in the search PATH, | |
11588 | # but as the default location of the library. | |
11589 | hardcode_minus_L=yes | |
11590 | export_dynamic_flag_spec='${wl}-E' | |
11591 | ;; | |
ed698112 | 11592 | |
1cf3d07d | 11593 | hpux10*) |
43e02a8a | 11594 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11595 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
11596 | else | |
11597 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11598 | fi | |
11599 | if test "$with_gnu_ld" = no; then | |
11600 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11601 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11602 | hardcode_libdir_separator=: | |
11603 | hardcode_direct=yes | |
11604 | hardcode_direct_absolute=yes | |
11605 | export_dynamic_flag_spec='${wl}-E' | |
11606 | # hardcode_minus_L: Not really in the search PATH, | |
11607 | # but as the default location of the library. | |
11608 | hardcode_minus_L=yes | |
11609 | fi | |
11610 | ;; | |
ee9dd372 | 11611 | |
1cf3d07d | 11612 | hpux11*) |
43e02a8a | 11613 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
11614 | case $host_cpu in |
11615 | hppa*64*) | |
11616 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11617 | ;; | |
11618 | ia64*) | |
0da7a284 | 11619 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
11620 | ;; |
11621 | *) | |
11622 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11623 | ;; | |
11624 | esac | |
11625 | else | |
11626 | case $host_cpu in | |
11627 | hppa*64*) | |
11628 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11629 | ;; | |
11630 | ia64*) | |
11631 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11632 | ;; | |
11633 | *) | |
43e02a8a RW |
11634 | |
11635 | # Older versions of the 11.00 compiler do not understand -b yet | |
11636 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11638 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
11639 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
11640 | $as_echo_n "(cached) " >&6 | |
11641 | else | |
11642 | lt_cv_prog_compiler__b=no | |
11643 | save_LDFLAGS="$LDFLAGS" | |
11644 | LDFLAGS="$LDFLAGS -b" | |
11645 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11646 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11647 | # The linker can only warn and ignore the option if not recognized | |
11648 | # So say no if there are warnings | |
11649 | if test -s conftest.err; then | |
11650 | # Append any errors to the config.log. | |
11651 | cat conftest.err 1>&5 | |
11652 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11653 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11654 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11655 | lt_cv_prog_compiler__b=yes | |
11656 | fi | |
11657 | else | |
11658 | lt_cv_prog_compiler__b=yes | |
11659 | fi | |
11660 | fi | |
11661 | $RM -r conftest* | |
11662 | LDFLAGS="$save_LDFLAGS" | |
11663 | ||
11664 | fi | |
11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11666 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11667 | ||
11668 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11669 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11670 | else | |
11671 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11672 | fi | |
11673 | ||
1cf3d07d SE |
11674 | ;; |
11675 | esac | |
11676 | fi | |
11677 | if test "$with_gnu_ld" = no; then | |
11678 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11679 | hardcode_libdir_separator=: | |
11680 | ||
11681 | case $host_cpu in | |
11682 | hppa*64*|ia64*) | |
11683 | hardcode_direct=no | |
11684 | hardcode_shlibpath_var=no | |
11685 | ;; | |
11686 | *) | |
11687 | hardcode_direct=yes | |
11688 | hardcode_direct_absolute=yes | |
11689 | export_dynamic_flag_spec='${wl}-E' | |
11690 | ||
11691 | # hardcode_minus_L: Not really in the search PATH, | |
11692 | # but as the default location of the library. | |
11693 | hardcode_minus_L=yes | |
11694 | ;; | |
11695 | esac | |
11696 | fi | |
11697 | ;; | |
11698 | ||
11699 | irix5* | irix6* | nonstopux*) | |
11700 | if test "$GCC" = yes; then | |
43e02a8a | 11701 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
11702 | # Try to use the -exported_symbol ld option, if it does not |
11703 | # work, assume that -exports_file does not work either and | |
11704 | # implicitly export all symbols. | |
11705 | save_LDFLAGS="$LDFLAGS" | |
11706 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11707 | if test x$gcc_no_link = xyes; then | |
5213506e | 11708 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ed698112 | 11709 | fi |
5213506e RW |
11710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11711 | /* end confdefs.h. */ | |
1cf3d07d | 11712 | int foo(void) {} |
ed698112 | 11713 | _ACEOF |
5213506e | 11714 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 11715 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
1cf3d07d | 11716 | |
ed698112 | 11717 | fi |
5213506e RW |
11718 | rm -f core conftest.err conftest.$ac_objext \ |
11719 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
11720 | LDFLAGS="$save_LDFLAGS" |
11721 | else | |
43e02a8a RW |
11722 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
11723 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
1cf3d07d SE |
11724 | fi |
11725 | archive_cmds_need_lc='no' | |
11726 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11727 | hardcode_libdir_separator=: | |
11728 | inherit_rpath=yes | |
11729 | link_all_deplibs=yes | |
11730 | ;; | |
5aac1dac | 11731 | |
1cf3d07d SE |
11732 | netbsd*) |
11733 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11734 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11735 | else | |
11736 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11737 | fi | |
11738 | hardcode_libdir_flag_spec='-R$libdir' | |
11739 | hardcode_direct=yes | |
11740 | hardcode_shlibpath_var=no | |
11741 | ;; | |
ed698112 | 11742 | |
1cf3d07d SE |
11743 | newsos6) |
11744 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11745 | hardcode_direct=yes | |
11746 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11747 | hardcode_libdir_separator=: | |
11748 | hardcode_shlibpath_var=no | |
11749 | ;; | |
ed698112 | 11750 | |
1cf3d07d SE |
11751 | *nto* | *qnx*) |
11752 | ;; | |
ee9dd372 | 11753 | |
1cf3d07d | 11754 | openbsd*) |
0da7a284 PG |
11755 | if test -f /usr/libexec/ld.so; then |
11756 | hardcode_direct=yes | |
11757 | hardcode_shlibpath_var=no | |
11758 | hardcode_direct_absolute=yes | |
11759 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 11760 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
0da7a284 | 11761 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 11762 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
0da7a284 PG |
11763 | export_dynamic_flag_spec='${wl}-E' |
11764 | else | |
11765 | case $host_os in | |
11766 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11767 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11768 | hardcode_libdir_flag_spec='-R$libdir' | |
11769 | ;; | |
11770 | *) | |
11771 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11772 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11773 | ;; | |
11774 | esac | |
11775 | fi | |
11776 | else | |
11777 | ld_shlibs=no | |
1cf3d07d SE |
11778 | fi |
11779 | ;; | |
ee9dd372 | 11780 | |
1cf3d07d SE |
11781 | os2*) |
11782 | hardcode_libdir_flag_spec='-L$libdir' | |
11783 | hardcode_minus_L=yes | |
11784 | allow_undefined_flag=unsupported | |
43e02a8a | 11785 | 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' |
1cf3d07d SE |
11786 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
11787 | ;; | |
ee9dd372 | 11788 | |
1cf3d07d SE |
11789 | osf3*) |
11790 | if test "$GCC" = yes; then | |
11791 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11792 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
11793 | else |
11794 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11795 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
11796 | fi |
11797 | archive_cmds_need_lc='no' | |
11798 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11799 | hardcode_libdir_separator=: | |
11800 | ;; | |
ed698112 | 11801 | |
1cf3d07d SE |
11802 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
11803 | if test "$GCC" = yes; then | |
11804 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 11805 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
11806 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
11807 | else | |
11808 | allow_undefined_flag=' -expect_unresolved \*' | |
43e02a8a | 11809 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d | 11810 | 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~ |
43e02a8a | 11811 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
ee9dd372 | 11812 | |
1cf3d07d SE |
11813 | # Both c and cxx compiler support -rpath directly |
11814 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11815 | fi | |
11816 | archive_cmds_need_lc='no' | |
11817 | hardcode_libdir_separator=: | |
11818 | ;; | |
ed698112 | 11819 | |
1cf3d07d SE |
11820 | solaris*) |
11821 | no_undefined_flag=' -z defs' | |
11822 | if test "$GCC" = yes; then | |
11823 | wlarc='${wl}' | |
11824 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11825 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11826 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11827 | else | |
11828 | case `$CC -V 2>&1` in | |
11829 | *"Compilers 5.0"*) | |
11830 | wlarc='' | |
11831 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11832 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11833 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11834 | ;; | |
11835 | *) | |
11836 | wlarc='${wl}' | |
11837 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11838 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11839 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11840 | ;; | |
11841 | esac | |
11842 | fi | |
11843 | hardcode_libdir_flag_spec='-R$libdir' | |
11844 | hardcode_shlibpath_var=no | |
11845 | case $host_os in | |
11846 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11847 | *) | |
11848 | # The compiler driver will combine and reorder linker options, | |
11849 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11850 | # but is careful enough not to reorder. | |
11851 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11852 | if test "$GCC" = yes; then | |
11853 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11854 | else | |
11855 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11856 | fi | |
11857 | ;; | |
11858 | esac | |
11859 | link_all_deplibs=yes | |
11860 | ;; | |
11861 | ||
11862 | sunos4*) | |
11863 | if test "x$host_vendor" = xsequent; then | |
11864 | # Use $CC to link under sequent, because it throws in some extra .o | |
11865 | # files that make .init and .fini sections work. | |
11866 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11867 | else | |
11868 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11869 | fi | |
11870 | hardcode_libdir_flag_spec='-L$libdir' | |
11871 | hardcode_direct=yes | |
11872 | hardcode_minus_L=yes | |
11873 | hardcode_shlibpath_var=no | |
11874 | ;; | |
11875 | ||
11876 | sysv4) | |
11877 | case $host_vendor in | |
11878 | sni) | |
11879 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11880 | hardcode_direct=yes # is this really true??? | |
11881 | ;; | |
11882 | siemens) | |
11883 | ## LD is ld it makes a PLAMLIB | |
11884 | ## CC just makes a GrossModule. | |
11885 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11886 | reload_cmds='$CC -r -o $output$reload_objs' | |
11887 | hardcode_direct=no | |
11888 | ;; | |
11889 | motorola) | |
11890 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11891 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11892 | ;; | |
11893 | esac | |
11894 | runpath_var='LD_RUN_PATH' | |
11895 | hardcode_shlibpath_var=no | |
11896 | ;; | |
11897 | ||
11898 | sysv4.3*) | |
11899 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11900 | hardcode_shlibpath_var=no | |
11901 | export_dynamic_flag_spec='-Bexport' | |
11902 | ;; | |
11903 | ||
11904 | sysv4*MP*) | |
11905 | if test -d /usr/nec; then | |
11906 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11907 | hardcode_shlibpath_var=no | |
11908 | runpath_var=LD_RUN_PATH | |
11909 | hardcode_runpath_var=yes | |
11910 | ld_shlibs=yes | |
11911 | fi | |
11912 | ;; | |
11913 | ||
11914 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11915 | no_undefined_flag='${wl}-z,text' | |
11916 | archive_cmds_need_lc=no | |
11917 | hardcode_shlibpath_var=no | |
11918 | runpath_var='LD_RUN_PATH' | |
11919 | ||
11920 | if test "$GCC" = yes; then | |
11921 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11922 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11923 | else | |
11924 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11925 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11926 | fi | |
11927 | ;; | |
11928 | ||
11929 | sysv5* | sco3.2v5* | sco5v6*) | |
11930 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11931 | # link with -lc, and that would cause any symbols used from libc to | |
11932 | # always be unresolved, which means just about no library would | |
11933 | # ever link correctly. If we're not using GNU ld we use -z text | |
11934 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11935 | # as -z defs. | |
11936 | no_undefined_flag='${wl}-z,text' | |
11937 | allow_undefined_flag='${wl}-z,nodefs' | |
11938 | archive_cmds_need_lc=no | |
11939 | hardcode_shlibpath_var=no | |
11940 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11941 | hardcode_libdir_separator=':' | |
11942 | link_all_deplibs=yes | |
11943 | export_dynamic_flag_spec='${wl}-Bexport' | |
11944 | runpath_var='LD_RUN_PATH' | |
11945 | ||
11946 | if test "$GCC" = yes; then | |
11947 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11948 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11949 | else | |
11950 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11951 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11952 | fi | |
11953 | ;; | |
11954 | ||
11955 | uts4*) | |
11956 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11957 | hardcode_libdir_flag_spec='-L$libdir' | |
11958 | hardcode_shlibpath_var=no | |
11959 | ;; | |
11960 | ||
11961 | *) | |
11962 | ld_shlibs=no | |
11963 | ;; | |
11964 | esac | |
11965 | ||
11966 | if test x$host_vendor = xsni; then | |
11967 | case $host in | |
11968 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11969 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11970 | ;; | |
11971 | esac | |
11972 | fi | |
11973 | fi | |
11974 | ||
5213506e RW |
11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11976 | $as_echo "$ld_shlibs" >&6; } | |
1cf3d07d SE |
11977 | test "$ld_shlibs" = no && can_build_shared=no |
11978 | ||
11979 | with_gnu_ld=$with_gnu_ld | |
11980 | ||
11981 | ||
11982 | ||
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | ||
11991 | ||
11992 | ||
11993 | ||
11994 | ||
11995 | # | |
11996 | # Do we need to explicitly link libc? | |
11997 | # | |
11998 | case "x$archive_cmds_need_lc" in | |
11999 | x|xyes) | |
12000 | # Assume -lc should be added | |
12001 | archive_cmds_need_lc=yes | |
12002 | ||
12003 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12004 | case $archive_cmds in | |
12005 | *'~'*) | |
12006 | # FIXME: we may have to deal with multi-command sequences. | |
12007 | ;; | |
12008 | '$CC '*) | |
12009 | # Test whether the compiler implicitly links with -lc since on some | |
12010 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12011 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
12013 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
12014 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
12015 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
12016 | else |
12017 | $RM conftest* | |
12018 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 12019 | |
5213506e | 12020 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d | 12021 | (eval $ac_compile) 2>&5 |
ed698112 | 12022 | ac_status=$? |
5213506e RW |
12023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12024 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
12025 | soname=conftest |
12026 | lib=conftest | |
12027 | libobjs=conftest.$ac_objext | |
12028 | deplibs= | |
12029 | wl=$lt_prog_compiler_wl | |
12030 | pic_flag=$lt_prog_compiler_pic | |
12031 | compiler_flags=-v | |
12032 | linker_flags=-v | |
12033 | verstring= | |
12034 | output_objdir=. | |
12035 | libname=conftest | |
12036 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
12037 | allow_undefined_flag= | |
5213506e | 12038 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 12039 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
ed698112 | 12040 | ac_status=$? |
5213506e RW |
12041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12042 | test $ac_status = 0; } | |
baafc534 RW |
12043 | then |
12044 | lt_cv_archive_cmds_need_lc=no | |
12045 | else | |
12046 | lt_cv_archive_cmds_need_lc=yes | |
12047 | fi | |
12048 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
12049 | else | |
12050 | cat conftest.err 1>&5 | |
12051 | fi | |
12052 | $RM conftest* | |
12053 | ||
12054 | fi | |
5213506e RW |
12055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
12056 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
baafc534 | 12057 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
1cf3d07d SE |
12058 | ;; |
12059 | esac | |
12060 | fi | |
12061 | ;; | |
12062 | esac | |
ed698112 | 12063 | |
ee9dd372 | 12064 | |
5aac1dac | 12065 | |
ed698112 | 12066 | |
283a159f | 12067 | |
283a159f | 12068 | |
ed698112 | 12069 | |
283a159f | 12070 | |
ed698112 | 12071 | |
283a159f | 12072 | |
ed698112 | 12073 | |
ed698112 | 12074 | |
5aac1dac | 12075 | |
5aac1dac | 12076 | |
ed698112 | 12077 | |
ed698112 | 12078 | |
5aac1dac | 12079 | |
5aac1dac | 12080 | |
5aac1dac TT |
12081 | |
12082 | ||
5aac1dac | 12083 | |
c0975bc7 AP |
12084 | |
12085 | ||
ed698112 | 12086 | |
5aac1dac | 12087 | |
5aac1dac TT |
12088 | |
12089 | ||
12090 | ||
12091 | ||
12092 | ||
12093 | ||
5aac1dac TT |
12094 | |
12095 | ||
12096 | ||
e3f92d3b MK |
12097 | |
12098 | ||
12099 | ||
e3f92d3b MK |
12100 | |
12101 | ||
12102 | ||
5aac1dac | 12103 | |
ed698112 | 12104 | |
5aac1dac | 12105 | |
5aac1dac | 12106 | |
ed698112 | 12107 | |
5aac1dac TT |
12108 | |
12109 | ||
ed698112 | 12110 | |
5aac1dac | 12111 | |
ed698112 | 12112 | |
5aac1dac | 12113 | |
5aac1dac | 12114 | |
19367215 | 12115 | |
19367215 | 12116 | |
19367215 | 12117 | |
19367215 | 12118 | |
19367215 | 12119 | |
e4261ef7 | 12120 | |
e4261ef7 | 12121 | |
19367215 HB |
12122 | |
12123 | ||
620a329b | 12124 | |
5a121897 | 12125 | |
e3f92d3b MK |
12126 | |
12127 | ||
12128 | ||
e3f92d3b MK |
12129 | |
12130 | ||
12131 | ||
e3f92d3b MK |
12132 | |
12133 | ||
97c074fd | 12134 | |
97c074fd JJ |
12135 | |
12136 | ||
b9f243c2 | 12137 | |
18744d9b | 12138 | |
eb2925b6 | 12139 | |
b9f243c2 | 12140 | |
97c074fd JJ |
12141 | |
12142 | ||
ed698112 | 12143 | |
b9f243c2 | 12144 | |
b9f243c2 | 12145 | |
283a159f | 12146 | |
5aac1dac TT |
12147 | |
12148 | ||
283a159f | 12149 | |
e3f92d3b | 12150 | |
283a159f | 12151 | |
5aac1dac | 12152 | |
ed698112 | 12153 | |
9e7823cc | 12154 | |
ed698112 | 12155 | |
ee9dd372 | 12156 | |
ed698112 | 12157 | |
860a1536 | 12158 | |
ed698112 | 12159 | |
860a1536 | 12160 | |
ed698112 | 12161 | |
5aac1dac | 12162 | |
ed698112 | 12163 | |
5463a4f3 | 12164 | |
ed698112 | 12165 | |
860a1536 | 12166 | |
ed698112 | 12167 | |
860a1536 | 12168 | |
5aac1dac TT |
12169 | |
12170 | ||
5aac1dac | 12171 | |
ed698112 NN |
12172 | |
12173 | ||
12174 | ||
12175 | ||
12176 | ||
12177 | ||
12178 | ||
12179 | ||
ed698112 | 12180 | |
ed698112 | 12181 | |
5aac1dac | 12182 | |
5aac1dac | 12183 | |
5aac1dac | 12184 | |
ed698112 | 12185 | |
ebecd56d | 12186 | |
ed698112 NN |
12187 | |
12188 | ||
12189 | ||
17c2e2c0 TT |
12190 | |
12191 | ||
12192 | ||
12193 | ||
12194 | ||
12195 | ||
12196 | ||
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ||
a5dfac10 | 12202 | |
ed698112 | 12203 | |
ed698112 | 12204 | |
ee9dd372 | 12205 | |
ee9dd372 | 12206 | |
ee9dd372 | 12207 | |
ed698112 | 12208 | |
ee9dd372 | 12209 | |
34c5c0e1 | 12210 | |
ed698112 NN |
12211 | |
12212 | ||
5aac1dac | 12213 | |
5aac1dac | 12214 | |
5aac1dac | 12215 | |
ed698112 | 12216 | |
ed698112 | 12217 | |
ed698112 | 12218 | |
ed698112 | 12219 | |
5213506e RW |
12220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
12221 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
0da7a284 PG |
12222 | |
12223 | if test "$GCC" = yes; then | |
1cf3d07d SE |
12224 | case $host_os in |
12225 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
12226 | *) lt_awk_arg="/^libraries:/" ;; | |
12227 | esac | |
43e02a8a RW |
12228 | case $host_os in |
12229 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
12230 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
12231 | esac | |
12232 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
12233 | case $lt_search_path_spec in | |
12234 | *\;*) | |
1cf3d07d SE |
12235 | # if the path contains ";" then we assume it to be the separator |
12236 | # otherwise default to the standard path separator (i.e. ":") - it is | |
12237 | # assumed that no part of a normal pathname contains ";" but that should | |
12238 | # okay in the real world where ";" in dirpaths is itself problematic. | |
43e02a8a RW |
12239 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
12240 | ;; | |
12241 | *) | |
12242 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
12243 | ;; | |
12244 | esac | |
1cf3d07d SE |
12245 | # Ok, now we have the path, separated by spaces, we can step through it |
12246 | # and add multilib dir if necessary. | |
12247 | lt_tmp_lt_search_path_spec= | |
12248 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
12249 | for lt_sys_path in $lt_search_path_spec; do | |
12250 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
12251 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
12252 | else | |
12253 | test -d "$lt_sys_path" && \ | |
12254 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
12255 | fi | |
12256 | done | |
43e02a8a | 12257 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
1cf3d07d SE |
12258 | BEGIN {RS=" "; FS="/|\n";} { |
12259 | lt_foo=""; | |
12260 | lt_count=0; | |
12261 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
12262 | if ($lt_i != "" && $lt_i != ".") { | |
12263 | if ($lt_i == "..") { | |
12264 | lt_count++; | |
12265 | } else { | |
12266 | if (lt_count == 0) { | |
12267 | lt_foo="/" $lt_i lt_foo; | |
12268 | } else { | |
12269 | lt_count--; | |
12270 | } | |
12271 | } | |
12272 | } | |
12273 | } | |
12274 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
12275 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
12276 | }'` | |
43e02a8a RW |
12277 | # AWK program above erroneously prepends '/' to C:/dos/paths |
12278 | # for these hosts. | |
12279 | case $host_os in | |
12280 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
12281 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
12282 | esac | |
12283 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
ed698112 | 12284 | else |
1cf3d07d SE |
12285 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12286 | fi | |
12287 | library_names_spec= | |
12288 | libname_spec='lib$name' | |
12289 | soname_spec= | |
12290 | shrext_cmds=".so" | |
12291 | postinstall_cmds= | |
12292 | postuninstall_cmds= | |
12293 | finish_cmds= | |
12294 | finish_eval= | |
12295 | shlibpath_var= | |
12296 | shlibpath_overrides_runpath=unknown | |
12297 | version_type=none | |
12298 | dynamic_linker="$host_os ld.so" | |
12299 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12300 | need_lib_prefix=unknown | |
12301 | hardcode_into_libs=no | |
ed698112 | 12302 | |
1cf3d07d SE |
12303 | # when you set need_version to no, make sure it does not cause -set_version |
12304 | # flags to be left without arguments | |
12305 | need_version=unknown | |
ed698112 | 12306 | |
1cf3d07d SE |
12307 | case $host_os in |
12308 | aix3*) | |
12309 | version_type=linux | |
12310 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12311 | shlibpath_var=LIBPATH | |
ed698112 | 12312 | |
1cf3d07d SE |
12313 | # AIX 3 has no versioning support, so we append a major version to the name. |
12314 | soname_spec='${libname}${release}${shared_ext}$major' | |
12315 | ;; | |
ed698112 | 12316 | |
ed44a2c7 | 12317 | aix[4-9]*) |
1cf3d07d SE |
12318 | version_type=linux |
12319 | need_lib_prefix=no | |
12320 | need_version=no | |
12321 | hardcode_into_libs=yes | |
12322 | if test "$host_cpu" = ia64; then | |
12323 | # AIX 5 supports IA64 | |
12324 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12325 | shlibpath_var=LD_LIBRARY_PATH | |
12326 | else | |
12327 | # With GCC up to 2.95.x, collect2 would create an import file | |
12328 | # for dependence libraries. The import file would start with | |
12329 | # the line `#! .'. This would cause the generated library to | |
12330 | # depend on `.', always an invalid library. This was fixed in | |
12331 | # development snapshots of GCC prior to 3.0. | |
12332 | case $host_os in | |
12333 | aix4 | aix4.[01] | aix4.[01].*) | |
12334 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12335 | echo ' yes ' | |
12336 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
12337 | : | |
12338 | else | |
12339 | can_build_shared=no | |
12340 | fi | |
12341 | ;; | |
12342 | esac | |
12343 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12344 | # soname into executable. Probably we can add versioning support to | |
12345 | # collect2, so additional links can be useful in future. | |
12346 | if test "$aix_use_runtimelinking" = yes; then | |
12347 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12348 | # instead of lib<name>.a to let people know that these are not | |
12349 | # typical AIX shared libraries. | |
12350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12351 | else | |
12352 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12353 | # and later when we are not doing run time linking. | |
12354 | library_names_spec='${libname}${release}.a $libname.a' | |
12355 | soname_spec='${libname}${release}${shared_ext}$major' | |
12356 | fi | |
12357 | shlibpath_var=LIBPATH | |
12358 | fi | |
12359 | ;; | |
ed698112 | 12360 | |
1cf3d07d | 12361 | amigaos*) |
0da7a284 PG |
12362 | case $host_cpu in |
12363 | powerpc) | |
12364 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
12365 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
12366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12367 | ;; | |
12368 | m68k) | |
1cf3d07d SE |
12369 | library_names_spec='$libname.ixlibrary $libname.a' |
12370 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 12371 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
0da7a284 PG |
12372 | ;; |
12373 | esac | |
1cf3d07d | 12374 | ;; |
ed698112 | 12375 | |
1cf3d07d SE |
12376 | beos*) |
12377 | library_names_spec='${libname}${shared_ext}' | |
12378 | dynamic_linker="$host_os ld.so" | |
12379 | shlibpath_var=LIBRARY_PATH | |
12380 | ;; | |
ed698112 | 12381 | |
1cf3d07d SE |
12382 | bsdi[45]*) |
12383 | version_type=linux | |
12384 | need_version=no | |
12385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12386 | soname_spec='${libname}${release}${shared_ext}$major' | |
12387 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12388 | shlibpath_var=LD_LIBRARY_PATH | |
12389 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12390 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12391 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12392 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12393 | # libtool to hard-code these into programs | |
12394 | ;; | |
ed698112 | 12395 | |
0da7a284 | 12396 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12397 | version_type=windows |
12398 | shrext_cmds=".dll" | |
12399 | need_version=no | |
12400 | need_lib_prefix=no | |
ed698112 | 12401 | |
0da7a284 PG |
12402 | case $GCC,$host_os in |
12403 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
12404 | library_names_spec='$libname.dll.a' |
12405 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12406 | postinstall_cmds='base_file=`basename \${file}`~ | |
12407 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
12408 | dldir=$destdir/`dirname \$dlpath`~ | |
12409 | test -d \$dldir || mkdir -p \$dldir~ | |
12410 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
12411 | chmod a+x \$dldir/$dlname~ | |
12412 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
12413 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
12414 | fi' | |
12415 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12416 | dlpath=$dir/\$dldll~ | |
12417 | $RM \$dlpath' | |
12418 | shlibpath_overrides_runpath=yes | |
ed698112 | 12419 | |
1cf3d07d SE |
12420 | case $host_os in |
12421 | cygwin*) | |
12422 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12423 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a RW |
12424 | |
12425 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
1cf3d07d | 12426 | ;; |
0da7a284 | 12427 | mingw* | cegcc*) |
1cf3d07d SE |
12428 | # MinGW DLLs use traditional 'lib' prefix |
12429 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
12430 | ;; |
12431 | pw32*) | |
12432 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
12433 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12434 | ;; | |
12435 | esac | |
12436 | ;; | |
ed698112 | 12437 | |
1cf3d07d SE |
12438 | *) |
12439 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12440 | ;; | |
12441 | esac | |
12442 | dynamic_linker='Win32 ld.exe' | |
12443 | # FIXME: first we should search . and the directory the executable is in | |
12444 | shlibpath_var=PATH | |
12445 | ;; | |
ed698112 | 12446 | |
1cf3d07d SE |
12447 | darwin* | rhapsody*) |
12448 | dynamic_linker="$host_os dyld" | |
12449 | version_type=darwin | |
12450 | need_lib_prefix=no | |
12451 | need_version=no | |
12452 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12453 | soname_spec='${libname}${release}${major}$shared_ext' | |
12454 | shlibpath_overrides_runpath=yes | |
12455 | shlibpath_var=DYLD_LIBRARY_PATH | |
12456 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ed698112 | 12457 | |
1cf3d07d SE |
12458 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
12459 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12460 | ;; | |
ed698112 | 12461 | |
1cf3d07d SE |
12462 | dgux*) |
12463 | version_type=linux | |
12464 | need_lib_prefix=no | |
12465 | need_version=no | |
12466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12467 | soname_spec='${libname}${release}${shared_ext}$major' | |
12468 | shlibpath_var=LD_LIBRARY_PATH | |
12469 | ;; | |
ed698112 | 12470 | |
1cf3d07d SE |
12471 | freebsd1*) |
12472 | dynamic_linker=no | |
12473 | ;; | |
ed698112 | 12474 | |
1cf3d07d SE |
12475 | freebsd* | dragonfly*) |
12476 | # DragonFly does not have aout. When/if they implement a new | |
12477 | # versioning mechanism, adjust this. | |
12478 | if test -x /usr/bin/objformat; then | |
12479 | objformat=`/usr/bin/objformat` | |
12480 | else | |
12481 | case $host_os in | |
12482 | freebsd[123]*) objformat=aout ;; | |
12483 | *) objformat=elf ;; | |
12484 | esac | |
12485 | fi | |
12486 | version_type=freebsd-$objformat | |
12487 | case $version_type in | |
12488 | freebsd-elf*) | |
12489 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12490 | need_version=no | |
12491 | need_lib_prefix=no | |
12492 | ;; | |
12493 | freebsd-*) | |
12494 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12495 | need_version=yes | |
12496 | ;; | |
12497 | esac | |
12498 | shlibpath_var=LD_LIBRARY_PATH | |
12499 | case $host_os in | |
12500 | freebsd2*) | |
12501 | shlibpath_overrides_runpath=yes | |
12502 | ;; | |
12503 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12504 | shlibpath_overrides_runpath=yes | |
12505 | hardcode_into_libs=yes | |
12506 | ;; | |
12507 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12508 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12509 | shlibpath_overrides_runpath=no | |
12510 | hardcode_into_libs=yes | |
12511 | ;; | |
12512 | *) # from 4.6 on, and DragonFly | |
12513 | shlibpath_overrides_runpath=yes | |
12514 | hardcode_into_libs=yes | |
12515 | ;; | |
12516 | esac | |
12517 | ;; | |
ed698112 | 12518 | |
1cf3d07d SE |
12519 | gnu*) |
12520 | version_type=linux | |
12521 | need_lib_prefix=no | |
12522 | need_version=no | |
12523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12524 | soname_spec='${libname}${release}${shared_ext}$major' | |
12525 | shlibpath_var=LD_LIBRARY_PATH | |
12526 | hardcode_into_libs=yes | |
12527 | ;; | |
34c5c0e1 | 12528 | |
43e02a8a RW |
12529 | haiku*) |
12530 | version_type=linux | |
12531 | need_lib_prefix=no | |
12532 | need_version=no | |
12533 | dynamic_linker="$host_os runtime_loader" | |
12534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12535 | soname_spec='${libname}${release}${shared_ext}$major' | |
12536 | shlibpath_var=LIBRARY_PATH | |
12537 | shlibpath_overrides_runpath=yes | |
12538 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
12539 | hardcode_into_libs=yes | |
12540 | ;; | |
12541 | ||
1cf3d07d SE |
12542 | hpux9* | hpux10* | hpux11*) |
12543 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12544 | # link against other versions. | |
12545 | version_type=sunos | |
12546 | need_lib_prefix=no | |
12547 | need_version=no | |
12548 | case $host_cpu in | |
12549 | ia64*) | |
12550 | shrext_cmds='.so' | |
12551 | hardcode_into_libs=yes | |
12552 | dynamic_linker="$host_os dld.so" | |
12553 | shlibpath_var=LD_LIBRARY_PATH | |
12554 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12556 | soname_spec='${libname}${release}${shared_ext}$major' | |
12557 | if test "X$HPUX_IA64_MODE" = X32; then | |
12558 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12559 | else | |
12560 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12561 | fi | |
12562 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12563 | ;; | |
12564 | hppa*64*) | |
12565 | shrext_cmds='.sl' | |
12566 | hardcode_into_libs=yes | |
12567 | dynamic_linker="$host_os dld.sl" | |
12568 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12569 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12571 | soname_spec='${libname}${release}${shared_ext}$major' | |
12572 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12573 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12574 | ;; | |
12575 | *) | |
12576 | shrext_cmds='.sl' | |
12577 | dynamic_linker="$host_os dld.sl" | |
12578 | shlibpath_var=SHLIB_PATH | |
12579 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12581 | soname_spec='${libname}${release}${shared_ext}$major' | |
12582 | ;; | |
12583 | esac | |
43e02a8a | 12584 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 12585 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
12586 | # or fails outright, so override atomically: |
12587 | install_override_mode=555 | |
1cf3d07d | 12588 | ;; |
ed698112 | 12589 | |
1cf3d07d SE |
12590 | interix[3-9]*) |
12591 | version_type=linux | |
12592 | need_lib_prefix=no | |
12593 | need_version=no | |
12594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12595 | soname_spec='${libname}${release}${shared_ext}$major' | |
12596 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12597 | shlibpath_var=LD_LIBRARY_PATH | |
12598 | shlibpath_overrides_runpath=no | |
12599 | hardcode_into_libs=yes | |
12600 | ;; | |
ed698112 | 12601 | |
1cf3d07d SE |
12602 | irix5* | irix6* | nonstopux*) |
12603 | case $host_os in | |
12604 | nonstopux*) version_type=nonstopux ;; | |
12605 | *) | |
12606 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12607 | version_type=linux | |
12608 | else | |
12609 | version_type=irix | |
12610 | fi ;; | |
12611 | esac | |
12612 | need_lib_prefix=no | |
12613 | need_version=no | |
12614 | soname_spec='${libname}${release}${shared_ext}$major' | |
12615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12616 | case $host_os in | |
12617 | irix5* | nonstopux*) | |
12618 | libsuff= shlibsuff= | |
12619 | ;; | |
12620 | *) | |
12621 | case $LD in # libtool.m4 will add one of these switches to LD | |
12622 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12623 | libsuff= shlibsuff= libmagic=32-bit;; | |
12624 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12625 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12626 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12627 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12628 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12629 | esac | |
12630 | ;; | |
12631 | esac | |
12632 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12633 | shlibpath_overrides_runpath=no | |
12634 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12635 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12636 | hardcode_into_libs=yes | |
12637 | ;; | |
ed698112 | 12638 | |
1cf3d07d SE |
12639 | # No shared lib support for Linux oldld, aout, or coff. |
12640 | linux*oldld* | linux*aout* | linux*coff*) | |
12641 | dynamic_linker=no | |
12642 | ;; | |
ed698112 | 12643 | |
1cf3d07d | 12644 | # This must be Linux ELF. |
7a9d3fe8 | 12645 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
12646 | version_type=linux |
12647 | need_lib_prefix=no | |
12648 | need_version=no | |
12649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12650 | soname_spec='${libname}${release}${shared_ext}$major' | |
12651 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12652 | shlibpath_var=LD_LIBRARY_PATH | |
12653 | shlibpath_overrides_runpath=no | |
baafc534 | 12654 | |
1cf3d07d | 12655 | # Some binutils ld are patched to set DT_RUNPATH |
5213506e RW |
12656 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
12657 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
12658 | else |
12659 | lt_cv_shlibpath_overrides_runpath=no | |
12660 | save_LDFLAGS=$LDFLAGS | |
12661 | save_libdir=$libdir | |
12662 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12663 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12664 | if test x$gcc_no_link = xyes; then | |
5213506e | 12665 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ed698112 | 12666 | fi |
5213506e | 12667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 | 12668 | /* end confdefs.h. */ |
1cf3d07d SE |
12669 | |
12670 | int | |
12671 | main () | |
12672 | { | |
12673 | ||
12674 | ; | |
12675 | return 0; | |
12676 | } | |
ed698112 | 12677 | _ACEOF |
5213506e RW |
12678 | if ac_fn_c_try_link "$LINENO"; then : |
12679 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 12680 | lt_cv_shlibpath_overrides_runpath=yes |
ed698112 | 12681 | fi |
34c5c0e1 | 12682 | fi |
5213506e RW |
12683 | rm -f core conftest.err conftest.$ac_objext \ |
12684 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
12685 | LDFLAGS=$save_LDFLAGS |
12686 | libdir=$save_libdir | |
12687 | ||
12688 | fi | |
12689 | ||
12690 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
ed698112 | 12691 | |
1cf3d07d SE |
12692 | # This implies no fast_install, which is unacceptable. |
12693 | # Some rework will be needed to allow for fast_install | |
12694 | # before this can be enabled. | |
12695 | hardcode_into_libs=yes | |
ed698112 | 12696 | |
1cf3d07d SE |
12697 | # Append ld.so.conf contents to the search path |
12698 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 12699 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
12700 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12701 | fi | |
ed698112 | 12702 | |
1cf3d07d SE |
12703 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12704 | # powerpc, because MkLinux only supported shared libraries with the | |
12705 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12706 | # most powerpc-linux boxes support dynamic linking these days and | |
12707 | # people can always --disable-shared, the test was removed, and we | |
12708 | # assume the GNU/Linux dynamic linker is in use. | |
12709 | dynamic_linker='GNU/Linux ld.so' | |
12710 | ;; | |
ed698112 | 12711 | |
1cf3d07d SE |
12712 | netbsd*) |
12713 | version_type=sunos | |
12714 | need_lib_prefix=no | |
12715 | need_version=no | |
12716 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12718 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12719 | dynamic_linker='NetBSD (a.out) ld.so' | |
12720 | else | |
12721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12722 | soname_spec='${libname}${release}${shared_ext}$major' | |
12723 | dynamic_linker='NetBSD ld.elf_so' | |
12724 | fi | |
12725 | shlibpath_var=LD_LIBRARY_PATH | |
12726 | shlibpath_overrides_runpath=yes | |
12727 | hardcode_into_libs=yes | |
12728 | ;; | |
ed698112 | 12729 | |
1cf3d07d SE |
12730 | newsos6) |
12731 | version_type=linux | |
12732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12733 | shlibpath_var=LD_LIBRARY_PATH | |
12734 | shlibpath_overrides_runpath=yes | |
12735 | ;; | |
ed698112 | 12736 | |
1cf3d07d SE |
12737 | *nto* | *qnx*) |
12738 | version_type=qnx | |
12739 | need_lib_prefix=no | |
12740 | need_version=no | |
12741 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12742 | soname_spec='${libname}${release}${shared_ext}$major' | |
12743 | shlibpath_var=LD_LIBRARY_PATH | |
12744 | shlibpath_overrides_runpath=no | |
12745 | hardcode_into_libs=yes | |
12746 | dynamic_linker='ldqnx.so' | |
12747 | ;; | |
ed698112 | 12748 | |
1cf3d07d SE |
12749 | openbsd*) |
12750 | version_type=sunos | |
12751 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12752 | need_lib_prefix=no | |
12753 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12754 | case $host_os in | |
12755 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12756 | *) need_version=no ;; | |
12757 | esac | |
12758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12759 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12760 | shlibpath_var=LD_LIBRARY_PATH | |
12761 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12762 | case $host_os in | |
12763 | openbsd2.[89] | openbsd2.[89].*) | |
12764 | shlibpath_overrides_runpath=no | |
12765 | ;; | |
12766 | *) | |
12767 | shlibpath_overrides_runpath=yes | |
12768 | ;; | |
12769 | esac | |
12770 | else | |
12771 | shlibpath_overrides_runpath=yes | |
12772 | fi | |
12773 | ;; | |
ee9dd372 | 12774 | |
1cf3d07d SE |
12775 | os2*) |
12776 | libname_spec='$name' | |
12777 | shrext_cmds=".dll" | |
12778 | need_lib_prefix=no | |
12779 | library_names_spec='$libname${shared_ext} $libname.a' | |
12780 | dynamic_linker='OS/2 ld.exe' | |
12781 | shlibpath_var=LIBPATH | |
12782 | ;; | |
ed698112 | 12783 | |
1cf3d07d SE |
12784 | osf3* | osf4* | osf5*) |
12785 | version_type=osf | |
12786 | need_lib_prefix=no | |
12787 | need_version=no | |
12788 | soname_spec='${libname}${release}${shared_ext}$major' | |
12789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12790 | shlibpath_var=LD_LIBRARY_PATH | |
12791 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12792 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12793 | ;; | |
ee9dd372 | 12794 | |
1cf3d07d SE |
12795 | rdos*) |
12796 | dynamic_linker=no | |
12797 | ;; | |
2a67186a | 12798 | |
1cf3d07d SE |
12799 | solaris*) |
12800 | version_type=linux | |
12801 | need_lib_prefix=no | |
12802 | need_version=no | |
12803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12804 | soname_spec='${libname}${release}${shared_ext}$major' | |
12805 | shlibpath_var=LD_LIBRARY_PATH | |
12806 | shlibpath_overrides_runpath=yes | |
12807 | hardcode_into_libs=yes | |
12808 | # ldd complains unless libraries are executable | |
12809 | postinstall_cmds='chmod +x $lib' | |
12810 | ;; | |
2a67186a | 12811 | |
1cf3d07d SE |
12812 | sunos4*) |
12813 | version_type=sunos | |
12814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12815 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12816 | shlibpath_var=LD_LIBRARY_PATH | |
12817 | shlibpath_overrides_runpath=yes | |
12818 | if test "$with_gnu_ld" = yes; then | |
12819 | need_lib_prefix=no | |
12820 | fi | |
12821 | need_version=yes | |
12822 | ;; | |
2a67186a | 12823 | |
1cf3d07d SE |
12824 | sysv4 | sysv4.3*) |
12825 | version_type=linux | |
12826 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12827 | soname_spec='${libname}${release}${shared_ext}$major' | |
12828 | shlibpath_var=LD_LIBRARY_PATH | |
12829 | case $host_vendor in | |
12830 | sni) | |
12831 | shlibpath_overrides_runpath=no | |
12832 | need_lib_prefix=no | |
12833 | runpath_var=LD_RUN_PATH | |
12834 | ;; | |
12835 | siemens) | |
12836 | need_lib_prefix=no | |
12837 | ;; | |
12838 | motorola) | |
12839 | need_lib_prefix=no | |
12840 | need_version=no | |
12841 | shlibpath_overrides_runpath=no | |
12842 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12843 | ;; | |
12844 | esac | |
12845 | ;; | |
2a67186a | 12846 | |
1cf3d07d SE |
12847 | sysv4*MP*) |
12848 | if test -d /usr/nec ;then | |
12849 | version_type=linux | |
12850 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12851 | soname_spec='$libname${shared_ext}.$major' | |
12852 | shlibpath_var=LD_LIBRARY_PATH | |
12853 | fi | |
12854 | ;; | |
2a67186a | 12855 | |
1cf3d07d SE |
12856 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12857 | version_type=freebsd-elf | |
12858 | need_lib_prefix=no | |
12859 | need_version=no | |
12860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12861 | soname_spec='${libname}${release}${shared_ext}$major' | |
12862 | shlibpath_var=LD_LIBRARY_PATH | |
12863 | shlibpath_overrides_runpath=yes | |
12864 | hardcode_into_libs=yes | |
12865 | if test "$with_gnu_ld" = yes; then | |
12866 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12867 | else | |
12868 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12869 | case $host_os in | |
12870 | sco3.2v5*) | |
12871 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12872 | ;; | |
12873 | esac | |
12874 | fi | |
12875 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12876 | ;; | |
2a67186a | 12877 | |
1cf3d07d SE |
12878 | tpf*) |
12879 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12880 | version_type=linux | |
12881 | need_lib_prefix=no | |
12882 | need_version=no | |
0da7a284 | 12883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
12884 | shlibpath_var=LD_LIBRARY_PATH |
12885 | shlibpath_overrides_runpath=no | |
12886 | hardcode_into_libs=yes | |
12887 | ;; | |
2a67186a | 12888 | |
1cf3d07d SE |
12889 | uts4*) |
12890 | version_type=linux | |
12891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12892 | soname_spec='${libname}${release}${shared_ext}$major' | |
12893 | shlibpath_var=LD_LIBRARY_PATH | |
12894 | ;; | |
5aac1dac | 12895 | |
1cf3d07d SE |
12896 | *) |
12897 | dynamic_linker=no | |
12898 | ;; | |
12899 | esac | |
5213506e RW |
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12901 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d | 12902 | test "$dynamic_linker" = no && can_build_shared=no |
6d1e9d18 | 12903 | |
1cf3d07d SE |
12904 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12905 | if test "$GCC" = yes; then | |
12906 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
5aac1dac | 12907 | fi |
ed698112 | 12908 | |
0da7a284 PG |
12909 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12910 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12911 | fi | |
12912 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12913 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12914 | fi | |
12915 | ||
ed698112 | 12916 | |
ee9dd372 | 12917 | |
ed698112 | 12918 | |
5aac1dac | 12919 | |
7f40378f | 12920 | |
7f40378f | 12921 | |
7f40378f DD |
12922 | |
12923 | ||
12924 | ||
7f40378f | 12925 | |
ee9dd372 | 12926 | |
ed698112 | 12927 | |
5aac1dac | 12928 | |
7f40378f | 12929 | |
7f40378f | 12930 | |
ee9dd372 | 12931 | |
ed698112 | 12932 | |
1cf3d07d SE |
12933 | |
12934 | ||
12935 | ||
12936 | ||
12937 | ||
12938 | ||
12939 | ||
12940 | ||
12941 | ||
12942 | ||
12943 | ||
12944 | ||
12945 | ||
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | ||
12955 | ||
12956 | ||
12957 | ||
12958 | ||
12959 | ||
12960 | ||
12961 | ||
12962 | ||
12963 | ||
12964 | ||
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | ||
12971 | ||
12972 | ||
12973 | ||
12974 | ||
12975 | ||
12976 | ||
12977 | ||
12978 | ||
12979 | ||
12980 | ||
12981 | ||
12982 | ||
12983 | ||
12984 | ||
12985 | ||
12986 | ||
12987 | ||
12988 | ||
12989 | ||
12990 | ||
12991 | ||
12992 | ||
12993 | ||
12994 | ||
12995 | ||
43e02a8a RW |
12996 | |
12997 | ||
12998 | ||
12999 | ||
13000 | ||
1cf3d07d SE |
13001 | |
13002 | ||
13003 | ||
13004 | ||
13005 | ||
13006 | ||
5213506e RW |
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
13008 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
13009 | hardcode_action= |
13010 | if test -n "$hardcode_libdir_flag_spec" || | |
13011 | test -n "$runpath_var" || | |
13012 | test "X$hardcode_automatic" = "Xyes" ; then | |
13013 | ||
13014 | # We can hardcode non-existent directories. | |
13015 | if test "$hardcode_direct" != no && | |
13016 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13017 | # have to relink, otherwise we might link with an installed library | |
13018 | # when we should be linking with a yet-to-be-installed one | |
13019 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
13020 | test "$hardcode_minus_L" != no; then | |
13021 | # Linking always hardcodes the temporary library directory. | |
13022 | hardcode_action=relink | |
5b7a26f6 | 13023 | else |
1cf3d07d SE |
13024 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13025 | hardcode_action=immediate | |
5b7a26f6 | 13026 | fi |
1cf3d07d SE |
13027 | else |
13028 | # We cannot hardcode anything, or else we can only hardcode existing | |
13029 | # directories. | |
13030 | hardcode_action=unsupported | |
13031 | fi | |
5213506e RW |
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
13033 | $as_echo "$hardcode_action" >&6; } | |
5b7a26f6 | 13034 | |
1cf3d07d SE |
13035 | if test "$hardcode_action" = relink || |
13036 | test "$inherit_rpath" = yes; then | |
13037 | # Fast installation is not supported | |
13038 | enable_fast_install=no | |
13039 | elif test "$shlibpath_overrides_runpath" = yes || | |
13040 | test "$enable_shared" = no; then | |
13041 | # Fast installation is not necessary | |
13042 | enable_fast_install=needless | |
13043 | fi | |
5b7a26f6 | 13044 | |
1cf3d07d SE |
13045 | |
13046 | ||
13047 | ||
13048 | ||
13049 | ||
13050 | if test "x$enable_dlopen" != xyes; then | |
13051 | enable_dlopen=unknown | |
13052 | enable_dlopen_self=unknown | |
13053 | enable_dlopen_self_static=unknown | |
5b7a26f6 | 13054 | else |
1cf3d07d SE |
13055 | lt_cv_dlopen=no |
13056 | lt_cv_dlopen_libs= | |
13057 | ||
13058 | case $host_os in | |
13059 | beos*) | |
13060 | lt_cv_dlopen="load_add_on" | |
13061 | lt_cv_dlopen_libs= | |
13062 | lt_cv_dlopen_self=yes | |
5b7a26f6 | 13063 | ;; |
1cf3d07d | 13064 | |
0da7a284 | 13065 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
13066 | lt_cv_dlopen="LoadLibrary" |
13067 | lt_cv_dlopen_libs= | |
5b7a26f6 | 13068 | ;; |
5b7a26f6 | 13069 | |
5213506e RW |
13070 | cygwin*) |
13071 | lt_cv_dlopen="dlopen" | |
13072 | lt_cv_dlopen_libs= | |
13073 | ;; | |
5b7a26f6 | 13074 | |
5213506e RW |
13075 | darwin*) |
13076 | # if libdl is installed we need to link against it | |
13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
13078 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
13079 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
13080 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
13081 | else |
13082 | ac_check_lib_save_LIBS=$LIBS | |
5213506e | 13083 | LIBS="-ldl $LIBS" |
1cf3d07d | 13084 | if test x$gcc_no_link = xyes; then |
5213506e | 13085 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 13086 | fi |
5213506e | 13087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 13088 | /* end confdefs.h. */ |
5b7a26f6 | 13089 | |
5213506e RW |
13090 | /* Override any GCC internal prototype to avoid an error. |
13091 | Use char because int might match the return type of a GCC | |
13092 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
13093 | #ifdef __cplusplus |
13094 | extern "C" | |
13095 | #endif | |
5213506e | 13096 | char dlopen (); |
1cf3d07d SE |
13097 | int |
13098 | main () | |
13099 | { | |
5213506e | 13100 | return dlopen (); |
1cf3d07d SE |
13101 | ; |
13102 | return 0; | |
13103 | } | |
13104 | _ACEOF | |
5213506e RW |
13105 | if ac_fn_c_try_link "$LINENO"; then : |
13106 | ac_cv_lib_dl_dlopen=yes | |
1cf3d07d | 13107 | else |
5213506e | 13108 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 13109 | fi |
5213506e RW |
13110 | rm -f core conftest.err conftest.$ac_objext \ |
13111 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13112 | LIBS=$ac_check_lib_save_LIBS |
13113 | fi | |
5213506e RW |
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
13115 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
13116 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
13117 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
1cf3d07d | 13118 | else |
5b7a26f6 | 13119 | |
5213506e RW |
13120 | lt_cv_dlopen="dyld" |
13121 | lt_cv_dlopen_libs= | |
13122 | lt_cv_dlopen_self=yes | |
5aac1dac | 13123 | |
5213506e | 13124 | fi |
5b7a26f6 | 13125 | |
5213506e | 13126 | ;; |
5b7a26f6 | 13127 | |
5213506e RW |
13128 | *) |
13129 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
13130 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
13131 | lt_cv_dlopen="shl_load" | |
13132 | else | |
13133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
13134 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
13135 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
13136 | $as_echo_n "(cached) " >&6 | |
13137 | else | |
13138 | ac_check_lib_save_LIBS=$LIBS | |
13139 | LIBS="-ldld $LIBS" | |
13140 | if test x$gcc_no_link = xyes; then | |
13141 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
13142 | fi | |
13143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13144 | /* end confdefs.h. */ | |
13145 | ||
13146 | /* Override any GCC internal prototype to avoid an error. | |
13147 | Use char because int might match the return type of a GCC | |
1cf3d07d | 13148 | builtin and then its argument prototype would still apply. */ |
1cf3d07d | 13149 | #ifdef __cplusplus |
5213506e | 13150 | extern "C" |
1cf3d07d | 13151 | #endif |
5213506e | 13152 | char shl_load (); |
1cf3d07d SE |
13153 | int |
13154 | main () | |
13155 | { | |
5213506e | 13156 | return shl_load (); |
1cf3d07d SE |
13157 | ; |
13158 | return 0; | |
13159 | } | |
13160 | _ACEOF | |
5213506e RW |
13161 | if ac_fn_c_try_link "$LINENO"; then : |
13162 | ac_cv_lib_dld_shl_load=yes | |
1cf3d07d | 13163 | else |
5213506e | 13164 | ac_cv_lib_dld_shl_load=no |
1cf3d07d | 13165 | fi |
5213506e RW |
13166 | rm -f core conftest.err conftest.$ac_objext \ |
13167 | conftest$ac_exeext conftest.$ac_ext | |
13168 | LIBS=$ac_check_lib_save_LIBS | |
1cf3d07d | 13169 | fi |
5213506e RW |
13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
13171 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
13172 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
13173 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
13174 | else | |
13175 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
13176 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
1cf3d07d SE |
13177 | lt_cv_dlopen="dlopen" |
13178 | else | |
5213506e RW |
13179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
13180 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
13181 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
13182 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
13183 | else |
13184 | ac_check_lib_save_LIBS=$LIBS | |
13185 | LIBS="-ldl $LIBS" | |
13186 | if test x$gcc_no_link = xyes; then | |
5213506e | 13187 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 13188 | fi |
5213506e | 13189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 13190 | /* end confdefs.h. */ |
5b7a26f6 | 13191 | |
5213506e RW |
13192 | /* Override any GCC internal prototype to avoid an error. |
13193 | Use char because int might match the return type of a GCC | |
13194 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
13195 | #ifdef __cplusplus |
13196 | extern "C" | |
13197 | #endif | |
1cf3d07d SE |
13198 | char dlopen (); |
13199 | int | |
13200 | main () | |
13201 | { | |
5213506e | 13202 | return dlopen (); |
1cf3d07d SE |
13203 | ; |
13204 | return 0; | |
13205 | } | |
13206 | _ACEOF | |
5213506e | 13207 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
13208 | ac_cv_lib_dl_dlopen=yes |
13209 | else | |
5213506e | 13210 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 13211 | fi |
5213506e RW |
13212 | rm -f core conftest.err conftest.$ac_objext \ |
13213 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13214 | LIBS=$ac_check_lib_save_LIBS |
13215 | fi | |
5213506e RW |
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
13217 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
13218 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
1cf3d07d SE |
13219 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
13220 | else | |
5213506e RW |
13221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
13222 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
13223 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
13224 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
13225 | else |
13226 | ac_check_lib_save_LIBS=$LIBS | |
13227 | LIBS="-lsvld $LIBS" | |
13228 | if test x$gcc_no_link = xyes; then | |
5213506e | 13229 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 13230 | fi |
5213506e | 13231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 13232 | /* end confdefs.h. */ |
5b7a26f6 | 13233 | |
5213506e RW |
13234 | /* Override any GCC internal prototype to avoid an error. |
13235 | Use char because int might match the return type of a GCC | |
13236 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
13237 | #ifdef __cplusplus |
13238 | extern "C" | |
13239 | #endif | |
1cf3d07d | 13240 | char dlopen (); |
ed698112 NN |
13241 | int |
13242 | main () | |
13243 | { | |
5213506e | 13244 | return dlopen (); |
ed698112 NN |
13245 | ; |
13246 | return 0; | |
13247 | } | |
13248 | _ACEOF | |
5213506e | 13249 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d | 13250 | ac_cv_lib_svld_dlopen=yes |
ee9dd372 | 13251 | else |
5213506e | 13252 | ac_cv_lib_svld_dlopen=no |
ee9dd372 | 13253 | fi |
5213506e RW |
13254 | rm -f core conftest.err conftest.$ac_objext \ |
13255 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13256 | LIBS=$ac_check_lib_save_LIBS |
13257 | fi | |
5213506e RW |
13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
13259 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
13260 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
1cf3d07d SE |
13261 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
13262 | else | |
5213506e RW |
13263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
13264 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
13265 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
13266 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
13267 | else |
13268 | ac_check_lib_save_LIBS=$LIBS | |
13269 | LIBS="-ldld $LIBS" | |
13270 | if test x$gcc_no_link = xyes; then | |
5213506e | 13271 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ed698112 | 13272 | fi |
5213506e | 13273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 | 13274 | /* end confdefs.h. */ |
1cf3d07d | 13275 | |
5213506e RW |
13276 | /* Override any GCC internal prototype to avoid an error. |
13277 | Use char because int might match the return type of a GCC | |
13278 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
13279 | #ifdef __cplusplus |
13280 | extern "C" | |
13281 | #endif | |
1cf3d07d | 13282 | char dld_link (); |
ed698112 NN |
13283 | int |
13284 | main () | |
13285 | { | |
5213506e | 13286 | return dld_link (); |
ed698112 NN |
13287 | ; |
13288 | return 0; | |
13289 | } | |
13290 | _ACEOF | |
5213506e | 13291 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d | 13292 | ac_cv_lib_dld_dld_link=yes |
ee9dd372 | 13293 | else |
5213506e | 13294 | ac_cv_lib_dld_dld_link=no |
5aac1dac | 13295 | fi |
5213506e RW |
13296 | rm -f core conftest.err conftest.$ac_objext \ |
13297 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
13298 | LIBS=$ac_check_lib_save_LIBS |
13299 | fi | |
5213506e RW |
13300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
13301 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
13302 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
0da7a284 | 13303 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
13304 | fi |
13305 | ||
4b7f154f | 13306 | |
ed698112 | 13307 | fi |
ed698112 | 13308 | |
7339705d | 13309 | |
1cf3d07d SE |
13310 | fi |
13311 | ||
13312 | ||
13313 | fi | |
13314 | ||
13315 | ||
13316 | fi | |
13317 | ||
13318 | ||
13319 | fi | |
13320 | ||
13321 | ;; | |
13322 | esac | |
13323 | ||
13324 | if test "x$lt_cv_dlopen" != xno; then | |
13325 | enable_dlopen=yes | |
5b7a26f6 | 13326 | else |
1cf3d07d | 13327 | enable_dlopen=no |
5b7a26f6 KC |
13328 | fi |
13329 | ||
1cf3d07d SE |
13330 | case $lt_cv_dlopen in |
13331 | dlopen) | |
13332 | save_CPPFLAGS="$CPPFLAGS" | |
13333 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
5b7a26f6 | 13334 | |
1cf3d07d SE |
13335 | save_LDFLAGS="$LDFLAGS" |
13336 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
5b7a26f6 | 13337 | |
1cf3d07d SE |
13338 | save_LIBS="$LIBS" |
13339 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
13340 | ||
5213506e RW |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
13342 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
13343 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
13344 | $as_echo_n "(cached) " >&6 | |
4b7f154f | 13345 | else |
1cf3d07d SE |
13346 | if test "$cross_compiling" = yes; then : |
13347 | lt_cv_dlopen_self=cross | |
13348 | else | |
13349 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13350 | lt_status=$lt_dlunknown | |
13351 | cat > conftest.$ac_ext <<_LT_EOF | |
22a4778a | 13352 | #line 13352 "configure" |
1cf3d07d | 13353 | #include "confdefs.h" |
ed698112 | 13354 | |
1cf3d07d SE |
13355 | #if HAVE_DLFCN_H |
13356 | #include <dlfcn.h> | |
5aac1dac | 13357 | #endif |
1cf3d07d SE |
13358 | |
13359 | #include <stdio.h> | |
13360 | ||
13361 | #ifdef RTLD_GLOBAL | |
13362 | # define LT_DLGLOBAL RTLD_GLOBAL | |
4b7f154f | 13363 | #else |
1cf3d07d SE |
13364 | # ifdef DL_GLOBAL |
13365 | # define LT_DLGLOBAL DL_GLOBAL | |
13366 | # else | |
13367 | # define LT_DLGLOBAL 0 | |
13368 | # endif | |
4b7f154f TT |
13369 | #endif |
13370 | ||
1cf3d07d SE |
13371 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13372 | find out it does not work in some platform. */ | |
13373 | #ifndef LT_DLLAZY_OR_NOW | |
13374 | # ifdef RTLD_LAZY | |
13375 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13376 | # else | |
13377 | # ifdef DL_LAZY | |
13378 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13379 | # else | |
13380 | # ifdef RTLD_NOW | |
13381 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13382 | # else | |
13383 | # ifdef DL_NOW | |
13384 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13385 | # else | |
13386 | # define LT_DLLAZY_OR_NOW 0 | |
13387 | # endif | |
13388 | # endif | |
13389 | # endif | |
13390 | # endif | |
13391 | #endif | |
13392 | ||
43e02a8a RW |
13393 | /* When -fvisbility=hidden is used, assume the code has been annotated |
13394 | correspondingly for the symbols needed. */ | |
13395 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
13396 | void fnord () __attribute__((visibility("default"))); | |
13397 | #endif | |
13398 | ||
13399 | void fnord () { int i=42; } | |
1cf3d07d | 13400 | int main () |
ed698112 | 13401 | { |
1cf3d07d SE |
13402 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
13403 | int status = $lt_dlunknown; | |
5aac1dac | 13404 | |
1cf3d07d SE |
13405 | if (self) |
13406 | { | |
13407 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
13408 | else |
13409 | { | |
13410 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13411 | else puts (dlerror ()); | |
13412 | } | |
1cf3d07d SE |
13413 | /* dlclose (self); */ |
13414 | } | |
13415 | else | |
13416 | puts (dlerror ()); | |
13417 | ||
0da7a284 | 13418 | return status; |
ed698112 | 13419 | } |
1cf3d07d | 13420 | _LT_EOF |
5213506e | 13421 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d | 13422 | (eval $ac_link) 2>&5 |
ed698112 | 13423 | ac_status=$? |
5213506e RW |
13424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13425 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
13426 | (./conftest; exit; ) >&5 2>/dev/null |
13427 | lt_status=$? | |
13428 | case x$lt_status in | |
13429 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
13430 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
13431 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
13432 | esac | |
13433 | else : | |
13434 | # compilation failed | |
13435 | lt_cv_dlopen_self=no | |
13436 | fi | |
4b7f154f | 13437 | fi |
1cf3d07d | 13438 | rm -fr conftest* |
4b7f154f | 13439 | |
ed698112 | 13440 | |
1cf3d07d | 13441 | fi |
5213506e RW |
13442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
13443 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
ed698112 | 13444 | |
1cf3d07d SE |
13445 | if test "x$lt_cv_dlopen_self" = xyes; then |
13446 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
5213506e RW |
13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
13448 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
13449 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
13450 | $as_echo_n "(cached) " >&6 | |
ed698112 | 13451 | else |
1cf3d07d SE |
13452 | if test "$cross_compiling" = yes; then : |
13453 | lt_cv_dlopen_self_static=cross | |
4b7f154f | 13454 | else |
1cf3d07d SE |
13455 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
13456 | lt_status=$lt_dlunknown | |
13457 | cat > conftest.$ac_ext <<_LT_EOF | |
22a4778a | 13458 | #line 13458 "configure" |
1cf3d07d | 13459 | #include "confdefs.h" |
ed698112 | 13460 | |
1cf3d07d SE |
13461 | #if HAVE_DLFCN_H |
13462 | #include <dlfcn.h> | |
13463 | #endif | |
ed698112 | 13464 | |
1cf3d07d | 13465 | #include <stdio.h> |
7339705d | 13466 | |
1cf3d07d SE |
13467 | #ifdef RTLD_GLOBAL |
13468 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13469 | #else | |
13470 | # ifdef DL_GLOBAL | |
13471 | # define LT_DLGLOBAL DL_GLOBAL | |
13472 | # else | |
13473 | # define LT_DLGLOBAL 0 | |
13474 | # endif | |
13475 | #endif | |
5b7a26f6 | 13476 | |
1cf3d07d SE |
13477 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13478 | find out it does not work in some platform. */ | |
13479 | #ifndef LT_DLLAZY_OR_NOW | |
13480 | # ifdef RTLD_LAZY | |
13481 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13482 | # else | |
13483 | # ifdef DL_LAZY | |
13484 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13485 | # else | |
13486 | # ifdef RTLD_NOW | |
13487 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13488 | # else | |
13489 | # ifdef DL_NOW | |
13490 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13491 | # else | |
13492 | # define LT_DLLAZY_OR_NOW 0 | |
13493 | # endif | |
13494 | # endif | |
13495 | # endif | |
13496 | # endif | |
13497 | #endif | |
ed698112 | 13498 | |
43e02a8a RW |
13499 | /* When -fvisbility=hidden is used, assume the code has been annotated |
13500 | correspondingly for the symbols needed. */ | |
13501 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
13502 | void fnord () __attribute__((visibility("default"))); | |
13503 | #endif | |
13504 | ||
13505 | void fnord () { int i=42; } | |
1cf3d07d | 13506 | int main () |
ed698112 | 13507 | { |
1cf3d07d SE |
13508 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
13509 | int status = $lt_dlunknown; | |
13510 | ||
13511 | if (self) | |
13512 | { | |
13513 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
43e02a8a RW |
13514 | else |
13515 | { | |
13516 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13517 | else puts (dlerror ()); | |
13518 | } | |
1cf3d07d SE |
13519 | /* dlclose (self); */ |
13520 | } | |
13521 | else | |
13522 | puts (dlerror ()); | |
13523 | ||
0da7a284 | 13524 | return status; |
ed698112 | 13525 | } |
1cf3d07d | 13526 | _LT_EOF |
5213506e | 13527 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
1cf3d07d | 13528 | (eval $ac_link) 2>&5 |
ed698112 | 13529 | ac_status=$? |
5213506e RW |
13530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
13531 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
1cf3d07d SE |
13532 | (./conftest; exit; ) >&5 2>/dev/null |
13533 | lt_status=$? | |
13534 | case x$lt_status in | |
13535 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13536 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13537 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13538 | esac | |
13539 | else : | |
13540 | # compilation failed | |
13541 | lt_cv_dlopen_self_static=no | |
13542 | fi | |
7339705d | 13543 | fi |
1cf3d07d SE |
13544 | rm -fr conftest* |
13545 | ||
13546 | ||
7339705d | 13547 | fi |
5213506e RW |
13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
13549 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
1cf3d07d | 13550 | fi |
ed698112 | 13551 | |
1cf3d07d SE |
13552 | CPPFLAGS="$save_CPPFLAGS" |
13553 | LDFLAGS="$save_LDFLAGS" | |
13554 | LIBS="$save_LIBS" | |
13555 | ;; | |
13556 | esac | |
13557 | ||
13558 | case $lt_cv_dlopen_self in | |
13559 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13560 | *) enable_dlopen_self=unknown ;; | |
13561 | esac | |
4b7f154f | 13562 | |
1cf3d07d SE |
13563 | case $lt_cv_dlopen_self_static in |
13564 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13565 | *) enable_dlopen_self_static=unknown ;; | |
13566 | esac | |
ee9dd372 | 13567 | fi |
ee9dd372 | 13568 | |
ed698112 NN |
13569 | |
13570 | ||
ed698112 | 13571 | |
ed698112 NN |
13572 | |
13573 | ||
ed698112 | 13574 | |
1cf3d07d SE |
13575 | |
13576 | ||
13577 | ||
13578 | ||
13579 | ||
13580 | ||
13581 | ||
13582 | ||
13583 | ||
13584 | ||
13585 | striplib= | |
13586 | old_striplib= | |
5213506e RW |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
13588 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
1cf3d07d SE |
13589 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
13590 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13591 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
5213506e RW |
13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13593 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
13594 | else |
13595 | # FIXME - insert some real tests, host_os isn't really good enough | |
13596 | case $host_os in | |
13597 | darwin*) | |
13598 | if test -n "$STRIP" ; then | |
13599 | striplib="$STRIP -x" | |
13600 | old_striplib="$STRIP -S" | |
5213506e RW |
13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13602 | $as_echo "yes" >&6; } | |
1cf3d07d | 13603 | else |
5213506e RW |
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13605 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13606 | fi |
13607 | ;; | |
13608 | *) | |
5213506e RW |
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13610 | $as_echo "no" >&6; } | |
1cf3d07d SE |
13611 | ;; |
13612 | esac | |
ed698112 | 13613 | fi |
ed698112 | 13614 | |
1cf3d07d SE |
13615 | |
13616 | ||
13617 | ||
13618 | ||
13619 | ||
13620 | ||
13621 | ||
13622 | ||
13623 | ||
13624 | ||
13625 | ||
13626 | # Report which library types will actually be built | |
5213506e RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
13628 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13630 | $as_echo "$can_build_shared" >&6; } | |
1cf3d07d | 13631 | |
5213506e RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13633 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
1cf3d07d SE |
13634 | test "$can_build_shared" = "no" && enable_shared=no |
13635 | ||
13636 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13637 | # are all built from PIC. | |
13638 | case $host_os in | |
13639 | aix3*) | |
13640 | test "$enable_shared" = yes && enable_static=no | |
13641 | if test -n "$RANLIB"; then | |
13642 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13643 | postinstall_cmds='$RANLIB $lib' | |
13644 | fi | |
13645 | ;; | |
13646 | ||
ed44a2c7 | 13647 | aix[4-9]*) |
1cf3d07d SE |
13648 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13649 | test "$enable_shared" = yes && enable_static=no | |
13650 | fi | |
13651 | ;; | |
13652 | esac | |
5213506e RW |
13653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
13654 | $as_echo "$enable_shared" >&6; } | |
1cf3d07d | 13655 | |
5213506e RW |
13656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
13657 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
1cf3d07d SE |
13658 | # Make sure either enable_shared or enable_static is yes. |
13659 | test "$enable_shared" = yes || enable_static=yes | |
5213506e RW |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
13661 | $as_echo "$enable_static" >&6; } | |
1cf3d07d SE |
13662 | |
13663 | ||
ed698112 NN |
13664 | |
13665 | ||
13666 | fi | |
1cf3d07d SE |
13667 | ac_ext=c |
13668 | ac_cpp='$CPP $CPPFLAGS' | |
13669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ed698112 | 13672 | |
1cf3d07d | 13673 | CC="$lt_save_CC" |
5aac1dac | 13674 | |
43e02a8a RW |
13675 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
13676 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
13677 | (test "X$CXX" != "Xg++"))) ; then | |
13678 | ac_ext=cpp | |
13679 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13680 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13681 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13682 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
13684 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
13685 | if test -z "$CXXCPP"; then | |
13686 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
13687 | $as_echo_n "(cached) " >&6 | |
13688 | else | |
13689 | # Double quotes because CXXCPP needs to be expanded | |
13690 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
13691 | do | |
13692 | ac_preproc_ok=false | |
13693 | for ac_cxx_preproc_warn_flag in '' yes | |
13694 | do | |
13695 | # Use a header file that comes with gcc, so configuring glibc | |
13696 | # with a fresh cross-compiler works. | |
13697 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13698 | # <limits.h> exists even on freestanding compilers. | |
13699 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13700 | # not just through cpp. "Syntax error" is here to catch this case. | |
13701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13702 | /* end confdefs.h. */ | |
13703 | #ifdef __STDC__ | |
13704 | # include <limits.h> | |
13705 | #else | |
13706 | # include <assert.h> | |
13707 | #endif | |
13708 | Syntax error | |
13709 | _ACEOF | |
13710 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13711 | ||
13712 | else | |
13713 | # Broken: fails on valid input. | |
13714 | continue | |
13715 | fi | |
13716 | rm -f conftest.err conftest.$ac_ext | |
13717 | ||
13718 | # OK, works on sane cases. Now check whether nonexistent headers | |
13719 | # can be detected and how. | |
13720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13721 | /* end confdefs.h. */ | |
13722 | #include <ac_nonexistent.h> | |
13723 | _ACEOF | |
13724 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13725 | # Broken: success on invalid input. | |
13726 | continue | |
13727 | else | |
13728 | # Passes both tests. | |
13729 | ac_preproc_ok=: | |
13730 | break | |
13731 | fi | |
13732 | rm -f conftest.err conftest.$ac_ext | |
13733 | ||
13734 | done | |
13735 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13736 | rm -f conftest.err conftest.$ac_ext | |
13737 | if $ac_preproc_ok; then : | |
13738 | break | |
13739 | fi | |
13740 | ||
13741 | done | |
13742 | ac_cv_prog_CXXCPP=$CXXCPP | |
13743 | ||
13744 | fi | |
13745 | CXXCPP=$ac_cv_prog_CXXCPP | |
13746 | else | |
13747 | ac_cv_prog_CXXCPP=$CXXCPP | |
13748 | fi | |
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
13750 | $as_echo "$CXXCPP" >&6; } | |
13751 | ac_preproc_ok=false | |
13752 | for ac_cxx_preproc_warn_flag in '' yes | |
13753 | do | |
13754 | # Use a header file that comes with gcc, so configuring glibc | |
13755 | # with a fresh cross-compiler works. | |
13756 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13757 | # <limits.h> exists even on freestanding compilers. | |
13758 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13759 | # not just through cpp. "Syntax error" is here to catch this case. | |
13760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13761 | /* end confdefs.h. */ | |
13762 | #ifdef __STDC__ | |
13763 | # include <limits.h> | |
13764 | #else | |
13765 | # include <assert.h> | |
13766 | #endif | |
13767 | Syntax error | |
13768 | _ACEOF | |
13769 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13770 | ||
13771 | else | |
13772 | # Broken: fails on valid input. | |
13773 | continue | |
13774 | fi | |
13775 | rm -f conftest.err conftest.$ac_ext | |
13776 | ||
13777 | # OK, works on sane cases. Now check whether nonexistent headers | |
13778 | # can be detected and how. | |
13779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13780 | /* end confdefs.h. */ | |
13781 | #include <ac_nonexistent.h> | |
13782 | _ACEOF | |
13783 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
13784 | # Broken: success on invalid input. | |
13785 | continue | |
13786 | else | |
13787 | # Passes both tests. | |
13788 | ac_preproc_ok=: | |
13789 | break | |
13790 | fi | |
13791 | rm -f conftest.err conftest.$ac_ext | |
13792 | ||
13793 | done | |
13794 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13795 | rm -f conftest.err conftest.$ac_ext | |
13796 | if $ac_preproc_ok; then : | |
13797 | ||
13798 | else | |
13799 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13800 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13801 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
13802 | See \`config.log' for more details." "$LINENO" 5; } | |
13803 | fi | |
13804 | ||
13805 | ac_ext=c | |
13806 | ac_cpp='$CPP $CPPFLAGS' | |
13807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13810 | ||
13811 | else | |
13812 | _lt_caught_CXX_error=yes | |
13813 | fi | |
5aac1dac | 13814 | |
5213506e | 13815 | ac_ext=cpp |
1cf3d07d SE |
13816 | ac_cpp='$CXXCPP $CPPFLAGS' |
13817 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13818 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13819 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13820 | ||
13821 | archive_cmds_need_lc_CXX=no | |
13822 | allow_undefined_flag_CXX= | |
13823 | always_export_symbols_CXX=no | |
13824 | archive_expsym_cmds_CXX= | |
13825 | compiler_needs_object_CXX=no | |
13826 | export_dynamic_flag_spec_CXX= | |
13827 | hardcode_direct_CXX=no | |
13828 | hardcode_direct_absolute_CXX=no | |
13829 | hardcode_libdir_flag_spec_CXX= | |
13830 | hardcode_libdir_flag_spec_ld_CXX= | |
13831 | hardcode_libdir_separator_CXX= | |
13832 | hardcode_minus_L_CXX=no | |
13833 | hardcode_shlibpath_var_CXX=unsupported | |
13834 | hardcode_automatic_CXX=no | |
13835 | inherit_rpath_CXX=no | |
13836 | module_cmds_CXX= | |
13837 | module_expsym_cmds_CXX= | |
13838 | link_all_deplibs_CXX=unknown | |
13839 | old_archive_cmds_CXX=$old_archive_cmds | |
43e02a8a RW |
13840 | reload_flag_CXX=$reload_flag |
13841 | reload_cmds_CXX=$reload_cmds | |
1cf3d07d SE |
13842 | no_undefined_flag_CXX= |
13843 | whole_archive_flag_spec_CXX= | |
13844 | enable_shared_with_static_runtimes_CXX=no | |
13845 | ||
13846 | # Source file extension for C++ test sources. | |
13847 | ac_ext=cpp | |
13848 | ||
13849 | # Object file extension for compiled C++ test sources. | |
13850 | objext=o | |
13851 | objext_CXX=$objext | |
13852 | ||
13853 | # No sense in running all these tests if we already determined that | |
13854 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
13855 | # are currently assumed to apply to all compilers on this platform, | |
13856 | # and will be corrupted by setting them based on a non-working compiler. | |
13857 | if test "$_lt_caught_CXX_error" != yes; then | |
13858 | # Code to be used in simple compile tests | |
13859 | lt_simple_compile_test_code="int some_variable = 0;" | |
13860 | ||
13861 | # Code to be used in simple link tests | |
13862 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
13863 | ||
13864 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13865 | ||
13866 | ||
13867 | ||
13868 | ||
13869 | ||
13870 | ||
13871 | # If no C compiler was specified, use CC. | |
13872 | LTCC=${LTCC-"$CC"} | |
13873 | ||
13874 | # If no C compiler flags were specified, use CFLAGS. | |
13875 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13876 | ||
13877 | # Allow CC to be a program name with arguments. | |
13878 | compiler=$CC | |
13879 | ||
13880 | ||
13881 | # save warnings/boilerplate of simple test code | |
13882 | ac_outfile=conftest.$ac_objext | |
13883 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13884 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13885 | _lt_compiler_boilerplate=`cat conftest.err` | |
13886 | $RM conftest* | |
13887 | ||
13888 | ac_outfile=conftest.$ac_objext | |
13889 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13890 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13891 | _lt_linker_boilerplate=`cat conftest.err` | |
0da7a284 | 13892 | $RM -r conftest* |
1cf3d07d SE |
13893 | |
13894 | ||
13895 | # Allow CC to be a program name with arguments. | |
13896 | lt_save_CC=$CC | |
13897 | lt_save_LD=$LD | |
13898 | lt_save_GCC=$GCC | |
13899 | GCC=$GXX | |
13900 | lt_save_with_gnu_ld=$with_gnu_ld | |
13901 | lt_save_path_LD=$lt_cv_path_LD | |
13902 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
13903 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
13904 | else | |
13905 | $as_unset lt_cv_prog_gnu_ld | |
13906 | fi | |
13907 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
13908 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
13909 | else | |
13910 | $as_unset lt_cv_path_LD | |
13911 | fi | |
13912 | test -z "${LDCXX+set}" || LD=$LDCXX | |
13913 | CC=${CXX-"c++"} | |
13914 | compiler=$CC | |
13915 | compiler_CXX=$CC | |
13916 | for cc_temp in $compiler""; do | |
13917 | case $cc_temp in | |
13918 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13919 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13920 | \-*) ;; | |
13921 | *) break;; | |
13922 | esac | |
13923 | done | |
43e02a8a | 13924 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
13925 | |
13926 | ||
13927 | if test -n "$compiler"; then | |
13928 | # We don't want -fno-exception when compiling C++ code, so set the | |
13929 | # no_builtin_flag separately | |
13930 | if test "$GXX" = yes; then | |
13931 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
13932 | else | |
13933 | lt_prog_compiler_no_builtin_flag_CXX= | |
13934 | fi | |
13935 | ||
13936 | if test "$GXX" = yes; then | |
13937 | # Set up default GNU C++ configuration | |
13938 | ||
13939 | ||
13940 | ||
5213506e RW |
13941 | # Check whether --with-gnu-ld was given. |
13942 | if test "${with_gnu_ld+set}" = set; then : | |
13943 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5aac1dac | 13944 | else |
1cf3d07d | 13945 | with_gnu_ld=no |
5213506e RW |
13946 | fi |
13947 | ||
1cf3d07d SE |
13948 | ac_prog=ld |
13949 | if test "$GCC" = yes; then | |
13950 | # Check if gcc -print-prog-name=ld gives a path. | |
5213506e RW |
13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
13952 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
1cf3d07d SE |
13953 | case $host in |
13954 | *-*-mingw*) | |
13955 | # gcc leaves a trailing carriage return which upsets mingw | |
13956 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
13957 | *) | |
13958 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13959 | esac | |
13960 | case $ac_prog in | |
13961 | # Accept absolute paths. | |
13962 | [\\/]* | ?:[\\/]*) | |
13963 | re_direlt='/[^/][^/]*/\.\./' | |
13964 | # Canonicalize the pathname of ld | |
13965 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13966 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13967 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13968 | done | |
13969 | test -z "$LD" && LD="$ac_prog" | |
13970 | ;; | |
13971 | "") | |
13972 | # If it fails, then pretend we aren't using GCC. | |
13973 | ac_prog=ld | |
13974 | ;; | |
13975 | *) | |
13976 | # If it is relative, then search for the first ld in PATH. | |
13977 | with_gnu_ld=unknown | |
13978 | ;; | |
13979 | esac | |
13980 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
13982 | $as_echo_n "checking for GNU ld... " >&6; } | |
1cf3d07d | 13983 | else |
5213506e RW |
13984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
13985 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
1cf3d07d | 13986 | fi |
5213506e RW |
13987 | if test "${lt_cv_path_LD+set}" = set; then : |
13988 | $as_echo_n "(cached) " >&6 | |
02809848 | 13989 | else |
1cf3d07d SE |
13990 | if test -z "$LD"; then |
13991 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
13992 | for ac_dir in $PATH; do | |
13993 | IFS="$lt_save_ifs" | |
13994 | test -z "$ac_dir" && ac_dir=. | |
13995 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13996 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
13997 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13998 | # but apparently some variants of GNU ld only accept -v. | |
13999 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
14000 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
14001 | *GNU* | *'with BFD'*) | |
14002 | test "$with_gnu_ld" != no && break | |
14003 | ;; | |
14004 | *) | |
14005 | test "$with_gnu_ld" != yes && break | |
14006 | ;; | |
14007 | esac | |
14008 | fi | |
14009 | done | |
14010 | IFS="$lt_save_ifs" | |
14011 | else | |
14012 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
14013 | fi | |
14014 | fi | |
14015 | ||
14016 | LD="$lt_cv_path_LD" | |
14017 | if test -n "$LD"; then | |
5213506e RW |
14018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
14019 | $as_echo "$LD" >&6; } | |
1cf3d07d | 14020 | else |
5213506e RW |
14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14022 | $as_echo "no" >&6; } | |
1cf3d07d | 14023 | fi |
5213506e RW |
14024 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
14026 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
14027 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
14028 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
14029 | else |
14030 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
14031 | case `$LD -v 2>&1 </dev/null` in | |
14032 | *GNU* | *'with BFD'*) | |
14033 | lt_cv_prog_gnu_ld=yes | |
14034 | ;; | |
14035 | *) | |
14036 | lt_cv_prog_gnu_ld=no | |
14037 | ;; | |
14038 | esac | |
14039 | fi | |
5213506e RW |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
14041 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
1cf3d07d SE |
14042 | with_gnu_ld=$lt_cv_prog_gnu_ld |
14043 | ||
14044 | ||
14045 | ||
14046 | ||
14047 | ||
14048 | ||
14049 | ||
14050 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
14051 | # archiving commands below assume that GNU ld is being used. | |
14052 | if test "$with_gnu_ld" = yes; then | |
14053 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14054 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14055 | ||
14056 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14057 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
14058 | ||
14059 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
14060 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
14061 | # investigate it a little bit more. (MM) | |
14062 | wlarc='${wl}' | |
14063 | ||
14064 | # ancient GNU ld didn't support --whole-archive et. al. | |
14065 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
14066 | $GREP 'no-whole-archive' > /dev/null; then | |
14067 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14068 | else | |
14069 | whole_archive_flag_spec_CXX= | |
14070 | fi | |
14071 | else | |
14072 | with_gnu_ld=no | |
14073 | wlarc= | |
14074 | ||
14075 | # A generic and very simple default shared library creation | |
14076 | # command for GNU C++ for the case where it uses the native | |
14077 | # linker, instead of GNU ld. If possible, this setting should | |
14078 | # overridden to take advantage of the native linker features on | |
14079 | # the platform it is being used on. | |
14080 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
14081 | fi | |
14082 | ||
14083 | # Commands to make compiler produce verbose output that lists | |
14084 | # what "hidden" libraries, object files and flags are used when | |
14085 | # linking a shared library. | |
43e02a8a | 14086 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
1cf3d07d SE |
14087 | |
14088 | else | |
14089 | GXX=no | |
14090 | with_gnu_ld=no | |
14091 | wlarc= | |
14092 | fi | |
14093 | ||
14094 | # PORTME: fill in a description of your system's C++ link characteristics | |
5213506e RW |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14096 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
14097 | ld_shlibs_CXX=yes |
14098 | case $host_os in | |
14099 | aix3*) | |
14100 | # FIXME: insert proper C++ library support | |
14101 | ld_shlibs_CXX=no | |
14102 | ;; | |
ed44a2c7 | 14103 | aix[4-9]*) |
1cf3d07d SE |
14104 | if test "$host_cpu" = ia64; then |
14105 | # On IA64, the linker does run time linking by default, so we don't | |
14106 | # have to do anything special. | |
14107 | aix_use_runtimelinking=no | |
14108 | exp_sym_flag='-Bexport' | |
14109 | no_entry_flag="" | |
14110 | else | |
14111 | aix_use_runtimelinking=no | |
14112 | ||
14113 | # Test if we are trying to use run time linking or normal | |
14114 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14115 | # need to do runtime linking. | |
ed44a2c7 | 14116 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
14117 | for ld_flag in $LDFLAGS; do |
14118 | case $ld_flag in | |
14119 | *-brtl*) | |
14120 | aix_use_runtimelinking=yes | |
14121 | break | |
14122 | ;; | |
14123 | esac | |
14124 | done | |
14125 | ;; | |
14126 | esac | |
14127 | ||
14128 | exp_sym_flag='-bexport' | |
14129 | no_entry_flag='-bnoentry' | |
14130 | fi | |
14131 | ||
14132 | # When large executables or shared objects are built, AIX ld can | |
14133 | # have problems creating the table of contents. If linking a library | |
14134 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14135 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14136 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14137 | ||
14138 | archive_cmds_CXX='' | |
14139 | hardcode_direct_CXX=yes | |
14140 | hardcode_direct_absolute_CXX=yes | |
14141 | hardcode_libdir_separator_CXX=':' | |
14142 | link_all_deplibs_CXX=yes | |
14143 | file_list_spec_CXX='${wl}-f,' | |
14144 | ||
14145 | if test "$GXX" = yes; then | |
14146 | case $host_os in aix4.[012]|aix4.[012].*) | |
14147 | # We only want to do this on AIX 4.2 and lower, the check | |
14148 | # below for broken collect2 doesn't work under 4.3+ | |
14149 | collect2name=`${CC} -print-prog-name=collect2` | |
14150 | if test -f "$collect2name" && | |
14151 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
14152 | then | |
14153 | # We have reworked collect2 | |
14154 | : | |
14155 | else | |
14156 | # We have old collect2 | |
14157 | hardcode_direct_CXX=unsupported | |
14158 | # It fails to find uninstalled libraries when the uninstalled | |
14159 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14160 | # to unsupported forces relinking | |
14161 | hardcode_minus_L_CXX=yes | |
14162 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
14163 | hardcode_libdir_separator_CXX= | |
14164 | fi | |
14165 | esac | |
14166 | shared_flag='-shared' | |
14167 | if test "$aix_use_runtimelinking" = yes; then | |
14168 | shared_flag="$shared_flag "'${wl}-G' | |
14169 | fi | |
14170 | else | |
14171 | # not using gcc | |
14172 | if test "$host_cpu" = ia64; then | |
14173 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14174 | # chokes on -Wl,-G. The following line is correct: | |
14175 | shared_flag='-G' | |
14176 | else | |
14177 | if test "$aix_use_runtimelinking" = yes; then | |
14178 | shared_flag='${wl}-G' | |
14179 | else | |
14180 | shared_flag='${wl}-bM:SRE' | |
14181 | fi | |
14182 | fi | |
14183 | fi | |
14184 | ||
0da7a284 | 14185 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
1cf3d07d SE |
14186 | # It seems that -bexpall does not export symbols beginning with |
14187 | # underscore (_), so it is better to generate a list of symbols to | |
14188 | # export. | |
14189 | always_export_symbols_CXX=yes | |
14190 | if test "$aix_use_runtimelinking" = yes; then | |
14191 | # Warning - without using the other runtime loading flags (-brtl), | |
14192 | # -berok will link without error, but may produce a broken library. | |
14193 | allow_undefined_flag_CXX='-berok' | |
14194 | # Determine the default libpath from the value encoded in an empty | |
14195 | # executable. | |
14196 | if test x$gcc_no_link = xyes; then | |
5213506e | 14197 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ade710a5 | 14198 | fi |
5213506e | 14199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
02809848 | 14200 | /* end confdefs.h. */ |
02809848 PB |
14201 | |
14202 | int | |
14203 | main () | |
14204 | { | |
1cf3d07d | 14205 | |
02809848 PB |
14206 | ; |
14207 | return 0; | |
14208 | } | |
14209 | _ACEOF | |
5213506e | 14210 | if ac_fn_cxx_try_link "$LINENO"; then : |
1cf3d07d SE |
14211 | |
14212 | lt_aix_libpath_sed=' | |
14213 | /Import File Strings/,/^$/ { | |
14214 | /^0/ { | |
14215 | s/^0 *\(.*\)$/\1/ | |
14216 | p | |
14217 | } | |
14218 | }' | |
14219 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14220 | # Check for a 64-bit object if we didn't find anything. | |
14221 | if test -z "$aix_libpath"; then | |
14222 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14223 | fi | |
02809848 | 14224 | fi |
5213506e RW |
14225 | rm -f core conftest.err conftest.$ac_objext \ |
14226 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d | 14227 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
ed698112 | 14228 | |
1cf3d07d | 14229 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
5aac1dac | 14230 | |
43e02a8a | 14231 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1cf3d07d SE |
14232 | else |
14233 | if test "$host_cpu" = ia64; then | |
14234 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
14235 | allow_undefined_flag_CXX="-z nodefs" | |
14236 | archive_expsym_cmds_CXX="\$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" | |
14237 | else | |
14238 | # Determine the default libpath from the value encoded in an | |
14239 | # empty executable. | |
14240 | if test x$gcc_no_link = xyes; then | |
5213506e | 14241 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
5aac1dac | 14242 | fi |
5213506e | 14243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 14244 | /* end confdefs.h. */ |
ee9dd372 | 14245 | |
ed698112 NN |
14246 | int |
14247 | main () | |
14248 | { | |
1cf3d07d | 14249 | |
ed698112 NN |
14250 | ; |
14251 | return 0; | |
14252 | } | |
14253 | _ACEOF | |
5213506e | 14254 | if ac_fn_cxx_try_link "$LINENO"; then : |
1cf3d07d SE |
14255 | |
14256 | lt_aix_libpath_sed=' | |
14257 | /Import File Strings/,/^$/ { | |
14258 | /^0/ { | |
14259 | s/^0 *\(.*\)$/\1/ | |
14260 | p | |
14261 | } | |
14262 | }' | |
14263 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14264 | # Check for a 64-bit object if we didn't find anything. | |
14265 | if test -z "$aix_libpath"; then | |
14266 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
14267 | fi | |
ed698112 | 14268 | fi |
5213506e RW |
14269 | rm -f core conftest.err conftest.$ac_objext \ |
14270 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
14271 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14272 | ||
14273 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14274 | # Warning - without using the other run time loading flags, | |
14275 | # -berok will link without error, but may produce a broken library. | |
14276 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
14277 | allow_undefined_flag_CXX=' ${wl}-berok' | |
43e02a8a RW |
14278 | if test "$with_gnu_ld" = yes; then |
14279 | # We only use this code for GNU lds that support --whole-archive. | |
14280 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14281 | else | |
14282 | # Exported symbols can be pulled into shared objects from archives | |
14283 | whole_archive_flag_spec_CXX='$convenience' | |
14284 | fi | |
1cf3d07d SE |
14285 | archive_cmds_need_lc_CXX=yes |
14286 | # This is similar to how AIX traditionally builds its shared | |
14287 | # libraries. | |
14288 | archive_expsym_cmds_CXX="\$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' | |
14289 | fi | |
14290 | fi | |
14291 | ;; | |
ed698112 | 14292 | |
1cf3d07d SE |
14293 | beos*) |
14294 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
14295 | allow_undefined_flag_CXX=unsupported | |
14296 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14297 | # support --undefined. This deserves some investigation. FIXME | |
14298 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14299 | else | |
14300 | ld_shlibs_CXX=no | |
14301 | fi | |
14302 | ;; | |
ed698112 | 14303 | |
1cf3d07d SE |
14304 | chorus*) |
14305 | case $cc_basename in | |
14306 | *) | |
14307 | # FIXME: insert proper C++ library support | |
14308 | ld_shlibs_CXX=no | |
14309 | ;; | |
14310 | esac | |
14311 | ;; | |
5aac1dac | 14312 | |
0da7a284 | 14313 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14314 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
14315 | # as there is no search path for DLLs. | |
14316 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
43e02a8a | 14317 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
1cf3d07d SE |
14318 | allow_undefined_flag_CXX=unsupported |
14319 | always_export_symbols_CXX=no | |
14320 | enable_shared_with_static_runtimes_CXX=yes | |
14321 | ||
14322 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
14323 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14324 | # If the export-symbols file already is a .def file (1st line | |
14325 | # is EXPORTS), use it as is; otherwise, prepend... | |
14326 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14327 | cp $export_symbols $output_objdir/$soname.def; | |
14328 | else | |
14329 | echo EXPORTS > $output_objdir/$soname.def; | |
14330 | cat $export_symbols >> $output_objdir/$soname.def; | |
14331 | fi~ | |
14332 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14333 | else | |
14334 | ld_shlibs_CXX=no | |
14335 | fi | |
14336 | ;; | |
14337 | darwin* | rhapsody*) | |
1cf3d07d | 14338 | |
ed698112 | 14339 | |
0da7a284 PG |
14340 | archive_cmds_need_lc_CXX=no |
14341 | hardcode_direct_CXX=no | |
14342 | hardcode_automatic_CXX=yes | |
14343 | hardcode_shlibpath_var_CXX=unsupported | |
43e02a8a RW |
14344 | if test "$lt_cv_ld_force_load" = "yes"; then |
14345 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
14346 | else | |
14347 | whole_archive_flag_spec_CXX='' | |
14348 | fi | |
0da7a284 PG |
14349 | link_all_deplibs_CXX=yes |
14350 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
14351 | case $cc_basename in | |
14352 | ifort*) _lt_dar_can_shared=yes ;; | |
14353 | *) _lt_dar_can_shared=$GCC ;; | |
14354 | esac | |
14355 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 14356 | output_verbose_link_cmd=func_echo_all |
0da7a284 PG |
14357 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
14358 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
14359 | archive_expsym_cmds_CXX="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}" | |
14360 | module_expsym_cmds_CXX="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}" | |
14361 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
14362 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
14363 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
14364 | fi | |
14365 | ||
14366 | else | |
14367 | ld_shlibs_CXX=no | |
14368 | fi | |
14369 | ||
1cf3d07d | 14370 | ;; |
ed698112 | 14371 | |
1cf3d07d SE |
14372 | dgux*) |
14373 | case $cc_basename in | |
14374 | ec++*) | |
14375 | # FIXME: insert proper C++ library support | |
14376 | ld_shlibs_CXX=no | |
14377 | ;; | |
14378 | ghcx*) | |
14379 | # Green Hills C++ Compiler | |
14380 | # FIXME: insert proper C++ library support | |
14381 | ld_shlibs_CXX=no | |
14382 | ;; | |
14383 | *) | |
14384 | # FIXME: insert proper C++ library support | |
14385 | ld_shlibs_CXX=no | |
14386 | ;; | |
14387 | esac | |
14388 | ;; | |
ed698112 | 14389 | |
1cf3d07d SE |
14390 | freebsd[12]*) |
14391 | # C++ shared libraries reported to be fairly broken before | |
14392 | # switch to ELF | |
14393 | ld_shlibs_CXX=no | |
14394 | ;; | |
5aac1dac | 14395 | |
1cf3d07d SE |
14396 | freebsd-elf*) |
14397 | archive_cmds_need_lc_CXX=no | |
14398 | ;; | |
ee9dd372 | 14399 | |
1cf3d07d SE |
14400 | freebsd* | dragonfly*) |
14401 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
14402 | # conventions | |
14403 | ld_shlibs_CXX=yes | |
14404 | ;; | |
ee9dd372 | 14405 | |
1cf3d07d SE |
14406 | gnu*) |
14407 | ;; | |
ed698112 | 14408 | |
43e02a8a RW |
14409 | haiku*) |
14410 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14411 | link_all_deplibs_CXX=yes | |
14412 | ;; | |
14413 | ||
1cf3d07d SE |
14414 | hpux9*) |
14415 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
14416 | hardcode_libdir_separator_CXX=: | |
14417 | export_dynamic_flag_spec_CXX='${wl}-E' | |
14418 | hardcode_direct_CXX=yes | |
14419 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14420 | # but as the default | |
14421 | # location of the library. | |
14422 | ||
14423 | case $cc_basename in | |
14424 | CC*) | |
14425 | # FIXME: insert proper C++ library support | |
14426 | ld_shlibs_CXX=no | |
14427 | ;; | |
14428 | aCC*) | |
14429 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
14430 | # Commands to make compiler produce verbose output that lists | |
14431 | # what "hidden" libraries, object files and flags are used when | |
14432 | # linking a shared library. | |
14433 | # | |
14434 | # There doesn't appear to be a way to prevent this compiler from | |
14435 | # explicitly linking system object files so we need to strip them | |
14436 | # from the output so that they don't get included in the library | |
14437 | # dependencies. | |
43e02a8a | 14438 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
1cf3d07d SE |
14439 | ;; |
14440 | *) | |
14441 | if test "$GXX" = yes; then | |
14442 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
14443 | else | |
14444 | # FIXME: insert proper C++ library support | |
14445 | ld_shlibs_CXX=no | |
14446 | fi | |
14447 | ;; | |
14448 | esac | |
14449 | ;; | |
ed698112 | 14450 | |
1cf3d07d SE |
14451 | hpux10*|hpux11*) |
14452 | if test $with_gnu_ld = no; then | |
14453 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
14454 | hardcode_libdir_separator_CXX=: | |
14455 | ||
14456 | case $host_cpu in | |
14457 | hppa*64*|ia64*) | |
14458 | ;; | |
14459 | *) | |
14460 | export_dynamic_flag_spec_CXX='${wl}-E' | |
14461 | ;; | |
14462 | esac | |
14463 | fi | |
14464 | case $host_cpu in | |
14465 | hppa*64*|ia64*) | |
14466 | hardcode_direct_CXX=no | |
14467 | hardcode_shlibpath_var_CXX=no | |
14468 | ;; | |
14469 | *) | |
14470 | hardcode_direct_CXX=yes | |
14471 | hardcode_direct_absolute_CXX=yes | |
14472 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
14473 | # but as the default | |
14474 | # location of the library. | |
14475 | ;; | |
14476 | esac | |
14477 | ||
14478 | case $cc_basename in | |
14479 | CC*) | |
14480 | # FIXME: insert proper C++ library support | |
14481 | ld_shlibs_CXX=no | |
14482 | ;; | |
14483 | aCC*) | |
14484 | case $host_cpu in | |
14485 | hppa*64*) | |
14486 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14487 | ;; | |
14488 | ia64*) | |
14489 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14490 | ;; | |
14491 | *) | |
14492 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14493 | ;; | |
14494 | esac | |
14495 | # Commands to make compiler produce verbose output that lists | |
14496 | # what "hidden" libraries, object files and flags are used when | |
14497 | # linking a shared library. | |
14498 | # | |
14499 | # There doesn't appear to be a way to prevent this compiler from | |
14500 | # explicitly linking system object files so we need to strip them | |
14501 | # from the output so that they don't get included in the library | |
14502 | # dependencies. | |
43e02a8a | 14503 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
1cf3d07d SE |
14504 | ;; |
14505 | *) | |
14506 | if test "$GXX" = yes; then | |
14507 | if test $with_gnu_ld = no; then | |
14508 | case $host_cpu in | |
14509 | hppa*64*) | |
14510 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14511 | ;; | |
14512 | ia64*) | |
14513 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14514 | ;; | |
14515 | *) | |
14516 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14517 | ;; | |
14518 | esac | |
14519 | fi | |
14520 | else | |
14521 | # FIXME: insert proper C++ library support | |
14522 | ld_shlibs_CXX=no | |
14523 | fi | |
14524 | ;; | |
14525 | esac | |
14526 | ;; | |
ed698112 | 14527 | |
1cf3d07d SE |
14528 | interix[3-9]*) |
14529 | hardcode_direct_CXX=no | |
14530 | hardcode_shlibpath_var_CXX=no | |
14531 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14532 | export_dynamic_flag_spec_CXX='${wl}-E' | |
14533 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14534 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14535 | # default) and relocated if they conflict, which is a slow very memory | |
14536 | # consuming and fragmenting process. To avoid this, we pick a random, | |
14537 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14538 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14539 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
14540 | archive_expsym_cmds_CXX='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' | |
14541 | ;; | |
14542 | irix5* | irix6*) | |
14543 | case $cc_basename in | |
14544 | CC*) | |
14545 | # SGI C++ | |
43e02a8a | 14546 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
14547 | |
14548 | # Archives containing C++ object files must be created using | |
14549 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
14550 | # necessary to make sure instantiated templates are included | |
14551 | # in the archive. | |
14552 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
14553 | ;; | |
14554 | *) | |
14555 | if test "$GXX" = yes; then | |
14556 | if test "$with_gnu_ld" = no; then | |
43e02a8a | 14557 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d | 14558 | else |
43e02a8a | 14559 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
1cf3d07d SE |
14560 | fi |
14561 | fi | |
14562 | link_all_deplibs_CXX=yes | |
14563 | ;; | |
14564 | esac | |
14565 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14566 | hardcode_libdir_separator_CXX=: | |
14567 | inherit_rpath_CXX=yes | |
14568 | ;; | |
ed698112 | 14569 | |
7a9d3fe8 | 14570 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
14571 | case $cc_basename in |
14572 | KCC*) | |
14573 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
14574 | ||
14575 | # KCC will only create a shared library if the output file | |
14576 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14577 | # to its proper name (with version) after linking. | |
14578 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
14579 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
14580 | # Commands to make compiler produce verbose output that lists | |
14581 | # what "hidden" libraries, object files and flags are used when | |
14582 | # linking a shared library. | |
14583 | # | |
14584 | # There doesn't appear to be a way to prevent this compiler from | |
14585 | # explicitly linking system object files so we need to strip them | |
14586 | # from the output so that they don't get included in the library | |
14587 | # dependencies. | |
43e02a8a | 14588 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
1cf3d07d SE |
14589 | |
14590 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14591 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
14592 | ||
14593 | # Archives containing C++ object files must be created using | |
14594 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
14595 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
14596 | ;; | |
14597 | icpc* | ecpc* ) | |
14598 | # Intel C++ | |
14599 | with_gnu_ld=yes | |
14600 | # version 8.0 and above of icpc choke on multiply defined symbols | |
14601 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
14602 | # earlier do not add the objects themselves. | |
14603 | case `$CC -V 2>&1` in | |
14604 | *"Version 7."*) | |
14605 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14606 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14607 | ;; | |
14608 | *) # Version 8.0 or newer | |
14609 | tmp_idyn= | |
14610 | case $host_cpu in | |
14611 | ia64*) tmp_idyn=' -i_dynamic';; | |
14612 | esac | |
14613 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14614 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14615 | ;; | |
14616 | esac | |
14617 | archive_cmds_need_lc_CXX=no | |
14618 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14619 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
14620 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
14621 | ;; | |
0da7a284 | 14622 | pgCC* | pgcpp*) |
1cf3d07d SE |
14623 | # Portland Group C++ compiler |
14624 | case `$CC -V` in | |
43e02a8a | 14625 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
1cf3d07d SE |
14626 | prelink_cmds_CXX='tpldir=Template.dir~ |
14627 | rm -rf $tpldir~ | |
14628 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
14629 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
14630 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
14631 | rm -rf $tpldir~ | |
14632 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
14633 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
14634 | $RANLIB $oldlib' | |
14635 | archive_cmds_CXX='tpldir=Template.dir~ | |
14636 | rm -rf $tpldir~ | |
14637 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14638 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
14639 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
14640 | rm -rf $tpldir~ | |
14641 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
14642 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
14643 | ;; | |
43e02a8a | 14644 | *) # Version 6 and above use weak symbols |
1cf3d07d SE |
14645 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
14646 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
14647 | ;; | |
14648 | esac | |
5aac1dac | 14649 | |
1cf3d07d SE |
14650 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
14651 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
43e02a8a | 14652 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
14653 | ;; |
14654 | cxx*) | |
14655 | # Compaq C++ | |
14656 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14657 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
14658 | ||
14659 | runpath_var=LD_RUN_PATH | |
14660 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14661 | hardcode_libdir_separator_CXX=: | |
14662 | ||
14663 | # Commands to make compiler produce verbose output that lists | |
14664 | # what "hidden" libraries, object files and flags are used when | |
14665 | # linking a shared library. | |
14666 | # | |
14667 | # There doesn't appear to be a way to prevent this compiler from | |
14668 | # explicitly linking system object files so we need to strip them | |
14669 | # from the output so that they don't get included in the library | |
14670 | # dependencies. | |
43e02a8a | 14671 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
1cf3d07d | 14672 | ;; |
43e02a8a | 14673 | xl* | mpixl* | bgxl*) |
0da7a284 PG |
14674 | # IBM XL 8.0 on PPC, with GNU ld |
14675 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14676 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
14677 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14678 | if test "x$supports_anon_versioning" = xyes; then | |
14679 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
14680 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14681 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14682 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14683 | fi | |
14684 | ;; | |
1cf3d07d SE |
14685 | *) |
14686 | case `$CC -V 2>&1 | sed 5q` in | |
14687 | *Sun\ C*) | |
14688 | # Sun C++ 5.9 | |
14689 | no_undefined_flag_CXX=' -zdefs' | |
14690 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14691 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
14692 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
43e02a8a | 14693 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
14694 | compiler_needs_object_CXX=yes |
14695 | ||
14696 | # Not sure whether something based on | |
14697 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
14698 | # would be better. | |
43e02a8a | 14699 | output_verbose_link_cmd='func_echo_all' |
1cf3d07d SE |
14700 | |
14701 | # Archives containing C++ object files must be created using | |
14702 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14703 | # necessary to make sure instantiated templates are included | |
14704 | # in the archive. | |
14705 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14706 | ;; | |
14707 | esac | |
14708 | ;; | |
14709 | esac | |
14710 | ;; | |
5aac1dac | 14711 | |
1cf3d07d SE |
14712 | lynxos*) |
14713 | # FIXME: insert proper C++ library support | |
14714 | ld_shlibs_CXX=no | |
14715 | ;; | |
ed698112 | 14716 | |
1cf3d07d SE |
14717 | m88k*) |
14718 | # FIXME: insert proper C++ library support | |
14719 | ld_shlibs_CXX=no | |
14720 | ;; | |
5aac1dac | 14721 | |
1cf3d07d SE |
14722 | mvs*) |
14723 | case $cc_basename in | |
14724 | cxx*) | |
14725 | # FIXME: insert proper C++ library support | |
14726 | ld_shlibs_CXX=no | |
14727 | ;; | |
14728 | *) | |
14729 | # FIXME: insert proper C++ library support | |
14730 | ld_shlibs_CXX=no | |
14731 | ;; | |
14732 | esac | |
14733 | ;; | |
14734 | ||
14735 | netbsd*) | |
14736 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14737 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
14738 | wlarc= | |
14739 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14740 | hardcode_direct_CXX=yes | |
14741 | hardcode_shlibpath_var_CXX=no | |
5aac1dac | 14742 | fi |
1cf3d07d SE |
14743 | # Workaround some broken pre-1.5 toolchains |
14744 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
14745 | ;; | |
ee9dd372 | 14746 | |
1cf3d07d SE |
14747 | *nto* | *qnx*) |
14748 | ld_shlibs_CXX=yes | |
14749 | ;; | |
ee9dd372 | 14750 | |
1cf3d07d SE |
14751 | openbsd2*) |
14752 | # C++ shared libraries are fairly broken | |
14753 | ld_shlibs_CXX=no | |
14754 | ;; | |
ed698112 | 14755 | |
1cf3d07d | 14756 | openbsd*) |
0da7a284 PG |
14757 | if test -f /usr/libexec/ld.so; then |
14758 | hardcode_direct_CXX=yes | |
14759 | hardcode_shlibpath_var_CXX=no | |
14760 | hardcode_direct_absolute_CXX=yes | |
14761 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
14762 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
14763 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14764 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
14765 | export_dynamic_flag_spec_CXX='${wl}-E' | |
14766 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14767 | fi | |
43e02a8a | 14768 | output_verbose_link_cmd=func_echo_all |
0da7a284 PG |
14769 | else |
14770 | ld_shlibs_CXX=no | |
1cf3d07d | 14771 | fi |
1cf3d07d | 14772 | ;; |
ed698112 | 14773 | |
1cf3d07d SE |
14774 | osf3* | osf4* | osf5*) |
14775 | case $cc_basename in | |
14776 | KCC*) | |
14777 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
5aac1dac | 14778 | |
1cf3d07d SE |
14779 | # KCC will only create a shared library if the output file |
14780 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
14781 | # to its proper name (with version) after linking. | |
14782 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
ed698112 | 14783 | |
1cf3d07d SE |
14784 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
14785 | hardcode_libdir_separator_CXX=: | |
ee9dd372 | 14786 | |
1cf3d07d SE |
14787 | # Archives containing C++ object files must be created using |
14788 | # the KAI C++ compiler. | |
14789 | case $host in | |
14790 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
14791 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
14792 | esac | |
14793 | ;; | |
14794 | RCC*) | |
14795 | # Rational C++ 2.4.1 | |
14796 | # FIXME: insert proper C++ library support | |
14797 | ld_shlibs_CXX=no | |
14798 | ;; | |
14799 | cxx*) | |
14800 | case $host in | |
14801 | osf3*) | |
14802 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 14803 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
14804 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
14805 | ;; | |
14806 | *) | |
14807 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
43e02a8a | 14808 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
14809 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
14810 | echo "-hidden">> $lib.exp~ | |
43e02a8a | 14811 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ |
1cf3d07d SE |
14812 | $RM $lib.exp' |
14813 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
14814 | ;; | |
14815 | esac | |
ee9dd372 | 14816 | |
1cf3d07d SE |
14817 | hardcode_libdir_separator_CXX=: |
14818 | ||
14819 | # Commands to make compiler produce verbose output that lists | |
14820 | # what "hidden" libraries, object files and flags are used when | |
14821 | # linking a shared library. | |
14822 | # | |
14823 | # There doesn't appear to be a way to prevent this compiler from | |
14824 | # explicitly linking system object files so we need to strip them | |
14825 | # from the output so that they don't get included in the library | |
14826 | # dependencies. | |
43e02a8a | 14827 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
1cf3d07d SE |
14828 | ;; |
14829 | *) | |
14830 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
14831 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
14832 | case $host in | |
14833 | osf3*) | |
43e02a8a | 14834 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
14835 | ;; |
14836 | *) | |
43e02a8a | 14837 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
14838 | ;; |
14839 | esac | |
14840 | ||
14841 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14842 | hardcode_libdir_separator_CXX=: | |
14843 | ||
14844 | # Commands to make compiler produce verbose output that lists | |
14845 | # what "hidden" libraries, object files and flags are used when | |
14846 | # linking a shared library. | |
43e02a8a | 14847 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
1cf3d07d SE |
14848 | |
14849 | else | |
14850 | # FIXME: insert proper C++ library support | |
14851 | ld_shlibs_CXX=no | |
14852 | fi | |
14853 | ;; | |
14854 | esac | |
14855 | ;; | |
ed698112 | 14856 | |
1cf3d07d SE |
14857 | psos*) |
14858 | # FIXME: insert proper C++ library support | |
14859 | ld_shlibs_CXX=no | |
14860 | ;; | |
ed698112 | 14861 | |
1cf3d07d SE |
14862 | sunos4*) |
14863 | case $cc_basename in | |
14864 | CC*) | |
14865 | # Sun C++ 4.x | |
14866 | # FIXME: insert proper C++ library support | |
14867 | ld_shlibs_CXX=no | |
14868 | ;; | |
14869 | lcc*) | |
14870 | # Lucid | |
14871 | # FIXME: insert proper C++ library support | |
14872 | ld_shlibs_CXX=no | |
14873 | ;; | |
14874 | *) | |
14875 | # FIXME: insert proper C++ library support | |
14876 | ld_shlibs_CXX=no | |
14877 | ;; | |
14878 | esac | |
14879 | ;; | |
ed698112 | 14880 | |
1cf3d07d SE |
14881 | solaris*) |
14882 | case $cc_basename in | |
14883 | CC*) | |
14884 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14885 | archive_cmds_need_lc_CXX=yes | |
14886 | no_undefined_flag_CXX=' -zdefs' | |
14887 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14888 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14889 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14890 | ||
14891 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14892 | hardcode_shlibpath_var_CXX=no | |
14893 | case $host_os in | |
14894 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14895 | *) | |
14896 | # The compiler driver will combine and reorder linker options, | |
14897 | # but understands `-z linker_flag'. | |
14898 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14899 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14900 | ;; | |
14901 | esac | |
14902 | link_all_deplibs_CXX=yes | |
ed698112 | 14903 | |
43e02a8a | 14904 | output_verbose_link_cmd='func_echo_all' |
ee9dd372 | 14905 | |
1cf3d07d SE |
14906 | # Archives containing C++ object files must be created using |
14907 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14908 | # necessary to make sure instantiated templates are included | |
14909 | # in the archive. | |
14910 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14911 | ;; | |
14912 | gcx*) | |
14913 | # Green Hills C++ Compiler | |
14914 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
ee9dd372 | 14915 | |
1cf3d07d SE |
14916 | # The C++ compiler must be used to create the archive. |
14917 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14918 | ;; | |
14919 | *) | |
14920 | # GNU C++ compiler with Solaris linker | |
14921 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
14922 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
14923 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
14924 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14925 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14926 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14927 | ||
14928 | # Commands to make compiler produce verbose output that lists | |
14929 | # what "hidden" libraries, object files and flags are used when | |
14930 | # linking a shared library. | |
43e02a8a | 14931 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
1cf3d07d SE |
14932 | else |
14933 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
14934 | # platform. | |
14935 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14936 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14937 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14938 | ||
14939 | # Commands to make compiler produce verbose output that lists | |
14940 | # what "hidden" libraries, object files and flags are used when | |
14941 | # linking a shared library. | |
43e02a8a | 14942 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
1cf3d07d SE |
14943 | fi |
14944 | ||
14945 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
14946 | case $host_os in | |
14947 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14948 | *) | |
14949 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
14950 | ;; | |
14951 | esac | |
14952 | fi | |
14953 | ;; | |
14954 | esac | |
14955 | ;; | |
ed698112 | 14956 | |
1cf3d07d SE |
14957 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
14958 | no_undefined_flag_CXX='${wl}-z,text' | |
14959 | archive_cmds_need_lc_CXX=no | |
14960 | hardcode_shlibpath_var_CXX=no | |
14961 | runpath_var='LD_RUN_PATH' | |
14962 | ||
14963 | case $cc_basename in | |
14964 | CC*) | |
14965 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14966 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14967 | ;; | |
14968 | *) | |
14969 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14970 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14971 | ;; | |
14972 | esac | |
14973 | ;; | |
ee9dd372 | 14974 | |
1cf3d07d SE |
14975 | sysv5* | sco3.2v5* | sco5v6*) |
14976 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14977 | # link with -lc, and that would cause any symbols used from libc to | |
14978 | # always be unresolved, which means just about no library would | |
14979 | # ever link correctly. If we're not using GNU ld we use -z text | |
14980 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14981 | # as -z defs. | |
14982 | no_undefined_flag_CXX='${wl}-z,text' | |
14983 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
14984 | archive_cmds_need_lc_CXX=no | |
14985 | hardcode_shlibpath_var_CXX=no | |
14986 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
14987 | hardcode_libdir_separator_CXX=':' | |
14988 | link_all_deplibs_CXX=yes | |
14989 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
14990 | runpath_var='LD_RUN_PATH' | |
14991 | ||
14992 | case $cc_basename in | |
14993 | CC*) | |
14994 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14995 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
43e02a8a RW |
14996 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
14997 | '"$old_archive_cmds_CXX" | |
14998 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
14999 | '"$reload_cmds_CXX" | |
1cf3d07d SE |
15000 | ;; |
15001 | *) | |
15002 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15003 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15004 | ;; | |
15005 | esac | |
15006 | ;; | |
15007 | ||
15008 | tandem*) | |
15009 | case $cc_basename in | |
15010 | NCC*) | |
15011 | # NonStop-UX NCC 3.20 | |
15012 | # FIXME: insert proper C++ library support | |
15013 | ld_shlibs_CXX=no | |
15014 | ;; | |
15015 | *) | |
15016 | # FIXME: insert proper C++ library support | |
15017 | ld_shlibs_CXX=no | |
15018 | ;; | |
15019 | esac | |
15020 | ;; | |
15021 | ||
15022 | vxworks*) | |
15023 | # FIXME: insert proper C++ library support | |
15024 | ld_shlibs_CXX=no | |
15025 | ;; | |
15026 | ||
15027 | *) | |
15028 | # FIXME: insert proper C++ library support | |
15029 | ld_shlibs_CXX=no | |
15030 | ;; | |
15031 | esac | |
15032 | ||
5213506e RW |
15033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
15034 | $as_echo "$ld_shlibs_CXX" >&6; } | |
1cf3d07d SE |
15035 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
15036 | ||
15037 | GCC_CXX="$GXX" | |
15038 | LD_CXX="$LD" | |
15039 | ||
15040 | ## CAVEAT EMPTOR: | |
15041 | ## There is no encapsulation within the following macros, do not change | |
15042 | ## the running order or otherwise move them around unless you know exactly | |
15043 | ## what you are doing... | |
15044 | # Dependencies to place before and after the object being linked: | |
15045 | predep_objects_CXX= | |
15046 | postdep_objects_CXX= | |
15047 | predeps_CXX= | |
15048 | postdeps_CXX= | |
15049 | compiler_lib_search_path_CXX= | |
15050 | ||
15051 | cat > conftest.$ac_ext <<_LT_EOF | |
15052 | class Foo | |
ed698112 | 15053 | { |
1cf3d07d SE |
15054 | public: |
15055 | Foo (void) { a = 0; } | |
15056 | private: | |
15057 | int a; | |
15058 | }; | |
15059 | _LT_EOF | |
15060 | ||
5213506e | 15061 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d | 15062 | (eval $ac_compile) 2>&5 |
ed698112 | 15063 | ac_status=$? |
5213506e RW |
15064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15065 | test $ac_status = 0; }; then | |
1cf3d07d SE |
15066 | # Parse the compiler output and extract the necessary |
15067 | # objects, libraries and library flags. | |
15068 | ||
15069 | # Sentinel used to keep track of whether or not we are before | |
15070 | # the conftest object file. | |
15071 | pre_test_object_deps_done=no | |
15072 | ||
0da7a284 | 15073 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
15074 | case $p in |
15075 | ||
15076 | -L* | -R* | -l*) | |
15077 | # Some compilers place space between "-{L,R}" and the path. | |
15078 | # Remove the space. | |
15079 | if test $p = "-L" || | |
15080 | test $p = "-R"; then | |
15081 | prev=$p | |
15082 | continue | |
15083 | else | |
15084 | prev= | |
15085 | fi | |
15086 | ||
15087 | if test "$pre_test_object_deps_done" = no; then | |
15088 | case $p in | |
15089 | -L* | -R*) | |
15090 | # Internal compiler library paths should come after those | |
15091 | # provided the user. The postdeps already come after the | |
15092 | # user supplied libs so there is no need to process them. | |
15093 | if test -z "$compiler_lib_search_path_CXX"; then | |
15094 | compiler_lib_search_path_CXX="${prev}${p}" | |
15095 | else | |
15096 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
15097 | fi | |
15098 | ;; | |
15099 | # The "-l" case would never come before the object being | |
15100 | # linked, so don't bother handling this case. | |
15101 | esac | |
15102 | else | |
15103 | if test -z "$postdeps_CXX"; then | |
15104 | postdeps_CXX="${prev}${p}" | |
15105 | else | |
15106 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
15107 | fi | |
15108 | fi | |
15109 | ;; | |
ed698112 | 15110 | |
1cf3d07d SE |
15111 | *.$objext) |
15112 | # This assumes that the test object file only shows up | |
15113 | # once in the compiler output. | |
15114 | if test "$p" = "conftest.$objext"; then | |
15115 | pre_test_object_deps_done=yes | |
15116 | continue | |
15117 | fi | |
15118 | ||
15119 | if test "$pre_test_object_deps_done" = no; then | |
15120 | if test -z "$predep_objects_CXX"; then | |
15121 | predep_objects_CXX="$p" | |
15122 | else | |
15123 | predep_objects_CXX="$predep_objects_CXX $p" | |
15124 | fi | |
15125 | else | |
15126 | if test -z "$postdep_objects_CXX"; then | |
15127 | postdep_objects_CXX="$p" | |
15128 | else | |
15129 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
15130 | fi | |
15131 | fi | |
15132 | ;; | |
ed698112 | 15133 | |
1cf3d07d | 15134 | *) ;; # Ignore the rest. |
ed698112 | 15135 | |
1cf3d07d SE |
15136 | esac |
15137 | done | |
ee9dd372 | 15138 | |
1cf3d07d SE |
15139 | # Clean up. |
15140 | rm -f a.out a.exe | |
15141 | else | |
15142 | echo "libtool.m4: error: problem compiling CXX test program" | |
15143 | fi | |
ed698112 | 15144 | |
1cf3d07d | 15145 | $RM -f confest.$objext |
ed698112 | 15146 | |
1cf3d07d SE |
15147 | # PORTME: override above test on systems where it is broken |
15148 | case $host_os in | |
15149 | interix[3-9]*) | |
15150 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
15151 | # hack all around it, let's just trust "g++" to DTRT. | |
15152 | predep_objects_CXX= | |
15153 | postdep_objects_CXX= | |
15154 | postdeps_CXX= | |
15155 | ;; | |
8107bcf9 | 15156 | |
1cf3d07d SE |
15157 | linux*) |
15158 | case `$CC -V 2>&1 | sed 5q` in | |
15159 | *Sun\ C*) | |
15160 | # Sun C++ 5.9 | |
15161 | ||
15162 | # The more standards-conforming stlport4 library is | |
15163 | # incompatible with the Cstd library. Avoid specifying | |
15164 | # it if it's in CXXFLAGS. Ignore libCrun as | |
15165 | # -library=stlport4 depends on it. | |
15166 | case " $CXX $CXXFLAGS " in | |
15167 | *" -library=stlport4 "*) | |
15168 | solaris_use_stlport4=yes | |
15169 | ;; | |
15170 | esac | |
5aac1dac | 15171 | |
1cf3d07d SE |
15172 | if test "$solaris_use_stlport4" != yes; then |
15173 | postdeps_CXX='-library=Cstd -library=Crun' | |
15174 | fi | |
15175 | ;; | |
15176 | esac | |
15177 | ;; | |
8107bcf9 | 15178 | |
1cf3d07d SE |
15179 | solaris*) |
15180 | case $cc_basename in | |
15181 | CC*) | |
15182 | # The more standards-conforming stlport4 library is | |
15183 | # incompatible with the Cstd library. Avoid specifying | |
15184 | # it if it's in CXXFLAGS. Ignore libCrun as | |
15185 | # -library=stlport4 depends on it. | |
15186 | case " $CXX $CXXFLAGS " in | |
15187 | *" -library=stlport4 "*) | |
15188 | solaris_use_stlport4=yes | |
15189 | ;; | |
15190 | esac | |
8107bcf9 | 15191 | |
1cf3d07d SE |
15192 | # Adding this requires a known-good setup of shared libraries for |
15193 | # Sun compiler versions before 5.6, else PIC objects from an old | |
15194 | # archive will be linked into the output, leading to subtle bugs. | |
15195 | if test "$solaris_use_stlport4" != yes; then | |
15196 | postdeps_CXX='-library=Cstd -library=Crun' | |
15197 | fi | |
15198 | ;; | |
15199 | esac | |
15200 | ;; | |
15201 | esac | |
f994389b | 15202 | |
ed698112 | 15203 | |
1cf3d07d SE |
15204 | case " $postdeps_CXX " in |
15205 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
15206 | esac | |
0da7a284 PG |
15207 | compiler_lib_search_dirs_CXX= |
15208 | if test -n "${compiler_lib_search_path_CXX}"; then | |
15209 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
15210 | fi | |
15211 | ||
15212 | ||
15213 | ||
15214 | ||
15215 | ||
ed698112 | 15216 | |
ed698112 | 15217 | |
f994389b | 15218 | |
f994389b | 15219 | |
f994389b | 15220 | |
ed698112 | 15221 | |
ed698112 NN |
15222 | |
15223 | ||
ed698112 | 15224 | |
ed698112 | 15225 | |
ed698112 NN |
15226 | |
15227 | ||
5aac1dac | 15228 | |
f994389b | 15229 | |
6b3517ea RO |
15230 | |
15231 | ||
ed698112 | 15232 | |
ed698112 | 15233 | |
6b3517ea | 15234 | |
6b3517ea | 15235 | |
ed698112 | 15236 | |
6b3517ea | 15237 | |
ed698112 | 15238 | |
ed698112 | 15239 | |
ed698112 | 15240 | |
ed698112 | 15241 | |
1cf3d07d SE |
15242 | lt_prog_compiler_wl_CXX= |
15243 | lt_prog_compiler_pic_CXX= | |
15244 | lt_prog_compiler_static_CXX= | |
ed698112 | 15245 | |
5213506e RW |
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
15247 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6b3517ea | 15248 | |
1cf3d07d SE |
15249 | # C++ specific cases for pic, static, wl, etc. |
15250 | if test "$GXX" = yes; then | |
15251 | lt_prog_compiler_wl_CXX='-Wl,' | |
15252 | lt_prog_compiler_static_CXX='-static' | |
6b3517ea | 15253 | |
1cf3d07d SE |
15254 | case $host_os in |
15255 | aix*) | |
15256 | # All AIX code is PIC. | |
15257 | if test "$host_cpu" = ia64; then | |
15258 | # AIX 5 now supports IA64 processor | |
15259 | lt_prog_compiler_static_CXX='-Bstatic' | |
15260 | fi | |
15261 | ;; | |
0da7a284 | 15262 | |
1cf3d07d | 15263 | amigaos*) |
0da7a284 PG |
15264 | case $host_cpu in |
15265 | powerpc) | |
15266 | # see comment about AmigaOS4 .so support | |
15267 | lt_prog_compiler_pic_CXX='-fPIC' | |
15268 | ;; | |
15269 | m68k) | |
15270 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15271 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15272 | # like `-m68040'. | |
15273 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
15274 | ;; | |
15275 | esac | |
1cf3d07d | 15276 | ;; |
0da7a284 | 15277 | |
1cf3d07d SE |
15278 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15279 | # PIC is the default for these OSes. | |
15280 | ;; | |
0da7a284 | 15281 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
1cf3d07d SE |
15282 | # This hack is so that the source file can tell whether it is being |
15283 | # built for inclusion in a dll (and should export symbols for example). | |
15284 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
15285 | # (--disable-auto-import) libraries | |
15286 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
15287 | ;; | |
15288 | darwin* | rhapsody*) | |
15289 | # PIC is the default on this platform | |
15290 | # Common symbols not allowed in MH_DYLIB files | |
15291 | lt_prog_compiler_pic_CXX='-fno-common' | |
15292 | ;; | |
15293 | *djgpp*) | |
15294 | # DJGPP does not support shared libraries at all | |
15295 | lt_prog_compiler_pic_CXX= | |
15296 | ;; | |
43e02a8a RW |
15297 | haiku*) |
15298 | # PIC is the default for Haiku. | |
15299 | # The "-static" flag exists, but is broken. | |
15300 | lt_prog_compiler_static_CXX= | |
15301 | ;; | |
1cf3d07d SE |
15302 | interix[3-9]*) |
15303 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
15304 | # Instead, we relocate shared libraries at runtime. | |
15305 | ;; | |
15306 | sysv4*MP*) | |
15307 | if test -d /usr/nec; then | |
15308 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
15309 | fi | |
15310 | ;; | |
15311 | hpux*) | |
0da7a284 PG |
15312 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
15313 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
15314 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 15315 | case $host_cpu in |
0da7a284 | 15316 | hppa*64*) |
1cf3d07d SE |
15317 | ;; |
15318 | *) | |
15319 | lt_prog_compiler_pic_CXX='-fPIC' | |
15320 | ;; | |
15321 | esac | |
15322 | ;; | |
15323 | *qnx* | *nto*) | |
15324 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
15325 | # it will coredump. | |
15326 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
15327 | ;; | |
15328 | *) | |
15329 | lt_prog_compiler_pic_CXX='-fPIC' | |
15330 | ;; | |
15331 | esac | |
15332 | else | |
15333 | case $host_os in | |
ed44a2c7 | 15334 | aix[4-9]*) |
1cf3d07d SE |
15335 | # All AIX code is PIC. |
15336 | if test "$host_cpu" = ia64; then | |
15337 | # AIX 5 now supports IA64 processor | |
15338 | lt_prog_compiler_static_CXX='-Bstatic' | |
15339 | else | |
15340 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
15341 | fi | |
15342 | ;; | |
15343 | chorus*) | |
15344 | case $cc_basename in | |
15345 | cxch68*) | |
15346 | # Green Hills C++ Compiler | |
15347 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
15348 | ;; | |
15349 | esac | |
15350 | ;; | |
1cf3d07d SE |
15351 | dgux*) |
15352 | case $cc_basename in | |
15353 | ec++*) | |
15354 | lt_prog_compiler_pic_CXX='-KPIC' | |
15355 | ;; | |
15356 | ghcx*) | |
15357 | # Green Hills C++ Compiler | |
15358 | lt_prog_compiler_pic_CXX='-pic' | |
15359 | ;; | |
15360 | *) | |
15361 | ;; | |
15362 | esac | |
15363 | ;; | |
15364 | freebsd* | dragonfly*) | |
15365 | # FreeBSD uses GNU C++ | |
15366 | ;; | |
15367 | hpux9* | hpux10* | hpux11*) | |
15368 | case $cc_basename in | |
15369 | CC*) | |
15370 | lt_prog_compiler_wl_CXX='-Wl,' | |
15371 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
15372 | if test "$host_cpu" != ia64; then | |
15373 | lt_prog_compiler_pic_CXX='+Z' | |
15374 | fi | |
15375 | ;; | |
15376 | aCC*) | |
15377 | lt_prog_compiler_wl_CXX='-Wl,' | |
15378 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
15379 | case $host_cpu in | |
15380 | hppa*64*|ia64*) | |
15381 | # +Z the default | |
15382 | ;; | |
15383 | *) | |
15384 | lt_prog_compiler_pic_CXX='+Z' | |
15385 | ;; | |
15386 | esac | |
15387 | ;; | |
15388 | *) | |
15389 | ;; | |
15390 | esac | |
15391 | ;; | |
15392 | interix*) | |
15393 | # This is c89, which is MS Visual C++ (no shared libs) | |
15394 | # Anyone wants to do a port? | |
15395 | ;; | |
15396 | irix5* | irix6* | nonstopux*) | |
15397 | case $cc_basename in | |
15398 | CC*) | |
15399 | lt_prog_compiler_wl_CXX='-Wl,' | |
15400 | lt_prog_compiler_static_CXX='-non_shared' | |
15401 | # CC pic flag -KPIC is the default. | |
15402 | ;; | |
15403 | *) | |
15404 | ;; | |
15405 | esac | |
15406 | ;; | |
7a9d3fe8 | 15407 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
15408 | case $cc_basename in |
15409 | KCC*) | |
15410 | # KAI C++ Compiler | |
15411 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15412 | lt_prog_compiler_pic_CXX='-fPIC' | |
15413 | ;; | |
0da7a284 PG |
15414 | ecpc* ) |
15415 | # old Intel C++ for x86_64 which still supported -KPIC. | |
1cf3d07d SE |
15416 | lt_prog_compiler_wl_CXX='-Wl,' |
15417 | lt_prog_compiler_pic_CXX='-KPIC' | |
15418 | lt_prog_compiler_static_CXX='-static' | |
15419 | ;; | |
0da7a284 PG |
15420 | icpc* ) |
15421 | # Intel C++, used to be incompatible with GCC. | |
15422 | # ICC 10 doesn't accept -KPIC any more. | |
15423 | lt_prog_compiler_wl_CXX='-Wl,' | |
15424 | lt_prog_compiler_pic_CXX='-fPIC' | |
15425 | lt_prog_compiler_static_CXX='-static' | |
15426 | ;; | |
15427 | pgCC* | pgcpp*) | |
1cf3d07d SE |
15428 | # Portland Group C++ compiler |
15429 | lt_prog_compiler_wl_CXX='-Wl,' | |
15430 | lt_prog_compiler_pic_CXX='-fpic' | |
15431 | lt_prog_compiler_static_CXX='-Bstatic' | |
15432 | ;; | |
15433 | cxx*) | |
15434 | # Compaq C++ | |
15435 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15436 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15437 | lt_prog_compiler_pic_CXX= | |
15438 | lt_prog_compiler_static_CXX='-non_shared' | |
15439 | ;; | |
43e02a8a RW |
15440 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
15441 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
0da7a284 PG |
15442 | lt_prog_compiler_wl_CXX='-Wl,' |
15443 | lt_prog_compiler_pic_CXX='-qpic' | |
15444 | lt_prog_compiler_static_CXX='-qstaticlink' | |
15445 | ;; | |
1cf3d07d SE |
15446 | *) |
15447 | case `$CC -V 2>&1 | sed 5q` in | |
15448 | *Sun\ C*) | |
15449 | # Sun C++ 5.9 | |
15450 | lt_prog_compiler_pic_CXX='-KPIC' | |
15451 | lt_prog_compiler_static_CXX='-Bstatic' | |
15452 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15453 | ;; | |
15454 | esac | |
15455 | ;; | |
15456 | esac | |
15457 | ;; | |
15458 | lynxos*) | |
15459 | ;; | |
15460 | m88k*) | |
15461 | ;; | |
15462 | mvs*) | |
15463 | case $cc_basename in | |
15464 | cxx*) | |
15465 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
15466 | ;; | |
15467 | *) | |
15468 | ;; | |
15469 | esac | |
15470 | ;; | |
15471 | netbsd*) | |
15472 | ;; | |
15473 | *qnx* | *nto*) | |
15474 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
15475 | # it will coredump. | |
15476 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
15477 | ;; | |
15478 | osf3* | osf4* | osf5*) | |
15479 | case $cc_basename in | |
15480 | KCC*) | |
15481 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
15482 | ;; | |
15483 | RCC*) | |
15484 | # Rational C++ 2.4.1 | |
15485 | lt_prog_compiler_pic_CXX='-pic' | |
15486 | ;; | |
15487 | cxx*) | |
15488 | # Digital/Compaq C++ | |
15489 | lt_prog_compiler_wl_CXX='-Wl,' | |
15490 | # Make sure the PIC flag is empty. It appears that all Alpha | |
15491 | # Linux and Compaq Tru64 Unix objects are PIC. | |
15492 | lt_prog_compiler_pic_CXX= | |
15493 | lt_prog_compiler_static_CXX='-non_shared' | |
15494 | ;; | |
15495 | *) | |
15496 | ;; | |
15497 | esac | |
15498 | ;; | |
15499 | psos*) | |
15500 | ;; | |
15501 | solaris*) | |
15502 | case $cc_basename in | |
15503 | CC*) | |
15504 | # Sun C++ 4.2, 5.x and Centerline C++ | |
15505 | lt_prog_compiler_pic_CXX='-KPIC' | |
15506 | lt_prog_compiler_static_CXX='-Bstatic' | |
15507 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
15508 | ;; | |
15509 | gcx*) | |
15510 | # Green Hills C++ Compiler | |
15511 | lt_prog_compiler_pic_CXX='-PIC' | |
15512 | ;; | |
15513 | *) | |
15514 | ;; | |
15515 | esac | |
15516 | ;; | |
15517 | sunos4*) | |
15518 | case $cc_basename in | |
15519 | CC*) | |
15520 | # Sun C++ 4.x | |
15521 | lt_prog_compiler_pic_CXX='-pic' | |
15522 | lt_prog_compiler_static_CXX='-Bstatic' | |
15523 | ;; | |
15524 | lcc*) | |
15525 | # Lucid | |
15526 | lt_prog_compiler_pic_CXX='-pic' | |
15527 | ;; | |
15528 | *) | |
15529 | ;; | |
15530 | esac | |
15531 | ;; | |
15532 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15533 | case $cc_basename in | |
15534 | CC*) | |
15535 | lt_prog_compiler_wl_CXX='-Wl,' | |
15536 | lt_prog_compiler_pic_CXX='-KPIC' | |
15537 | lt_prog_compiler_static_CXX='-Bstatic' | |
15538 | ;; | |
15539 | esac | |
15540 | ;; | |
15541 | tandem*) | |
15542 | case $cc_basename in | |
15543 | NCC*) | |
15544 | # NonStop-UX NCC 3.20 | |
15545 | lt_prog_compiler_pic_CXX='-KPIC' | |
15546 | ;; | |
15547 | *) | |
15548 | ;; | |
15549 | esac | |
15550 | ;; | |
15551 | vxworks*) | |
15552 | ;; | |
15553 | *) | |
15554 | lt_prog_compiler_can_build_shared_CXX=no | |
15555 | ;; | |
15556 | esac | |
15557 | fi | |
f994389b | 15558 | |
1cf3d07d SE |
15559 | case $host_os in |
15560 | # For platforms which do not support PIC, -DPIC is meaningless: | |
15561 | *djgpp*) | |
15562 | lt_prog_compiler_pic_CXX= | |
15563 | ;; | |
15564 | *) | |
15565 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
15566 | ;; | |
15567 | esac | |
5213506e RW |
15568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
15569 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
5aac1dac | 15570 | |
5aac1dac | 15571 | |
ed698112 | 15572 | |
1cf3d07d SE |
15573 | # |
15574 | # Check to make sure the PIC flag actually works. | |
15575 | # | |
15576 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
5213506e RW |
15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
15578 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
15579 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
15580 | $as_echo_n "(cached) " >&6 | |
ed698112 | 15581 | else |
0da7a284 | 15582 | lt_cv_prog_compiler_pic_works_CXX=no |
1cf3d07d SE |
15583 | ac_outfile=conftest.$ac_objext |
15584 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15585 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
15586 | # Insert the option either (1) after the last *FLAGS variable, or | |
15587 | # (2) before a word containing "conftest.", or (3) at the end. | |
15588 | # Note that $ac_compile itself does not contain backslashes and begins | |
15589 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15590 | # The option is referenced via a variable to avoid confusing sed. | |
15591 | lt_compile=`echo "$ac_compile" | $SED \ | |
15592 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15593 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15594 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 15595 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
15596 | (eval "$lt_compile" 2>conftest.err) |
15597 | ac_status=$? | |
15598 | cat conftest.err >&5 | |
43e02a8a | 15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
15600 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15601 | # The compiler can only warn and ignore the option if not recognized | |
15602 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 15603 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
15604 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15605 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
0da7a284 | 15606 | lt_cv_prog_compiler_pic_works_CXX=yes |
1cf3d07d SE |
15607 | fi |
15608 | fi | |
15609 | $RM conftest* | |
15610 | ||
ed698112 | 15611 | fi |
5213506e RW |
15612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
15613 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
ed698112 | 15614 | |
0da7a284 | 15615 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
1cf3d07d SE |
15616 | case $lt_prog_compiler_pic_CXX in |
15617 | "" | " "*) ;; | |
15618 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
15619 | esac | |
15620 | else | |
15621 | lt_prog_compiler_pic_CXX= | |
15622 | lt_prog_compiler_can_build_shared_CXX=no | |
15623 | fi | |
ed698112 | 15624 | |
1cf3d07d | 15625 | fi |
f994389b | 15626 | |
f994389b | 15627 | |
f994389b | 15628 | |
1cf3d07d SE |
15629 | # |
15630 | # Check to make sure the static flag actually works. | |
15631 | # | |
15632 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
5213506e RW |
15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
15634 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
15635 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
15636 | $as_echo_n "(cached) " >&6 | |
ed698112 | 15637 | else |
0da7a284 | 15638 | lt_cv_prog_compiler_static_works_CXX=no |
1cf3d07d SE |
15639 | save_LDFLAGS="$LDFLAGS" |
15640 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
15641 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
15642 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15643 | # The linker can only warn and ignore the option if not recognized | |
15644 | # So say no if there are warnings | |
15645 | if test -s conftest.err; then | |
15646 | # Append any errors to the config.log. | |
15647 | cat conftest.err 1>&5 | |
43e02a8a | 15648 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
15649 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
15650 | if diff conftest.exp conftest.er2 >/dev/null; then | |
0da7a284 | 15651 | lt_cv_prog_compiler_static_works_CXX=yes |
1cf3d07d SE |
15652 | fi |
15653 | else | |
0da7a284 | 15654 | lt_cv_prog_compiler_static_works_CXX=yes |
1cf3d07d SE |
15655 | fi |
15656 | fi | |
0da7a284 | 15657 | $RM -r conftest* |
1cf3d07d | 15658 | LDFLAGS="$save_LDFLAGS" |
ed698112 | 15659 | |
ed698112 | 15660 | fi |
5213506e RW |
15661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
15662 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
1cf3d07d | 15663 | |
0da7a284 | 15664 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
1cf3d07d SE |
15665 | : |
15666 | else | |
15667 | lt_prog_compiler_static_CXX= | |
ed698112 | 15668 | fi |
ed698112 | 15669 | |
1cf3d07d SE |
15670 | |
15671 | ||
15672 | ||
5213506e RW |
15673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
15674 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
15675 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
15676 | $as_echo_n "(cached) " >&6 | |
ed698112 | 15677 | else |
1cf3d07d SE |
15678 | lt_cv_prog_compiler_c_o_CXX=no |
15679 | $RM -r conftest 2>/dev/null | |
15680 | mkdir conftest | |
15681 | cd conftest | |
15682 | mkdir out | |
15683 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15684 | ||
15685 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15686 | # Insert the option either (1) after the last *FLAGS variable, or | |
15687 | # (2) before a word containing "conftest.", or (3) at the end. | |
15688 | # Note that $ac_compile itself does not contain backslashes and begins | |
15689 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15690 | lt_compile=`echo "$ac_compile" | $SED \ | |
15691 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15692 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15693 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 15694 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
15695 | (eval "$lt_compile" 2>out/conftest.err) |
15696 | ac_status=$? | |
15697 | cat out/conftest.err >&5 | |
43e02a8a | 15698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
15699 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15700 | then | |
15701 | # The compiler can only warn and ignore the option if not recognized | |
15702 | # So say no if there are warnings | |
43e02a8a | 15703 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
15704 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
15705 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15706 | lt_cv_prog_compiler_c_o_CXX=yes | |
15707 | fi | |
15708 | fi | |
15709 | chmod u+w . 2>&5 | |
15710 | $RM conftest* | |
15711 | # SGI C++ compiler will create directory out/ii_files/ for | |
15712 | # template instantiation | |
15713 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15714 | $RM out/* && rmdir out | |
15715 | cd .. | |
15716 | $RM -r conftest | |
15717 | $RM conftest* | |
ed698112 | 15718 | |
1cf3d07d | 15719 | fi |
5213506e RW |
15720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
15721 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
1cf3d07d SE |
15722 | |
15723 | ||
15724 | ||
5213506e RW |
15725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
15726 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
15727 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
15728 | $as_echo_n "(cached) " >&6 | |
ed698112 | 15729 | else |
1cf3d07d SE |
15730 | lt_cv_prog_compiler_c_o_CXX=no |
15731 | $RM -r conftest 2>/dev/null | |
15732 | mkdir conftest | |
15733 | cd conftest | |
15734 | mkdir out | |
15735 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15736 | ||
15737 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
15738 | # Insert the option either (1) after the last *FLAGS variable, or | |
15739 | # (2) before a word containing "conftest.", or (3) at the end. | |
15740 | # Note that $ac_compile itself does not contain backslashes and begins | |
15741 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15742 | lt_compile=`echo "$ac_compile" | $SED \ | |
15743 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15744 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15745 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 15746 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
15747 | (eval "$lt_compile" 2>out/conftest.err) |
15748 | ac_status=$? | |
15749 | cat out/conftest.err >&5 | |
43e02a8a | 15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
15751 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15752 | then | |
15753 | # The compiler can only warn and ignore the option if not recognized | |
15754 | # So say no if there are warnings | |
43e02a8a | 15755 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
15756 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
15757 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
15758 | lt_cv_prog_compiler_c_o_CXX=yes | |
15759 | fi | |
15760 | fi | |
15761 | chmod u+w . 2>&5 | |
15762 | $RM conftest* | |
15763 | # SGI C++ compiler will create directory out/ii_files/ for | |
15764 | # template instantiation | |
15765 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
15766 | $RM out/* && rmdir out | |
15767 | cd .. | |
15768 | $RM -r conftest | |
15769 | $RM conftest* | |
15770 | ||
15771 | fi | |
5213506e RW |
15772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
15773 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
1cf3d07d SE |
15774 | |
15775 | ||
15776 | ||
15777 | ||
15778 | hard_links="nottested" | |
15779 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
15780 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
15781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
15782 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
15783 | hard_links=yes |
15784 | $RM conftest* | |
15785 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15786 | touch conftest.a | |
15787 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15788 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
15789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
15790 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 15791 | if test "$hard_links" = no; then |
5213506e RW |
15792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
15793 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
15794 | need_locks=warn |
15795 | fi | |
15796 | else | |
15797 | need_locks=no | |
ed698112 | 15798 | fi |
ed698112 | 15799 | |
ed698112 | 15800 | |
ed698112 | 15801 | |
5213506e RW |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
15803 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
5aac1dac | 15804 | |
1cf3d07d SE |
15805 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
15806 | case $host_os in | |
ed44a2c7 | 15807 | aix[4-9]*) |
1cf3d07d SE |
15808 | # If we're using GNU nm, then we don't want the "-C" option. |
15809 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
15810 | # Also, AIX nm treats weak defined symbols like other global defined |
15811 | # symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 15812 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 15813 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d SE |
15814 | else |
15815 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
15816 | fi | |
15817 | ;; | |
15818 | pw32*) | |
15819 | export_symbols_cmds_CXX="$ltdll_cmds" | |
15820 | ;; | |
0da7a284 | 15821 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
15822 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
15823 | ;; | |
15824 | *) | |
15825 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15826 | ;; | |
15827 | esac | |
0da7a284 | 15828 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
f994389b | 15829 | |
5213506e RW |
15830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
15831 | $as_echo "$ld_shlibs_CXX" >&6; } | |
1cf3d07d | 15832 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
ed698112 | 15833 | |
1cf3d07d SE |
15834 | with_gnu_ld_CXX=$with_gnu_ld |
15835 | ||
15836 | ||
15837 | ||
15838 | ||
15839 | ||
15840 | ||
15841 | # | |
15842 | # Do we need to explicitly link libc? | |
15843 | # | |
15844 | case "x$archive_cmds_need_lc_CXX" in | |
15845 | x|xyes) | |
15846 | # Assume -lc should be added | |
15847 | archive_cmds_need_lc_CXX=yes | |
15848 | ||
15849 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15850 | case $archive_cmds_CXX in | |
15851 | *'~'*) | |
15852 | # FIXME: we may have to deal with multi-command sequences. | |
15853 | ;; | |
15854 | '$CC '*) | |
15855 | # Test whether the compiler implicitly links with -lc since on some | |
15856 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15857 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
15858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
15859 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
15860 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : | |
15861 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
15862 | else |
15863 | $RM conftest* | |
15864 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 15865 | |
5213506e | 15866 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d | 15867 | (eval $ac_compile) 2>&5 |
ed698112 | 15868 | ac_status=$? |
5213506e RW |
15869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15870 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
15871 | soname=conftest |
15872 | lib=conftest | |
15873 | libobjs=conftest.$ac_objext | |
15874 | deplibs= | |
15875 | wl=$lt_prog_compiler_wl_CXX | |
15876 | pic_flag=$lt_prog_compiler_pic_CXX | |
15877 | compiler_flags=-v | |
15878 | linker_flags=-v | |
15879 | verstring= | |
15880 | output_objdir=. | |
15881 | libname=conftest | |
15882 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15883 | allow_undefined_flag_CXX= | |
5213506e | 15884 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d | 15885 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
ed698112 | 15886 | ac_status=$? |
5213506e RW |
15887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
15888 | test $ac_status = 0; } | |
baafc534 RW |
15889 | then |
15890 | lt_cv_archive_cmds_need_lc_CXX=no | |
15891 | else | |
15892 | lt_cv_archive_cmds_need_lc_CXX=yes | |
15893 | fi | |
15894 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15895 | else | |
15896 | cat conftest.err 1>&5 | |
15897 | fi | |
15898 | $RM conftest* | |
15899 | ||
15900 | fi | |
5213506e RW |
15901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
15902 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
baafc534 | 15903 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
1cf3d07d SE |
15904 | ;; |
15905 | esac | |
15906 | fi | |
15907 | ;; | |
15908 | esac | |
ed698112 | 15909 | |
ed698112 | 15910 | |
5ec89e89 | 15911 | |
58d2986d | 15912 | |
58d2986d | 15913 | |
58d2986d | 15914 | |
e59a1e40 | 15915 | |
e59a1e40 | 15916 | |
e59a1e40 | 15917 | |
e59a1e40 TT |
15918 | |
15919 | ||
e59a1e40 | 15920 | |
e59a1e40 TT |
15921 | |
15922 | ||
58d2986d | 15923 | |
58d2986d | 15924 | |
ed698112 | 15925 | |
ed698112 | 15926 | |
58d2986d | 15927 | |
ed698112 NN |
15928 | |
15929 | ||
58d2986d | 15930 | |
ed698112 | 15931 | |
ed698112 | 15932 | |
58d2986d | 15933 | |
ed698112 | 15934 | |
5ec89e89 | 15935 | |
ed698112 NN |
15936 | |
15937 | ||
15938 | ||
ed698112 | 15939 | |
ed698112 | 15940 | |
b5ee195f | 15941 | |
5aac1dac | 15942 | |
5aac1dac | 15943 | |
ed698112 | 15944 | |
f994389b TT |
15945 | |
15946 | ||
ed698112 | 15947 | |
ed698112 | 15948 | |
f994389b | 15949 | |
ee9dd372 | 15950 | |
ed698112 | 15951 | |
ee9dd372 | 15952 | |
ed698112 | 15953 | |
ee9dd372 | 15954 | |
ee9dd372 TT |
15955 | |
15956 | ||
ed698112 | 15957 | |
ed698112 | 15958 | |
ed698112 | 15959 | |
5aac1dac | 15960 | |
ee9dd372 TT |
15961 | |
15962 | ||
ed698112 | 15963 | |
dbf45a01 | 15964 | |
ed698112 | 15965 | |
ed698112 | 15966 | |
ed698112 NN |
15967 | |
15968 | ||
1b5a2139 | 15969 | |
2a67186a | 15970 | |
2a67186a | 15971 | |
2a67186a | 15972 | |
5213506e RW |
15973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
15974 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
0da7a284 | 15975 | |
1cf3d07d SE |
15976 | library_names_spec= |
15977 | libname_spec='lib$name' | |
15978 | soname_spec= | |
15979 | shrext_cmds=".so" | |
15980 | postinstall_cmds= | |
15981 | postuninstall_cmds= | |
15982 | finish_cmds= | |
15983 | finish_eval= | |
15984 | shlibpath_var= | |
15985 | shlibpath_overrides_runpath=unknown | |
15986 | version_type=none | |
15987 | dynamic_linker="$host_os ld.so" | |
15988 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15989 | need_lib_prefix=unknown | |
15990 | hardcode_into_libs=no | |
2a67186a | 15991 | |
1cf3d07d SE |
15992 | # when you set need_version to no, make sure it does not cause -set_version |
15993 | # flags to be left without arguments | |
15994 | need_version=unknown | |
2a67186a | 15995 | |
1cf3d07d SE |
15996 | case $host_os in |
15997 | aix3*) | |
15998 | version_type=linux | |
15999 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
16000 | shlibpath_var=LIBPATH | |
2a67186a | 16001 | |
1cf3d07d SE |
16002 | # AIX 3 has no versioning support, so we append a major version to the name. |
16003 | soname_spec='${libname}${release}${shared_ext}$major' | |
16004 | ;; | |
2a67186a | 16005 | |
ed44a2c7 | 16006 | aix[4-9]*) |
1cf3d07d SE |
16007 | version_type=linux |
16008 | need_lib_prefix=no | |
16009 | need_version=no | |
16010 | hardcode_into_libs=yes | |
16011 | if test "$host_cpu" = ia64; then | |
16012 | # AIX 5 supports IA64 | |
16013 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
16014 | shlibpath_var=LD_LIBRARY_PATH | |
16015 | else | |
16016 | # With GCC up to 2.95.x, collect2 would create an import file | |
16017 | # for dependence libraries. The import file would start with | |
16018 | # the line `#! .'. This would cause the generated library to | |
16019 | # depend on `.', always an invalid library. This was fixed in | |
16020 | # development snapshots of GCC prior to 3.0. | |
16021 | case $host_os in | |
16022 | aix4 | aix4.[01] | aix4.[01].*) | |
16023 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
16024 | echo ' yes ' | |
16025 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
16026 | : | |
16027 | else | |
16028 | can_build_shared=no | |
16029 | fi | |
16030 | ;; | |
16031 | esac | |
16032 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
16033 | # soname into executable. Probably we can add versioning support to | |
16034 | # collect2, so additional links can be useful in future. | |
16035 | if test "$aix_use_runtimelinking" = yes; then | |
16036 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
16037 | # instead of lib<name>.a to let people know that these are not | |
16038 | # typical AIX shared libraries. | |
16039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16040 | else | |
16041 | # We preserve .a as extension for shared libraries through AIX4.2 | |
16042 | # and later when we are not doing run time linking. | |
16043 | library_names_spec='${libname}${release}.a $libname.a' | |
16044 | soname_spec='${libname}${release}${shared_ext}$major' | |
16045 | fi | |
16046 | shlibpath_var=LIBPATH | |
16047 | fi | |
16048 | ;; | |
1b5a2139 | 16049 | |
1cf3d07d | 16050 | amigaos*) |
0da7a284 PG |
16051 | case $host_cpu in |
16052 | powerpc) | |
16053 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
16054 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
16055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16056 | ;; | |
16057 | m68k) | |
1cf3d07d SE |
16058 | library_names_spec='$libname.ixlibrary $libname.a' |
16059 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
43e02a8a | 16060 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
0da7a284 PG |
16061 | ;; |
16062 | esac | |
1cf3d07d | 16063 | ;; |
1b5a2139 | 16064 | |
1cf3d07d SE |
16065 | beos*) |
16066 | library_names_spec='${libname}${shared_ext}' | |
16067 | dynamic_linker="$host_os ld.so" | |
16068 | shlibpath_var=LIBRARY_PATH | |
16069 | ;; | |
1b5a2139 | 16070 | |
1cf3d07d SE |
16071 | bsdi[45]*) |
16072 | version_type=linux | |
16073 | need_version=no | |
16074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16075 | soname_spec='${libname}${release}${shared_ext}$major' | |
16076 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
16077 | shlibpath_var=LD_LIBRARY_PATH | |
16078 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
16079 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
16080 | # the default ld.so.conf also contains /usr/contrib/lib and | |
16081 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
16082 | # libtool to hard-code these into programs | |
16083 | ;; | |
ed698112 | 16084 | |
0da7a284 | 16085 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
16086 | version_type=windows |
16087 | shrext_cmds=".dll" | |
16088 | need_version=no | |
16089 | need_lib_prefix=no | |
ed698112 | 16090 | |
0da7a284 PG |
16091 | case $GCC,$host_os in |
16092 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
16093 | library_names_spec='$libname.dll.a' |
16094 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
16095 | postinstall_cmds='base_file=`basename \${file}`~ | |
16096 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
16097 | dldir=$destdir/`dirname \$dlpath`~ | |
16098 | test -d \$dldir || mkdir -p \$dldir~ | |
16099 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
16100 | chmod a+x \$dldir/$dlname~ | |
16101 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
16102 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
16103 | fi' | |
16104 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
16105 | dlpath=$dir/\$dldll~ | |
16106 | $RM \$dlpath' | |
16107 | shlibpath_overrides_runpath=yes | |
5aac1dac | 16108 | |
1cf3d07d SE |
16109 | case $host_os in |
16110 | cygwin*) | |
16111 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
16112 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
43e02a8a | 16113 | |
1cf3d07d | 16114 | ;; |
0da7a284 | 16115 | mingw* | cegcc*) |
1cf3d07d SE |
16116 | # MinGW DLLs use traditional 'lib' prefix |
16117 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
1cf3d07d SE |
16118 | ;; |
16119 | pw32*) | |
16120 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
16121 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
16122 | ;; | |
16123 | esac | |
16124 | ;; | |
7bee4c4c | 16125 | |
1cf3d07d SE |
16126 | *) |
16127 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
16128 | ;; | |
16129 | esac | |
16130 | dynamic_linker='Win32 ld.exe' | |
16131 | # FIXME: first we should search . and the directory the executable is in | |
16132 | shlibpath_var=PATH | |
16133 | ;; | |
5aac1dac | 16134 | |
1cf3d07d SE |
16135 | darwin* | rhapsody*) |
16136 | dynamic_linker="$host_os dyld" | |
16137 | version_type=darwin | |
16138 | need_lib_prefix=no | |
16139 | need_version=no | |
16140 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
16141 | soname_spec='${libname}${release}${major}$shared_ext' | |
16142 | shlibpath_overrides_runpath=yes | |
16143 | shlibpath_var=DYLD_LIBRARY_PATH | |
16144 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ed698112 | 16145 | |
1cf3d07d SE |
16146 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
16147 | ;; | |
5aac1dac | 16148 | |
1cf3d07d SE |
16149 | dgux*) |
16150 | version_type=linux | |
16151 | need_lib_prefix=no | |
16152 | need_version=no | |
16153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
16154 | soname_spec='${libname}${release}${shared_ext}$major' | |
16155 | shlibpath_var=LD_LIBRARY_PATH | |
16156 | ;; | |
16157 | ||
16158 | freebsd1*) | |
16159 | dynamic_linker=no | |
16160 | ;; | |
16161 | ||
16162 | freebsd* | dragonfly*) | |
16163 | # DragonFly does not have aout. When/if they implement a new | |
16164 | # versioning mechanism, adjust this. | |
16165 | if test -x /usr/bin/objformat; then | |
16166 | objformat=`/usr/bin/objformat` | |
16167 | else | |
16168 | case $host_os in | |
16169 | freebsd[123]*) objformat=aout ;; | |
16170 | *) objformat=elf ;; | |
16171 | esac | |
16172 | fi | |
16173 | version_type=freebsd-$objformat | |
16174 | case $version_type in | |
16175 | freebsd-elf*) | |
16176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16177 | need_version=no | |
16178 | need_lib_prefix=no | |
16179 | ;; | |
16180 | freebsd-*) | |
16181 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
16182 | need_version=yes | |
16183 | ;; | |
16184 | esac | |
16185 | shlibpath_var=LD_LIBRARY_PATH | |
16186 | case $host_os in | |
16187 | freebsd2*) | |
16188 | shlibpath_overrides_runpath=yes | |
16189 | ;; | |
16190 | freebsd3.[01]* | freebsdelf3.[01]*) | |
16191 | shlibpath_overrides_runpath=yes | |
16192 | hardcode_into_libs=yes | |
16193 | ;; | |
16194 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
16195 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
16196 | shlibpath_overrides_runpath=no | |
16197 | hardcode_into_libs=yes | |
16198 | ;; | |
16199 | *) # from 4.6 on, and DragonFly | |
16200 | shlibpath_overrides_runpath=yes | |
16201 | hardcode_into_libs=yes | |
16202 | ;; | |
16203 | esac | |
16204 | ;; | |
16205 | ||
16206 | gnu*) | |
16207 | version_type=linux | |
16208 | need_lib_prefix=no | |
16209 | need_version=no | |
16210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
16211 | soname_spec='${libname}${release}${shared_ext}$major' | |
16212 | shlibpath_var=LD_LIBRARY_PATH | |
16213 | hardcode_into_libs=yes | |
16214 | ;; | |
16215 | ||
43e02a8a RW |
16216 | haiku*) |
16217 | version_type=linux | |
16218 | need_lib_prefix=no | |
16219 | need_version=no | |
16220 | dynamic_linker="$host_os runtime_loader" | |
16221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
16222 | soname_spec='${libname}${release}${shared_ext}$major' | |
16223 | shlibpath_var=LIBRARY_PATH | |
16224 | shlibpath_overrides_runpath=yes | |
16225 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
16226 | hardcode_into_libs=yes | |
16227 | ;; | |
16228 | ||
1cf3d07d SE |
16229 | hpux9* | hpux10* | hpux11*) |
16230 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
16231 | # link against other versions. | |
16232 | version_type=sunos | |
16233 | need_lib_prefix=no | |
16234 | need_version=no | |
16235 | case $host_cpu in | |
16236 | ia64*) | |
16237 | shrext_cmds='.so' | |
16238 | hardcode_into_libs=yes | |
16239 | dynamic_linker="$host_os dld.so" | |
16240 | shlibpath_var=LD_LIBRARY_PATH | |
16241 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16243 | soname_spec='${libname}${release}${shared_ext}$major' | |
16244 | if test "X$HPUX_IA64_MODE" = X32; then | |
16245 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
16246 | else | |
16247 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
16248 | fi | |
16249 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16250 | ;; | |
16251 | hppa*64*) | |
16252 | shrext_cmds='.sl' | |
16253 | hardcode_into_libs=yes | |
16254 | dynamic_linker="$host_os dld.sl" | |
16255 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
16256 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16258 | soname_spec='${libname}${release}${shared_ext}$major' | |
16259 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
16260 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16261 | ;; | |
16262 | *) | |
16263 | shrext_cmds='.sl' | |
16264 | dynamic_linker="$host_os dld.sl" | |
16265 | shlibpath_var=SHLIB_PATH | |
16266 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
16267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16268 | soname_spec='${libname}${release}${shared_ext}$major' | |
16269 | ;; | |
16270 | esac | |
43e02a8a | 16271 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
1cf3d07d | 16272 | postinstall_cmds='chmod 555 $lib' |
43e02a8a RW |
16273 | # or fails outright, so override atomically: |
16274 | install_override_mode=555 | |
1cf3d07d SE |
16275 | ;; |
16276 | ||
16277 | interix[3-9]*) | |
16278 | version_type=linux | |
16279 | need_lib_prefix=no | |
16280 | need_version=no | |
16281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
16282 | soname_spec='${libname}${release}${shared_ext}$major' | |
16283 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
16284 | shlibpath_var=LD_LIBRARY_PATH | |
16285 | shlibpath_overrides_runpath=no | |
16286 | hardcode_into_libs=yes | |
16287 | ;; | |
16288 | ||
16289 | irix5* | irix6* | nonstopux*) | |
16290 | case $host_os in | |
16291 | nonstopux*) version_type=nonstopux ;; | |
16292 | *) | |
16293 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
16294 | version_type=linux | |
16295 | else | |
16296 | version_type=irix | |
16297 | fi ;; | |
16298 | esac | |
16299 | need_lib_prefix=no | |
16300 | need_version=no | |
16301 | soname_spec='${libname}${release}${shared_ext}$major' | |
16302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16303 | case $host_os in | |
16304 | irix5* | nonstopux*) | |
16305 | libsuff= shlibsuff= | |
16306 | ;; | |
16307 | *) | |
16308 | case $LD in # libtool.m4 will add one of these switches to LD | |
16309 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
16310 | libsuff= shlibsuff= libmagic=32-bit;; | |
16311 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
16312 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
16313 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
16314 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
16315 | *) libsuff= shlibsuff= libmagic=never-match;; | |
16316 | esac | |
16317 | ;; | |
16318 | esac | |
16319 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
16320 | shlibpath_overrides_runpath=no | |
16321 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
16322 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
16323 | hardcode_into_libs=yes | |
16324 | ;; | |
16325 | ||
16326 | # No shared lib support for Linux oldld, aout, or coff. | |
16327 | linux*oldld* | linux*aout* | linux*coff*) | |
16328 | dynamic_linker=no | |
16329 | ;; | |
16330 | ||
16331 | # This must be Linux ELF. | |
7a9d3fe8 | 16332 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
16333 | version_type=linux |
16334 | need_lib_prefix=no | |
16335 | need_version=no | |
16336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16337 | soname_spec='${libname}${release}${shared_ext}$major' | |
16338 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
16339 | shlibpath_var=LD_LIBRARY_PATH | |
16340 | shlibpath_overrides_runpath=no | |
baafc534 | 16341 | |
1cf3d07d | 16342 | # Some binutils ld are patched to set DT_RUNPATH |
5213506e RW |
16343 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
16344 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
16345 | else |
16346 | lt_cv_shlibpath_overrides_runpath=no | |
16347 | save_LDFLAGS=$LDFLAGS | |
16348 | save_libdir=$libdir | |
16349 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
16350 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
16351 | if test x$gcc_no_link = xyes; then | |
5213506e | 16352 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ee9dd372 | 16353 | fi |
5213506e | 16354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ed698112 | 16355 | /* end confdefs.h. */ |
5aac1dac | 16356 | |
ed698112 NN |
16357 | int |
16358 | main () | |
16359 | { | |
1cf3d07d | 16360 | |
ed698112 NN |
16361 | ; |
16362 | return 0; | |
16363 | } | |
16364 | _ACEOF | |
5213506e RW |
16365 | if ac_fn_cxx_try_link "$LINENO"; then : |
16366 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
baafc534 | 16367 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d | 16368 | fi |
ed698112 | 16369 | fi |
5213506e RW |
16370 | rm -f core conftest.err conftest.$ac_objext \ |
16371 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
16372 | LDFLAGS=$save_LDFLAGS |
16373 | libdir=$save_libdir | |
16374 | ||
16375 | fi | |
16376 | ||
16377 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
ed698112 | 16378 | |
1cf3d07d SE |
16379 | # This implies no fast_install, which is unacceptable. |
16380 | # Some rework will be needed to allow for fast_install | |
16381 | # before this can be enabled. | |
16382 | hardcode_into_libs=yes | |
5aac1dac | 16383 | |
1cf3d07d SE |
16384 | # Append ld.so.conf contents to the search path |
16385 | if test -f /etc/ld.so.conf; then | |
43e02a8a | 16386 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
16387 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
16388 | fi | |
5aac1dac | 16389 | |
1cf3d07d SE |
16390 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
16391 | # powerpc, because MkLinux only supported shared libraries with the | |
16392 | # GNU dynamic linker. Since this was broken with cross compilers, | |
16393 | # most powerpc-linux boxes support dynamic linking these days and | |
16394 | # people can always --disable-shared, the test was removed, and we | |
16395 | # assume the GNU/Linux dynamic linker is in use. | |
16396 | dynamic_linker='GNU/Linux ld.so' | |
16397 | ;; | |
ed698112 | 16398 | |
1cf3d07d SE |
16399 | netbsd*) |
16400 | version_type=sunos | |
16401 | need_lib_prefix=no | |
16402 | need_version=no | |
16403 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
16404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
16405 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16406 | dynamic_linker='NetBSD (a.out) ld.so' | |
16407 | else | |
16408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
16409 | soname_spec='${libname}${release}${shared_ext}$major' | |
16410 | dynamic_linker='NetBSD ld.elf_so' | |
16411 | fi | |
16412 | shlibpath_var=LD_LIBRARY_PATH | |
16413 | shlibpath_overrides_runpath=yes | |
16414 | hardcode_into_libs=yes | |
16415 | ;; | |
5aac1dac | 16416 | |
1cf3d07d SE |
16417 | newsos6) |
16418 | version_type=linux | |
16419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16420 | shlibpath_var=LD_LIBRARY_PATH | |
16421 | shlibpath_overrides_runpath=yes | |
16422 | ;; | |
ed698112 | 16423 | |
1cf3d07d SE |
16424 | *nto* | *qnx*) |
16425 | version_type=qnx | |
16426 | need_lib_prefix=no | |
16427 | need_version=no | |
16428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16429 | soname_spec='${libname}${release}${shared_ext}$major' | |
16430 | shlibpath_var=LD_LIBRARY_PATH | |
16431 | shlibpath_overrides_runpath=no | |
16432 | hardcode_into_libs=yes | |
16433 | dynamic_linker='ldqnx.so' | |
16434 | ;; | |
04942eac | 16435 | |
1cf3d07d SE |
16436 | openbsd*) |
16437 | version_type=sunos | |
16438 | sys_lib_dlsearch_path_spec="/usr/lib" | |
16439 | need_lib_prefix=no | |
16440 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
16441 | case $host_os in | |
16442 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
16443 | *) need_version=no ;; | |
16444 | esac | |
16445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
16446 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16447 | shlibpath_var=LD_LIBRARY_PATH | |
16448 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16449 | case $host_os in | |
16450 | openbsd2.[89] | openbsd2.[89].*) | |
16451 | shlibpath_overrides_runpath=no | |
16452 | ;; | |
16453 | *) | |
16454 | shlibpath_overrides_runpath=yes | |
16455 | ;; | |
16456 | esac | |
16457 | else | |
16458 | shlibpath_overrides_runpath=yes | |
16459 | fi | |
16460 | ;; | |
ed698112 | 16461 | |
1cf3d07d SE |
16462 | os2*) |
16463 | libname_spec='$name' | |
16464 | shrext_cmds=".dll" | |
16465 | need_lib_prefix=no | |
16466 | library_names_spec='$libname${shared_ext} $libname.a' | |
16467 | dynamic_linker='OS/2 ld.exe' | |
16468 | shlibpath_var=LIBPATH | |
16469 | ;; | |
ed698112 | 16470 | |
1cf3d07d SE |
16471 | osf3* | osf4* | osf5*) |
16472 | version_type=osf | |
16473 | need_lib_prefix=no | |
16474 | need_version=no | |
16475 | soname_spec='${libname}${release}${shared_ext}$major' | |
16476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16477 | shlibpath_var=LD_LIBRARY_PATH | |
16478 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
16479 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
16480 | ;; | |
5aac1dac | 16481 | |
1cf3d07d SE |
16482 | rdos*) |
16483 | dynamic_linker=no | |
16484 | ;; | |
5aac1dac | 16485 | |
1cf3d07d SE |
16486 | solaris*) |
16487 | version_type=linux | |
16488 | need_lib_prefix=no | |
16489 | need_version=no | |
16490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16491 | soname_spec='${libname}${release}${shared_ext}$major' | |
16492 | shlibpath_var=LD_LIBRARY_PATH | |
16493 | shlibpath_overrides_runpath=yes | |
16494 | hardcode_into_libs=yes | |
16495 | # ldd complains unless libraries are executable | |
16496 | postinstall_cmds='chmod +x $lib' | |
16497 | ;; | |
5aac1dac | 16498 | |
1cf3d07d SE |
16499 | sunos4*) |
16500 | version_type=sunos | |
16501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
16502 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
16503 | shlibpath_var=LD_LIBRARY_PATH | |
16504 | shlibpath_overrides_runpath=yes | |
16505 | if test "$with_gnu_ld" = yes; then | |
16506 | need_lib_prefix=no | |
16507 | fi | |
16508 | need_version=yes | |
16509 | ;; | |
ed698112 | 16510 | |
1cf3d07d SE |
16511 | sysv4 | sysv4.3*) |
16512 | version_type=linux | |
16513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16514 | soname_spec='${libname}${release}${shared_ext}$major' | |
16515 | shlibpath_var=LD_LIBRARY_PATH | |
16516 | case $host_vendor in | |
16517 | sni) | |
16518 | shlibpath_overrides_runpath=no | |
16519 | need_lib_prefix=no | |
16520 | runpath_var=LD_RUN_PATH | |
16521 | ;; | |
16522 | siemens) | |
16523 | need_lib_prefix=no | |
16524 | ;; | |
16525 | motorola) | |
16526 | need_lib_prefix=no | |
16527 | need_version=no | |
16528 | shlibpath_overrides_runpath=no | |
16529 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16530 | ;; | |
16531 | esac | |
16532 | ;; | |
5aac1dac | 16533 | |
1cf3d07d SE |
16534 | sysv4*MP*) |
16535 | if test -d /usr/nec ;then | |
16536 | version_type=linux | |
16537 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
16538 | soname_spec='$libname${shared_ext}.$major' | |
16539 | shlibpath_var=LD_LIBRARY_PATH | |
16540 | fi | |
16541 | ;; | |
ed698112 | 16542 | |
1cf3d07d SE |
16543 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
16544 | version_type=freebsd-elf | |
16545 | need_lib_prefix=no | |
16546 | need_version=no | |
16547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
16548 | soname_spec='${libname}${release}${shared_ext}$major' | |
16549 | shlibpath_var=LD_LIBRARY_PATH | |
16550 | shlibpath_overrides_runpath=yes | |
16551 | hardcode_into_libs=yes | |
16552 | if test "$with_gnu_ld" = yes; then | |
16553 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
16554 | else | |
16555 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
16556 | case $host_os in | |
16557 | sco3.2v5*) | |
16558 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
16559 | ;; | |
16560 | esac | |
16561 | fi | |
16562 | sys_lib_dlsearch_path_spec='/usr/lib' | |
16563 | ;; | |
ed698112 | 16564 | |
1cf3d07d SE |
16565 | tpf*) |
16566 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
16567 | version_type=linux | |
16568 | need_lib_prefix=no | |
16569 | need_version=no | |
0da7a284 | 16570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
16571 | shlibpath_var=LD_LIBRARY_PATH |
16572 | shlibpath_overrides_runpath=no | |
16573 | hardcode_into_libs=yes | |
16574 | ;; | |
4048d336 | 16575 | |
1cf3d07d SE |
16576 | uts4*) |
16577 | version_type=linux | |
16578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
16579 | soname_spec='${libname}${release}${shared_ext}$major' | |
16580 | shlibpath_var=LD_LIBRARY_PATH | |
16581 | ;; | |
4048d336 | 16582 | |
1cf3d07d SE |
16583 | *) |
16584 | dynamic_linker=no | |
16585 | ;; | |
16586 | esac | |
5213506e RW |
16587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
16588 | $as_echo "$dynamic_linker" >&6; } | |
1cf3d07d | 16589 | test "$dynamic_linker" = no && can_build_shared=no |
4048d336 | 16590 | |
1cf3d07d SE |
16591 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
16592 | if test "$GCC" = yes; then | |
16593 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
ed698112 | 16594 | fi |
ee9dd372 | 16595 | |
0da7a284 PG |
16596 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
16597 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
16598 | fi | |
16599 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
16600 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
16601 | fi | |
16602 | ||
ed698112 | 16603 | |
ed698112 | 16604 | |
a3e174ea | 16605 | |
5aac1dac | 16606 | |
ed698112 | 16607 | |
5aac1dac | 16608 | |
ed698112 | 16609 | |
ade710a5 | 16610 | |
a3e174ea | 16611 | |
29e531ff | 16612 | |
5aac1dac | 16613 | |
5aac1dac | 16614 | |
5aac1dac | 16615 | |
5aac1dac | 16616 | |
ed698112 NN |
16617 | |
16618 | ||
a3e174ea | 16619 | |
a3e174ea | 16620 | |
a3e174ea | 16621 | |
ed698112 NN |
16622 | |
16623 | ||
16624 | ||
ccfe7e46 | 16625 | |
ed698112 | 16626 | |
ade710a5 | 16627 | |
5aac1dac | 16628 | |
29e531ff | 16629 | |
1e567c43 | 16630 | |
1e567c43 | 16631 | |
1e567c43 | 16632 | |
1e567c43 | 16633 | |
ed698112 | 16634 | |
43e02a8a RW |
16635 | |
16636 | ||
ed698112 | 16637 | |
1e567c43 | 16638 | |
1cf3d07d | 16639 | |
5213506e RW |
16640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
16641 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
16642 | hardcode_action_CXX= |
16643 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
16644 | test -n "$runpath_var_CXX" || | |
16645 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
16646 | ||
16647 | # We can hardcode non-existent directories. | |
16648 | if test "$hardcode_direct_CXX" != no && | |
16649 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
16650 | # have to relink, otherwise we might link with an installed library | |
16651 | # when we should be linking with a yet-to-be-installed one | |
16652 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
16653 | test "$hardcode_minus_L_CXX" != no; then | |
16654 | # Linking always hardcodes the temporary library directory. | |
16655 | hardcode_action_CXX=relink | |
1e567c43 | 16656 | else |
1cf3d07d SE |
16657 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
16658 | hardcode_action_CXX=immediate | |
1e567c43 | 16659 | fi |
1cf3d07d SE |
16660 | else |
16661 | # We cannot hardcode anything, or else we can only hardcode existing | |
16662 | # directories. | |
16663 | hardcode_action_CXX=unsupported | |
16664 | fi | |
5213506e RW |
16665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
16666 | $as_echo "$hardcode_action_CXX" >&6; } | |
1e567c43 | 16667 | |
1cf3d07d SE |
16668 | if test "$hardcode_action_CXX" = relink || |
16669 | test "$inherit_rpath_CXX" = yes; then | |
16670 | # Fast installation is not supported | |
16671 | enable_fast_install=no | |
16672 | elif test "$shlibpath_overrides_runpath" = yes || | |
16673 | test "$enable_shared" = no; then | |
16674 | # Fast installation is not necessary | |
16675 | enable_fast_install=needless | |
16676 | fi | |
1e567c43 | 16677 | |
ed698112 NN |
16678 | |
16679 | ||
16680 | ||
1e567c43 | 16681 | |
1cf3d07d SE |
16682 | |
16683 | ||
16684 | fi # test -n "$compiler" | |
16685 | ||
16686 | CC=$lt_save_CC | |
16687 | LDCXX=$LD | |
16688 | LD=$lt_save_LD | |
16689 | GCC=$lt_save_GCC | |
16690 | with_gnu_ld=$lt_save_with_gnu_ld | |
16691 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
16692 | lt_cv_path_LD=$lt_save_path_LD | |
16693 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
16694 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
16695 | fi # test "$_lt_caught_CXX_error" != yes | |
16696 | ||
16697 | ac_ext=c | |
16698 | ac_cpp='$CPP $CPPFLAGS' | |
16699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16702 | ||
16703 | ||
16704 | ||
16705 | ||
16706 | ||
16707 | ||
16708 | ||
16709 | ||
16710 | ||
16711 | ||
16712 | ||
16713 | ||
16714 | ||
5213506e | 16715 | ac_config_commands="$ac_config_commands libtool" |
1cf3d07d SE |
16716 | |
16717 | ||
16718 | ||
16719 | ||
16720 | # Only expand once: | |
16721 | ||
16722 | ||
16723 | ||
4d9e8446 RW |
16724 | if test -n "$ac_tool_prefix"; then |
16725 | for ac_prog in gcj | |
16726 | do | |
16727 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
16728 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
16729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16730 | $as_echo_n "checking for $ac_word... " >&6; } | |
16731 | if test "${ac_cv_prog_GCJ+set}" = set; then : | |
16732 | $as_echo_n "(cached) " >&6 | |
1e567c43 | 16733 | else |
1cf3d07d SE |
16734 | if test -n "$GCJ"; then |
16735 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test. | |
16736 | else | |
16737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
ed698112 NN |
16738 | for as_dir in $PATH |
16739 | do | |
16740 | IFS=$as_save_IFS | |
16741 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
16742 | for ac_exec_ext in '' $ac_executable_extensions; do |
16743 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4d9e8446 | 16744 | ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog" |
5213506e | 16745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
16746 | break 2 |
16747 | fi | |
16748 | done | |
5213506e RW |
16749 | done |
16750 | IFS=$as_save_IFS | |
ed698112 | 16751 | |
1e567c43 | 16752 | fi |
1cf3d07d SE |
16753 | fi |
16754 | GCJ=$ac_cv_prog_GCJ | |
16755 | if test -n "$GCJ"; then | |
5213506e RW |
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5 |
16757 | $as_echo "$GCJ" >&6; } | |
1e567c43 | 16758 | else |
5213506e RW |
16759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16760 | $as_echo "no" >&6; } | |
1e567c43 TF |
16761 | fi |
16762 | ||
5213506e | 16763 | |
4d9e8446 RW |
16764 | test -n "$GCJ" && break |
16765 | done | |
16766 | fi | |
16767 | if test -z "$GCJ"; then | |
16768 | ac_ct_GCJ=$GCJ | |
16769 | for ac_prog in gcj | |
16770 | do | |
16771 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16772 | set dummy $ac_prog; ac_word=$2 | |
16773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16774 | $as_echo_n "checking for $ac_word... " >&6; } | |
16775 | if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then : | |
16776 | $as_echo_n "(cached) " >&6 | |
16777 | else | |
16778 | if test -n "$ac_ct_GCJ"; then | |
16779 | ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. | |
16780 | else | |
16781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16782 | for as_dir in $PATH | |
16783 | do | |
16784 | IFS=$as_save_IFS | |
16785 | test -z "$as_dir" && as_dir=. | |
16786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16788 | ac_cv_prog_ac_ct_GCJ="$ac_prog" | |
16789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16790 | break 2 | |
16791 | fi | |
16792 | done | |
16793 | done | |
16794 | IFS=$as_save_IFS | |
16795 | ||
16796 | fi | |
16797 | fi | |
16798 | ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ | |
16799 | if test -n "$ac_ct_GCJ"; then | |
16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5 | |
16801 | $as_echo "$ac_ct_GCJ" >&6; } | |
16802 | else | |
16803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16804 | $as_echo "no" >&6; } | |
16805 | fi | |
16806 | ||
16807 | ||
16808 | test -n "$ac_ct_GCJ" && break | |
1cf3d07d | 16809 | done |
4d9e8446 RW |
16810 | |
16811 | if test "x$ac_ct_GCJ" = x; then | |
16812 | GCJ="gcj" | |
16813 | else | |
16814 | case $cross_compiling:$ac_tool_warned in | |
16815 | yes:) | |
16816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16817 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16818 | ac_tool_warned=yes ;; | |
16819 | esac | |
16820 | GCJ=$ac_ct_GCJ | |
16821 | fi | |
16822 | fi | |
5aac1dac | 16823 | |
5213506e | 16824 | test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5 |
1cf3d07d SE |
16825 | if test "x${GCJFLAGS-unset}" = xunset; then |
16826 | GCJFLAGS="-g -O2" | |
16827 | fi | |
ed698112 NN |
16828 | |
16829 | ||
1cf3d07d | 16830 | depcc="$GCJ" am_compiler_list='gcc3 gcc' |
3f8dfdd4 | 16831 | |
5213506e RW |
16832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
16833 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
16834 | if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then : | |
16835 | $as_echo_n "(cached) " >&6 | |
3f8dfdd4 | 16836 | else |
1cf3d07d SE |
16837 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
16838 | # We make a subdir and do the tests there. Otherwise we can end up | |
16839 | # making bogus files that we don't know about and never remove. For | |
16840 | # instance it was reported that on HP-UX the gcc test will end up | |
16841 | # making a dummy file named `D' -- because `-MD' means `put the output | |
16842 | # in D'. | |
16843 | mkdir conftest.dir | |
16844 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
16845 | # using a relative directory. | |
16846 | cp "$am_depcomp" conftest.dir | |
16847 | cd conftest.dir | |
16848 | # We will build objects and dependencies in a subdirectory because | |
16849 | # it helps to detect inapplicable dependency modes. For instance | |
16850 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
16851 | # side effect of compilation, but ICC will put the dependencies in | |
16852 | # the current directory while Tru64 will put them in the object | |
16853 | # directory. | |
16854 | mkdir sub | |
3f8dfdd4 | 16855 | |
1cf3d07d SE |
16856 | am_cv_GCJ_dependencies_compiler_type=none |
16857 | if test "$am_compiler_list" = ""; then | |
16858 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
16859 | fi | |
5213506e RW |
16860 | am__universal=false |
16861 | ||
16862 | ||
1cf3d07d SE |
16863 | for depmode in $am_compiler_list; do |
16864 | # Setup a source with many dependencies, because some compilers | |
16865 | # like to wrap large dependency lists on column 80 (with \), and | |
16866 | # we should not choose a depcomp mode which is confused by this. | |
16867 | # | |
16868 | # We need to recreate these files for each test, as the compiler may | |
16869 | # overwrite some of them when testing with obscure command lines. | |
16870 | # This happens at least with the AIX C compiler. | |
16871 | : > sub/conftest.c | |
16872 | for i in 1 2 3 4 5 6; do | |
16873 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
16874 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
16875 | # Solaris 8's {/usr,}/bin/sh. | |
16876 | touch sub/conftst$i.h | |
16877 | done | |
16878 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3f8dfdd4 | 16879 | |
5213506e RW |
16880 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
16881 | # mode. It turns out that the SunPro C++ compiler does not properly | |
16882 | # handle `-M -o', and we need to detect this. Also, some Intel | |
16883 | # versions had trouble with output in subdirs | |
16884 | am__obj=sub/conftest.${OBJEXT-o} | |
16885 | am__minus_obj="-o $am__obj" | |
1cf3d07d | 16886 | case $depmode in |
5213506e RW |
16887 | gcc) |
16888 | # This depmode causes a compiler race in universal mode. | |
16889 | test "$am__universal" = false || continue | |
16890 | ;; | |
1cf3d07d SE |
16891 | nosideeffect) |
16892 | # after this tag, mechanisms are not by side-effect, so they'll | |
16893 | # only be used when explicitly requested | |
16894 | if test "x$enable_dependency_tracking" = xyes; then | |
16895 | continue | |
16896 | else | |
16897 | break | |
16898 | fi | |
16899 | ;; | |
5213506e RW |
16900 | msvisualcpp | msvcmsys) |
16901 | # This compiler won't grok `-c -o', but also, the minuso test has | |
16902 | # not run yet. These depmodes are late enough in the game, and | |
16903 | # so weak that their functioning should not be impacted. | |
16904 | am__obj=conftest.${OBJEXT-o} | |
16905 | am__minus_obj= | |
16906 | ;; | |
1cf3d07d SE |
16907 | none) break ;; |
16908 | esac | |
1cf3d07d | 16909 | if depmode=$depmode \ |
5213506e | 16910 | source=sub/conftest.c object=$am__obj \ |
1cf3d07d | 16911 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 16912 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
1cf3d07d | 16913 | >/dev/null 2>conftest.err && |
5213506e | 16914 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
1cf3d07d | 16915 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 16916 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
1cf3d07d SE |
16917 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
16918 | # icc doesn't choke on unknown options, it will just issue warnings | |
16919 | # or remarks (even with -Werror). So we grep stderr for any message | |
16920 | # that says an option was ignored or not supported. | |
16921 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
16922 | # icc: Command line warning: ignoring option '-M'; no argument required | |
16923 | # The diagnosis changed in icc 8.0: | |
16924 | # icc: Command line remark: option '-MP' not supported | |
16925 | if (grep 'ignoring option' conftest.err || | |
16926 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
16927 | am_cv_GCJ_dependencies_compiler_type=$depmode | |
16928 | break | |
16929 | fi | |
16930 | fi | |
16931 | done | |
5aac1dac | 16932 | |
1cf3d07d SE |
16933 | cd .. |
16934 | rm -rf conftest.dir | |
5aac1dac | 16935 | else |
1cf3d07d | 16936 | am_cv_GCJ_dependencies_compiler_type=none |
5aac1dac | 16937 | fi |
ed698112 | 16938 | |
5aac1dac | 16939 | fi |
5213506e RW |
16940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5 |
16941 | $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; } | |
1cf3d07d | 16942 | GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type |
ee9dd372 | 16943 | |
5213506e | 16944 | if |
1cf3d07d SE |
16945 | test "x$enable_dependency_tracking" != xno \ |
16946 | && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then | |
16947 | am__fastdepGCJ_TRUE= | |
16948 | am__fastdepGCJ_FALSE='#' | |
16949 | else | |
16950 | am__fastdepGCJ_TRUE='#' | |
16951 | am__fastdepGCJ_FALSE= | |
16952 | fi | |
349e19d4 | 16953 | |
5aac1dac | 16954 | |
5aac1dac | 16955 | |
4d9e8446 RW |
16956 | if test -n "$ac_tool_prefix"; then |
16957 | for ac_prog in gcj | |
16958 | do | |
16959 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
16960 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
16961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16962 | $as_echo_n "checking for $ac_word... " >&6; } | |
16963 | if test "${ac_cv_prog_GCJ+set}" = set; then : | |
16964 | $as_echo_n "(cached) " >&6 | |
5aac1dac TT |
16965 | else |
16966 | if test -n "$GCJ"; then | |
16967 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test. | |
16968 | else | |
ed698112 NN |
16969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
16970 | for as_dir in $PATH | |
16971 | do | |
16972 | IFS=$as_save_IFS | |
16973 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
16974 | for ac_exec_ext in '' $ac_executable_extensions; do |
16975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4d9e8446 | 16976 | ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog" |
5213506e | 16977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ed698112 NN |
16978 | break 2 |
16979 | fi | |
16980 | done | |
5213506e RW |
16981 | done |
16982 | IFS=$as_save_IFS | |
ed698112 | 16983 | |
5aac1dac TT |
16984 | fi |
16985 | fi | |
ed698112 | 16986 | GCJ=$ac_cv_prog_GCJ |
5aac1dac | 16987 | if test -n "$GCJ"; then |
5213506e RW |
16988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5 |
16989 | $as_echo "$GCJ" >&6; } | |
ee9dd372 | 16990 | else |
5213506e RW |
16991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16992 | $as_echo "no" >&6; } | |
5aac1dac | 16993 | fi |
0659e0e3 | 16994 | |
5213506e | 16995 | |
4d9e8446 RW |
16996 | test -n "$GCJ" && break |
16997 | done | |
16998 | fi | |
16999 | if test -z "$GCJ"; then | |
17000 | ac_ct_GCJ=$GCJ | |
17001 | for ac_prog in gcj | |
17002 | do | |
17003 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
17004 | set dummy $ac_prog; ac_word=$2 | |
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17006 | $as_echo_n "checking for $ac_word... " >&6; } | |
17007 | if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then : | |
17008 | $as_echo_n "(cached) " >&6 | |
17009 | else | |
17010 | if test -n "$ac_ct_GCJ"; then | |
17011 | ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. | |
17012 | else | |
17013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17014 | for as_dir in $PATH | |
17015 | do | |
17016 | IFS=$as_save_IFS | |
17017 | test -z "$as_dir" && as_dir=. | |
17018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
17020 | ac_cv_prog_ac_ct_GCJ="$ac_prog" | |
17021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17022 | break 2 | |
17023 | fi | |
1cf3d07d | 17024 | done |
4d9e8446 RW |
17025 | done |
17026 | IFS=$as_save_IFS | |
17027 | ||
17028 | fi | |
17029 | fi | |
17030 | ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ | |
17031 | if test -n "$ac_ct_GCJ"; then | |
17032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5 | |
17033 | $as_echo "$ac_ct_GCJ" >&6; } | |
17034 | else | |
17035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17036 | $as_echo "no" >&6; } | |
17037 | fi | |
17038 | ||
17039 | ||
17040 | test -n "$ac_ct_GCJ" && break | |
17041 | done | |
17042 | ||
17043 | if test "x$ac_ct_GCJ" = x; then | |
17044 | GCJ="gcj" | |
17045 | else | |
17046 | case $cross_compiling:$ac_tool_warned in | |
17047 | yes:) | |
17048 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
17049 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
17050 | ac_tool_warned=yes ;; | |
17051 | esac | |
17052 | GCJ=$ac_ct_GCJ | |
17053 | fi | |
17054 | fi | |
1cf3d07d | 17055 | |
5213506e | 17056 | test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5 |
1cf3d07d SE |
17057 | if test "x${GCJFLAGS-unset}" = xunset; then |
17058 | GCJFLAGS="-g -O2" | |
17059 | fi | |
17060 | ||
17061 | ||
17062 | depcc="$GCJ" am_compiler_list='gcc3 gcc' | |
17063 | ||
5213506e RW |
17064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
17065 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
17066 | if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then : | |
17067 | $as_echo_n "(cached) " >&6 | |
5aac1dac | 17068 | else |
1cf3d07d SE |
17069 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
17070 | # We make a subdir and do the tests there. Otherwise we can end up | |
17071 | # making bogus files that we don't know about and never remove. For | |
17072 | # instance it was reported that on HP-UX the gcc test will end up | |
17073 | # making a dummy file named `D' -- because `-MD' means `put the output | |
17074 | # in D'. | |
17075 | mkdir conftest.dir | |
17076 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
17077 | # using a relative directory. | |
17078 | cp "$am_depcomp" conftest.dir | |
17079 | cd conftest.dir | |
17080 | # We will build objects and dependencies in a subdirectory because | |
17081 | # it helps to detect inapplicable dependency modes. For instance | |
17082 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
17083 | # side effect of compilation, but ICC will put the dependencies in | |
17084 | # the current directory while Tru64 will put them in the object | |
17085 | # directory. | |
17086 | mkdir sub | |
17087 | ||
17088 | am_cv_GCJ_dependencies_compiler_type=none | |
17089 | if test "$am_compiler_list" = ""; then | |
17090 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
ed698112 | 17091 | fi |
5213506e RW |
17092 | am__universal=false |
17093 | ||
17094 | ||
1cf3d07d SE |
17095 | for depmode in $am_compiler_list; do |
17096 | # Setup a source with many dependencies, because some compilers | |
17097 | # like to wrap large dependency lists on column 80 (with \), and | |
17098 | # we should not choose a depcomp mode which is confused by this. | |
17099 | # | |
17100 | # We need to recreate these files for each test, as the compiler may | |
17101 | # overwrite some of them when testing with obscure command lines. | |
17102 | # This happens at least with the AIX C compiler. | |
17103 | : > sub/conftest.c | |
17104 | for i in 1 2 3 4 5 6; do | |
17105 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
17106 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
17107 | # Solaris 8's {/usr,}/bin/sh. | |
17108 | touch sub/conftst$i.h | |
17109 | done | |
17110 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
ed698112 | 17111 | |
5213506e RW |
17112 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
17113 | # mode. It turns out that the SunPro C++ compiler does not properly | |
17114 | # handle `-M -o', and we need to detect this. Also, some Intel | |
17115 | # versions had trouble with output in subdirs | |
17116 | am__obj=sub/conftest.${OBJEXT-o} | |
17117 | am__minus_obj="-o $am__obj" | |
1cf3d07d | 17118 | case $depmode in |
5213506e RW |
17119 | gcc) |
17120 | # This depmode causes a compiler race in universal mode. | |
17121 | test "$am__universal" = false || continue | |
17122 | ;; | |
1cf3d07d SE |
17123 | nosideeffect) |
17124 | # after this tag, mechanisms are not by side-effect, so they'll | |
17125 | # only be used when explicitly requested | |
17126 | if test "x$enable_dependency_tracking" = xyes; then | |
17127 | continue | |
17128 | else | |
17129 | break | |
17130 | fi | |
17131 | ;; | |
5213506e RW |
17132 | msvisualcpp | msvcmsys) |
17133 | # This compiler won't grok `-c -o', but also, the minuso test has | |
17134 | # not run yet. These depmodes are late enough in the game, and | |
17135 | # so weak that their functioning should not be impacted. | |
17136 | am__obj=conftest.${OBJEXT-o} | |
17137 | am__minus_obj= | |
17138 | ;; | |
1cf3d07d SE |
17139 | none) break ;; |
17140 | esac | |
1cf3d07d | 17141 | if depmode=$depmode \ |
5213506e | 17142 | source=sub/conftest.c object=$am__obj \ |
1cf3d07d | 17143 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 17144 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
1cf3d07d | 17145 | >/dev/null 2>conftest.err && |
5213506e | 17146 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
1cf3d07d | 17147 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 17148 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
1cf3d07d SE |
17149 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
17150 | # icc doesn't choke on unknown options, it will just issue warnings | |
17151 | # or remarks (even with -Werror). So we grep stderr for any message | |
17152 | # that says an option was ignored or not supported. | |
17153 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
17154 | # icc: Command line warning: ignoring option '-M'; no argument required | |
17155 | # The diagnosis changed in icc 8.0: | |
17156 | # icc: Command line remark: option '-MP' not supported | |
17157 | if (grep 'ignoring option' conftest.err || | |
17158 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
17159 | am_cv_GCJ_dependencies_compiler_type=$depmode | |
17160 | break | |
17161 | fi | |
17162 | fi | |
17163 | done | |
17164 | ||
17165 | cd .. | |
17166 | rm -rf conftest.dir | |
0659e0e3 | 17167 | else |
1cf3d07d | 17168 | am_cv_GCJ_dependencies_compiler_type=none |
0659e0e3 | 17169 | fi |
5aac1dac | 17170 | |
1cf3d07d | 17171 | fi |
5213506e RW |
17172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5 |
17173 | $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; } | |
1cf3d07d SE |
17174 | GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type |
17175 | ||
5213506e | 17176 | if |
1cf3d07d SE |
17177 | test "x$enable_dependency_tracking" != xno \ |
17178 | && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then | |
17179 | am__fastdepGCJ_TRUE= | |
17180 | am__fastdepGCJ_FALSE='#' | |
02809848 | 17181 | else |
1cf3d07d SE |
17182 | am__fastdepGCJ_TRUE='#' |
17183 | am__fastdepGCJ_FALSE= | |
ee9dd372 | 17184 | fi |
ee9dd372 | 17185 | |
ed698112 | 17186 | |
5aac1dac TT |
17187 | |
17188 | ||
5aac1dac | 17189 | |
1cf3d07d | 17190 | # Source file extension for Java test sources. |
eecb7461 | 17191 | ac_ext=c |
5aac1dac | 17192 | |
1cf3d07d SE |
17193 | # Object file extension for compiled Java test sources. |
17194 | objext=o | |
17195 | objext_GCJ=$objext | |
17196 | ||
17197 | # Code to be used in simple compile tests | |
eecb7461 | 17198 | lt_simple_compile_test_code="int some_variable = 0;" |
1cf3d07d SE |
17199 | |
17200 | # Code to be used in simple link tests | |
eecb7461 | 17201 | lt_simple_link_test_code='int main(){return(0);}' |
1cf3d07d SE |
17202 | |
17203 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
17204 | ||
17205 | ||
17206 | ||
17207 | ||
17208 | ||
17209 | ||
17210 | # If no C compiler was specified, use CC. | |
17211 | LTCC=${LTCC-"$CC"} | |
17212 | ||
17213 | # If no C compiler flags were specified, use CFLAGS. | |
17214 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
17215 | ||
17216 | # Allow CC to be a program name with arguments. | |
17217 | compiler=$CC | |
17218 | ||
17219 | ||
17220 | # save warnings/boilerplate of simple test code | |
17221 | ac_outfile=conftest.$ac_objext | |
17222 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
17223 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
17224 | _lt_compiler_boilerplate=`cat conftest.err` | |
17225 | $RM conftest* | |
17226 | ||
17227 | ac_outfile=conftest.$ac_objext | |
17228 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
17229 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
17230 | _lt_linker_boilerplate=`cat conftest.err` | |
0da7a284 | 17231 | $RM -r conftest* |
1cf3d07d SE |
17232 | |
17233 | ||
17234 | # Allow CC to be a program name with arguments. | |
0da7a284 | 17235 | GCC=yes |
1cf3d07d SE |
17236 | compiler=$CC |
17237 | compiler_GCJ=$CC | |
17238 | for cc_temp in $compiler""; do | |
17239 | case $cc_temp in | |
17240 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
17241 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
17242 | \-*) ;; | |
17243 | *) break;; | |
17244 | esac | |
17245 | done | |
43e02a8a | 17246 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
1cf3d07d SE |
17247 | |
17248 | ||
17249 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
17250 | archive_cmds_need_lc_GCJ=no | |
17251 | ||
17252 | old_archive_cmds_GCJ=$old_archive_cmds | |
17253 | ||
17254 | ## CAVEAT EMPTOR: | |
17255 | ## There is no encapsulation within the following macros, do not change | |
17256 | ## the running order or otherwise move them around unless you know exactly | |
17257 | ## what you are doing... | |
17258 | if test -n "$compiler"; then | |
17259 | ||
17260 | lt_prog_compiler_no_builtin_flag_GCJ= | |
17261 | ||
17262 | if test "$GCC" = yes; then | |
43e02a8a RW |
17263 | case $cc_basename in |
17264 | nvcc*) | |
17265 | lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;; | |
17266 | *) | |
17267 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;; | |
17268 | esac | |
1cf3d07d | 17269 | |
5213506e RW |
17270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
17271 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
17272 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
17273 | $as_echo_n "(cached) " >&6 | |
8107bc83 | 17274 | else |
1cf3d07d SE |
17275 | lt_cv_prog_compiler_rtti_exceptions=no |
17276 | ac_outfile=conftest.$ac_objext | |
17277 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17278 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
17279 | # Insert the option either (1) after the last *FLAGS variable, or | |
17280 | # (2) before a word containing "conftest.", or (3) at the end. | |
17281 | # Note that $ac_compile itself does not contain backslashes and begins | |
17282 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17283 | # The option is referenced via a variable to avoid confusing sed. | |
17284 | lt_compile=`echo "$ac_compile" | $SED \ | |
17285 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17286 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17287 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 17288 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
17289 | (eval "$lt_compile" 2>conftest.err) |
17290 | ac_status=$? | |
17291 | cat conftest.err >&5 | |
43e02a8a | 17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
17293 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17294 | # The compiler can only warn and ignore the option if not recognized | |
17295 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 17296 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
17297 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
17298 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
17299 | lt_cv_prog_compiler_rtti_exceptions=yes | |
17300 | fi | |
17301 | fi | |
17302 | $RM conftest* | |
8107bc83 | 17303 | |
8107bc83 | 17304 | fi |
5213506e RW |
17305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
17306 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8107bc83 | 17307 | |
1cf3d07d SE |
17308 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
17309 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
ee9dd372 | 17310 | else |
1cf3d07d SE |
17311 | : |
17312 | fi | |
5aac1dac | 17313 | |
1cf3d07d | 17314 | fi |
5aac1dac | 17315 | |
8107bc83 | 17316 | |
8107bc83 | 17317 | |
1cf3d07d SE |
17318 | lt_prog_compiler_wl_GCJ= |
17319 | lt_prog_compiler_pic_GCJ= | |
17320 | lt_prog_compiler_static_GCJ= | |
8107bc83 | 17321 | |
5213506e RW |
17322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
17323 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8107bc83 | 17324 | |
1cf3d07d SE |
17325 | if test "$GCC" = yes; then |
17326 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17327 | lt_prog_compiler_static_GCJ='-static' | |
ed698112 | 17328 | |
1cf3d07d SE |
17329 | case $host_os in |
17330 | aix*) | |
17331 | # All AIX code is PIC. | |
17332 | if test "$host_cpu" = ia64; then | |
17333 | # AIX 5 now supports IA64 processor | |
17334 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17335 | fi | |
17336 | ;; | |
8107bc83 | 17337 | |
1cf3d07d | 17338 | amigaos*) |
0da7a284 PG |
17339 | case $host_cpu in |
17340 | powerpc) | |
17341 | # see comment about AmigaOS4 .so support | |
17342 | lt_prog_compiler_pic_GCJ='-fPIC' | |
17343 | ;; | |
17344 | m68k) | |
17345 | # FIXME: we need at least 68020 code to build shared libraries, but | |
17346 | # adding the `-m68020' flag to GCC prevents building anything better, | |
17347 | # like `-m68040'. | |
17348 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
17349 | ;; | |
17350 | esac | |
1cf3d07d | 17351 | ;; |
5aac1dac | 17352 | |
1cf3d07d SE |
17353 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
17354 | # PIC is the default for these OSes. | |
17355 | ;; | |
8107bc83 | 17356 | |
0da7a284 | 17357 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
17358 | # This hack is so that the source file can tell whether it is being |
17359 | # built for inclusion in a dll (and should export symbols for example). | |
17360 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
17361 | # (--disable-auto-import) libraries | |
bb44c9d2 | 17362 | |
1cf3d07d | 17363 | ;; |
8107bc83 | 17364 | |
1cf3d07d SE |
17365 | darwin* | rhapsody*) |
17366 | # PIC is the default on this platform | |
17367 | # Common symbols not allowed in MH_DYLIB files | |
17368 | lt_prog_compiler_pic_GCJ='-fno-common' | |
17369 | ;; | |
17370 | ||
43e02a8a RW |
17371 | haiku*) |
17372 | # PIC is the default for Haiku. | |
17373 | # The "-static" flag exists, but is broken. | |
17374 | lt_prog_compiler_static_GCJ= | |
17375 | ;; | |
17376 | ||
1cf3d07d | 17377 | hpux*) |
0da7a284 PG |
17378 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
17379 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
17380 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 17381 | case $host_cpu in |
0da7a284 | 17382 | hppa*64*) |
1cf3d07d SE |
17383 | # +Z the default |
17384 | ;; | |
17385 | *) | |
17386 | lt_prog_compiler_pic_GCJ='-fPIC' | |
17387 | ;; | |
17388 | esac | |
17389 | ;; | |
17390 | ||
17391 | interix[3-9]*) | |
17392 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
17393 | # Instead, we relocate shared libraries at runtime. | |
17394 | ;; | |
17395 | ||
17396 | msdosdjgpp*) | |
17397 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
17398 | # on systems that don't support them. | |
17399 | lt_prog_compiler_can_build_shared_GCJ=no | |
17400 | enable_shared=no | |
17401 | ;; | |
17402 | ||
17403 | *nto* | *qnx*) | |
17404 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
17405 | # it will coredump. | |
17406 | lt_prog_compiler_pic_GCJ='-fPIC -shared' | |
17407 | ;; | |
17408 | ||
17409 | sysv4*MP*) | |
17410 | if test -d /usr/nec; then | |
17411 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
17412 | fi | |
17413 | ;; | |
17414 | ||
17415 | *) | |
17416 | lt_prog_compiler_pic_GCJ='-fPIC' | |
17417 | ;; | |
17418 | esac | |
43e02a8a RW |
17419 | |
17420 | case $cc_basename in | |
17421 | nvcc*) # Cuda Compiler Driver 2.2 | |
17422 | lt_prog_compiler_wl_GCJ='-Xlinker ' | |
17423 | lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC' | |
17424 | ;; | |
17425 | esac | |
8107bc83 | 17426 | else |
1cf3d07d SE |
17427 | # PORTME Check for flag to pass linker flags through the system compiler. |
17428 | case $host_os in | |
17429 | aix*) | |
17430 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17431 | if test "$host_cpu" = ia64; then | |
17432 | # AIX 5 now supports IA64 processor | |
17433 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17434 | else | |
17435 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
17436 | fi | |
17437 | ;; | |
8107bc83 | 17438 | |
0da7a284 | 17439 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
17440 | # This hack is so that the source file can tell whether it is being |
17441 | # built for inclusion in a dll (and should export symbols for example). | |
bb44c9d2 | 17442 | |
1cf3d07d SE |
17443 | ;; |
17444 | ||
17445 | hpux9* | hpux10* | hpux11*) | |
17446 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17447 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
17448 | # not for PA HP-UX. | |
17449 | case $host_cpu in | |
17450 | hppa*64*|ia64*) | |
17451 | # +Z the default | |
17452 | ;; | |
17453 | *) | |
17454 | lt_prog_compiler_pic_GCJ='+Z' | |
17455 | ;; | |
17456 | esac | |
17457 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
17458 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
17459 | ;; | |
17460 | ||
17461 | irix5* | irix6* | nonstopux*) | |
17462 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17463 | # PIC (with -KPIC) is the default. | |
17464 | lt_prog_compiler_static_GCJ='-non_shared' | |
17465 | ;; | |
17466 | ||
7a9d3fe8 | 17467 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d | 17468 | case $cc_basename in |
0da7a284 PG |
17469 | # old Intel for x86_64 which still supported -KPIC. |
17470 | ecc*) | |
1cf3d07d SE |
17471 | lt_prog_compiler_wl_GCJ='-Wl,' |
17472 | lt_prog_compiler_pic_GCJ='-KPIC' | |
17473 | lt_prog_compiler_static_GCJ='-static' | |
17474 | ;; | |
0da7a284 PG |
17475 | # icc used to be incompatible with GCC. |
17476 | # ICC 10 doesn't accept -KPIC any more. | |
17477 | icc* | ifort*) | |
17478 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17479 | lt_prog_compiler_pic_GCJ='-fPIC' | |
17480 | lt_prog_compiler_static_GCJ='-static' | |
17481 | ;; | |
17482 | # Lahey Fortran 8.1. | |
17483 | lf95*) | |
17484 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17485 | lt_prog_compiler_pic_GCJ='--shared' | |
17486 | lt_prog_compiler_static_GCJ='--static' | |
17487 | ;; | |
43e02a8a | 17488 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
1cf3d07d SE |
17489 | # Portland Group compilers (*not* the Pentium gcc compiler, |
17490 | # which looks to be a dead project) | |
17491 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17492 | lt_prog_compiler_pic_GCJ='-fpic' | |
17493 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17494 | ;; | |
17495 | ccc*) | |
17496 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17497 | # All Alpha code is PIC. | |
17498 | lt_prog_compiler_static_GCJ='-non_shared' | |
17499 | ;; | |
43e02a8a RW |
17500 | xl* | bgxl* | bgf* | mpixl*) |
17501 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
0da7a284 PG |
17502 | lt_prog_compiler_wl_GCJ='-Wl,' |
17503 | lt_prog_compiler_pic_GCJ='-qpic' | |
17504 | lt_prog_compiler_static_GCJ='-qstaticlink' | |
17505 | ;; | |
1cf3d07d SE |
17506 | *) |
17507 | case `$CC -V 2>&1 | sed 5q` in | |
43e02a8a RW |
17508 | *Sun\ F* | *Sun*Fortran*) |
17509 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
1cf3d07d SE |
17510 | lt_prog_compiler_pic_GCJ='-KPIC' |
17511 | lt_prog_compiler_static_GCJ='-Bstatic' | |
43e02a8a | 17512 | lt_prog_compiler_wl_GCJ='' |
1cf3d07d | 17513 | ;; |
43e02a8a RW |
17514 | *Sun\ C*) |
17515 | # Sun C 5.9 | |
1cf3d07d SE |
17516 | lt_prog_compiler_pic_GCJ='-KPIC' |
17517 | lt_prog_compiler_static_GCJ='-Bstatic' | |
43e02a8a | 17518 | lt_prog_compiler_wl_GCJ='-Wl,' |
1cf3d07d SE |
17519 | ;; |
17520 | esac | |
17521 | ;; | |
17522 | esac | |
17523 | ;; | |
17524 | ||
17525 | newsos6) | |
17526 | lt_prog_compiler_pic_GCJ='-KPIC' | |
17527 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17528 | ;; | |
17529 | ||
17530 | *nto* | *qnx*) | |
17531 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
17532 | # it will coredump. | |
17533 | lt_prog_compiler_pic_GCJ='-fPIC -shared' | |
17534 | ;; | |
17535 | ||
17536 | osf3* | osf4* | osf5*) | |
17537 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17538 | # All OSF/1 code is PIC. | |
17539 | lt_prog_compiler_static_GCJ='-non_shared' | |
17540 | ;; | |
17541 | ||
17542 | rdos*) | |
17543 | lt_prog_compiler_static_GCJ='-non_shared' | |
17544 | ;; | |
17545 | ||
17546 | solaris*) | |
17547 | lt_prog_compiler_pic_GCJ='-KPIC' | |
17548 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17549 | case $cc_basename in | |
17550 | f77* | f90* | f95*) | |
17551 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
17552 | *) | |
17553 | lt_prog_compiler_wl_GCJ='-Wl,';; | |
17554 | esac | |
17555 | ;; | |
17556 | ||
17557 | sunos4*) | |
17558 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
17559 | lt_prog_compiler_pic_GCJ='-PIC' | |
17560 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17561 | ;; | |
17562 | ||
17563 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
17564 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17565 | lt_prog_compiler_pic_GCJ='-KPIC' | |
17566 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17567 | ;; | |
17568 | ||
17569 | sysv4*MP*) | |
17570 | if test -d /usr/nec ;then | |
17571 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
17572 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17573 | fi | |
17574 | ;; | |
17575 | ||
17576 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
17577 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17578 | lt_prog_compiler_pic_GCJ='-KPIC' | |
17579 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17580 | ;; | |
17581 | ||
17582 | unicos*) | |
17583 | lt_prog_compiler_wl_GCJ='-Wl,' | |
17584 | lt_prog_compiler_can_build_shared_GCJ=no | |
17585 | ;; | |
17586 | ||
17587 | uts4*) | |
17588 | lt_prog_compiler_pic_GCJ='-pic' | |
17589 | lt_prog_compiler_static_GCJ='-Bstatic' | |
17590 | ;; | |
17591 | ||
17592 | *) | |
17593 | lt_prog_compiler_can_build_shared_GCJ=no | |
17594 | ;; | |
17595 | esac | |
17596 | fi | |
17597 | ||
17598 | case $host_os in | |
17599 | # For platforms which do not support PIC, -DPIC is meaningless: | |
17600 | *djgpp*) | |
17601 | lt_prog_compiler_pic_GCJ= | |
17602 | ;; | |
17603 | *) | |
17604 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
17605 | ;; | |
17606 | esac | |
5213506e RW |
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 |
17608 | $as_echo "$lt_prog_compiler_pic_GCJ" >&6; } | |
1cf3d07d SE |
17609 | |
17610 | ||
17611 | ||
17612 | # | |
17613 | # Check to make sure the PIC flag actually works. | |
17614 | # | |
17615 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
5213506e RW |
17616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
17617 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } | |
17618 | if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then : | |
17619 | $as_echo_n "(cached) " >&6 | |
8107bc83 | 17620 | else |
0da7a284 | 17621 | lt_cv_prog_compiler_pic_works_GCJ=no |
1cf3d07d SE |
17622 | ac_outfile=conftest.$ac_objext |
17623 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17624 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
17625 | # Insert the option either (1) after the last *FLAGS variable, or | |
17626 | # (2) before a word containing "conftest.", or (3) at the end. | |
17627 | # Note that $ac_compile itself does not contain backslashes and begins | |
17628 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17629 | # The option is referenced via a variable to avoid confusing sed. | |
17630 | lt_compile=`echo "$ac_compile" | $SED \ | |
17631 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17632 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17633 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 17634 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
17635 | (eval "$lt_compile" 2>conftest.err) |
17636 | ac_status=$? | |
17637 | cat conftest.err >&5 | |
43e02a8a | 17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
17639 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17640 | # The compiler can only warn and ignore the option if not recognized | |
17641 | # So say no if there are warnings other than the usual output. | |
43e02a8a | 17642 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
1cf3d07d SE |
17643 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
17644 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
0da7a284 | 17645 | lt_cv_prog_compiler_pic_works_GCJ=yes |
1cf3d07d SE |
17646 | fi |
17647 | fi | |
17648 | $RM conftest* | |
ee9dd372 | 17649 | |
8107bc83 | 17650 | fi |
5213506e RW |
17651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 |
17652 | $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } | |
1cf3d07d | 17653 | |
0da7a284 | 17654 | if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then |
1cf3d07d SE |
17655 | case $lt_prog_compiler_pic_GCJ in |
17656 | "" | " "*) ;; | |
17657 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
17658 | esac | |
8107bc83 | 17659 | else |
1cf3d07d SE |
17660 | lt_prog_compiler_pic_GCJ= |
17661 | lt_prog_compiler_can_build_shared_GCJ=no | |
8107bc83 | 17662 | fi |
1cf3d07d | 17663 | |
8107bc83 | 17664 | fi |
ee9dd372 | 17665 | |
5aac1dac TT |
17666 | |
17667 | ||
1cf3d07d SE |
17668 | # |
17669 | # Check to make sure the static flag actually works. | |
17670 | # | |
17671 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
5213506e RW |
17672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
17673 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
17674 | if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then : | |
17675 | $as_echo_n "(cached) " >&6 | |
44bffd9f | 17676 | else |
0da7a284 | 17677 | lt_cv_prog_compiler_static_works_GCJ=no |
1cf3d07d SE |
17678 | save_LDFLAGS="$LDFLAGS" |
17679 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
17680 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
17681 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
17682 | # The linker can only warn and ignore the option if not recognized | |
17683 | # So say no if there are warnings | |
17684 | if test -s conftest.err; then | |
17685 | # Append any errors to the config.log. | |
17686 | cat conftest.err 1>&5 | |
43e02a8a | 17687 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
1cf3d07d SE |
17688 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
17689 | if diff conftest.exp conftest.er2 >/dev/null; then | |
0da7a284 | 17690 | lt_cv_prog_compiler_static_works_GCJ=yes |
1cf3d07d SE |
17691 | fi |
17692 | else | |
0da7a284 | 17693 | lt_cv_prog_compiler_static_works_GCJ=yes |
1cf3d07d SE |
17694 | fi |
17695 | fi | |
0da7a284 | 17696 | $RM -r conftest* |
1cf3d07d | 17697 | LDFLAGS="$save_LDFLAGS" |
8107bc83 | 17698 | |
1cf3d07d | 17699 | fi |
5213506e RW |
17700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 |
17701 | $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } | |
8107bc83 | 17702 | |
0da7a284 | 17703 | if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then |
1cf3d07d SE |
17704 | : |
17705 | else | |
17706 | lt_prog_compiler_static_GCJ= | |
17707 | fi | |
8107bc83 | 17708 | |
8107bc83 | 17709 | |
1cf3d07d SE |
17710 | |
17711 | ||
5213506e RW |
17712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
17713 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
17714 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : | |
17715 | $as_echo_n "(cached) " >&6 | |
44bffd9f | 17716 | else |
1cf3d07d SE |
17717 | lt_cv_prog_compiler_c_o_GCJ=no |
17718 | $RM -r conftest 2>/dev/null | |
17719 | mkdir conftest | |
17720 | cd conftest | |
17721 | mkdir out | |
17722 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17723 | ||
17724 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
17725 | # Insert the option either (1) after the last *FLAGS variable, or | |
17726 | # (2) before a word containing "conftest.", or (3) at the end. | |
17727 | # Note that $ac_compile itself does not contain backslashes and begins | |
17728 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17729 | lt_compile=`echo "$ac_compile" | $SED \ | |
17730 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17731 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17732 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 17733 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
17734 | (eval "$lt_compile" 2>out/conftest.err) |
17735 | ac_status=$? | |
17736 | cat out/conftest.err >&5 | |
43e02a8a | 17737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
17738 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
17739 | then | |
17740 | # The compiler can only warn and ignore the option if not recognized | |
17741 | # So say no if there are warnings | |
43e02a8a | 17742 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
17743 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
17744 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
17745 | lt_cv_prog_compiler_c_o_GCJ=yes | |
17746 | fi | |
17747 | fi | |
17748 | chmod u+w . 2>&5 | |
17749 | $RM conftest* | |
17750 | # SGI C++ compiler will create directory out/ii_files/ for | |
17751 | # template instantiation | |
17752 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
17753 | $RM out/* && rmdir out | |
17754 | cd .. | |
17755 | $RM -r conftest | |
17756 | $RM conftest* | |
44bffd9f | 17757 | |
44bffd9f | 17758 | fi |
5213506e RW |
17759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
17760 | $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } | |
1cf3d07d SE |
17761 | |
17762 | ||
17763 | ||
5213506e RW |
17764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
17765 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
17766 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : | |
17767 | $as_echo_n "(cached) " >&6 | |
44bffd9f | 17768 | else |
1cf3d07d SE |
17769 | lt_cv_prog_compiler_c_o_GCJ=no |
17770 | $RM -r conftest 2>/dev/null | |
17771 | mkdir conftest | |
17772 | cd conftest | |
17773 | mkdir out | |
17774 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17775 | ||
17776 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
17777 | # Insert the option either (1) after the last *FLAGS variable, or | |
17778 | # (2) before a word containing "conftest.", or (3) at the end. | |
17779 | # Note that $ac_compile itself does not contain backslashes and begins | |
17780 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17781 | lt_compile=`echo "$ac_compile" | $SED \ | |
17782 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17783 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17784 | -e 's:$: $lt_compiler_flag:'` | |
43e02a8a | 17785 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
1cf3d07d SE |
17786 | (eval "$lt_compile" 2>out/conftest.err) |
17787 | ac_status=$? | |
17788 | cat out/conftest.err >&5 | |
43e02a8a | 17789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
17790 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
17791 | then | |
17792 | # The compiler can only warn and ignore the option if not recognized | |
17793 | # So say no if there are warnings | |
43e02a8a | 17794 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
1cf3d07d SE |
17795 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
17796 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
17797 | lt_cv_prog_compiler_c_o_GCJ=yes | |
17798 | fi | |
17799 | fi | |
17800 | chmod u+w . 2>&5 | |
17801 | $RM conftest* | |
17802 | # SGI C++ compiler will create directory out/ii_files/ for | |
17803 | # template instantiation | |
17804 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
17805 | $RM out/* && rmdir out | |
17806 | cd .. | |
17807 | $RM -r conftest | |
17808 | $RM conftest* | |
17809 | ||
17810 | fi | |
5213506e RW |
17811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
17812 | $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } | |
1cf3d07d SE |
17813 | |
17814 | ||
17815 | ||
17816 | ||
17817 | hard_links="nottested" | |
17818 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
17819 | # do not overwrite the value of need_locks provided by the user | |
5213506e RW |
17820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
17821 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
1cf3d07d SE |
17822 | hard_links=yes |
17823 | $RM conftest* | |
17824 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17825 | touch conftest.a | |
17826 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
17827 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5213506e RW |
17828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
17829 | $as_echo "$hard_links" >&6; } | |
1cf3d07d | 17830 | if test "$hard_links" = no; then |
5213506e RW |
17831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
17832 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
1cf3d07d SE |
17833 | need_locks=warn |
17834 | fi | |
17835 | else | |
17836 | need_locks=no | |
17837 | fi | |
17838 | ||
17839 | ||
17840 | ||
5213506e RW |
17841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
17842 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
1cf3d07d SE |
17843 | |
17844 | runpath_var= | |
17845 | allow_undefined_flag_GCJ= | |
17846 | always_export_symbols_GCJ=no | |
17847 | archive_cmds_GCJ= | |
17848 | archive_expsym_cmds_GCJ= | |
17849 | compiler_needs_object_GCJ=no | |
17850 | enable_shared_with_static_runtimes_GCJ=no | |
17851 | export_dynamic_flag_spec_GCJ= | |
17852 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
17853 | hardcode_automatic_GCJ=no | |
17854 | hardcode_direct_GCJ=no | |
17855 | hardcode_direct_absolute_GCJ=no | |
17856 | hardcode_libdir_flag_spec_GCJ= | |
17857 | hardcode_libdir_flag_spec_ld_GCJ= | |
17858 | hardcode_libdir_separator_GCJ= | |
17859 | hardcode_minus_L_GCJ=no | |
17860 | hardcode_shlibpath_var_GCJ=unsupported | |
17861 | inherit_rpath_GCJ=no | |
17862 | link_all_deplibs_GCJ=unknown | |
17863 | module_cmds_GCJ= | |
17864 | module_expsym_cmds_GCJ= | |
17865 | old_archive_from_new_cmds_GCJ= | |
17866 | old_archive_from_expsyms_cmds_GCJ= | |
17867 | thread_safe_flag_spec_GCJ= | |
17868 | whole_archive_flag_spec_GCJ= | |
17869 | # include_expsyms should be a list of space-separated symbols to be *always* | |
17870 | # included in the symbol list | |
17871 | include_expsyms_GCJ= | |
17872 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
17873 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
17874 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
17875 | # as well as any symbol that contains `d'. | |
0da7a284 | 17876 | exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
17877 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
17878 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
17879 | # the symbol is explicitly referenced. Since portable code cannot | |
17880 | # rely on this symbol name, it's probably fine to never include it in | |
17881 | # preloaded symbol tables. | |
0da7a284 | 17882 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d | 17883 | extract_expsyms_cmds= |
44bffd9f | 17884 | |
1cf3d07d | 17885 | case $host_os in |
0da7a284 | 17886 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
17887 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
17888 | # When not using gcc, we currently assume that we are using | |
17889 | # Microsoft Visual C++. | |
17890 | if test "$GCC" != yes; then | |
17891 | with_gnu_ld=no | |
17892 | fi | |
17893 | ;; | |
17894 | interix*) | |
17895 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
17896 | with_gnu_ld=yes | |
17897 | ;; | |
17898 | openbsd*) | |
17899 | with_gnu_ld=no | |
17900 | ;; | |
17901 | esac | |
17902 | ||
17903 | ld_shlibs_GCJ=yes | |
43e02a8a RW |
17904 | |
17905 | # On some targets, GNU ld is compatible enough with the native linker | |
17906 | # that we're better off using the native interface for both. | |
17907 | lt_use_gnu_ld_interface=no | |
1cf3d07d | 17908 | if test "$with_gnu_ld" = yes; then |
43e02a8a RW |
17909 | case $host_os in |
17910 | aix*) | |
17911 | # The AIX port of GNU ld has always aspired to compatibility | |
17912 | # with the native linker. However, as the warning in the GNU ld | |
17913 | # block says, versions before 2.19.5* couldn't really create working | |
17914 | # shared libraries, regardless of the interface used. | |
17915 | case `$LD -v 2>&1` in | |
17916 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
17917 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
17918 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
17919 | *) | |
17920 | lt_use_gnu_ld_interface=yes | |
17921 | ;; | |
17922 | esac | |
17923 | ;; | |
17924 | *) | |
17925 | lt_use_gnu_ld_interface=yes | |
17926 | ;; | |
17927 | esac | |
17928 | fi | |
17929 | ||
17930 | if test "$lt_use_gnu_ld_interface" = yes; then | |
1cf3d07d SE |
17931 | # If archive_cmds runs LD, not CC, wlarc should be empty |
17932 | wlarc='${wl}' | |
17933 | ||
17934 | # Set some defaults for GNU ld with shared library support. These | |
17935 | # are reset later if shared libraries are not supported. Putting them | |
17936 | # here allows them to be overridden if necessary. | |
17937 | runpath_var=LD_RUN_PATH | |
17938 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17939 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
17940 | # ancient GNU ld didn't support --whole-archive et. al. | |
17941 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
17942 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
17943 | else | |
17944 | whole_archive_flag_spec_GCJ= | |
17945 | fi | |
17946 | supports_anon_versioning=no | |
17947 | case `$LD -v 2>&1` in | |
43e02a8a | 17948 | *GNU\ gold*) supports_anon_versioning=yes ;; |
1cf3d07d SE |
17949 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
17950 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
17951 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
17952 | *\ 2.11.*) ;; # other 2.11 versions | |
17953 | *) supports_anon_versioning=yes ;; | |
17954 | esac | |
17955 | ||
17956 | # See if GNU ld supports shared libraries. | |
17957 | case $host_os in | |
ed44a2c7 | 17958 | aix[3-9]*) |
1cf3d07d SE |
17959 | # On AIX/PPC, the GNU linker is very broken |
17960 | if test "$host_cpu" != ia64; then | |
17961 | ld_shlibs_GCJ=no | |
17962 | cat <<_LT_EOF 1>&2 | |
17963 | ||
43e02a8a | 17964 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
1cf3d07d SE |
17965 | *** to be unable to reliably create shared libraries on AIX. |
17966 | *** Therefore, libtool is disabling shared libraries support. If you | |
43e02a8a RW |
17967 | *** really care for shared libraries, you may want to install binutils |
17968 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
17969 | *** You will then need to restart the configuration process. | |
1cf3d07d SE |
17970 | |
17971 | _LT_EOF | |
17972 | fi | |
17973 | ;; | |
17974 | ||
17975 | amigaos*) | |
0da7a284 PG |
17976 | case $host_cpu in |
17977 | powerpc) | |
17978 | # see comment about AmigaOS4 .so support | |
17979 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17980 | archive_expsym_cmds_GCJ='' | |
17981 | ;; | |
17982 | m68k) | |
17983 | archive_cmds_GCJ='$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)' | |
17984 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17985 | hardcode_minus_L_GCJ=yes | |
17986 | ;; | |
17987 | esac | |
1cf3d07d SE |
17988 | ;; |
17989 | ||
17990 | beos*) | |
17991 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
17992 | allow_undefined_flag_GCJ=unsupported | |
17993 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
17994 | # support --undefined. This deserves some investigation. FIXME | |
17995 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17996 | else | |
17997 | ld_shlibs_GCJ=no | |
17998 | fi | |
17999 | ;; | |
18000 | ||
0da7a284 | 18001 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
18002 | # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
18003 | # as there is no search path for DLLs. | |
18004 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
43e02a8a | 18005 | export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols' |
1cf3d07d SE |
18006 | allow_undefined_flag_GCJ=unsupported |
18007 | always_export_symbols_GCJ=no | |
18008 | enable_shared_with_static_runtimes_GCJ=yes | |
18009 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
18010 | ||
18011 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
18012 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
18013 | # If the export-symbols file already is a .def file (1st line | |
18014 | # is EXPORTS), use it as is; otherwise, prepend... | |
18015 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
18016 | cp $export_symbols $output_objdir/$soname.def; | |
18017 | else | |
18018 | echo EXPORTS > $output_objdir/$soname.def; | |
18019 | cat $export_symbols >> $output_objdir/$soname.def; | |
18020 | fi~ | |
18021 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
18022 | else | |
18023 | ld_shlibs_GCJ=no | |
18024 | fi | |
18025 | ;; | |
18026 | ||
43e02a8a RW |
18027 | haiku*) |
18028 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18029 | link_all_deplibs_GCJ=yes | |
18030 | ;; | |
18031 | ||
1cf3d07d SE |
18032 | interix[3-9]*) |
18033 | hardcode_direct_GCJ=no | |
18034 | hardcode_shlibpath_var_GCJ=no | |
18035 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
18036 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18037 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
18038 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
18039 | # default) and relocated if they conflict, which is a slow very memory | |
18040 | # consuming and fragmenting process. To avoid this, we pick a random, | |
18041 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
18042 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
18043 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
18044 | archive_expsym_cmds_GCJ='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' | |
18045 | ;; | |
18046 | ||
7a9d3fe8 | 18047 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
1cf3d07d SE |
18048 | tmp_diet=no |
18049 | if test "$host_os" = linux-dietlibc; then | |
18050 | case $cc_basename in | |
18051 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
18052 | esac | |
18053 | fi | |
18054 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
18055 | && test "$tmp_diet" = no | |
18056 | then | |
18057 | tmp_addflag= | |
0da7a284 | 18058 | tmp_sharedflag='-shared' |
1cf3d07d SE |
18059 | case $cc_basename,$host_cpu in |
18060 | pgcc*) # Portland Group C compiler | |
43e02a8a | 18061 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
18062 | tmp_addflag=' $pic_flag' |
18063 | ;; | |
43e02a8a RW |
18064 | pgf77* | pgf90* | pgf95* | pgfortran*) |
18065 | # Portland Group f77 and f90 compilers | |
18066 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
1cf3d07d SE |
18067 | tmp_addflag=' $pic_flag -Mnomain' ;; |
18068 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
18069 | tmp_addflag=' -i_dynamic' ;; | |
18070 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
18071 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
18072 | ifc* | ifort*) # Intel Fortran compiler | |
18073 | tmp_addflag=' -nofor_main' ;; | |
0da7a284 PG |
18074 | lf95*) # Lahey Fortran 8.1 |
18075 | whole_archive_flag_spec_GCJ= | |
18076 | tmp_sharedflag='--shared' ;; | |
43e02a8a | 18077 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
0da7a284 PG |
18078 | tmp_sharedflag='-qmkshrobj' |
18079 | tmp_addflag= ;; | |
43e02a8a RW |
18080 | nvcc*) # Cuda Compiler Driver 2.2 |
18081 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
18082 | compiler_needs_object_GCJ=yes | |
18083 | ;; | |
1cf3d07d SE |
18084 | esac |
18085 | case `$CC -V 2>&1 | sed 5q` in | |
18086 | *Sun\ C*) # Sun C 5.9 | |
43e02a8a | 18087 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
1cf3d07d SE |
18088 | compiler_needs_object_GCJ=yes |
18089 | tmp_sharedflag='-G' ;; | |
18090 | *Sun\ F*) # Sun Fortran 8.3 | |
18091 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
18092 | esac |
18093 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18094 | ||
18095 | if test "x$supports_anon_versioning" = xyes; then | |
18096 | archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~ | |
18097 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
18098 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
18099 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
18100 | fi | |
0da7a284 PG |
18101 | |
18102 | case $cc_basename in | |
43e02a8a | 18103 | xlf* | bgf* | bgxlf* | mpixlf*) |
0da7a284 PG |
18104 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
18105 | whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive' | |
18106 | hardcode_libdir_flag_spec_GCJ= | |
18107 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
18108 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
18109 | if test "x$supports_anon_versioning" = xyes; then | |
18110 | archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~ | |
18111 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
18112 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
18113 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
18114 | fi | |
18115 | ;; | |
18116 | esac | |
1cf3d07d SE |
18117 | else |
18118 | ld_shlibs_GCJ=no | |
18119 | fi | |
18120 | ;; | |
18121 | ||
18122 | netbsd*) | |
18123 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
18124 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
18125 | wlarc= | |
18126 | else | |
18127 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18128 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18129 | fi | |
18130 | ;; | |
18131 | ||
18132 | solaris*) | |
18133 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
18134 | ld_shlibs_GCJ=no | |
18135 | cat <<_LT_EOF 1>&2 | |
18136 | ||
18137 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
18138 | *** create shared libraries on Solaris systems. Therefore, libtool | |
18139 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
18140 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
18141 | *** your PATH or compiler configuration so that the native linker is | |
18142 | *** used, and then restart. | |
18143 | ||
18144 | _LT_EOF | |
18145 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
18146 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18147 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18148 | else | |
18149 | ld_shlibs_GCJ=no | |
18150 | fi | |
18151 | ;; | |
18152 | ||
18153 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
18154 | case `$LD -v 2>&1` in | |
18155 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
18156 | ld_shlibs_GCJ=no | |
18157 | cat <<_LT_EOF 1>&2 | |
18158 | ||
18159 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
18160 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
18161 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
18162 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
18163 | *** your PATH or compiler configuration so that the native linker is | |
18164 | *** used, and then restart. | |
18165 | ||
18166 | _LT_EOF | |
18167 | ;; | |
18168 | *) | |
18169 | # For security reasons, it is highly recommended that you always | |
18170 | # use absolute paths for naming shared libraries, and exclude the | |
18171 | # DT_RUNPATH tag from executables and libraries. But doing so | |
18172 | # requires that you compile everything twice, which is a pain. | |
18173 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
18174 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
18175 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18176 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18177 | else | |
18178 | ld_shlibs_GCJ=no | |
18179 | fi | |
18180 | ;; | |
18181 | esac | |
18182 | ;; | |
18183 | ||
18184 | sunos4*) | |
18185 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18186 | wlarc= | |
18187 | hardcode_direct_GCJ=yes | |
18188 | hardcode_shlibpath_var_GCJ=no | |
18189 | ;; | |
18190 | ||
18191 | *) | |
18192 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
18193 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18194 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18195 | else | |
18196 | ld_shlibs_GCJ=no | |
18197 | fi | |
18198 | ;; | |
18199 | esac | |
18200 | ||
18201 | if test "$ld_shlibs_GCJ" = no; then | |
18202 | runpath_var= | |
18203 | hardcode_libdir_flag_spec_GCJ= | |
18204 | export_dynamic_flag_spec_GCJ= | |
18205 | whole_archive_flag_spec_GCJ= | |
18206 | fi | |
18207 | else | |
18208 | # PORTME fill in a description of your system's linker (not GNU ld) | |
18209 | case $host_os in | |
18210 | aix3*) | |
18211 | allow_undefined_flag_GCJ=unsupported | |
18212 | always_export_symbols_GCJ=yes | |
18213 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
18214 | # Note: this linker hardcodes the directories in LIBPATH if there | |
18215 | # are no directories specified by -L. | |
18216 | hardcode_minus_L_GCJ=yes | |
18217 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
18218 | # Neither direct hardcoding nor static linking is supported with a | |
18219 | # broken collect2. | |
18220 | hardcode_direct_GCJ=unsupported | |
18221 | fi | |
18222 | ;; | |
18223 | ||
ed44a2c7 | 18224 | aix[4-9]*) |
1cf3d07d SE |
18225 | if test "$host_cpu" = ia64; then |
18226 | # On IA64, the linker does run time linking by default, so we don't | |
18227 | # have to do anything special. | |
18228 | aix_use_runtimelinking=no | |
18229 | exp_sym_flag='-Bexport' | |
18230 | no_entry_flag="" | |
18231 | else | |
18232 | # If we're using GNU nm, then we don't want the "-C" option. | |
18233 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
43e02a8a RW |
18234 | # Also, AIX nm treats weak defined symbols like other global |
18235 | # defined symbols, whereas GNU nm marks them as "W". | |
1cf3d07d | 18236 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
43e02a8a | 18237 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
1cf3d07d SE |
18238 | else |
18239 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
18240 | fi | |
18241 | aix_use_runtimelinking=no | |
18242 | ||
18243 | # Test if we are trying to use run time linking or normal | |
18244 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
18245 | # need to do runtime linking. | |
ed44a2c7 | 18246 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
18247 | for ld_flag in $LDFLAGS; do |
18248 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
18249 | aix_use_runtimelinking=yes | |
18250 | break | |
18251 | fi | |
18252 | done | |
18253 | ;; | |
18254 | esac | |
18255 | ||
18256 | exp_sym_flag='-bexport' | |
18257 | no_entry_flag='-bnoentry' | |
18258 | fi | |
18259 | ||
18260 | # When large executables or shared objects are built, AIX ld can | |
18261 | # have problems creating the table of contents. If linking a library | |
18262 | # or program results in "error TOC overflow" add -mminimal-toc to | |
18263 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
18264 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
18265 | ||
18266 | archive_cmds_GCJ='' | |
18267 | hardcode_direct_GCJ=yes | |
18268 | hardcode_direct_absolute_GCJ=yes | |
18269 | hardcode_libdir_separator_GCJ=':' | |
18270 | link_all_deplibs_GCJ=yes | |
18271 | file_list_spec_GCJ='${wl}-f,' | |
18272 | ||
18273 | if test "$GCC" = yes; then | |
18274 | case $host_os in aix4.[012]|aix4.[012].*) | |
18275 | # We only want to do this on AIX 4.2 and lower, the check | |
18276 | # below for broken collect2 doesn't work under 4.3+ | |
18277 | collect2name=`${CC} -print-prog-name=collect2` | |
18278 | if test -f "$collect2name" && | |
18279 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
18280 | then | |
18281 | # We have reworked collect2 | |
18282 | : | |
18283 | else | |
18284 | # We have old collect2 | |
18285 | hardcode_direct_GCJ=unsupported | |
18286 | # It fails to find uninstalled libraries when the uninstalled | |
18287 | # path is not listed in the libpath. Setting hardcode_minus_L | |
18288 | # to unsupported forces relinking | |
18289 | hardcode_minus_L_GCJ=yes | |
18290 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18291 | hardcode_libdir_separator_GCJ= | |
18292 | fi | |
18293 | ;; | |
18294 | esac | |
18295 | shared_flag='-shared' | |
18296 | if test "$aix_use_runtimelinking" = yes; then | |
18297 | shared_flag="$shared_flag "'${wl}-G' | |
18298 | fi | |
18299 | else | |
18300 | # not using gcc | |
18301 | if test "$host_cpu" = ia64; then | |
18302 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
18303 | # chokes on -Wl,-G. The following line is correct: | |
18304 | shared_flag='-G' | |
18305 | else | |
18306 | if test "$aix_use_runtimelinking" = yes; then | |
18307 | shared_flag='${wl}-G' | |
18308 | else | |
18309 | shared_flag='${wl}-bM:SRE' | |
18310 | fi | |
18311 | fi | |
18312 | fi | |
18313 | ||
0da7a284 | 18314 | export_dynamic_flag_spec_GCJ='${wl}-bexpall' |
1cf3d07d SE |
18315 | # It seems that -bexpall does not export symbols beginning with |
18316 | # underscore (_), so it is better to generate a list of symbols to export. | |
18317 | always_export_symbols_GCJ=yes | |
18318 | if test "$aix_use_runtimelinking" = yes; then | |
18319 | # Warning - without using the other runtime loading flags (-brtl), | |
18320 | # -berok will link without error, but may produce a broken library. | |
18321 | allow_undefined_flag_GCJ='-berok' | |
18322 | # Determine the default libpath from the value encoded in an | |
18323 | # empty executable. | |
18324 | if test x$gcc_no_link = xyes; then | |
5213506e | 18325 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 18326 | fi |
5213506e | 18327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8107bc83 | 18328 | /* end confdefs.h. */ |
1cf3d07d | 18329 | |
8107bc83 KC |
18330 | int |
18331 | main () | |
18332 | { | |
1cf3d07d | 18333 | |
8107bc83 KC |
18334 | ; |
18335 | return 0; | |
18336 | } | |
18337 | _ACEOF | |
5213506e | 18338 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
18339 | |
18340 | lt_aix_libpath_sed=' | |
18341 | /Import File Strings/,/^$/ { | |
18342 | /^0/ { | |
18343 | s/^0 *\(.*\)$/\1/ | |
18344 | p | |
18345 | } | |
18346 | }' | |
18347 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18348 | # Check for a 64-bit object if we didn't find anything. | |
18349 | if test -z "$aix_libpath"; then | |
18350 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8107bc83 | 18351 | fi |
44bffd9f | 18352 | fi |
5213506e RW |
18353 | rm -f core conftest.err conftest.$ac_objext \ |
18354 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
18355 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
18356 | ||
18357 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
43e02a8a | 18358 | archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1cf3d07d SE |
18359 | else |
18360 | if test "$host_cpu" = ia64; then | |
18361 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
18362 | allow_undefined_flag_GCJ="-z nodefs" | |
18363 | archive_expsym_cmds_GCJ="\$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" | |
18364 | else | |
18365 | # Determine the default libpath from the value encoded in an | |
18366 | # empty executable. | |
18367 | if test x$gcc_no_link = xyes; then | |
5213506e | 18368 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 18369 | fi |
5213506e | 18370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
44bffd9f | 18371 | /* end confdefs.h. */ |
1cf3d07d | 18372 | |
8107bc83 KC |
18373 | int |
18374 | main () | |
18375 | { | |
1cf3d07d SE |
18376 | |
18377 | ; | |
18378 | return 0; | |
44bffd9f AT |
18379 | } |
18380 | _ACEOF | |
5213506e | 18381 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
18382 | |
18383 | lt_aix_libpath_sed=' | |
18384 | /Import File Strings/,/^$/ { | |
18385 | /^0/ { | |
18386 | s/^0 *\(.*\)$/\1/ | |
18387 | p | |
18388 | } | |
18389 | }' | |
18390 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18391 | # Check for a 64-bit object if we didn't find anything. | |
18392 | if test -z "$aix_libpath"; then | |
18393 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18394 | fi | |
44bffd9f | 18395 | fi |
5213506e RW |
18396 | rm -f core conftest.err conftest.$ac_objext \ |
18397 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
18398 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
18399 | ||
18400 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18401 | # Warning - without using the other run time loading flags, | |
18402 | # -berok will link without error, but may produce a broken library. | |
18403 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
18404 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
43e02a8a RW |
18405 | if test "$with_gnu_ld" = yes; then |
18406 | # We only use this code for GNU lds that support --whole-archive. | |
18407 | whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
18408 | else | |
18409 | # Exported symbols can be pulled into shared objects from archives | |
18410 | whole_archive_flag_spec_GCJ='$convenience' | |
18411 | fi | |
1cf3d07d SE |
18412 | archive_cmds_need_lc_GCJ=yes |
18413 | # This is similar to how AIX traditionally builds its shared libraries. | |
18414 | archive_expsym_cmds_GCJ="\$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' | |
18415 | fi | |
18416 | fi | |
18417 | ;; | |
44bffd9f | 18418 | |
1cf3d07d | 18419 | amigaos*) |
0da7a284 PG |
18420 | case $host_cpu in |
18421 | powerpc) | |
18422 | # see comment about AmigaOS4 .so support | |
18423 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18424 | archive_expsym_cmds_GCJ='' | |
18425 | ;; | |
18426 | m68k) | |
18427 | archive_cmds_GCJ='$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)' | |
18428 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18429 | hardcode_minus_L_GCJ=yes | |
18430 | ;; | |
18431 | esac | |
1cf3d07d | 18432 | ;; |
44bffd9f | 18433 | |
1cf3d07d SE |
18434 | bsdi[45]*) |
18435 | export_dynamic_flag_spec_GCJ=-rdynamic | |
18436 | ;; | |
44bffd9f | 18437 | |
0da7a284 | 18438 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
18439 | # When not using gcc, we currently assume that we are using |
18440 | # Microsoft Visual C++. | |
18441 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
18442 | # no search path for DLLs. | |
18443 | hardcode_libdir_flag_spec_GCJ=' ' | |
18444 | allow_undefined_flag_GCJ=unsupported | |
18445 | # Tell ltmain to make .lib files, not .a files. | |
18446 | libext=lib | |
18447 | # Tell ltmain to make .dll files, not .so files. | |
18448 | shrext_cmds=".dll" | |
18449 | # FIXME: Setting linknames here is a bad hack. | |
43e02a8a | 18450 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
1cf3d07d SE |
18451 | # The linker will automatically build a .lib file if we build a DLL. |
18452 | old_archive_from_new_cmds_GCJ='true' | |
18453 | # FIXME: Should let the user specify the lib program. | |
18454 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
18455 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
18456 | enable_shared_with_static_runtimes_GCJ=yes | |
18457 | ;; | |
5aac1dac | 18458 | |
1cf3d07d | 18459 | darwin* | rhapsody*) |
ee9dd372 | 18460 | |
0da7a284 PG |
18461 | |
18462 | archive_cmds_need_lc_GCJ=no | |
18463 | hardcode_direct_GCJ=no | |
18464 | hardcode_automatic_GCJ=yes | |
18465 | hardcode_shlibpath_var_GCJ=unsupported | |
43e02a8a RW |
18466 | if test "$lt_cv_ld_force_load" = "yes"; then |
18467 | whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
18468 | else | |
18469 | whole_archive_flag_spec_GCJ='' | |
18470 | fi | |
0da7a284 PG |
18471 | link_all_deplibs_GCJ=yes |
18472 | allow_undefined_flag_GCJ="$_lt_dar_allow_undefined" | |
18473 | case $cc_basename in | |
18474 | ifort*) _lt_dar_can_shared=yes ;; | |
18475 | *) _lt_dar_can_shared=$GCC ;; | |
18476 | esac | |
18477 | if test "$_lt_dar_can_shared" = "yes"; then | |
43e02a8a | 18478 | output_verbose_link_cmd=func_echo_all |
0da7a284 PG |
18479 | archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
18480 | module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
18481 | archive_expsym_cmds_GCJ="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}" | |
18482 | module_expsym_cmds_GCJ="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}" | |
18483 | ||
18484 | else | |
18485 | ld_shlibs_GCJ=no | |
18486 | fi | |
18487 | ||
1cf3d07d | 18488 | ;; |
5aac1dac | 18489 | |
1cf3d07d SE |
18490 | dgux*) |
18491 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18492 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18493 | hardcode_shlibpath_var_GCJ=no | |
18494 | ;; | |
5aac1dac | 18495 | |
1cf3d07d SE |
18496 | freebsd1*) |
18497 | ld_shlibs_GCJ=no | |
18498 | ;; | |
5aac1dac | 18499 | |
1cf3d07d SE |
18500 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
18501 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
18502 | # does not break anything, and helps significantly (at the cost of a little | |
18503 | # extra space). | |
18504 | freebsd2.2*) | |
18505 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
18506 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
18507 | hardcode_direct_GCJ=yes | |
18508 | hardcode_shlibpath_var_GCJ=no | |
18509 | ;; | |
5aac1dac | 18510 | |
1cf3d07d SE |
18511 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
18512 | freebsd2*) | |
18513 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18514 | hardcode_direct_GCJ=yes | |
18515 | hardcode_minus_L_GCJ=yes | |
18516 | hardcode_shlibpath_var_GCJ=no | |
18517 | ;; | |
5aac1dac | 18518 | |
1cf3d07d SE |
18519 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
18520 | freebsd* | dragonfly*) | |
18521 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
18522 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
18523 | hardcode_direct_GCJ=yes | |
18524 | hardcode_shlibpath_var_GCJ=no | |
18525 | ;; | |
5aac1dac | 18526 | |
1cf3d07d SE |
18527 | hpux9*) |
18528 | if test "$GCC" = yes; then | |
18529 | archive_cmds_GCJ='$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' | |
18530 | else | |
18531 | archive_cmds_GCJ='$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' | |
18532 | fi | |
18533 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
18534 | hardcode_libdir_separator_GCJ=: | |
18535 | hardcode_direct_GCJ=yes | |
18536 | ||
18537 | # hardcode_minus_L: Not really in the search PATH, | |
18538 | # but as the default location of the library. | |
18539 | hardcode_minus_L_GCJ=yes | |
18540 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18541 | ;; | |
5aac1dac | 18542 | |
1cf3d07d | 18543 | hpux10*) |
43e02a8a | 18544 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
18545 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
18546 | else | |
18547 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
18548 | fi | |
18549 | if test "$with_gnu_ld" = no; then | |
18550 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
18551 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
18552 | hardcode_libdir_separator_GCJ=: | |
18553 | hardcode_direct_GCJ=yes | |
18554 | hardcode_direct_absolute_GCJ=yes | |
18555 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18556 | # hardcode_minus_L: Not really in the search PATH, | |
18557 | # but as the default location of the library. | |
18558 | hardcode_minus_L_GCJ=yes | |
18559 | fi | |
18560 | ;; | |
5aac1dac | 18561 | |
1cf3d07d | 18562 | hpux11*) |
43e02a8a | 18563 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
1cf3d07d SE |
18564 | case $host_cpu in |
18565 | hppa*64*) | |
18566 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18567 | ;; | |
18568 | ia64*) | |
0da7a284 | 18569 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
18570 | ;; |
18571 | *) | |
18572 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
18573 | ;; | |
18574 | esac | |
18575 | else | |
18576 | case $host_cpu in | |
18577 | hppa*64*) | |
18578 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18579 | ;; | |
18580 | ia64*) | |
18581 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
18582 | ;; | |
18583 | *) | |
43e02a8a | 18584 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
18585 | ;; |
18586 | esac | |
18587 | fi | |
18588 | if test "$with_gnu_ld" = no; then | |
18589 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
18590 | hardcode_libdir_separator_GCJ=: | |
18591 | ||
18592 | case $host_cpu in | |
18593 | hppa*64*|ia64*) | |
18594 | hardcode_direct_GCJ=no | |
18595 | hardcode_shlibpath_var_GCJ=no | |
18596 | ;; | |
18597 | *) | |
18598 | hardcode_direct_GCJ=yes | |
18599 | hardcode_direct_absolute_GCJ=yes | |
18600 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18601 | ||
18602 | # hardcode_minus_L: Not really in the search PATH, | |
18603 | # but as the default location of the library. | |
18604 | hardcode_minus_L_GCJ=yes | |
18605 | ;; | |
18606 | esac | |
18607 | fi | |
18608 | ;; | |
c4ebd83d | 18609 | |
1cf3d07d SE |
18610 | irix5* | irix6* | nonstopux*) |
18611 | if test "$GCC" = yes; then | |
43e02a8a | 18612 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
18613 | # Try to use the -exported_symbol ld option, if it does not |
18614 | # work, assume that -exports_file does not work either and | |
18615 | # implicitly export all symbols. | |
18616 | save_LDFLAGS="$LDFLAGS" | |
18617 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
18618 | if test x$gcc_no_link = xyes; then | |
5213506e | 18619 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
ee9dd372 | 18620 | fi |
5213506e RW |
18621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18622 | /* end confdefs.h. */ | |
1cf3d07d SE |
18623 | int foo(void) {} |
18624 | _ACEOF | |
5213506e | 18625 | if ac_fn_c_try_link "$LINENO"; then : |
43e02a8a | 18626 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
ee9dd372 | 18627 | |
97b8365c | 18628 | fi |
5213506e RW |
18629 | rm -f core conftest.err conftest.$ac_objext \ |
18630 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
18631 | LDFLAGS="$save_LDFLAGS" |
18632 | else | |
43e02a8a RW |
18633 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
18634 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
1cf3d07d SE |
18635 | fi |
18636 | archive_cmds_need_lc_GCJ='no' | |
18637 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
18638 | hardcode_libdir_separator_GCJ=: | |
18639 | inherit_rpath_GCJ=yes | |
18640 | link_all_deplibs_GCJ=yes | |
18641 | ;; | |
97b8365c | 18642 | |
1cf3d07d SE |
18643 | netbsd*) |
18644 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
18645 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
18646 | else | |
18647 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
18648 | fi | |
18649 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
18650 | hardcode_direct_GCJ=yes | |
18651 | hardcode_shlibpath_var_GCJ=no | |
18652 | ;; | |
97b8365c | 18653 | |
1cf3d07d SE |
18654 | newsos6) |
18655 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18656 | hardcode_direct_GCJ=yes | |
18657 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
18658 | hardcode_libdir_separator_GCJ=: | |
18659 | hardcode_shlibpath_var_GCJ=no | |
18660 | ;; | |
97b8365c | 18661 | |
1cf3d07d SE |
18662 | *nto* | *qnx*) |
18663 | ;; | |
ee9dd372 | 18664 | |
1cf3d07d | 18665 | openbsd*) |
0da7a284 PG |
18666 | if test -f /usr/libexec/ld.so; then |
18667 | hardcode_direct_GCJ=yes | |
18668 | hardcode_shlibpath_var_GCJ=no | |
18669 | hardcode_direct_absolute_GCJ=yes | |
18670 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 18671 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
0da7a284 | 18672 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 18673 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
0da7a284 PG |
18674 | export_dynamic_flag_spec_GCJ='${wl}-E' |
18675 | else | |
18676 | case $host_os in | |
18677 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
18678 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18679 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
18680 | ;; | |
18681 | *) | |
18682 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
18683 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
18684 | ;; | |
18685 | esac | |
18686 | fi | |
18687 | else | |
18688 | ld_shlibs_GCJ=no | |
1cf3d07d SE |
18689 | fi |
18690 | ;; | |
5aac1dac | 18691 | |
1cf3d07d SE |
18692 | os2*) |
18693 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18694 | hardcode_minus_L_GCJ=yes | |
18695 | allow_undefined_flag_GCJ=unsupported | |
43e02a8a | 18696 | archive_cmds_GCJ='$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' |
1cf3d07d SE |
18697 | old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
18698 | ;; | |
e3f92d3b | 18699 | |
1cf3d07d SE |
18700 | osf3*) |
18701 | if test "$GCC" = yes; then | |
18702 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 18703 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
18704 | else |
18705 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
43e02a8a | 18706 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
18707 | fi |
18708 | archive_cmds_need_lc_GCJ='no' | |
18709 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
18710 | hardcode_libdir_separator_GCJ=: | |
18711 | ;; | |
5aac1dac | 18712 | |
1cf3d07d SE |
18713 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
18714 | if test "$GCC" = yes; then | |
18715 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
43e02a8a | 18716 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
1cf3d07d SE |
18717 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18718 | else | |
18719 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
43e02a8a | 18720 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
1cf3d07d | 18721 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
43e02a8a | 18722 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
1cf3d07d SE |
18723 | |
18724 | # Both c and cxx compiler support -rpath directly | |
18725 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
18726 | fi | |
18727 | archive_cmds_need_lc_GCJ='no' | |
18728 | hardcode_libdir_separator_GCJ=: | |
18729 | ;; | |
5aac1dac | 18730 | |
1cf3d07d SE |
18731 | solaris*) |
18732 | no_undefined_flag_GCJ=' -z defs' | |
18733 | if test "$GCC" = yes; then | |
18734 | wlarc='${wl}' | |
18735 | archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18736 | archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18737 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
18738 | else | |
18739 | case `$CC -V 2>&1` in | |
18740 | *"Compilers 5.0"*) | |
18741 | wlarc='' | |
18742 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18743 | archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18744 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
18745 | ;; | |
18746 | *) | |
18747 | wlarc='${wl}' | |
18748 | archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
18749 | archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18750 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
18751 | ;; | |
18752 | esac | |
18753 | fi | |
18754 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
18755 | hardcode_shlibpath_var_GCJ=no | |
18756 | case $host_os in | |
18757 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
18758 | *) | |
18759 | # The compiler driver will combine and reorder linker options, | |
18760 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
18761 | # but is careful enough not to reorder. | |
18762 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
18763 | if test "$GCC" = yes; then | |
18764 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
18765 | else | |
18766 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' | |
18767 | fi | |
18768 | ;; | |
18769 | esac | |
18770 | link_all_deplibs_GCJ=yes | |
18771 | ;; | |
5aac1dac | 18772 | |
1cf3d07d SE |
18773 | sunos4*) |
18774 | if test "x$host_vendor" = xsequent; then | |
18775 | # Use $CC to link under sequent, because it throws in some extra .o | |
18776 | # files that make .init and .fini sections work. | |
18777 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
18778 | else | |
18779 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
18780 | fi | |
18781 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18782 | hardcode_direct_GCJ=yes | |
18783 | hardcode_minus_L_GCJ=yes | |
18784 | hardcode_shlibpath_var_GCJ=no | |
18785 | ;; | |
5aac1dac | 18786 | |
1cf3d07d SE |
18787 | sysv4) |
18788 | case $host_vendor in | |
18789 | sni) | |
18790 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18791 | hardcode_direct_GCJ=yes # is this really true??? | |
18792 | ;; | |
18793 | siemens) | |
18794 | ## LD is ld it makes a PLAMLIB | |
18795 | ## CC just makes a GrossModule. | |
18796 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
18797 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
18798 | hardcode_direct_GCJ=no | |
18799 | ;; | |
18800 | motorola) | |
18801 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18802 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
18803 | ;; | |
18804 | esac | |
18805 | runpath_var='LD_RUN_PATH' | |
18806 | hardcode_shlibpath_var_GCJ=no | |
18807 | ;; | |
84af16a6 | 18808 | |
1cf3d07d SE |
18809 | sysv4.3*) |
18810 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18811 | hardcode_shlibpath_var_GCJ=no | |
18812 | export_dynamic_flag_spec_GCJ='-Bexport' | |
18813 | ;; | |
84af16a6 | 18814 | |
1cf3d07d SE |
18815 | sysv4*MP*) |
18816 | if test -d /usr/nec; then | |
18817 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18818 | hardcode_shlibpath_var_GCJ=no | |
18819 | runpath_var=LD_RUN_PATH | |
18820 | hardcode_runpath_var=yes | |
18821 | ld_shlibs_GCJ=yes | |
18822 | fi | |
18823 | ;; | |
5aac1dac | 18824 | |
1cf3d07d SE |
18825 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
18826 | no_undefined_flag_GCJ='${wl}-z,text' | |
18827 | archive_cmds_need_lc_GCJ=no | |
18828 | hardcode_shlibpath_var_GCJ=no | |
18829 | runpath_var='LD_RUN_PATH' | |
ed698112 | 18830 | |
1cf3d07d SE |
18831 | if test "$GCC" = yes; then |
18832 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18833 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18834 | else | |
18835 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18836 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18837 | fi | |
18838 | ;; | |
ed698112 | 18839 | |
1cf3d07d SE |
18840 | sysv5* | sco3.2v5* | sco5v6*) |
18841 | # Note: We can NOT use -z defs as we might desire, because we do not | |
18842 | # link with -lc, and that would cause any symbols used from libc to | |
18843 | # always be unresolved, which means just about no library would | |
18844 | # ever link correctly. If we're not using GNU ld we use -z text | |
18845 | # though, which does catch some bad symbols but isn't as heavy-handed | |
18846 | # as -z defs. | |
18847 | no_undefined_flag_GCJ='${wl}-z,text' | |
18848 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
18849 | archive_cmds_need_lc_GCJ=no | |
18850 | hardcode_shlibpath_var_GCJ=no | |
18851 | hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir' | |
18852 | hardcode_libdir_separator_GCJ=':' | |
18853 | link_all_deplibs_GCJ=yes | |
18854 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
18855 | runpath_var='LD_RUN_PATH' | |
18856 | ||
18857 | if test "$GCC" = yes; then | |
18858 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18859 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18860 | else | |
18861 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18862 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18863 | fi | |
18864 | ;; | |
ed698112 | 18865 | |
1cf3d07d SE |
18866 | uts4*) |
18867 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18868 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18869 | hardcode_shlibpath_var_GCJ=no | |
18870 | ;; | |
dafb7f3f | 18871 | |
1cf3d07d SE |
18872 | *) |
18873 | ld_shlibs_GCJ=no | |
18874 | ;; | |
18875 | esac | |
b6121641 | 18876 | |
1cf3d07d SE |
18877 | if test x$host_vendor = xsni; then |
18878 | case $host in | |
18879 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
18880 | export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym' | |
18881 | ;; | |
18882 | esac | |
18883 | fi | |
18884 | fi | |
b6121641 | 18885 | |
5213506e RW |
18886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 |
18887 | $as_echo "$ld_shlibs_GCJ" >&6; } | |
1cf3d07d | 18888 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
b6121641 | 18889 | |
1cf3d07d | 18890 | with_gnu_ld_GCJ=$with_gnu_ld |
b6121641 TF |
18891 | |
18892 | ||
1cf3d07d SE |
18893 | |
18894 | ||
18895 | ||
18896 | ||
18897 | # | |
18898 | # Do we need to explicitly link libc? | |
18899 | # | |
18900 | case "x$archive_cmds_need_lc_GCJ" in | |
18901 | x|xyes) | |
18902 | # Assume -lc should be added | |
18903 | archive_cmds_need_lc_GCJ=yes | |
18904 | ||
18905 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
18906 | case $archive_cmds_GCJ in | |
18907 | *'~'*) | |
18908 | # FIXME: we may have to deal with multi-command sequences. | |
18909 | ;; | |
18910 | '$CC '*) | |
18911 | # Test whether the compiler implicitly links with -lc since on some | |
18912 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
18913 | # to ld, don't add -lc before -lgcc. | |
5213506e RW |
18914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
18915 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
18916 | if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then : | |
18917 | $as_echo_n "(cached) " >&6 | |
baafc534 RW |
18918 | else |
18919 | $RM conftest* | |
18920 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 18921 | |
5213506e | 18922 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
18923 | (eval $ac_compile) 2>&5 |
18924 | ac_status=$? | |
5213506e RW |
18925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
18926 | test $ac_status = 0; } 2>conftest.err; then | |
baafc534 RW |
18927 | soname=conftest |
18928 | lib=conftest | |
18929 | libobjs=conftest.$ac_objext | |
18930 | deplibs= | |
18931 | wl=$lt_prog_compiler_wl_GCJ | |
18932 | pic_flag=$lt_prog_compiler_pic_GCJ | |
18933 | compiler_flags=-v | |
18934 | linker_flags=-v | |
18935 | verstring= | |
18936 | output_objdir=. | |
18937 | libname=conftest | |
18938 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
18939 | allow_undefined_flag_GCJ= | |
5213506e | 18940 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
1cf3d07d SE |
18941 | (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
18942 | ac_status=$? | |
5213506e RW |
18943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
18944 | test $ac_status = 0; } | |
baafc534 RW |
18945 | then |
18946 | lt_cv_archive_cmds_need_lc_GCJ=no | |
18947 | else | |
18948 | lt_cv_archive_cmds_need_lc_GCJ=yes | |
18949 | fi | |
18950 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
18951 | else | |
18952 | cat conftest.err 1>&5 | |
18953 | fi | |
18954 | $RM conftest* | |
18955 | ||
18956 | fi | |
5213506e RW |
18957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5 |
18958 | $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; } | |
baafc534 | 18959 | archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ |
1cf3d07d SE |
18960 | ;; |
18961 | esac | |
18962 | fi | |
18963 | ;; | |
0da7a284 PG |
18964 | esac |
18965 | ||
18966 | ||
18967 | ||
18968 | ||
18969 | ||
18970 | ||
18971 | ||
ed698112 | 18972 | |
ed698112 | 18973 | |
ed698112 | 18974 | |
ed698112 | 18975 | |
ed698112 | 18976 | |
2622c79d | 18977 | |
ed698112 | 18978 | |
2622c79d | 18979 | |
2622c79d | 18980 | |
2622c79d RR |
18981 | |
18982 | ||
18983 | ||
18984 | ||
5950e016 | 18985 | |
5950e016 | 18986 | |
02731d29 | 18987 | |
5950e016 BM |
18988 | |
18989 | ||
1cf3d07d | 18990 | |
1cf3d07d | 18991 | |
1cf3d07d | 18992 | |
2622c79d | 18993 | |
b9e6a2e5 | 18994 | |
ade710a5 | 18995 | |
b9e6a2e5 | 18996 | |
b9e6a2e5 | 18997 | |
1cf3d07d SE |
18998 | |
18999 | ||
19000 | ||
19001 | ||
19002 | ||
19003 | ||
19004 | ||
19005 | ||
19006 | ||
19007 | ||
19008 | ||
19009 | ||
19010 | ||
19011 | ||
19012 | ||
19013 | ||
19014 | ||
19015 | ||
19016 | ||
19017 | ||
19018 | ||
19019 | ||
19020 | ||
19021 | ||
19022 | ||
19023 | ||
19024 | ||
19025 | ||
19026 | ||
19027 | ||
19028 | ||
5213506e RW |
19029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
19030 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
1cf3d07d SE |
19031 | hardcode_action_GCJ= |
19032 | if test -n "$hardcode_libdir_flag_spec_GCJ" || | |
19033 | test -n "$runpath_var_GCJ" || | |
19034 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
19035 | ||
19036 | # We can hardcode non-existent directories. | |
19037 | if test "$hardcode_direct_GCJ" != no && | |
19038 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
19039 | # have to relink, otherwise we might link with an installed library | |
19040 | # when we should be linking with a yet-to-be-installed one | |
19041 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
19042 | test "$hardcode_minus_L_GCJ" != no; then | |
19043 | # Linking always hardcodes the temporary library directory. | |
19044 | hardcode_action_GCJ=relink | |
19045 | else | |
19046 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
19047 | hardcode_action_GCJ=immediate | |
19048 | fi | |
b9e6a2e5 | 19049 | else |
1cf3d07d SE |
19050 | # We cannot hardcode anything, or else we can only hardcode existing |
19051 | # directories. | |
19052 | hardcode_action_GCJ=unsupported | |
19053 | fi | |
5213506e RW |
19054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 |
19055 | $as_echo "$hardcode_action_GCJ" >&6; } | |
b9e6a2e5 | 19056 | |
1cf3d07d SE |
19057 | if test "$hardcode_action_GCJ" = relink || |
19058 | test "$inherit_rpath_GCJ" = yes; then | |
19059 | # Fast installation is not supported | |
19060 | enable_fast_install=no | |
19061 | elif test "$shlibpath_overrides_runpath" = yes || | |
19062 | test "$enable_shared" = no; then | |
19063 | # Fast installation is not necessary | |
19064 | enable_fast_install=needless | |
76b972d6 | 19065 | fi |
b9e6a2e5 | 19066 | |
1cf3d07d SE |
19067 | |
19068 | ||
19069 | ||
19070 | ||
19071 | ||
19072 | ||
b9e6a2e5 | 19073 | fi |
b9e6a2e5 | 19074 | |
eecb7461 | 19075 | compiler_GCJ=${GCJ-gcj} |
1cf3d07d SE |
19076 | ac_ext=c |
19077 | ac_cpp='$CPP $CPPFLAGS' | |
19078 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19079 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19080 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19081 | ||
7f40378f | 19082 | |
1cf3d07d | 19083 | if test "x$CC" != xcc; then |
5213506e RW |
19084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
19085 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
1cf3d07d | 19086 | else |
5213506e RW |
19087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
19088 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
1cf3d07d | 19089 | fi |
5213506e | 19090 | set dummy $CC; ac_cc=`$as_echo "$2" | |
1cf3d07d | 19091 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
5213506e RW |
19092 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : |
19093 | $as_echo_n "(cached) " >&6 | |
b9e6a2e5 | 19094 | else |
5213506e | 19095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
19096 | /* end confdefs.h. */ |
19097 | ||
19098 | int | |
19099 | main () | |
19100 | { | |
19101 | ||
19102 | ; | |
19103 | return 0; | |
19104 | } | |
aad741f4 | 19105 | _ACEOF |
1cf3d07d SE |
19106 | # Make sure it works both with $CC and with simple cc. |
19107 | # We do the test twice because some compilers refuse to overwrite an | |
19108 | # existing .o file with -o, though they will create one. | |
5213506e RW |
19109 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
19110 | rm -f conftest2.* | |
19111 | if { { case "(($ac_try" in | |
19112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19113 | *) ac_try_echo=$ac_try;; | |
19114 | esac | |
19115 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
19116 | $as_echo "$ac_try_echo"; } >&5 | |
19117 | (eval "$ac_try") 2>&5 | |
19118 | ac_status=$? | |
19119 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19120 | test $ac_status = 0; } && | |
19121 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
19122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19123 | *) ac_try_echo=$ac_try;; | |
19124 | esac | |
19125 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
19126 | $as_echo "$ac_try_echo"; } >&5 | |
19127 | (eval "$ac_try") 2>&5 | |
aad741f4 | 19128 | ac_status=$? |
5213506e RW |
19129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
19130 | test $ac_status = 0; }; | |
1cf3d07d SE |
19131 | then |
19132 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
19133 | if test "x$CC" != xcc; then | |
19134 | # Test first that cc exists at all. | |
19135 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
5213506e RW |
19136 | { { case "(($ac_try" in |
19137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19138 | *) ac_try_echo=$ac_try;; | |
19139 | esac | |
19140 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
19141 | $as_echo "$ac_try_echo"; } >&5 | |
19142 | (eval "$ac_try") 2>&5 | |
19143 | ac_status=$? | |
19144 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19145 | test $ac_status = 0; }; }; then | |
19146 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
19147 | rm -f conftest2.* | |
19148 | if { { case "(($ac_try" in | |
19149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19150 | *) ac_try_echo=$ac_try;; | |
19151 | esac | |
19152 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
19153 | $as_echo "$ac_try_echo"; } >&5 | |
19154 | (eval "$ac_try") 2>&5 | |
19155 | ac_status=$? | |
19156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19157 | test $ac_status = 0; } && | |
19158 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
19159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19160 | *) ac_try_echo=$ac_try;; | |
19161 | esac | |
19162 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
19163 | $as_echo "$ac_try_echo"; } >&5 | |
19164 | (eval "$ac_try") 2>&5 | |
b9e6a2e5 | 19165 | ac_status=$? |
5213506e RW |
19166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
19167 | test $ac_status = 0; }; | |
1cf3d07d SE |
19168 | then |
19169 | # cc works too. | |
19170 | : | |
19171 | else | |
19172 | # cc exists but doesn't like -o. | |
19173 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
19174 | fi | |
19175 | fi | |
19176 | fi | |
b9e6a2e5 | 19177 | else |
1cf3d07d | 19178 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
b9e6a2e5 | 19179 | fi |
5213506e | 19180 | rm -f core conftest* |
aad741f4 | 19181 | |
7f40378f | 19182 | fi |
5213506e RW |
19183 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
19184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19185 | $as_echo "yes" >&6; } | |
7f40378f | 19186 | else |
5213506e RW |
19187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19188 | $as_echo "no" >&6; } | |
7f40378f | 19189 | |
5213506e | 19190 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
7f40378f | 19191 | |
7f40378f | 19192 | fi |
b9e6a2e5 | 19193 | |
1cf3d07d SE |
19194 | # FIXME: we rely on the cache variable name because |
19195 | # there is no other way. | |
19196 | set dummy $CC | |
5213506e RW |
19197 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
19198 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
19199 | if test "$am_t" != yes; then | |
1cf3d07d SE |
19200 | # Losing compiler, so override with the script. |
19201 | # FIXME: It is wrong to rewrite CC. | |
19202 | # But if we don't then we get into trouble of one sort or another. | |
19203 | # A longer-term fix would be to have automake use am__CC in this case, | |
19204 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
19205 | CC="$am_aux_dir/compile $CC" | |
b9e6a2e5 | 19206 | fi |
b9e6a2e5 | 19207 | |
b9e6a2e5 | 19208 | |
5950e016 | 19209 | |
d4708d9d | 19210 | |
5213506e | 19211 | |
1cf3d07d | 19212 | subdirs="$subdirs classpath libltdl" |
d4708d9d JH |
19213 | |
19214 | ||
1cf3d07d | 19215 | # The -no-testsuite modules omit the test subdir. |
5213506e | 19216 | if test -d $srcdir/testsuite; then |
1cf3d07d SE |
19217 | TESTSUBDIR_TRUE= |
19218 | TESTSUBDIR_FALSE='#' | |
d4708d9d | 19219 | else |
1cf3d07d SE |
19220 | TESTSUBDIR_TRUE='#' |
19221 | TESTSUBDIR_FALSE= | |
d4708d9d | 19222 | fi |
d4708d9d | 19223 | |
d4708d9d | 19224 | |
1cf3d07d SE |
19225 | # Should the runtime set system properties by examining the |
19226 | # environment variable GCJ_PROPERTIES? | |
5213506e RW |
19227 | # Check whether --enable-getenv-properties was given. |
19228 | if test "${enable_getenv_properties+set}" = set; then : | |
19229 | enableval=$enable_getenv_properties; | |
19230 | fi | |
1cf3d07d | 19231 | |
1cf3d07d SE |
19232 | |
19233 | # Whether GCJ_PROPERTIES is used depends on the target. | |
19234 | if test -z "$enable_getenv_properties"; then | |
19235 | enable_getenv_properties=${enable_getenv_properties_default-yes} | |
19236 | fi | |
19237 | if test "$enable_getenv_properties" = no; then | |
d4708d9d | 19238 | |
5213506e | 19239 | $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h |
d4708d9d | 19240 | |
1cf3d07d | 19241 | fi |
d4708d9d | 19242 | |
1cf3d07d SE |
19243 | # Whether we should use arguments to main() |
19244 | if test -z "$enable_main_args"; then | |
19245 | enable_main_args=${enable_main_args_default-yes} | |
47742ccd | 19246 | fi |
1cf3d07d | 19247 | if test "$enable_main_args" = no; then |
47742ccd | 19248 | |
5213506e | 19249 | $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h |
47742ccd JJ |
19250 | |
19251 | fi | |
47742ccd | 19252 | |
1cf3d07d SE |
19253 | |
19254 | # Should we use hashtable-based synchronization? | |
19255 | # Currently works only for Linux X86/ia64 | |
19256 | # Typically faster and more space-efficient | |
5213506e RW |
19257 | # Check whether --enable-hash-synchronization was given. |
19258 | if test "${enable_hash_synchronization+set}" = set; then : | |
19259 | enableval=$enable_hash_synchronization; | |
19260 | fi | |
1cf3d07d | 19261 | |
1cf3d07d SE |
19262 | |
19263 | if test -z "$enable_hash_synchronization"; then | |
19264 | enable_hash_synchronization=$enable_hash_synchronization_default | |
47742ccd | 19265 | fi |
47742ccd JJ |
19266 | |
19267 | ||
1cf3d07d SE |
19268 | install_ecj_jar=no |
19269 | ECJ_BUILD_JAR= | |
19270 | ECJ_JAR= | |
19271 | ||
5213506e RW |
19272 | # Check whether --with-ecj-jar was given. |
19273 | if test "${with_ecj_jar+set}" = set; then : | |
19274 | withval=$with_ecj_jar; ECJ_JAR=$withval | |
47742ccd | 19275 | else |
1cf3d07d SE |
19276 | if test -f $multi_basedir/ecj.jar; then |
19277 | ECJ_BUILD_JAR=$multi_basedir/ecj.jar | |
19278 | ECJ_JAR='$(jardir)/ecj.jar' | |
19279 | install_ecj_jar=yes | |
19280 | fi | |
5213506e | 19281 | fi |
1cf3d07d SE |
19282 | |
19283 | ||
19284 | ||
5213506e | 19285 | if test "$ECJ_JAR" != ""; then |
1cf3d07d SE |
19286 | BUILD_ECJ1_TRUE= |
19287 | BUILD_ECJ1_FALSE='#' | |
19288 | else | |
19289 | BUILD_ECJ1_TRUE='#' | |
19290 | BUILD_ECJ1_FALSE= | |
47742ccd JJ |
19291 | fi |
19292 | ||
5213506e | 19293 | if test $install_ecj_jar = yes; then |
1cf3d07d SE |
19294 | INSTALL_ECJ_JAR_TRUE= |
19295 | INSTALL_ECJ_JAR_FALSE='#' | |
19296 | else | |
19297 | INSTALL_ECJ_JAR_TRUE='#' | |
19298 | INSTALL_ECJ_JAR_FALSE= | |
d6c122f7 DD |
19299 | fi |
19300 | ||
19301 | ||
5950e016 | 19302 | |
5213506e RW |
19303 | # Check whether --with-java-home was given. |
19304 | if test "${with_java_home+set}" = set; then : | |
19305 | withval=$with_java_home; JAVA_HOME="${withval}" | |
1cf3d07d SE |
19306 | else |
19307 | JAVA_HOME="" | |
5213506e | 19308 | fi |
ed698112 | 19309 | |
5213506e | 19310 | if test ! -z "$JAVA_HOME"; then |
1cf3d07d SE |
19311 | JAVA_HOME_SET_TRUE= |
19312 | JAVA_HOME_SET_FALSE='#' | |
19313 | else | |
19314 | JAVA_HOME_SET_TRUE='#' | |
19315 | JAVA_HOME_SET_FALSE= | |
19316 | fi | |
ed698112 NN |
19317 | |
19318 | ||
02809848 | 19319 | |
a507baad | 19320 | suppress_libgcj_bc=no |
5213506e RW |
19321 | # Check whether --enable-libgcj-bc was given. |
19322 | if test "${enable_libgcj_bc+set}" = set; then : | |
19323 | enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then | |
a507baad DD |
19324 | suppress_libgcj_bc=yes |
19325 | fi | |
5213506e | 19326 | fi |
a507baad | 19327 | |
5213506e | 19328 | if test "$suppress_libgcj_bc" = "yes"; then |
a507baad DD |
19329 | SUPPRESS_LIBGCJ_BC_TRUE= |
19330 | SUPPRESS_LIBGCJ_BC_FALSE='#' | |
19331 | else | |
19332 | SUPPRESS_LIBGCJ_BC_TRUE='#' | |
19333 | SUPPRESS_LIBGCJ_BC_FALSE= | |
19334 | fi | |
19335 | ||
19336 | ||
c07cd2c7 | 19337 | build_libgcj_reduced_reflection=no |
5213506e RW |
19338 | # Check whether --enable-reduced-reflection was given. |
19339 | if test "${enable_reduced_reflection+set}" = set; then : | |
19340 | enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then | |
c07cd2c7 DD |
19341 | build_libgcj_reduced_reflection=yes |
19342 | fi | |
5213506e | 19343 | fi |
c07cd2c7 | 19344 | |
5213506e | 19345 | if test "$build_libgcj_reduced_reflection" = "yes"; then |
c07cd2c7 DD |
19346 | BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE= |
19347 | BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#' | |
19348 | else | |
19349 | BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#' | |
19350 | BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE= | |
19351 | fi | |
19352 | ||
19353 | ||
1cf3d07d | 19354 | # What is the native OS API for MinGW? |
02809848 | 19355 | |
5213506e RW |
19356 | # Check whether --with-win32-nlsapi was given. |
19357 | if test "${with_win32_nlsapi+set}" = set; then : | |
19358 | withval=$with_win32_nlsapi; case "${withval}" in | |
1cf3d07d SE |
19359 | ansi) with_win32_nlsapi=ansi ;; |
19360 | unicows) with_win32_nlsapi=unicows ;; | |
19361 | unicode) with_win32_nlsapi=unicode ;; | |
5213506e | 19362 | *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;; |
1cf3d07d SE |
19363 | esac |
19364 | else | |
19365 | with_win32_nlsapi=ansi | |
5213506e RW |
19366 | fi |
19367 | ||
cad90591 | 19368 | |
1cf3d07d SE |
19369 | case "${with_win32_nlsapi}" in |
19370 | unicows | unicode) | |
cad90591 | 19371 | |
5213506e | 19372 | $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h |
cad90591 | 19373 | |
1cf3d07d SE |
19374 | ;; |
19375 | esac | |
cad90591 | 19376 | |
1cf3d07d SE |
19377 | # configure.host sets slow_pthread_self if the synchronization code should |
19378 | # try to avoid pthread_self calls by caching thread IDs in a hashtable. | |
19379 | if test "${slow_pthread_self}" = "yes"; then | |
ed698112 | 19380 | |
5213506e | 19381 | $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h |
ed698112 | 19382 | |
ed698112 | 19383 | fi |
ed698112 | 19384 | |
1cf3d07d | 19385 | # Check for gc debugging. This option is handled both here and in the GC. |
5213506e RW |
19386 | # Check whether --enable-gc-debug was given. |
19387 | if test "${enable_gc_debug+set}" = set; then : | |
19388 | enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then | |
ed698112 | 19389 | |
5213506e | 19390 | $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h |
ade710a5 | 19391 | |
1cf3d07d | 19392 | fi |
5213506e RW |
19393 | fi |
19394 | ||
ed698112 | 19395 | |
1cf3d07d | 19396 | # See if the user has the interpreter included. |
5213506e RW |
19397 | # Check whether --enable-interpreter was given. |
19398 | if test "${enable_interpreter+set}" = set; then : | |
19399 | enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then | |
1cf3d07d SE |
19400 | # This can also be set in configure.host. |
19401 | libgcj_interpreter=yes | |
19402 | elif test "$enable_interpreter" = no; then | |
19403 | libgcj_interpreter=no | |
19404 | fi | |
5213506e RW |
19405 | fi |
19406 | ||
ed698112 | 19407 | |
1cf3d07d | 19408 | if test "$libgcj_interpreter" = yes; then |
ed698112 | 19409 | |
5213506e | 19410 | $as_echo "#define INTERPRETER 1" >>confdefs.h |
ed698112 | 19411 | |
97b8365c | 19412 | fi |
1cf3d07d SE |
19413 | INTERPRETER="$libgcj_interpreter" |
19414 | ||
5213506e | 19415 | if test "$libgcj_interpreter" = yes; then |
86acf60c DD |
19416 | INTERPRETER_TRUE= |
19417 | INTERPRETER_FALSE='#' | |
19418 | else | |
19419 | INTERPRETER_TRUE='#' | |
19420 | INTERPRETER_FALSE= | |
19421 | fi | |
19422 | ||
19423 | ||
5213506e RW |
19424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5 |
19425 | $as_echo_n "checking for exception model to use... " >&6; } | |
19426 | ac_ext=cpp | |
1cf3d07d SE |
19427 | ac_cpp='$CXXCPP $CPPFLAGS' |
19428 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19429 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19430 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19431 | ||
5213506e RW |
19432 | # Check whether --enable-sjlj-exceptions was given. |
19433 | if test "${enable_sjlj_exceptions+set}" = set; then : | |
19434 | enableval=$enable_sjlj_exceptions; : | |
1cf3d07d SE |
19435 | else |
19436 | cat > conftest.$ac_ext << EOF | |
22a4778a | 19437 | #line 19437 "configure" |
1cf3d07d SE |
19438 | struct S { ~S(); }; |
19439 | void bar(); | |
19440 | void foo() | |
19441 | { | |
19442 | S s; | |
19443 | bar(); | |
19444 | } | |
19445 | EOF | |
19446 | old_CXXFLAGS="$CXXFLAGS" | |
19447 | CXXFLAGS=-S | |
5213506e | 19448 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
1cf3d07d SE |
19449 | (eval $ac_compile) 2>&5 |
19450 | ac_status=$? | |
5213506e RW |
19451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
19452 | test $ac_status = 0; }; then | |
1cf3d07d SE |
19453 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then |
19454 | enable_sjlj_exceptions=yes | |
19455 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | |
19456 | enable_sjlj_exceptions=no | |
48965b7c MM |
19457 | elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then |
19458 | # ARM EH ABI. | |
19459 | enable_sjlj_exceptions=no | |
1cf3d07d | 19460 | fi |
e3f92d3b | 19461 | fi |
1cf3d07d SE |
19462 | CXXFLAGS="$old_CXXFLAGS" |
19463 | rm -f conftest* | |
5213506e RW |
19464 | fi |
19465 | ||
1cf3d07d SE |
19466 | if test x$enable_sjlj_exceptions = xyes; then |
19467 | ||
5213506e | 19468 | $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h |
1cf3d07d SE |
19469 | |
19470 | ac_exception_model_name=sjlj | |
19471 | elif test x$enable_sjlj_exceptions = xno; then | |
19472 | ac_exception_model_name="call frame" | |
19473 | else | |
5213506e | 19474 | as_fn_error "unable to detect exception model" "$LINENO" 5 |
e3f92d3b | 19475 | fi |
1cf3d07d SE |
19476 | ac_ext=c |
19477 | ac_cpp='$CPP $CPPFLAGS' | |
19478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19481 | ||
5213506e RW |
19482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5 |
19483 | $as_echo "$ac_exception_model_name" >&6; } | |
1cf3d07d SE |
19484 | |
19485 | # If we are non using SJLJ exceptions, and this host does not have support | |
19486 | # for unwinding from a signal handler, enable checked dereferences and divides. | |
19487 | if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then | |
19488 | CHECKREFSPEC=-fcheck-references | |
19489 | DIVIDESPEC=-fuse-divide-subroutine | |
19490 | EXCEPTIONSPEC= | |
e3f92d3b | 19491 | fi |
1cf3d07d SE |
19492 | |
19493 | # See if the user wants to disable java.net. This is the mildly | |
19494 | # ugly way that we admit that target-side configuration sucks. | |
5213506e RW |
19495 | # Check whether --enable-java-net was given. |
19496 | if test "${enable_java_net+set}" = set; then : | |
19497 | enableval=$enable_java_net; | |
19498 | fi | |
1cf3d07d | 19499 | |
1cf3d07d SE |
19500 | |
19501 | # Whether java.net is built by default can depend on the target. | |
19502 | if test -z "$enable_java_net"; then | |
19503 | enable_java_net=${enable_java_net_default-yes} | |
e3f92d3b | 19504 | fi |
1cf3d07d SE |
19505 | if test "$enable_java_net" = no; then |
19506 | ||
5213506e | 19507 | $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h |
1cf3d07d | 19508 | |
b0fa81ee | 19509 | fi |
1cf3d07d SE |
19510 | |
19511 | # See if the user wants to configure without libffi. Some | |
19512 | # architectures don't support it, and default values are set in | |
19513 | # configure.host. | |
19514 | ||
5213506e RW |
19515 | # Check whether --with-libffi was given. |
19516 | if test "${with_libffi+set}" = set; then : | |
19517 | withval=$with_libffi; : | |
1cf3d07d SE |
19518 | else |
19519 | with_libffi=${with_libffi_default-yes} | |
5213506e RW |
19520 | fi |
19521 | ||
1cf3d07d SE |
19522 | |
19523 | LIBFFI= | |
19524 | LIBFFIINCS= | |
19525 | if test "$with_libffi" != no; then | |
19526 | ||
5213506e | 19527 | $as_echo "#define USE_LIBFFI 1" >>confdefs.h |
1cf3d07d SE |
19528 | |
19529 | LIBFFI=../libffi/libffi_convenience.la | |
19530 | LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include' | |
97b8365c | 19531 | fi |
1cf3d07d SE |
19532 | |
19533 | ||
19534 | ||
19535 | # See if the user wants to disable JVMPI support. | |
5213506e RW |
19536 | # Check whether --enable-jvmpi was given. |
19537 | if test "${enable_jvmpi+set}" = set; then : | |
19538 | enableval=$enable_jvmpi; | |
19539 | fi | |
1cf3d07d | 19540 | |
1cf3d07d SE |
19541 | |
19542 | if test "$enable_jvmpi" != no; then | |
19543 | ||
5213506e | 19544 | $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h |
1cf3d07d | 19545 | |
e3f92d3b | 19546 | fi |
1cf3d07d SE |
19547 | |
19548 | # If the target is an eCos system, use the appropriate eCos | |
19549 | # I/O routines. | |
19550 | # FIXME: this should not be a local option but a global target | |
19551 | # system; at present there is no eCos target. | |
19552 | TARGET_ECOS=${PROCESS-"no"} | |
19553 | ||
5213506e RW |
19554 | # Check whether --with-ecos was given. |
19555 | if test "${with_ecos+set}" = set; then : | |
19556 | withval=$with_ecos; TARGET_ECOS="$with_ecos" | |
19557 | ||
19558 | fi | |
1cf3d07d | 19559 | |
1cf3d07d SE |
19560 | |
19561 | case "$TARGET_ECOS" in | |
19562 | no) case "$host" in | |
19563 | *mingw*) | |
19564 | PLATFORM=Win32 | |
19565 | PLATFORMNET=Win32 | |
19566 | PLATFORMH=win32.h | |
19567 | ||
5213506e RW |
19568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5 |
19569 | $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; } | |
1cf3d07d SE |
19570 | LD_PROG=`$CC --print-prog-name=ld` |
19571 | LD_VERSION=`$LD_PROG --version` | |
19572 | LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4` | |
19573 | LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2` | |
19574 | if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then | |
19575 | LD_OK="ok" | |
19576 | else | |
19577 | if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then | |
19578 | LD_OK="ok" | |
19579 | fi | |
e3f92d3b | 19580 | fi |
1cf3d07d | 19581 | if test "x$LD_OK" != x; then |
5213506e RW |
19582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5 |
19583 | $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; } | |
1cf3d07d | 19584 | else |
5213506e RW |
19585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5 |
19586 | $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; } | |
19587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5 | |
19588 | $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;} | |
1cf3d07d | 19589 | |
5213506e | 19590 | $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h |
1cf3d07d | 19591 | |
97b8365c | 19592 | fi |
1cf3d07d SE |
19593 | ;; |
19594 | *) | |
19595 | PLATFORM=Posix | |
19596 | PLATFORMNET=Posix | |
19597 | PLATFORMH=posix.h | |
19598 | ;; | |
19599 | esac | |
19600 | ;; | |
19601 | *) | |
19602 | PLATFORM=Ecos | |
19603 | PLATFORMNET=NoNet | |
ed698112 | 19604 | |
5213506e | 19605 | $as_echo "#define ECOS 1" >>confdefs.h |
ed698112 | 19606 | |
1cf3d07d SE |
19607 | PLATFORMH=posix.h |
19608 | ;; | |
19609 | esac | |
ed698112 | 19610 | |
5213506e | 19611 | ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH" |
ed698112 | 19612 | |
ed698112 | 19613 | |
5213506e | 19614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
19615 | /* end confdefs.h. */ |
19616 | #include <stdint.h> | |
ed698112 | 19617 | |
1cf3d07d SE |
19618 | _ACEOF |
19619 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 19620 | $EGREP "uint32_t" >/dev/null 2>&1; then : |
ed698112 | 19621 | |
5213506e | 19622 | $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h |
ed698112 | 19623 | |
ed698112 | 19624 | fi |
1cf3d07d SE |
19625 | rm -f conftest* |
19626 | ||
5213506e | 19627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
19628 | /* end confdefs.h. */ |
19629 | #include <inttypes.h> | |
19630 | ||
19631 | _ACEOF | |
19632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 19633 | $EGREP "uint32_t" >/dev/null 2>&1; then : |
1cf3d07d | 19634 | |
5213506e | 19635 | $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h |
ed698112 | 19636 | |
ed698112 | 19637 | fi |
1cf3d07d | 19638 | rm -f conftest* |
ed698112 | 19639 | |
5213506e | 19640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
19641 | /* end confdefs.h. */ |
19642 | #include <sys/types.h> | |
ed698112 | 19643 | |
1cf3d07d SE |
19644 | _ACEOF |
19645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 19646 | $EGREP "u_int32_t" >/dev/null 2>&1; then : |
ed698112 | 19647 | |
5213506e | 19648 | $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h |
ade710a5 | 19649 | |
1cf3d07d SE |
19650 | fi |
19651 | rm -f conftest* | |
ed698112 | 19652 | |
5213506e | 19653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
19654 | /* end confdefs.h. */ |
19655 | #include <sys/config.h> | |
ed698112 | 19656 | |
1cf3d07d SE |
19657 | _ACEOF |
19658 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 19659 | $EGREP "u_int32_t" >/dev/null 2>&1; then : |
ed698112 | 19660 | |
5213506e | 19661 | $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h |
ed698112 | 19662 | |
1cf3d07d SE |
19663 | fi |
19664 | rm -f conftest* | |
ed698112 | 19665 | |
ed698112 | 19666 | |
5213506e | 19667 | if test "$PLATFORM" = Win32; then |
1cf3d07d SE |
19668 | USING_WIN32_PLATFORM_TRUE= |
19669 | USING_WIN32_PLATFORM_FALSE='#' | |
ed698112 | 19670 | else |
1cf3d07d SE |
19671 | USING_WIN32_PLATFORM_TRUE='#' |
19672 | USING_WIN32_PLATFORM_FALSE= | |
ed698112 NN |
19673 | fi |
19674 | ||
5213506e | 19675 | if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then |
1cf3d07d SE |
19676 | USING_POSIX_PLATFORM_TRUE= |
19677 | USING_POSIX_PLATFORM_FALSE='#' | |
ed698112 | 19678 | else |
1cf3d07d SE |
19679 | USING_POSIX_PLATFORM_TRUE='#' |
19680 | USING_POSIX_PLATFORM_FALSE= | |
ed698112 | 19681 | fi |
ed698112 | 19682 | |
1cf3d07d SE |
19683 | |
19684 | case "$host" in | |
19685 | *-darwin*) DARWIN_CRT=true ;; | |
19686 | *) DARWIN_CRT=false ;; | |
19687 | esac | |
5213506e | 19688 | if $DARWIN_CRT; then |
1cf3d07d SE |
19689 | USING_DARWIN_CRT_TRUE= |
19690 | USING_DARWIN_CRT_FALSE='#' | |
ed698112 | 19691 | else |
1cf3d07d SE |
19692 | USING_DARWIN_CRT_TRUE='#' |
19693 | USING_DARWIN_CRT_FALSE= | |
ed698112 NN |
19694 | fi |
19695 | ||
ed698112 | 19696 | |
1cf3d07d SE |
19697 | # This may not be defined in a non-ANS conformant embedded system. |
19698 | # FIXME: Should these case a runtime exception in that case? | |
5213506e | 19699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
19700 | /* end confdefs.h. */ |
19701 | #include <time.h> | |
ed698112 | 19702 | |
1cf3d07d SE |
19703 | _ACEOF |
19704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 19705 | $EGREP "localtime" >/dev/null 2>&1; then : |
ed698112 | 19706 | |
5213506e | 19707 | $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h |
ed698112 | 19708 | |
1cf3d07d SE |
19709 | fi |
19710 | rm -f conftest* | |
ade710a5 | 19711 | |
ade710a5 | 19712 | |
1cf3d07d SE |
19713 | # Create the subdirectory for natFile.cc, or the attempt |
19714 | # to create the link will fail. | |
19715 | test -d java || mkdir java | |
19716 | test -d java/io || mkdir java/io | |
19717 | test -d gnu || mkdir gnu | |
5213506e | 19718 | ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" |
ed698112 | 19719 | |
ade710a5 | 19720 | |
1cf3d07d SE |
19721 | # Likewise for natConcreteProcess.cc. |
19722 | test -d java/lang || mkdir java/lang | |
5213506e | 19723 | ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" |
ed698112 | 19724 | |
ed698112 | 19725 | |
1cf3d07d SE |
19726 | # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc. |
19727 | test -d java/net || mkdir java/net | |
5213506e | 19728 | ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" |
ed698112 | 19729 | |
5213506e | 19730 | ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" |
ed698112 | 19731 | |
ade710a5 | 19732 | |
1cf3d07d SE |
19733 | # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc. |
19734 | test -d gnu/java || mkdir gnu/java | |
19735 | test -d gnu/java/net || mkdir gnu/java/net | |
5213506e | 19736 | ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" |
ade710a5 | 19737 | |
5213506e | 19738 | ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" |
ed698112 | 19739 | |
ade710a5 | 19740 | |
1cf3d07d SE |
19741 | # Likewise for natVMPipe.cc and natVMSelector.cc. |
19742 | test -d gnu/java/nio || mkdir gnu/java/nio | |
5213506e | 19743 | ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" |
ed698112 | 19744 | |
5213506e | 19745 | ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" |
ed698112 | 19746 | |
ed698112 | 19747 | |
1cf3d07d SE |
19748 | # Likewise for natFileChannelImpl.cc |
19749 | test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels | |
5213506e | 19750 | ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" |
ed698112 | 19751 | |
ee9dd372 | 19752 | |
dc6a0b2d | 19753 | # Likewise for natVMSecureRandom.cc |
fd24db29 MK |
19754 | test -d gnu/java/security || mkdir gnu/java/security |
19755 | test -d gnu/java/security/jce || mkdir gnu/java/security/jce | |
dc6a0b2d | 19756 | test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng |
5213506e | 19757 | ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" |
dc6a0b2d AJH |
19758 | |
19759 | ||
1cf3d07d SE |
19760 | case "${host}" in |
19761 | *mingw*) | |
19762 | SYSTEMSPEC="-lgdi32 -lws2_32" | |
19763 | if test "${with_win32_nlsapi}" = "unicows"; then | |
19764 | SYSTEMSPEC="-lunicows $SYSTEMSPEC" | |
19765 | fi | |
19766 | ;; | |
5df19a91 | 19767 | *-*-darwin[912]*) |
f8328d1d | 19768 | SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}" |
5df19a91 | 19769 | ;; |
1cf3d07d SE |
19770 | *) |
19771 | SYSTEMSPEC= | |
19772 | ;; | |
19773 | esac | |
ee9dd372 | 19774 | |
7e0c895f | 19775 | |
ed698112 | 19776 | |
5213506e RW |
19777 | # Check whether --with-system-zlib was given. |
19778 | if test "${with_system_zlib+set}" = set; then : | |
19779 | withval=$with_system_zlib; | |
19780 | fi | |
ee9dd372 | 19781 | |
1cf3d07d | 19782 | ZLIBSPEC= |
ee9dd372 | 19783 | |
1cf3d07d | 19784 | ZLIBTESTSPEC= |
ee9dd372 | 19785 | |
ee9dd372 | 19786 | |
5213506e RW |
19787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
19788 | $as_echo_n "checking for X... " >&6; } | |
ee9dd372 | 19789 | |
ee9dd372 | 19790 | |
5213506e RW |
19791 | # Check whether --with-x was given. |
19792 | if test "${with_x+set}" = set; then : | |
19793 | withval=$with_x; | |
19794 | fi | |
ee9dd372 | 19795 | |
1cf3d07d SE |
19796 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
19797 | if test "x$with_x" = xno; then | |
19798 | # The user explicitly disabled X. | |
19799 | have_x=disabled | |
19800 | else | |
5213506e RW |
19801 | case $x_includes,$x_libraries in #( |
19802 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( | |
19803 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | |
19804 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
19805 | else |
19806 | # One or both of the vars are not set, and there is no cached value. | |
19807 | ac_x_includes=no ac_x_libraries=no | |
5213506e | 19808 | rm -f -r conftest.dir |
1cf3d07d SE |
19809 | if mkdir conftest.dir; then |
19810 | cd conftest.dir | |
1cf3d07d | 19811 | cat >Imakefile <<'_ACEOF' |
5213506e RW |
19812 | incroot: |
19813 | @echo incroot='${INCROOT}' | |
19814 | usrlibdir: | |
19815 | @echo usrlibdir='${USRLIBDIR}' | |
19816 | libdir: | |
19817 | @echo libdir='${LIBDIR}' | |
19818 | _ACEOF | |
19819 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
1cf3d07d | 19820 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5213506e RW |
19821 | for ac_var in incroot usrlibdir libdir; do |
19822 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
19823 | done | |
1cf3d07d | 19824 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
5213506e RW |
19825 | for ac_extension in a so sl dylib la dll; do |
19826 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | |
19827 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
1cf3d07d SE |
19828 | ac_im_usrlibdir=$ac_im_libdir; break |
19829 | fi | |
19830 | done | |
19831 | # Screen out bogus values from the imake configuration. They are | |
19832 | # bogus both because they are the default anyway, and because | |
19833 | # using them would break gcc on systems where it needs fixed includes. | |
19834 | case $ac_im_incroot in | |
5213506e | 19835 | /usr/include) ac_x_includes= ;; |
1cf3d07d SE |
19836 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
19837 | esac | |
19838 | case $ac_im_usrlibdir in | |
5213506e | 19839 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
1cf3d07d SE |
19840 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
19841 | esac | |
19842 | fi | |
19843 | cd .. | |
5213506e | 19844 | rm -f -r conftest.dir |
ed698112 NN |
19845 | fi |
19846 | ||
1cf3d07d SE |
19847 | # Standard set of common directories for X headers. |
19848 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
19849 | ac_x_header_dirs=' | |
19850 | /usr/X11/include | |
5213506e | 19851 | /usr/X11R7/include |
1cf3d07d SE |
19852 | /usr/X11R6/include |
19853 | /usr/X11R5/include | |
19854 | /usr/X11R4/include | |
ade710a5 | 19855 | |
1cf3d07d | 19856 | /usr/include/X11 |
5213506e | 19857 | /usr/include/X11R7 |
1cf3d07d SE |
19858 | /usr/include/X11R6 |
19859 | /usr/include/X11R5 | |
19860 | /usr/include/X11R4 | |
8a489465 | 19861 | |
1cf3d07d | 19862 | /usr/local/X11/include |
5213506e | 19863 | /usr/local/X11R7/include |
1cf3d07d SE |
19864 | /usr/local/X11R6/include |
19865 | /usr/local/X11R5/include | |
19866 | /usr/local/X11R4/include | |
ed698112 | 19867 | |
1cf3d07d | 19868 | /usr/local/include/X11 |
5213506e | 19869 | /usr/local/include/X11R7 |
1cf3d07d SE |
19870 | /usr/local/include/X11R6 |
19871 | /usr/local/include/X11R5 | |
19872 | /usr/local/include/X11R4 | |
ed698112 | 19873 | |
1cf3d07d SE |
19874 | /usr/X386/include |
19875 | /usr/x386/include | |
19876 | /usr/XFree86/include/X11 | |
ed698112 | 19877 | |
1cf3d07d SE |
19878 | /usr/include |
19879 | /usr/local/include | |
19880 | /usr/unsupported/include | |
19881 | /usr/athena/include | |
19882 | /usr/local/x11r5/include | |
19883 | /usr/lpp/Xamples/include | |
02809848 | 19884 | |
1cf3d07d SE |
19885 | /usr/openwin/include |
19886 | /usr/openwin/share/include' | |
ade710a5 | 19887 | |
1cf3d07d | 19888 | if test "$ac_x_includes" = no; then |
5213506e | 19889 | # Guess where to find include files, by looking for Xlib.h. |
1cf3d07d | 19890 | # First, try using that file with no special directory specified. |
5213506e | 19891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 19892 | /* end confdefs.h. */ |
5213506e | 19893 | #include <X11/Xlib.h> |
1cf3d07d | 19894 | _ACEOF |
5213506e | 19895 | if ac_fn_c_try_cpp "$LINENO"; then : |
1cf3d07d SE |
19896 | # We can compile using X headers with no special include directory. |
19897 | ac_x_includes= | |
19898 | else | |
1cf3d07d | 19899 | for ac_dir in $ac_x_header_dirs; do |
5213506e | 19900 | if test -r "$ac_dir/X11/Xlib.h"; then |
1cf3d07d SE |
19901 | ac_x_includes=$ac_dir |
19902 | break | |
19903 | fi | |
19904 | done | |
ed698112 | 19905 | fi |
1cf3d07d SE |
19906 | rm -f conftest.err conftest.$ac_ext |
19907 | fi # $ac_x_includes = no | |
ed698112 | 19908 | |
1cf3d07d SE |
19909 | if test "$ac_x_libraries" = no; then |
19910 | # Check for the libraries. | |
19911 | # See if we find them without any special options. | |
19912 | # Don't add to $LIBS permanently. | |
19913 | ac_save_LIBS=$LIBS | |
5213506e | 19914 | LIBS="-lX11 $LIBS" |
1cf3d07d | 19915 | if test x$gcc_no_link = xyes; then |
5213506e | 19916 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 19917 | fi |
5213506e | 19918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 19919 | /* end confdefs.h. */ |
5213506e | 19920 | #include <X11/Xlib.h> |
1cf3d07d SE |
19921 | int |
19922 | main () | |
ed698112 | 19923 | { |
5213506e | 19924 | XrmInitialize () |
1cf3d07d SE |
19925 | ; |
19926 | return 0; | |
ed698112 | 19927 | } |
1cf3d07d | 19928 | _ACEOF |
5213506e | 19929 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
19930 | LIBS=$ac_save_LIBS |
19931 | # We can link X programs with no special library path. | |
19932 | ac_x_libraries= | |
19933 | else | |
5213506e RW |
19934 | LIBS=$ac_save_LIBS |
19935 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
1cf3d07d SE |
19936 | do |
19937 | # Don't even attempt the hair of trying to link an X program! | |
5213506e RW |
19938 | for ac_extension in a so sl dylib la dll; do |
19939 | if test -r "$ac_dir/libX11.$ac_extension"; then | |
1cf3d07d SE |
19940 | ac_x_libraries=$ac_dir |
19941 | break 2 | |
19942 | fi | |
19943 | done | |
19944 | done | |
19945 | fi | |
5213506e RW |
19946 | rm -f core conftest.err conftest.$ac_objext \ |
19947 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d | 19948 | fi # $ac_x_libraries = no |
ee9dd372 | 19949 | |
5213506e RW |
19950 | case $ac_x_includes,$ac_x_libraries in #( |
19951 | no,* | *,no | *\'*) | |
19952 | # Didn't find X, or a directory has "'" in its name. | |
19953 | ac_cv_have_x="have_x=no";; #( | |
19954 | *) | |
19955 | # Record where we found X for the cache. | |
19956 | ac_cv_have_x="have_x=yes\ | |
19957 | ac_x_includes='$ac_x_includes'\ | |
19958 | ac_x_libraries='$ac_x_libraries'" | |
19959 | esac | |
1cf3d07d | 19960 | fi |
5213506e RW |
19961 | ;; #( |
19962 | *) have_x=yes;; | |
19963 | esac | |
1cf3d07d SE |
19964 | eval "$ac_cv_have_x" |
19965 | fi # $with_x != no | |
19966 | ||
19967 | if test "$have_x" != yes; then | |
5213506e RW |
19968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
19969 | $as_echo "$have_x" >&6; } | |
1cf3d07d SE |
19970 | no_x=yes |
19971 | else | |
19972 | # If each of the values was on the command line, it overrides each guess. | |
19973 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
19974 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
19975 | # Update the cache value to reflect the command line values. | |
5213506e RW |
19976 | ac_cv_have_x="have_x=yes\ |
19977 | ac_x_includes='$x_includes'\ | |
19978 | ac_x_libraries='$x_libraries'" | |
19979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | |
19980 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | |
1cf3d07d SE |
19981 | fi |
19982 | ||
19983 | if test "$no_x" = yes; then | |
19984 | # Not all programs may use this symbol, but it does not hurt to define it. | |
ee9dd372 | 19985 | |
5213506e | 19986 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
ade710a5 | 19987 | |
1cf3d07d SE |
19988 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
19989 | else | |
19990 | if test -n "$x_includes"; then | |
19991 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
19992 | fi | |
ade710a5 | 19993 | |
1cf3d07d SE |
19994 | # It would also be nice to do this for all -L options, not just this one. |
19995 | if test -n "$x_libraries"; then | |
19996 | X_LIBS="$X_LIBS -L$x_libraries" | |
19997 | # For Solaris; some versions of Sun CC require a space after -R and | |
19998 | # others require no space. Words are not sufficient . . . . | |
5213506e RW |
19999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
20000 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | |
20001 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
20002 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
20003 | ac_c_werror_flag=yes | |
20004 | if test x$gcc_no_link = xyes; then | |
20005 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
1cf3d07d | 20006 | fi |
5213506e | 20007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 20008 | /* end confdefs.h. */ |
ed698112 | 20009 | |
1cf3d07d SE |
20010 | int |
20011 | main () | |
20012 | { | |
20013 | ||
20014 | ; | |
20015 | return 0; | |
20016 | } | |
20017 | _ACEOF | |
5213506e RW |
20018 | if ac_fn_c_try_link "$LINENO"; then : |
20019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20020 | $as_echo "no" >&6; } | |
20021 | X_LIBS="$X_LIBS -R$x_libraries" | |
1cf3d07d | 20022 | else |
5213506e RW |
20023 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
20024 | if test x$gcc_no_link = xyes; then | |
20025 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
1cf3d07d | 20026 | fi |
5213506e | 20027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20028 | /* end confdefs.h. */ |
20029 | ||
20030 | int | |
20031 | main () | |
20032 | { | |
20033 | ||
20034 | ; | |
20035 | return 0; | |
20036 | } | |
20037 | _ACEOF | |
5213506e RW |
20038 | if ac_fn_c_try_link "$LINENO"; then : |
20039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20040 | $as_echo "yes" >&6; } | |
20041 | X_LIBS="$X_LIBS -R $x_libraries" | |
1cf3d07d | 20042 | else |
5213506e RW |
20043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
20044 | $as_echo "neither works" >&6; } | |
1cf3d07d | 20045 | fi |
5213506e RW |
20046 | rm -f core conftest.err conftest.$ac_objext \ |
20047 | conftest$ac_exeext conftest.$ac_ext | |
20048 | fi | |
20049 | rm -f core conftest.err conftest.$ac_objext \ | |
20050 | conftest$ac_exeext conftest.$ac_ext | |
20051 | ac_c_werror_flag=$ac_xsave_c_werror_flag | |
20052 | LIBS=$ac_xsave_LIBS | |
1cf3d07d SE |
20053 | fi |
20054 | ||
20055 | # Check for system-dependent libraries X programs must link with. | |
20056 | # Do this before checking for the system-independent R6 libraries | |
20057 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
20058 | ||
20059 | if test "$ISC" = yes; then | |
20060 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
20061 | else | |
20062 | # Martyn Johnson says this is needed for Ultrix, if the X | |
20063 | # libraries were built with DECnet support. And Karl Berry says | |
20064 | # the Alpha needs dnet_stub (dnet does not exist). | |
20065 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
20066 | if test x$gcc_no_link = xyes; then | |
5213506e | 20067 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20068 | fi |
5213506e | 20069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20070 | /* end confdefs.h. */ |
20071 | ||
5213506e RW |
20072 | /* Override any GCC internal prototype to avoid an error. |
20073 | Use char because int might match the return type of a GCC | |
20074 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20075 | #ifdef __cplusplus |
20076 | extern "C" | |
20077 | #endif | |
1cf3d07d SE |
20078 | char XOpenDisplay (); |
20079 | int | |
20080 | main () | |
20081 | { | |
5213506e | 20082 | return XOpenDisplay (); |
1cf3d07d SE |
20083 | ; |
20084 | return 0; | |
20085 | } | |
20086 | _ACEOF | |
5213506e | 20087 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d | 20088 | |
5213506e RW |
20089 | else |
20090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | |
20091 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | |
20092 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : | |
20093 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20094 | else |
20095 | ac_check_lib_save_LIBS=$LIBS | |
20096 | LIBS="-ldnet $LIBS" | |
20097 | if test x$gcc_no_link = xyes; then | |
5213506e | 20098 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20099 | fi |
5213506e | 20100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20101 | /* end confdefs.h. */ |
20102 | ||
5213506e RW |
20103 | /* Override any GCC internal prototype to avoid an error. |
20104 | Use char because int might match the return type of a GCC | |
20105 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20106 | #ifdef __cplusplus |
20107 | extern "C" | |
20108 | #endif | |
1cf3d07d SE |
20109 | char dnet_ntoa (); |
20110 | int | |
20111 | main () | |
20112 | { | |
5213506e | 20113 | return dnet_ntoa (); |
1cf3d07d SE |
20114 | ; |
20115 | return 0; | |
20116 | } | |
20117 | _ACEOF | |
5213506e | 20118 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
20119 | ac_cv_lib_dnet_dnet_ntoa=yes |
20120 | else | |
5213506e | 20121 | ac_cv_lib_dnet_dnet_ntoa=no |
1cf3d07d | 20122 | fi |
5213506e RW |
20123 | rm -f core conftest.err conftest.$ac_objext \ |
20124 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20125 | LIBS=$ac_check_lib_save_LIBS |
20126 | fi | |
5213506e RW |
20127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
20128 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
20129 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : | |
1cf3d07d SE |
20130 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
20131 | fi | |
20132 | ||
20133 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
5213506e RW |
20134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
20135 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | |
20136 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : | |
20137 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20138 | else |
20139 | ac_check_lib_save_LIBS=$LIBS | |
20140 | LIBS="-ldnet_stub $LIBS" | |
20141 | if test x$gcc_no_link = xyes; then | |
5213506e | 20142 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20143 | fi |
5213506e | 20144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20145 | /* end confdefs.h. */ |
20146 | ||
5213506e RW |
20147 | /* Override any GCC internal prototype to avoid an error. |
20148 | Use char because int might match the return type of a GCC | |
20149 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20150 | #ifdef __cplusplus |
20151 | extern "C" | |
20152 | #endif | |
1cf3d07d SE |
20153 | char dnet_ntoa (); |
20154 | int | |
20155 | main () | |
20156 | { | |
5213506e | 20157 | return dnet_ntoa (); |
1cf3d07d SE |
20158 | ; |
20159 | return 0; | |
20160 | } | |
20161 | _ACEOF | |
5213506e | 20162 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
20163 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
20164 | else | |
5213506e | 20165 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
1cf3d07d | 20166 | fi |
5213506e RW |
20167 | rm -f core conftest.err conftest.$ac_objext \ |
20168 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20169 | LIBS=$ac_check_lib_save_LIBS |
20170 | fi | |
5213506e RW |
20171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
20172 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | |
20173 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : | |
1cf3d07d SE |
20174 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
20175 | fi | |
20176 | ||
20177 | fi | |
20178 | fi | |
5213506e RW |
20179 | rm -f core conftest.err conftest.$ac_objext \ |
20180 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20181 | LIBS="$ac_xsave_LIBS" |
20182 | ||
20183 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
20184 | # to get the SysV transport functions. | |
20185 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
20186 | # needs -lnsl. | |
20187 | # The nsl library prevents programs from opening the X display | |
20188 | # on Irix 5.2, according to T.E. Dickey. | |
20189 | # The functions gethostbyname, getservbyname, and inet_addr are | |
20190 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
5213506e RW |
20191 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
20192 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | |
1cf3d07d | 20193 | |
1cf3d07d | 20194 | fi |
1cf3d07d SE |
20195 | |
20196 | if test $ac_cv_func_gethostbyname = no; then | |
5213506e RW |
20197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
20198 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
20199 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | |
20200 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20201 | else |
20202 | ac_check_lib_save_LIBS=$LIBS | |
20203 | LIBS="-lnsl $LIBS" | |
20204 | if test x$gcc_no_link = xyes; then | |
5213506e | 20205 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20206 | fi |
5213506e | 20207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20208 | /* end confdefs.h. */ |
20209 | ||
5213506e RW |
20210 | /* Override any GCC internal prototype to avoid an error. |
20211 | Use char because int might match the return type of a GCC | |
20212 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20213 | #ifdef __cplusplus |
20214 | extern "C" | |
20215 | #endif | |
1cf3d07d SE |
20216 | char gethostbyname (); |
20217 | int | |
20218 | main () | |
20219 | { | |
5213506e | 20220 | return gethostbyname (); |
1cf3d07d SE |
20221 | ; |
20222 | return 0; | |
20223 | } | |
20224 | _ACEOF | |
5213506e | 20225 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
20226 | ac_cv_lib_nsl_gethostbyname=yes |
20227 | else | |
5213506e | 20228 | ac_cv_lib_nsl_gethostbyname=no |
1cf3d07d | 20229 | fi |
5213506e RW |
20230 | rm -f core conftest.err conftest.$ac_objext \ |
20231 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20232 | LIBS=$ac_check_lib_save_LIBS |
20233 | fi | |
5213506e RW |
20234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
20235 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
20236 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | |
1cf3d07d SE |
20237 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
20238 | fi | |
20239 | ||
20240 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
5213506e RW |
20241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
20242 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | |
20243 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : | |
20244 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20245 | else |
20246 | ac_check_lib_save_LIBS=$LIBS | |
20247 | LIBS="-lbsd $LIBS" | |
20248 | if test x$gcc_no_link = xyes; then | |
5213506e | 20249 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20250 | fi |
5213506e | 20251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20252 | /* end confdefs.h. */ |
20253 | ||
5213506e RW |
20254 | /* Override any GCC internal prototype to avoid an error. |
20255 | Use char because int might match the return type of a GCC | |
20256 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20257 | #ifdef __cplusplus |
20258 | extern "C" | |
20259 | #endif | |
1cf3d07d SE |
20260 | char gethostbyname (); |
20261 | int | |
20262 | main () | |
20263 | { | |
5213506e | 20264 | return gethostbyname (); |
1cf3d07d SE |
20265 | ; |
20266 | return 0; | |
20267 | } | |
20268 | _ACEOF | |
5213506e | 20269 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
20270 | ac_cv_lib_bsd_gethostbyname=yes |
20271 | else | |
5213506e | 20272 | ac_cv_lib_bsd_gethostbyname=no |
1cf3d07d | 20273 | fi |
5213506e RW |
20274 | rm -f core conftest.err conftest.$ac_objext \ |
20275 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20276 | LIBS=$ac_check_lib_save_LIBS |
20277 | fi | |
5213506e RW |
20278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
20279 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | |
20280 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : | |
1cf3d07d SE |
20281 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
20282 | fi | |
20283 | ||
20284 | fi | |
20285 | fi | |
20286 | ||
20287 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
20288 | # socket/setsockopt and other routines are undefined under SCO ODT | |
20289 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
20290 | # on later versions), says Simon Leinen: it contains gethostby* | |
20291 | # variants that don't use the name server (or something). -lsocket | |
20292 | # must be given before -lnsl if both are needed. We assume that | |
20293 | # if connect needs -lnsl, so does gethostbyname. | |
5213506e RW |
20294 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
20295 | if test "x$ac_cv_func_connect" = x""yes; then : | |
1cf3d07d | 20296 | |
1cf3d07d | 20297 | fi |
1cf3d07d SE |
20298 | |
20299 | if test $ac_cv_func_connect = no; then | |
5213506e RW |
20300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
20301 | $as_echo_n "checking for connect in -lsocket... " >&6; } | |
20302 | if test "${ac_cv_lib_socket_connect+set}" = set; then : | |
20303 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20304 | else |
20305 | ac_check_lib_save_LIBS=$LIBS | |
20306 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
20307 | if test x$gcc_no_link = xyes; then | |
5213506e | 20308 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20309 | fi |
5213506e RW |
20310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
20311 | /* end confdefs.h. */ | |
1cf3d07d | 20312 | |
5213506e RW |
20313 | /* Override any GCC internal prototype to avoid an error. |
20314 | Use char because int might match the return type of a GCC | |
1cf3d07d | 20315 | builtin and then its argument prototype would still apply. */ |
1cf3d07d | 20316 | #ifdef __cplusplus |
5213506e | 20317 | extern "C" |
1cf3d07d | 20318 | #endif |
5213506e | 20319 | char connect (); |
1cf3d07d SE |
20320 | int |
20321 | main () | |
20322 | { | |
5213506e | 20323 | return connect (); |
1cf3d07d SE |
20324 | ; |
20325 | return 0; | |
20326 | } | |
20327 | _ACEOF | |
5213506e RW |
20328 | if ac_fn_c_try_link "$LINENO"; then : |
20329 | ac_cv_lib_socket_connect=yes | |
1cf3d07d | 20330 | else |
5213506e RW |
20331 | ac_cv_lib_socket_connect=no |
20332 | fi | |
20333 | rm -f core conftest.err conftest.$ac_objext \ | |
20334 | conftest$ac_exeext conftest.$ac_ext | |
20335 | LIBS=$ac_check_lib_save_LIBS | |
20336 | fi | |
20337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | |
20338 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | |
20339 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : | |
20340 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
1cf3d07d | 20341 | fi |
5213506e RW |
20342 | |
20343 | fi | |
20344 | ||
20345 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
20346 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | |
20347 | if test "x$ac_cv_func_remove" = x""yes; then : | |
20348 | ||
1cf3d07d | 20349 | fi |
1cf3d07d SE |
20350 | |
20351 | if test $ac_cv_func_remove = no; then | |
5213506e RW |
20352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
20353 | $as_echo_n "checking for remove in -lposix... " >&6; } | |
20354 | if test "${ac_cv_lib_posix_remove+set}" = set; then : | |
20355 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20356 | else |
20357 | ac_check_lib_save_LIBS=$LIBS | |
20358 | LIBS="-lposix $LIBS" | |
20359 | if test x$gcc_no_link = xyes; then | |
5213506e | 20360 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20361 | fi |
5213506e | 20362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20363 | /* end confdefs.h. */ |
20364 | ||
5213506e RW |
20365 | /* Override any GCC internal prototype to avoid an error. |
20366 | Use char because int might match the return type of a GCC | |
20367 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20368 | #ifdef __cplusplus |
20369 | extern "C" | |
20370 | #endif | |
1cf3d07d SE |
20371 | char remove (); |
20372 | int | |
20373 | main () | |
20374 | { | |
5213506e | 20375 | return remove (); |
1cf3d07d SE |
20376 | ; |
20377 | return 0; | |
20378 | } | |
20379 | _ACEOF | |
5213506e | 20380 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
20381 | ac_cv_lib_posix_remove=yes |
20382 | else | |
5213506e | 20383 | ac_cv_lib_posix_remove=no |
1cf3d07d | 20384 | fi |
5213506e RW |
20385 | rm -f core conftest.err conftest.$ac_objext \ |
20386 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20387 | LIBS=$ac_check_lib_save_LIBS |
20388 | fi | |
5213506e RW |
20389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
20390 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | |
20391 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : | |
1cf3d07d SE |
20392 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
20393 | fi | |
20394 | ||
20395 | fi | |
20396 | ||
20397 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
5213506e RW |
20398 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
20399 | if test "x$ac_cv_func_shmat" = x""yes; then : | |
1cf3d07d | 20400 | |
1cf3d07d | 20401 | fi |
1cf3d07d SE |
20402 | |
20403 | if test $ac_cv_func_shmat = no; then | |
5213506e RW |
20404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
20405 | $as_echo_n "checking for shmat in -lipc... " >&6; } | |
20406 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : | |
20407 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20408 | else |
20409 | ac_check_lib_save_LIBS=$LIBS | |
20410 | LIBS="-lipc $LIBS" | |
20411 | if test x$gcc_no_link = xyes; then | |
5213506e | 20412 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20413 | fi |
5213506e | 20414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20415 | /* end confdefs.h. */ |
20416 | ||
5213506e RW |
20417 | /* Override any GCC internal prototype to avoid an error. |
20418 | Use char because int might match the return type of a GCC | |
20419 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20420 | #ifdef __cplusplus |
20421 | extern "C" | |
20422 | #endif | |
1cf3d07d SE |
20423 | char shmat (); |
20424 | int | |
20425 | main () | |
20426 | { | |
5213506e | 20427 | return shmat (); |
1cf3d07d SE |
20428 | ; |
20429 | return 0; | |
20430 | } | |
20431 | _ACEOF | |
5213506e | 20432 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
20433 | ac_cv_lib_ipc_shmat=yes |
20434 | else | |
5213506e | 20435 | ac_cv_lib_ipc_shmat=no |
1cf3d07d | 20436 | fi |
5213506e RW |
20437 | rm -f core conftest.err conftest.$ac_objext \ |
20438 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20439 | LIBS=$ac_check_lib_save_LIBS |
20440 | fi | |
5213506e RW |
20441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
20442 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | |
20443 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : | |
1cf3d07d SE |
20444 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
20445 | fi | |
20446 | ||
20447 | fi | |
20448 | fi | |
20449 | ||
20450 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
20451 | ac_save_LDFLAGS=$LDFLAGS | |
20452 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
20453 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
20454 | # check for ICE first), but we must link in the order -lSM -lICE or | |
20455 | # we get undefined symbols. So assume we have SM if we have ICE. | |
20456 | # These have to be linked with before -lX11, unlike the other | |
20457 | # libraries we check for below, so use a different variable. | |
20458 | # John Interrante, Karl Berry | |
5213506e RW |
20459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
20460 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | |
20461 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : | |
20462 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20463 | else |
20464 | ac_check_lib_save_LIBS=$LIBS | |
20465 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
20466 | if test x$gcc_no_link = xyes; then | |
5213506e | 20467 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20468 | fi |
5213506e | 20469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20470 | /* end confdefs.h. */ |
20471 | ||
5213506e RW |
20472 | /* Override any GCC internal prototype to avoid an error. |
20473 | Use char because int might match the return type of a GCC | |
20474 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20475 | #ifdef __cplusplus |
20476 | extern "C" | |
20477 | #endif | |
1cf3d07d SE |
20478 | char IceConnectionNumber (); |
20479 | int | |
20480 | main () | |
20481 | { | |
5213506e | 20482 | return IceConnectionNumber (); |
1cf3d07d SE |
20483 | ; |
20484 | return 0; | |
20485 | } | |
20486 | _ACEOF | |
5213506e | 20487 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
20488 | ac_cv_lib_ICE_IceConnectionNumber=yes |
20489 | else | |
5213506e | 20490 | ac_cv_lib_ICE_IceConnectionNumber=no |
1cf3d07d | 20491 | fi |
5213506e RW |
20492 | rm -f core conftest.err conftest.$ac_objext \ |
20493 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20494 | LIBS=$ac_check_lib_save_LIBS |
20495 | fi | |
5213506e RW |
20496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
20497 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | |
20498 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : | |
1cf3d07d SE |
20499 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
20500 | fi | |
20501 | ||
20502 | LDFLAGS=$ac_save_LDFLAGS | |
20503 | ||
20504 | fi | |
20505 | ||
20506 | ||
20507 | # FIXME: this should be _libs on some hosts. | |
20508 | libsubdir=.libs | |
20509 | ||
f202305d AH |
20510 | LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs" |
20511 | ||
20512 | LIBSTDCXXSPEC= | |
1cf3d07d SE |
20513 | # extra LD Flags which are required for targets |
20514 | case "${host}" in | |
20515 | *-*-darwin[0-7].*) | |
20516 | # For now we have to disable it on darwin[8-9] because it slows down | |
20517 | # the linking phase. A possible bug in ld? | |
20518 | # on Darwin -single_module speeds up loading of the dynamic libraries. | |
20519 | extra_ldflags_libjava=-Wl,-single_module | |
20520 | ;; | |
f202305d AH |
20521 | arm*linux*eabi) |
20522 | # Some of the ARM unwinder code is actually in libstdc++. We | |
20523 | # could in principle replicate it in libgcj, but it's better to | |
20524 | # have a dependency on libstdc++. | |
20525 | extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++' | |
20526 | LIBSTDCXXSPEC=-lstdc++ | |
20527 | LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++" | |
20528 | ;; | |
6a92b6c7 DK |
20529 | *-*-cygwin) |
20530 | extra_ldflags_libjava=-liconv | |
20531 | ;; | |
1cf3d07d SE |
20532 | esac |
20533 | ||
6cf3abb1 AH |
20534 | # Check for --no-merge-exidx-entries, an ARM-specific linker option. |
20535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5 | |
20536 | $as_echo_n "checking for --no-merge-exidx-entries... " >&6; } | |
20537 | if test "${libgcj_cv_exidx+set}" = set; then : | |
20538 | $as_echo_n "(cached) " >&6 | |
20539 | else | |
20540 | saved_ldflags="$LDFLAGS" | |
20541 | LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries" | |
8352cbb4 RO |
20542 | # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only |
20543 | # warns about unknown options, which breaks the testsuite. So enable | |
20544 | # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn | |
20545 | # it off again. As a workaround, save and restore werror flag like | |
20546 | # AC_PATH_XTRA. | |
20547 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
20548 | ||
20549 | ac_c_werror_flag=yes | |
6cf3abb1 AH |
20550 | if test x$gcc_no_link = xyes; then |
20551 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
20552 | fi | |
20553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20554 | /* end confdefs.h. */ | |
20555 | int main(void){ return 0;} | |
20556 | _ACEOF | |
20557 | if ac_fn_c_try_link "$LINENO"; then : | |
20558 | eval "libgcj_cv_exidx=yes" | |
20559 | else | |
20560 | eval "libgcj_cv_exidx=no" | |
20561 | fi | |
20562 | rm -f core conftest.err conftest.$ac_objext \ | |
20563 | conftest$ac_exeext conftest.$ac_ext | |
8352cbb4 | 20564 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
6cf3abb1 AH |
20565 | LDFLAGS="${saved_ldflags}" |
20566 | ||
20567 | fi | |
20568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5 | |
20569 | $as_echo "$libgcj_cv_exidx" >&6; } | |
20570 | if test "${libgcj_cv_exidx}" = "yes"; then | |
20571 | SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries" | |
20572 | extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries" | |
20573 | fi | |
20574 | ||
20575 | ||
1cf3d07d | 20576 | |
f202305d AH |
20577 | |
20578 | ||
20579 | ||
20580 | ||
1cf3d07d | 20581 | # Allow the GC to be disabled. Can be useful when debugging. |
5213506e RW |
20582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5 |
20583 | $as_echo_n "checking for garbage collector to use... " >&6; } | |
20584 | # Check whether --enable-java-gc was given. | |
20585 | if test "${enable_java_gc+set}" = set; then : | |
20586 | enableval=$enable_java_gc; GC=$enableval | |
1cf3d07d SE |
20587 | else |
20588 | GC=boehm | |
5213506e RW |
20589 | fi |
20590 | ||
1cf3d07d SE |
20591 | GCLIBS= |
20592 | GCINCS= | |
20593 | GCDEPS= | |
20594 | GCSPEC= | |
20595 | JC1GCSPEC= | |
20596 | GCTESTSPEC= | |
20597 | case "$GC" in | |
20598 | boehm) | |
5213506e RW |
20599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5 |
20600 | $as_echo "boehm" >&6; } | |
1cf3d07d SE |
20601 | GCLIBS=../boehm-gc/libgcjgc_convenience.la |
20602 | JC1GCSPEC='-fuse-boehm-gc' | |
20603 | GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs" | |
20604 | GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include' | |
20605 | GCOBJS=boehm.lo | |
20606 | GCHDR=boehm-gc.h | |
20607 | # The POSIX thread support needs to know this. | |
20608 | ||
5213506e | 20609 | $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h |
1cf3d07d SE |
20610 | |
20611 | ;; | |
20612 | no) | |
5213506e RW |
20613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
20614 | $as_echo "none" >&6; } | |
1cf3d07d SE |
20615 | GCHDR=no-gc.h |
20616 | ;; | |
20617 | *) | |
5213506e | 20618 | as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5 |
1cf3d07d SE |
20619 | ;; |
20620 | esac | |
20621 | ||
20622 | ||
20623 | ||
20624 | ||
20625 | ||
20626 | ||
5213506e | 20627 | ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR" |
1cf3d07d | 20628 | |
5213506e | 20629 | if test "$GC" = boehm; then |
1cf3d07d SE |
20630 | USING_BOEHMGC_TRUE= |
20631 | USING_BOEHMGC_FALSE='#' | |
20632 | else | |
20633 | USING_BOEHMGC_TRUE='#' | |
20634 | USING_BOEHMGC_FALSE= | |
20635 | fi | |
20636 | ||
5213506e | 20637 | if test "$GC" = no; then |
1cf3d07d SE |
20638 | USING_NOGC_TRUE= |
20639 | USING_NOGC_FALSE='#' | |
20640 | else | |
20641 | USING_NOGC_TRUE='#' | |
20642 | USING_NOGC_FALSE= | |
20643 | fi | |
20644 | ||
20645 | ||
20646 | ||
5213506e RW |
20647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5 |
20648 | $as_echo_n "checking for thread model used by GCC... " >&6; } | |
1cf3d07d | 20649 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` |
5213506e RW |
20650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5 |
20651 | $as_echo "$THREADS" >&6; } | |
1cf3d07d SE |
20652 | |
20653 | case "$THREADS" in | |
20654 | no | none | single) | |
20655 | THREADS=none | |
20656 | ;; | |
887e6178 | 20657 | aix | posix | posix95 | pthreads) |
1cf3d07d SE |
20658 | THREADS=posix |
20659 | case "$host" in | |
20660 | *-*-linux*) | |
20661 | ||
5213506e | 20662 | $as_echo "#define LINUX_THREADS 1" >>confdefs.h |
1cf3d07d SE |
20663 | |
20664 | ;; | |
20665 | esac | |
20666 | ;; | |
20667 | win32) | |
20668 | ;; | |
20669 | decosf1 | irix | mach | os2 | solaris | dce | vxworks) | |
5213506e | 20670 | as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5 |
1cf3d07d SE |
20671 | ;; |
20672 | *) | |
5213506e | 20673 | as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5 |
1cf3d07d SE |
20674 | ;; |
20675 | esac | |
20676 | ||
20677 | THREADCXXFLAGS= | |
20678 | THREADLDFLAGS= | |
20679 | THREADLIBS= | |
20680 | THREADINCS= | |
20681 | THREADDEPS= | |
20682 | THREADH= | |
20683 | THREADSPEC= | |
20684 | THREADSTARTFILESPEC= | |
20685 | case "$THREADS" in | |
20686 | posix) | |
20687 | case "$host" in | |
20688 | *-*-cygwin*) | |
20689 | # Don't set THREADLIBS here. Cygwin doesn't have -lpthread. | |
20690 | ;; | |
20691 | *-*-freebsd[1234]*) | |
20692 | # Before FreeBSD 5, it didn't have -lpthread (or any library which | |
20693 | # merely adds pthread_* functions) but it does have a -pthread switch | |
20694 | # which is required at link-time to select -lc_r *instead* of -lc. | |
20695 | THREADLDFLAGS=-pthread | |
20696 | # Don't set THREADSPEC here as might be expected since -pthread is | |
20697 | # not processed when found within a spec file, it must come from | |
20698 | # the command line. For now, the user must provide the -pthread | |
20699 | # switch to link code compiled with gcj. In future, consider adding | |
20700 | # support for weak references to pthread_* functions ala gthr.h API. | |
20701 | THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}' | |
20702 | ;; | |
20703 | *-*-freebsd*) | |
20704 | # FreeBSD >=5.3 implements a model much closer to other modern UNIX | |
20705 | # systems which support threads and -lpthread. | |
20706 | THREADLDFLAGS=-pthread | |
20707 | THREADSPEC=-lpthread | |
20708 | ;; | |
20709 | alpha*-dec-osf* | hppa*-hp-hpux*) | |
20710 | THREADCXXFLAGS=-pthread | |
20711 | # boehm-gc needs some functions from librt, so link that too. | |
20712 | THREADLIBS='-lpthread -lrt' | |
20713 | THREADSPEC='-lpthread -lrt' | |
20714 | ;; | |
16c9d3b1 RO |
20715 | *-*-solaris2.8) |
20716 | # Always use alternate thread library on Solaris 8. Need libthread | |
20717 | # for TLS support. | |
20718 | # Need -Wl,-R to get it through libtool ... | |
20719 | THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread' | |
20720 | # ... while ld only accepts -R. | |
20721 | THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread' | |
20722 | ;; | |
20723 | *-*-solaris2.9) | |
20724 | # As on Solaris 8, need libthread for TLS support. | |
20725 | THREADLIBS='-lpthread -lthread' | |
20726 | THREADSPEC='-lpthread -lthread' | |
20727 | ;; | |
1cf3d07d SE |
20728 | *) |
20729 | THREADLIBS=-lpthread | |
20730 | THREADSPEC=-lpthread | |
20731 | ;; | |
20732 | esac | |
20733 | THREADH=posix-threads.h | |
20734 | # MIT pthreads doesn't seem to have the mutexattr functions. | |
20735 | # But for now we don't check for it. We just assume you aren't | |
20736 | # using MIT pthreads. | |
20737 | ||
5213506e | 20738 | $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h |
1cf3d07d SE |
20739 | |
20740 | ||
20741 | # If we're using the Boehm GC, then we happen to know that it | |
20742 | # defines _REENTRANT, so we don't bother. Eww. | |
20743 | if test "$GC" != boehm; then | |
20744 | ||
5213506e | 20745 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
1cf3d07d SE |
20746 | |
20747 | fi | |
20748 | ||
5213506e | 20749 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
1cf3d07d SE |
20750 | |
20751 | ;; | |
20752 | ||
20753 | win32) | |
20754 | THREADH=win32-threads.h | |
20755 | THREADCXXFLAGS=-mthreads | |
20756 | # We need thread-safe exception handling so _CRT_MT should be set to 1. | |
20757 | # But we do not want the executables created to be dependent on | |
20758 | # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up | |
20759 | # exception handling contexts. The following kludge achieves this effect | |
20760 | # and causes a dummy __mingwthr_key_dtor() to be linked in from | |
20761 | # libmingw32.a. This causes a memory leak of about 24 bytes per thread. | |
20762 | # A workaround is to explicitly use -mthreads while linking Java programs. | |
20763 | # See PR libgcj/28263. | |
20764 | # | |
20765 | # FIXME: In Java we are able to detect thread death at the end of | |
20766 | # Thread.run() so we should be able to clean up the exception handling | |
20767 | # contexts ourselves. | |
20768 | THREADSTARTFILESPEC='crtmt%O%s' | |
20769 | ;; | |
20770 | ||
20771 | none) | |
20772 | THREADH=no-threads.h | |
20773 | ;; | |
20774 | esac | |
5213506e | 20775 | ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH" |
1cf3d07d SE |
20776 | |
20777 | ||
20778 | ||
20779 | ||
20780 | ||
20781 | ||
20782 | ||
20783 | ||
5213506e | 20784 | if test "$THREADS" = posix; then |
1cf3d07d SE |
20785 | USING_POSIX_THREADS_TRUE= |
20786 | USING_POSIX_THREADS_FALSE='#' | |
20787 | else | |
20788 | USING_POSIX_THREADS_TRUE='#' | |
20789 | USING_POSIX_THREADS_FALSE= | |
20790 | fi | |
20791 | ||
5213506e | 20792 | if test "$THREADS" = win32; then |
1cf3d07d SE |
20793 | USING_WIN32_THREADS_TRUE= |
20794 | USING_WIN32_THREADS_FALSE='#' | |
20795 | else | |
20796 | USING_WIN32_THREADS_TRUE='#' | |
20797 | USING_WIN32_THREADS_FALSE= | |
20798 | fi | |
20799 | ||
5213506e | 20800 | if test "$THREADS" = none; then |
1cf3d07d SE |
20801 | USING_NO_THREADS_TRUE= |
20802 | USING_NO_THREADS_FALSE='#' | |
20803 | else | |
20804 | USING_NO_THREADS_TRUE='#' | |
20805 | USING_NO_THREADS_FALSE= | |
20806 | fi | |
20807 | ||
fda2cea1 JJ |
20808 | if test "$enable_shared" != yes; then |
20809 | use_libgcj_bc=no | |
20810 | fi | |
5213506e | 20811 | if test "$use_libgcj_bc" = yes; then |
1cf3d07d SE |
20812 | USE_LIBGCJ_BC_TRUE= |
20813 | USE_LIBGCJ_BC_FALSE='#' | |
20814 | else | |
20815 | USE_LIBGCJ_BC_TRUE='#' | |
20816 | USE_LIBGCJ_BC_FALSE= | |
20817 | fi | |
20818 | ||
20819 | ||
20820 | if test -d sysdep; then true; else mkdir sysdep; fi | |
5213506e | 20821 | ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" |
1cf3d07d | 20822 | |
5213506e | 20823 | ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h" |
1cf3d07d | 20824 | |
5213506e | 20825 | ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h" |
1cf3d07d SE |
20826 | |
20827 | ||
6a92b6c7 DK |
20828 | LIBGCJ_SPEC_LGCJ=-lgcj |
20829 | LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc | |
20830 | if test x"$libgcj_spec_lgcj_override" != x ; then | |
20831 | LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override | |
20832 | fi | |
20833 | if test x"$libgcj_spec_lgcj_bc_override" != x ; then | |
20834 | LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override | |
20835 | fi | |
20836 | LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ" | |
1cf3d07d | 20837 | if test "$use_libgcj_bc" = yes; then |
6a92b6c7 | 20838 | LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}" |
de383aec | 20839 | LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}" |
1cf3d07d SE |
20840 | fi |
20841 | ||
84fec8a5 RW |
20842 | |
20843 | ||
1cf3d07d SE |
20844 | HASH_SYNC_SPEC= |
20845 | # Hash synchronization is only useful with posix threads right now. | |
20846 | if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then | |
20847 | HASH_SYNC_SPEC=-fhash-synchronization | |
20848 | ||
5213506e | 20849 | $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h |
1cf3d07d SE |
20850 | |
20851 | fi | |
20852 | ||
20853 | ||
5213506e | 20854 | if test "$GCC" = yes; then |
1cf3d07d SE |
20855 | USING_GCC_TRUE= |
20856 | USING_GCC_FALSE='#' | |
20857 | else | |
20858 | USING_GCC_TRUE='#' | |
20859 | USING_GCC_FALSE= | |
20860 | fi | |
20861 | ||
20862 | ||
20863 | # We're in the tree with gcc, and need to include some of its headers. | |
20864 | GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc' | |
20865 | ||
20866 | if test "x${with_newlib}" = "xyes"; then | |
20867 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS | |
20868 | # may not work correctly, because the compiler may not be able to | |
20869 | # link executables. | |
20870 | ||
20871 | # We assume newlib. This lets us hard-code the functions we know | |
20872 | # we'll have. | |
20873 | ||
5213506e | 20874 | $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h |
1cf3d07d | 20875 | |
1cf3d07d | 20876 | |
5213506e | 20877 | $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h |
1cf3d07d | 20878 | |
1cf3d07d | 20879 | |
5213506e | 20880 | $as_echo "#define HAVE_TIME 1" >>confdefs.h |
1cf3d07d SE |
20881 | |
20882 | ||
5213506e | 20883 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h |
1cf3d07d | 20884 | |
1cf3d07d | 20885 | |
5213506e | 20886 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h |
1cf3d07d | 20887 | |
1cf3d07d | 20888 | |
5213506e | 20889 | $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h |
1cf3d07d | 20890 | |
5213506e | 20891 | # This is only for POSIX threads. |
1cf3d07d | 20892 | |
5213506e | 20893 | $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h |
1cf3d07d SE |
20894 | |
20895 | ||
5213506e | 20896 | # Assume we do not have getuid and friends. |
1cf3d07d | 20897 | |
5213506e | 20898 | $as_echo "#define NO_GETUID 1" >>confdefs.h |
1cf3d07d | 20899 | |
5213506e | 20900 | PLATFORMNET=NoNet |
1cf3d07d | 20901 | else |
5213506e RW |
20902 | for ac_func in strerror_r select fstat open fsync sleep opendir \ |
20903 | localtime_r getpwuid_r getcwd \ | |
20904 | access stat lstat mkdir rename rmdir unlink utime chmod readlink \ | |
20905 | nl_langinfo setlocale \ | |
20906 | inet_pton uname inet_ntoa \ | |
20907 | getrlimit sigaction ftruncate mmap \ | |
20908 | getifaddrs | |
20909 | do : | |
20910 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20911 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
20912 | eval as_val=\$$as_ac_var | |
20913 | if test "x$as_val" = x""yes; then : | |
20914 | cat >>confdefs.h <<_ACEOF | |
20915 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1cf3d07d | 20916 | _ACEOF |
1cf3d07d | 20917 | |
1cf3d07d | 20918 | fi |
5213506e | 20919 | done |
1cf3d07d | 20920 | |
5213506e RW |
20921 | for ac_func in inet_aton inet_addr |
20922 | do : | |
20923 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20924 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
20925 | eval as_val=\$$as_ac_var | |
20926 | if test "x$as_val" = x""yes; then : | |
20927 | cat >>confdefs.h <<_ACEOF | |
20928 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
1cf3d07d | 20929 | _ACEOF |
5213506e | 20930 | break |
1cf3d07d | 20931 | fi |
5213506e | 20932 | done |
1cf3d07d | 20933 | |
5213506e RW |
20934 | for ac_header in unistd.h dlfcn.h sys/resource.h |
20935 | do : | |
20936 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20937 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
20938 | eval as_val=\$$as_ac_Header | |
20939 | if test "x$as_val" = x""yes; then : | |
1cf3d07d | 20940 | cat >>confdefs.h <<_ACEOF |
5213506e | 20941 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
1cf3d07d SE |
20942 | _ACEOF |
20943 | ||
20944 | fi | |
20945 | ||
20946 | done | |
20947 | ||
20948 | # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl | |
5213506e RW |
20949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5 |
20950 | $as_echo_n "checking for dladdr in -ldl... " >&6; } | |
20951 | if test "${ac_cv_lib_dl_dladdr+set}" = set; then : | |
20952 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20953 | else |
20954 | ac_check_lib_save_LIBS=$LIBS | |
20955 | LIBS="-ldl $LIBS" | |
20956 | if test x$gcc_no_link = xyes; then | |
5213506e | 20957 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 20958 | fi |
5213506e | 20959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
20960 | /* end confdefs.h. */ |
20961 | ||
5213506e RW |
20962 | /* Override any GCC internal prototype to avoid an error. |
20963 | Use char because int might match the return type of a GCC | |
20964 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
20965 | #ifdef __cplusplus |
20966 | extern "C" | |
20967 | #endif | |
1cf3d07d SE |
20968 | char dladdr (); |
20969 | int | |
20970 | main () | |
20971 | { | |
5213506e | 20972 | return dladdr (); |
1cf3d07d SE |
20973 | ; |
20974 | return 0; | |
20975 | } | |
20976 | _ACEOF | |
5213506e | 20977 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
20978 | ac_cv_lib_dl_dladdr=yes |
20979 | else | |
5213506e | 20980 | ac_cv_lib_dl_dladdr=no |
1cf3d07d | 20981 | fi |
5213506e RW |
20982 | rm -f core conftest.err conftest.$ac_objext \ |
20983 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
20984 | LIBS=$ac_check_lib_save_LIBS |
20985 | fi | |
5213506e RW |
20986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5 |
20987 | $as_echo "$ac_cv_lib_dl_dladdr" >&6; } | |
20988 | if test "x$ac_cv_lib_dl_dladdr" = x""yes; then : | |
1cf3d07d SE |
20989 | |
20990 | ||
5213506e | 20991 | $as_echo "#define HAVE_DLADDR 1" >>confdefs.h |
1cf3d07d SE |
20992 | |
20993 | else | |
20994 | ||
5213506e RW |
20995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5 |
20996 | $as_echo_n "checking for dladdr in -ldld... " >&6; } | |
20997 | if test "${ac_cv_lib_dld_dladdr+set}" = set; then : | |
20998 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
20999 | else |
21000 | ac_check_lib_save_LIBS=$LIBS | |
21001 | LIBS="-ldld $LIBS" | |
21002 | if test x$gcc_no_link = xyes; then | |
5213506e | 21003 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 21004 | fi |
5213506e | 21005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
21006 | /* end confdefs.h. */ |
21007 | ||
5213506e RW |
21008 | /* Override any GCC internal prototype to avoid an error. |
21009 | Use char because int might match the return type of a GCC | |
21010 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
21011 | #ifdef __cplusplus |
21012 | extern "C" | |
21013 | #endif | |
1cf3d07d SE |
21014 | char dladdr (); |
21015 | int | |
21016 | main () | |
21017 | { | |
5213506e | 21018 | return dladdr (); |
1cf3d07d SE |
21019 | ; |
21020 | return 0; | |
21021 | } | |
21022 | _ACEOF | |
5213506e | 21023 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
21024 | ac_cv_lib_dld_dladdr=yes |
21025 | else | |
5213506e | 21026 | ac_cv_lib_dld_dladdr=no |
1cf3d07d | 21027 | fi |
5213506e RW |
21028 | rm -f core conftest.err conftest.$ac_objext \ |
21029 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
21030 | LIBS=$ac_check_lib_save_LIBS |
21031 | fi | |
5213506e RW |
21032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5 |
21033 | $as_echo "$ac_cv_lib_dld_dladdr" >&6; } | |
21034 | if test "x$ac_cv_lib_dld_dladdr" = x""yes; then : | |
1cf3d07d SE |
21035 | |
21036 | ||
5213506e | 21037 | $as_echo "#define HAVE_DLADDR 1" >>confdefs.h |
1cf3d07d SE |
21038 | |
21039 | fi | |
21040 | ||
21041 | fi | |
21042 | ||
21043 | ||
21044 | if test x"$cross_compiling" = x"no"; then | |
5213506e RW |
21045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5 |
21046 | $as_echo_n "checking for /proc/self/exe... " >&6; } | |
21047 | if test "${ac_cv_file__proc_self_exe+set}" = set; then : | |
21048 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
21049 | else |
21050 | test "$cross_compiling" = yes && | |
5213506e | 21051 | as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5 |
1cf3d07d SE |
21052 | if test -r "/proc/self/exe"; then |
21053 | ac_cv_file__proc_self_exe=yes | |
21054 | else | |
21055 | ac_cv_file__proc_self_exe=no | |
21056 | fi | |
21057 | fi | |
5213506e RW |
21058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5 |
21059 | $as_echo "$ac_cv_file__proc_self_exe" >&6; } | |
21060 | if test "x$ac_cv_file__proc_self_exe" = x""yes; then : | |
1cf3d07d SE |
21061 | |
21062 | cat >>confdefs.h <<_ACEOF | |
21063 | #define HAVE__PROC_SELF_EXE 1 | |
21064 | _ACEOF | |
21065 | ||
21066 | ||
5213506e | 21067 | $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h |
1cf3d07d SE |
21068 | |
21069 | fi | |
21070 | ||
5213506e RW |
21071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5 |
21072 | $as_echo_n "checking for /proc/self/maps... " >&6; } | |
21073 | if test "${ac_cv_file__proc_self_maps+set}" = set; then : | |
21074 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
21075 | else |
21076 | test "$cross_compiling" = yes && | |
5213506e | 21077 | as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5 |
1cf3d07d SE |
21078 | if test -r "/proc/self/maps"; then |
21079 | ac_cv_file__proc_self_maps=yes | |
21080 | else | |
21081 | ac_cv_file__proc_self_maps=no | |
21082 | fi | |
21083 | fi | |
5213506e RW |
21084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5 |
21085 | $as_echo "$ac_cv_file__proc_self_maps" >&6; } | |
21086 | if test "x$ac_cv_file__proc_self_maps" = x""yes; then : | |
1cf3d07d SE |
21087 | |
21088 | cat >>confdefs.h <<_ACEOF | |
21089 | #define HAVE__PROC_SELF_MAPS 1 | |
21090 | _ACEOF | |
21091 | ||
21092 | ||
5213506e | 21093 | $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h |
1cf3d07d SE |
21094 | |
21095 | fi | |
21096 | ||
21097 | else | |
21098 | case $host in | |
21099 | *-linux*) | |
21100 | ||
5213506e | 21101 | $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h |
1cf3d07d SE |
21102 | |
21103 | ||
5213506e | 21104 | $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h |
1cf3d07d SE |
21105 | |
21106 | ;; | |
21107 | esac | |
21108 | fi | |
21109 | ||
21110 | ||
21111 | if test "X$prefix" = "XNONE"; then | |
21112 | acl_final_prefix="$ac_default_prefix" | |
21113 | else | |
21114 | acl_final_prefix="$prefix" | |
21115 | fi | |
21116 | if test "X$exec_prefix" = "XNONE"; then | |
21117 | acl_final_exec_prefix='${prefix}' | |
21118 | else | |
21119 | acl_final_exec_prefix="$exec_prefix" | |
21120 | fi | |
21121 | acl_save_prefix="$prefix" | |
21122 | prefix="$acl_final_prefix" | |
21123 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
21124 | prefix="$acl_save_prefix" | |
21125 | ||
21126 | ||
5213506e RW |
21127 | # Check whether --with-gnu-ld was given. |
21128 | if test "${with_gnu_ld+set}" = set; then : | |
21129 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
1cf3d07d SE |
21130 | else |
21131 | with_gnu_ld=no | |
5213506e RW |
21132 | fi |
21133 | ||
1cf3d07d SE |
21134 | # Prepare PATH_SEPARATOR. |
21135 | # The user is always right. | |
21136 | if test "${PATH_SEPARATOR+set}" != set; then | |
21137 | echo "#! /bin/sh" >conf$$.sh | |
21138 | echo "exit 0" >>conf$$.sh | |
21139 | chmod +x conf$$.sh | |
21140 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
21141 | PATH_SEPARATOR=';' | |
21142 | else | |
21143 | PATH_SEPARATOR=: | |
21144 | fi | |
21145 | rm -f conf$$.sh | |
21146 | fi | |
21147 | ac_prog=ld | |
21148 | if test "$GCC" = yes; then | |
21149 | # Check if gcc -print-prog-name=ld gives a path. | |
5213506e RW |
21150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
21151 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
1cf3d07d SE |
21152 | case $host in |
21153 | *-*-mingw*) | |
21154 | # gcc leaves a trailing carriage return which upsets mingw | |
21155 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
21156 | *) | |
21157 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
21158 | esac | |
21159 | case $ac_prog in | |
21160 | # Accept absolute paths. | |
21161 | [\\/]* | [A-Za-z]:[\\/]*) | |
21162 | re_direlt='/[^/][^/]*/\.\./' | |
21163 | # Canonicalize the path of ld | |
21164 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
21165 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
21166 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
21167 | done | |
21168 | test -z "$LD" && LD="$ac_prog" | |
21169 | ;; | |
21170 | "") | |
21171 | # If it fails, then pretend we aren't using GCC. | |
21172 | ac_prog=ld | |
21173 | ;; | |
21174 | *) | |
21175 | # If it is relative, then search for the first ld in PATH. | |
21176 | with_gnu_ld=unknown | |
21177 | ;; | |
21178 | esac | |
21179 | elif test "$with_gnu_ld" = yes; then | |
5213506e RW |
21180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
21181 | $as_echo_n "checking for GNU ld... " >&6; } | |
1cf3d07d | 21182 | else |
5213506e RW |
21183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
21184 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
1cf3d07d | 21185 | fi |
5213506e RW |
21186 | if test "${acl_cv_path_LD+set}" = set; then : |
21187 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
21188 | else |
21189 | if test -z "$LD"; then | |
21190 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
21191 | for ac_dir in $PATH; do | |
21192 | test -z "$ac_dir" && ac_dir=. | |
21193 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
21194 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
21195 | # Check to see if the program is GNU ld. I'd rather use --version, | |
21196 | # but apparently some GNU ld's only accept -v. | |
21197 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
21198 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
21199 | test "$with_gnu_ld" != no && break | |
21200 | else | |
21201 | test "$with_gnu_ld" != yes && break | |
21202 | fi | |
21203 | fi | |
21204 | done | |
21205 | IFS="$ac_save_ifs" | |
21206 | else | |
21207 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
21208 | fi | |
21209 | fi | |
21210 | ||
21211 | LD="$acl_cv_path_LD" | |
21212 | if test -n "$LD"; then | |
5213506e RW |
21213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
21214 | $as_echo "$LD" >&6; } | |
1cf3d07d | 21215 | else |
5213506e RW |
21216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
21217 | $as_echo "no" >&6; } | |
1cf3d07d | 21218 | fi |
5213506e RW |
21219 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
21220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
21221 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
21222 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
21223 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
21224 | else |
21225 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
21226 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
21227 | acl_cv_prog_gnu_ld=yes | |
21228 | else | |
21229 | acl_cv_prog_gnu_ld=no | |
21230 | fi | |
21231 | fi | |
5213506e RW |
21232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
21233 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
1cf3d07d SE |
21234 | with_gnu_ld=$acl_cv_prog_gnu_ld |
21235 | ||
21236 | ||
21237 | ||
5213506e RW |
21238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
21239 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
21240 | if test "${acl_cv_rpath+set}" = set; then : | |
21241 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
21242 | else |
21243 | ||
21244 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
21245 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
21246 | . ./conftest.sh | |
21247 | rm -f ./conftest.sh | |
21248 | acl_cv_rpath=done | |
21249 | ||
21250 | fi | |
5213506e RW |
21251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
21252 | $as_echo "$acl_cv_rpath" >&6; } | |
1cf3d07d SE |
21253 | wl="$acl_cv_wl" |
21254 | libext="$acl_cv_libext" | |
21255 | shlibext="$acl_cv_shlibext" | |
21256 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
21257 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
21258 | hardcode_direct="$acl_cv_hardcode_direct" | |
21259 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5213506e RW |
21260 | # Check whether --enable-rpath was given. |
21261 | if test "${enable_rpath+set}" = set; then : | |
21262 | enableval=$enable_rpath; : | |
1cf3d07d SE |
21263 | else |
21264 | enable_rpath=yes | |
5213506e RW |
21265 | fi |
21266 | ||
1cf3d07d SE |
21267 | |
21268 | ||
21269 | ||
21270 | ||
21271 | ||
21272 | ||
21273 | ||
21274 | use_additional=yes | |
21275 | ||
21276 | acl_save_prefix="$prefix" | |
21277 | prefix="$acl_final_prefix" | |
21278 | acl_save_exec_prefix="$exec_prefix" | |
21279 | exec_prefix="$acl_final_exec_prefix" | |
21280 | ||
21281 | eval additional_includedir=\"$includedir\" | |
21282 | eval additional_libdir=\"$libdir\" | |
21283 | ||
21284 | exec_prefix="$acl_save_exec_prefix" | |
21285 | prefix="$acl_save_prefix" | |
21286 | ||
21287 | ||
5213506e RW |
21288 | # Check whether --with-libiconv-prefix was given. |
21289 | if test "${with_libiconv_prefix+set}" = set; then : | |
21290 | withval=$with_libiconv_prefix; | |
1cf3d07d SE |
21291 | if test "X$withval" = "Xno"; then |
21292 | use_additional=no | |
21293 | else | |
21294 | if test "X$withval" = "X"; then | |
21295 | ||
21296 | acl_save_prefix="$prefix" | |
21297 | prefix="$acl_final_prefix" | |
21298 | acl_save_exec_prefix="$exec_prefix" | |
21299 | exec_prefix="$acl_final_exec_prefix" | |
21300 | ||
21301 | eval additional_includedir=\"$includedir\" | |
21302 | eval additional_libdir=\"$libdir\" | |
21303 | ||
21304 | exec_prefix="$acl_save_exec_prefix" | |
21305 | prefix="$acl_save_prefix" | |
21306 | ||
21307 | else | |
21308 | additional_includedir="$withval/include" | |
21309 | additional_libdir="$withval/lib" | |
21310 | fi | |
21311 | fi | |
21312 | ||
5213506e RW |
21313 | fi |
21314 | ||
1cf3d07d SE |
21315 | LIBICONV= |
21316 | LTLIBICONV= | |
21317 | INCICONV= | |
21318 | rpathdirs= | |
21319 | ltrpathdirs= | |
21320 | names_already_handled= | |
21321 | names_next_round='iconv ' | |
21322 | while test -n "$names_next_round"; do | |
21323 | names_this_round="$names_next_round" | |
21324 | names_next_round= | |
21325 | for name in $names_this_round; do | |
21326 | already_handled= | |
21327 | for n in $names_already_handled; do | |
21328 | if test "$n" = "$name"; then | |
21329 | already_handled=yes | |
21330 | break | |
21331 | fi | |
21332 | done | |
21333 | if test -z "$already_handled"; then | |
21334 | names_already_handled="$names_already_handled $name" | |
21335 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
21336 | eval value=\"\$HAVE_LIB$uppername\" | |
21337 | if test -n "$value"; then | |
21338 | if test "$value" = yes; then | |
21339 | eval value=\"\$LIB$uppername\" | |
21340 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
21341 | eval value=\"\$LTLIB$uppername\" | |
21342 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
21343 | else | |
21344 | : | |
21345 | fi | |
21346 | else | |
21347 | found_dir= | |
21348 | found_la= | |
21349 | found_so= | |
21350 | found_a= | |
21351 | if test $use_additional = yes; then | |
21352 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
21353 | found_dir="$additional_libdir" | |
21354 | found_so="$additional_libdir/lib$name.$shlibext" | |
21355 | if test -f "$additional_libdir/lib$name.la"; then | |
21356 | found_la="$additional_libdir/lib$name.la" | |
21357 | fi | |
21358 | else | |
21359 | if test -f "$additional_libdir/lib$name.$libext"; then | |
21360 | found_dir="$additional_libdir" | |
21361 | found_a="$additional_libdir/lib$name.$libext" | |
21362 | if test -f "$additional_libdir/lib$name.la"; then | |
21363 | found_la="$additional_libdir/lib$name.la" | |
21364 | fi | |
21365 | fi | |
21366 | fi | |
21367 | fi | |
21368 | if test "X$found_dir" = "X"; then | |
21369 | for x in $LDFLAGS $LTLIBICONV; do | |
21370 | ||
21371 | acl_save_prefix="$prefix" | |
21372 | prefix="$acl_final_prefix" | |
21373 | acl_save_exec_prefix="$exec_prefix" | |
21374 | exec_prefix="$acl_final_exec_prefix" | |
21375 | eval x=\"$x\" | |
21376 | exec_prefix="$acl_save_exec_prefix" | |
21377 | prefix="$acl_save_prefix" | |
21378 | ||
21379 | case "$x" in | |
21380 | -L*) | |
21381 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
21382 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
21383 | found_dir="$dir" | |
21384 | found_so="$dir/lib$name.$shlibext" | |
21385 | if test -f "$dir/lib$name.la"; then | |
21386 | found_la="$dir/lib$name.la" | |
21387 | fi | |
21388 | else | |
21389 | if test -f "$dir/lib$name.$libext"; then | |
21390 | found_dir="$dir" | |
21391 | found_a="$dir/lib$name.$libext" | |
21392 | if test -f "$dir/lib$name.la"; then | |
21393 | found_la="$dir/lib$name.la" | |
21394 | fi | |
21395 | fi | |
21396 | fi | |
21397 | ;; | |
21398 | esac | |
21399 | if test "X$found_dir" != "X"; then | |
21400 | break | |
21401 | fi | |
21402 | done | |
21403 | fi | |
21404 | if test "X$found_dir" != "X"; then | |
21405 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
21406 | if test "X$found_so" != "X"; then | |
21407 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
21408 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
21409 | else | |
21410 | haveit= | |
21411 | for x in $ltrpathdirs; do | |
21412 | if test "X$x" = "X$found_dir"; then | |
21413 | haveit=yes | |
21414 | break | |
21415 | fi | |
21416 | done | |
21417 | if test -z "$haveit"; then | |
21418 | ltrpathdirs="$ltrpathdirs $found_dir" | |
21419 | fi | |
21420 | if test "$hardcode_direct" = yes; then | |
21421 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
21422 | else | |
21423 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
21424 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
21425 | haveit= | |
21426 | for x in $rpathdirs; do | |
21427 | if test "X$x" = "X$found_dir"; then | |
21428 | haveit=yes | |
21429 | break | |
21430 | fi | |
21431 | done | |
21432 | if test -z "$haveit"; then | |
21433 | rpathdirs="$rpathdirs $found_dir" | |
21434 | fi | |
21435 | else | |
21436 | haveit= | |
21437 | for x in $LDFLAGS $LIBICONV; do | |
21438 | ||
21439 | acl_save_prefix="$prefix" | |
21440 | prefix="$acl_final_prefix" | |
21441 | acl_save_exec_prefix="$exec_prefix" | |
21442 | exec_prefix="$acl_final_exec_prefix" | |
21443 | eval x=\"$x\" | |
21444 | exec_prefix="$acl_save_exec_prefix" | |
21445 | prefix="$acl_save_prefix" | |
21446 | ||
21447 | if test "X$x" = "X-L$found_dir"; then | |
21448 | haveit=yes | |
21449 | break | |
21450 | fi | |
21451 | done | |
21452 | if test -z "$haveit"; then | |
21453 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
21454 | fi | |
21455 | if test "$hardcode_minus_L" != no; then | |
21456 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
21457 | else | |
21458 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
21459 | fi | |
21460 | fi | |
21461 | fi | |
21462 | fi | |
21463 | else | |
21464 | if test "X$found_a" != "X"; then | |
21465 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
21466 | else | |
21467 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
21468 | fi | |
21469 | fi | |
21470 | additional_includedir= | |
21471 | case "$found_dir" in | |
21472 | */lib | */lib/) | |
21473 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
21474 | additional_includedir="$basedir/include" | |
21475 | ;; | |
21476 | esac | |
21477 | if test "X$additional_includedir" != "X"; then | |
21478 | if test "X$additional_includedir" != "X/usr/include"; then | |
21479 | haveit= | |
21480 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
21481 | if test -n "$GCC"; then | |
21482 | case $host_os in | |
21483 | linux*) haveit=yes;; | |
21484 | esac | |
21485 | fi | |
21486 | fi | |
21487 | if test -z "$haveit"; then | |
21488 | for x in $CPPFLAGS $INCICONV; do | |
21489 | ||
21490 | acl_save_prefix="$prefix" | |
21491 | prefix="$acl_final_prefix" | |
21492 | acl_save_exec_prefix="$exec_prefix" | |
21493 | exec_prefix="$acl_final_exec_prefix" | |
21494 | eval x=\"$x\" | |
21495 | exec_prefix="$acl_save_exec_prefix" | |
21496 | prefix="$acl_save_prefix" | |
21497 | ||
21498 | if test "X$x" = "X-I$additional_includedir"; then | |
21499 | haveit=yes | |
21500 | break | |
21501 | fi | |
21502 | done | |
21503 | if test -z "$haveit"; then | |
21504 | if test -d "$additional_includedir"; then | |
21505 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
21506 | fi | |
21507 | fi | |
21508 | fi | |
21509 | fi | |
21510 | fi | |
21511 | if test -n "$found_la"; then | |
21512 | save_libdir="$libdir" | |
21513 | case "$found_la" in | |
21514 | */* | *\\*) . "$found_la" ;; | |
21515 | *) . "./$found_la" ;; | |
21516 | esac | |
21517 | libdir="$save_libdir" | |
21518 | for dep in $dependency_libs; do | |
21519 | case "$dep" in | |
21520 | -L*) | |
21521 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
21522 | if test "X$additional_libdir" != "X/usr/lib"; then | |
21523 | haveit= | |
21524 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
21525 | if test -n "$GCC"; then | |
21526 | case $host_os in | |
21527 | linux*) haveit=yes;; | |
21528 | esac | |
21529 | fi | |
21530 | fi | |
21531 | if test -z "$haveit"; then | |
21532 | haveit= | |
21533 | for x in $LDFLAGS $LIBICONV; do | |
21534 | ||
21535 | acl_save_prefix="$prefix" | |
21536 | prefix="$acl_final_prefix" | |
21537 | acl_save_exec_prefix="$exec_prefix" | |
21538 | exec_prefix="$acl_final_exec_prefix" | |
21539 | eval x=\"$x\" | |
21540 | exec_prefix="$acl_save_exec_prefix" | |
21541 | prefix="$acl_save_prefix" | |
21542 | ||
21543 | if test "X$x" = "X-L$additional_libdir"; then | |
21544 | haveit=yes | |
21545 | break | |
21546 | fi | |
21547 | done | |
21548 | if test -z "$haveit"; then | |
21549 | if test -d "$additional_libdir"; then | |
21550 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
21551 | fi | |
21552 | fi | |
21553 | haveit= | |
21554 | for x in $LDFLAGS $LTLIBICONV; do | |
21555 | ||
21556 | acl_save_prefix="$prefix" | |
21557 | prefix="$acl_final_prefix" | |
21558 | acl_save_exec_prefix="$exec_prefix" | |
21559 | exec_prefix="$acl_final_exec_prefix" | |
21560 | eval x=\"$x\" | |
21561 | exec_prefix="$acl_save_exec_prefix" | |
21562 | prefix="$acl_save_prefix" | |
21563 | ||
21564 | if test "X$x" = "X-L$additional_libdir"; then | |
21565 | haveit=yes | |
21566 | break | |
21567 | fi | |
21568 | done | |
21569 | if test -z "$haveit"; then | |
21570 | if test -d "$additional_libdir"; then | |
21571 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
21572 | fi | |
21573 | fi | |
21574 | fi | |
21575 | fi | |
21576 | ;; | |
21577 | -R*) | |
21578 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
21579 | if test "$enable_rpath" != no; then | |
21580 | haveit= | |
21581 | for x in $rpathdirs; do | |
21582 | if test "X$x" = "X$dir"; then | |
21583 | haveit=yes | |
21584 | break | |
21585 | fi | |
21586 | done | |
21587 | if test -z "$haveit"; then | |
21588 | rpathdirs="$rpathdirs $dir" | |
21589 | fi | |
21590 | haveit= | |
21591 | for x in $ltrpathdirs; do | |
21592 | if test "X$x" = "X$dir"; then | |
21593 | haveit=yes | |
21594 | break | |
21595 | fi | |
21596 | done | |
21597 | if test -z "$haveit"; then | |
21598 | ltrpathdirs="$ltrpathdirs $dir" | |
21599 | fi | |
21600 | fi | |
21601 | ;; | |
21602 | -l*) | |
21603 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
21604 | ;; | |
21605 | *.la) | |
21606 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
21607 | ;; | |
21608 | *) | |
21609 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
21610 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
21611 | ;; | |
21612 | esac | |
21613 | done | |
21614 | fi | |
21615 | else | |
21616 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
21617 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
21618 | fi | |
21619 | fi | |
21620 | fi | |
21621 | done | |
21622 | done | |
21623 | if test "X$rpathdirs" != "X"; then | |
21624 | if test -n "$hardcode_libdir_separator"; then | |
21625 | alldirs= | |
21626 | for found_dir in $rpathdirs; do | |
21627 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
21628 | done | |
21629 | acl_save_libdir="$libdir" | |
21630 | libdir="$alldirs" | |
21631 | eval flag=\"$hardcode_libdir_flag_spec\" | |
21632 | libdir="$acl_save_libdir" | |
21633 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
21634 | else | |
21635 | for found_dir in $rpathdirs; do | |
21636 | acl_save_libdir="$libdir" | |
21637 | libdir="$found_dir" | |
21638 | eval flag=\"$hardcode_libdir_flag_spec\" | |
21639 | libdir="$acl_save_libdir" | |
21640 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
21641 | done | |
21642 | fi | |
21643 | fi | |
21644 | if test "X$ltrpathdirs" != "X"; then | |
21645 | for found_dir in $ltrpathdirs; do | |
21646 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
21647 | done | |
21648 | fi | |
21649 | ||
21650 | ||
21651 | ||
21652 | ||
21653 | ||
21654 | ||
21655 | ||
21656 | am_save_CPPFLAGS="$CPPFLAGS" | |
21657 | ||
21658 | for element in $INCICONV; do | |
21659 | haveit= | |
21660 | for x in $CPPFLAGS; do | |
21661 | ||
21662 | acl_save_prefix="$prefix" | |
21663 | prefix="$acl_final_prefix" | |
21664 | acl_save_exec_prefix="$exec_prefix" | |
21665 | exec_prefix="$acl_final_exec_prefix" | |
21666 | eval x=\"$x\" | |
21667 | exec_prefix="$acl_save_exec_prefix" | |
21668 | prefix="$acl_save_prefix" | |
21669 | ||
21670 | if test "X$x" = "X$element"; then | |
21671 | haveit=yes | |
21672 | break | |
21673 | fi | |
21674 | done | |
21675 | if test -z "$haveit"; then | |
21676 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
21677 | fi | |
21678 | done | |
21679 | ||
21680 | ||
5213506e RW |
21681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
21682 | $as_echo_n "checking for iconv... " >&6; } | |
21683 | if test "${am_cv_func_iconv+set}" = set; then : | |
21684 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
21685 | else |
21686 | ||
21687 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
21688 | am_cv_lib_iconv=no | |
21689 | if test x$gcc_no_link = xyes; then | |
5213506e | 21690 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 21691 | fi |
5213506e | 21692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
21693 | /* end confdefs.h. */ |
21694 | #include <stdlib.h> | |
21695 | #include <iconv.h> | |
21696 | int | |
21697 | main () | |
21698 | { | |
21699 | iconv_t cd = iconv_open("",""); | |
21700 | iconv(cd,NULL,NULL,NULL,NULL); | |
21701 | iconv_close(cd); | |
21702 | ; | |
21703 | return 0; | |
21704 | } | |
21705 | _ACEOF | |
5213506e | 21706 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d | 21707 | am_cv_func_iconv=yes |
1cf3d07d | 21708 | fi |
5213506e RW |
21709 | rm -f core conftest.err conftest.$ac_objext \ |
21710 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
21711 | if test "$am_cv_func_iconv" != yes; then |
21712 | am_save_LIBS="$LIBS" | |
21713 | LIBS="$LIBS $LIBICONV" | |
21714 | if test x$gcc_no_link = xyes; then | |
5213506e | 21715 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 21716 | fi |
5213506e | 21717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
21718 | /* end confdefs.h. */ |
21719 | #include <stdlib.h> | |
21720 | #include <iconv.h> | |
21721 | int | |
21722 | main () | |
21723 | { | |
21724 | iconv_t cd = iconv_open("",""); | |
21725 | iconv(cd,NULL,NULL,NULL,NULL); | |
21726 | iconv_close(cd); | |
21727 | ; | |
21728 | return 0; | |
21729 | } | |
21730 | _ACEOF | |
5213506e | 21731 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
21732 | am_cv_lib_iconv=yes |
21733 | am_cv_func_iconv=yes | |
1cf3d07d | 21734 | fi |
5213506e RW |
21735 | rm -f core conftest.err conftest.$ac_objext \ |
21736 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
21737 | LIBS="$am_save_LIBS" |
21738 | fi | |
21739 | ||
21740 | fi | |
5213506e RW |
21741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
21742 | $as_echo "$am_cv_func_iconv" >&6; } | |
1cf3d07d SE |
21743 | if test "$am_cv_func_iconv" = yes; then |
21744 | ||
5213506e | 21745 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
1cf3d07d SE |
21746 | |
21747 | fi | |
21748 | if test "$am_cv_lib_iconv" = yes; then | |
5213506e RW |
21749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
21750 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
21751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
21752 | $as_echo "$LIBICONV" >&6; } | |
1cf3d07d SE |
21753 | else |
21754 | CPPFLAGS="$am_save_CPPFLAGS" | |
21755 | LIBICONV= | |
21756 | LTLIBICONV= | |
21757 | fi | |
21758 | ||
21759 | ||
21760 | ||
21761 | if test "$am_cv_func_iconv" = yes; then | |
5213506e RW |
21762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
21763 | $as_echo_n "checking for iconv declaration... " >&6; } | |
21764 | if test "${am_cv_proto_iconv+set}" = set; then : | |
21765 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
21766 | else |
21767 | ||
5213506e | 21768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
21769 | /* end confdefs.h. */ |
21770 | ||
21771 | #include <stdlib.h> | |
21772 | #include <iconv.h> | |
21773 | extern | |
21774 | #ifdef __cplusplus | |
21775 | "C" | |
21776 | #endif | |
21777 | #if defined(__STDC__) || defined(__cplusplus) | |
21778 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
21779 | #else | |
21780 | size_t iconv(); | |
21781 | #endif | |
21782 | ||
21783 | int | |
21784 | main () | |
21785 | { | |
21786 | ||
21787 | ; | |
21788 | return 0; | |
21789 | } | |
21790 | _ACEOF | |
5213506e | 21791 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d SE |
21792 | am_cv_proto_iconv_arg1="" |
21793 | else | |
5213506e | 21794 | am_cv_proto_iconv_arg1="const" |
1cf3d07d | 21795 | fi |
5213506e | 21796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
21797 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
21798 | fi | |
21799 | ||
21800 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
5213506e | 21801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
1cf3d07d | 21802 | }$am_cv_proto_iconv" >&5 |
5213506e RW |
21803 | $as_echo "${ac_t:- |
21804 | }$am_cv_proto_iconv" >&6; } | |
1cf3d07d SE |
21805 | |
21806 | cat >>confdefs.h <<_ACEOF | |
21807 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
21808 | _ACEOF | |
21809 | ||
21810 | fi | |
21811 | ||
21812 | ||
5213506e RW |
21813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
21814 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
21815 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
21816 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
21817 | else |
21818 | if test x$gcc_no_link = xyes; then | |
5213506e | 21819 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 21820 | fi |
5213506e | 21821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
21822 | /* end confdefs.h. */ |
21823 | #include <locale.h> | |
21824 | int | |
21825 | main () | |
21826 | { | |
21827 | return LC_MESSAGES | |
21828 | ; | |
21829 | return 0; | |
21830 | } | |
21831 | _ACEOF | |
5213506e | 21832 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
21833 | am_cv_val_LC_MESSAGES=yes |
21834 | else | |
5213506e | 21835 | am_cv_val_LC_MESSAGES=no |
1cf3d07d | 21836 | fi |
5213506e RW |
21837 | rm -f core conftest.err conftest.$ac_objext \ |
21838 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d | 21839 | fi |
5213506e RW |
21840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
21841 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } | |
1cf3d07d SE |
21842 | if test $am_cv_val_LC_MESSAGES = yes; then |
21843 | ||
5213506e | 21844 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
1cf3d07d SE |
21845 | |
21846 | fi | |
21847 | ||
5213506e RW |
21848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
21849 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
21850 | if test "${ac_cv_struct_tm+set}" = set; then : | |
21851 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 21852 | else |
5213506e | 21853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
21854 | /* end confdefs.h. */ |
21855 | #include <sys/types.h> | |
21856 | #include <time.h> | |
21857 | ||
21858 | int | |
21859 | main () | |
21860 | { | |
5213506e RW |
21861 | struct tm tm; |
21862 | int *p = &tm.tm_sec; | |
21863 | return !p; | |
1cf3d07d SE |
21864 | ; |
21865 | return 0; | |
21866 | } | |
21867 | _ACEOF | |
5213506e | 21868 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d SE |
21869 | ac_cv_struct_tm=time.h |
21870 | else | |
5213506e | 21871 | ac_cv_struct_tm=sys/time.h |
1cf3d07d | 21872 | fi |
5213506e | 21873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 21874 | fi |
5213506e RW |
21875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
21876 | $as_echo "$ac_cv_struct_tm" >&6; } | |
1cf3d07d SE |
21877 | if test $ac_cv_struct_tm = sys/time.h; then |
21878 | ||
5213506e | 21879 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
1cf3d07d | 21880 | |
1cf3d07d | 21881 | fi |
1cf3d07d | 21882 | |
5213506e RW |
21883 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
21884 | #include <$ac_cv_struct_tm> | |
21885 | ||
21886 | " | |
21887 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : | |
1cf3d07d | 21888 | |
5213506e RW |
21889 | cat >>confdefs.h <<_ACEOF |
21890 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
1cf3d07d SE |
21891 | _ACEOF |
21892 | ||
5213506e | 21893 | |
1cf3d07d SE |
21894 | fi |
21895 | ||
5213506e | 21896 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
1cf3d07d | 21897 | |
5213506e | 21898 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
1cf3d07d | 21899 | |
1cf3d07d | 21900 | else |
5213506e RW |
21901 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
21902 | " | |
21903 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : | |
21904 | ac_have_decl=1 | |
21905 | else | |
21906 | ac_have_decl=0 | |
1cf3d07d | 21907 | fi |
1cf3d07d | 21908 | |
5213506e RW |
21909 | cat >>confdefs.h <<_ACEOF |
21910 | #define HAVE_DECL_TZNAME $ac_have_decl | |
21911 | _ACEOF | |
1cf3d07d | 21912 | |
5213506e RW |
21913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
21914 | $as_echo_n "checking for tzname... " >&6; } | |
21915 | if test "${ac_cv_var_tzname+set}" = set; then : | |
21916 | $as_echo_n "(cached) " >&6 | |
21917 | else | |
21918 | if test x$gcc_no_link = xyes; then | |
21919 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
21920 | fi | |
21921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21922 | /* end confdefs.h. */ | |
21923 | #include <time.h> | |
21924 | #if !HAVE_DECL_TZNAME | |
21925 | extern char *tzname[]; | |
1cf3d07d SE |
21926 | #endif |
21927 | ||
21928 | int | |
21929 | main () | |
21930 | { | |
5213506e | 21931 | return tzname[0][0]; |
1cf3d07d SE |
21932 | ; |
21933 | return 0; | |
21934 | } | |
21935 | _ACEOF | |
5213506e RW |
21936 | if ac_fn_c_try_link "$LINENO"; then : |
21937 | ac_cv_var_tzname=yes | |
1cf3d07d | 21938 | else |
5213506e | 21939 | ac_cv_var_tzname=no |
1cf3d07d | 21940 | fi |
5213506e RW |
21941 | rm -f core conftest.err conftest.$ac_objext \ |
21942 | conftest$ac_exeext conftest.$ac_ext | |
21943 | fi | |
21944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
21945 | $as_echo "$ac_cv_var_tzname" >&6; } | |
21946 | if test $ac_cv_var_tzname = yes; then | |
21947 | ||
21948 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | |
21949 | ||
21950 | fi | |
1cf3d07d | 21951 | fi |
1cf3d07d SE |
21952 | |
21953 | ||
5213506e RW |
21954 | for ac_func in gethostbyname_r |
21955 | do : | |
21956 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" | |
21957 | if test "x$ac_cv_func_gethostbyname_r" = x""yes; then : | |
21958 | cat >>confdefs.h <<_ACEOF | |
1cf3d07d SE |
21959 | #define HAVE_GETHOSTBYNAME_R 1 |
21960 | _ACEOF | |
21961 | ||
5213506e RW |
21962 | |
21963 | $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h | |
21964 | ||
1cf3d07d SE |
21965 | # There are two different kinds of gethostbyname_r. |
21966 | # We look for the one that returns `int'. | |
21967 | # Hopefully this check is robust enough. | |
5213506e | 21968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
21969 | /* end confdefs.h. */ |
21970 | #include <netdb.h> | |
21971 | ||
21972 | _ACEOF | |
21973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 21974 | $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then : |
1cf3d07d SE |
21975 | |
21976 | ||
5213506e | 21977 | $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h |
1cf3d07d SE |
21978 | |
21979 | fi | |
21980 | rm -f conftest* | |
21981 | ||
21982 | ||
21983 | case " $GCINCS " in | |
21984 | *" -D_REENTRANT "*) ;; | |
21985 | *) | |
5213506e RW |
21986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5 |
21987 | $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; } | |
21988 | if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then : | |
21989 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 21990 | else |
5213506e | 21991 | ac_ext=cpp |
1cf3d07d SE |
21992 | ac_cpp='$CXXCPP $CPPFLAGS' |
21993 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21994 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21995 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21996 | ||
5213506e | 21997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
21998 | /* end confdefs.h. */ |
21999 | #include <netdb.h> | |
22000 | int | |
22001 | main () | |
22002 | { | |
22003 | gethostbyname_r("", 0, 0); | |
22004 | ; | |
22005 | return 0; | |
22006 | } | |
22007 | _ACEOF | |
5213506e | 22008 | if ac_fn_cxx_try_compile "$LINENO"; then : |
1cf3d07d SE |
22009 | libjava_cv_gethostbyname_r_needs_reentrant=no |
22010 | else | |
5213506e | 22011 | CPPFLAGS_SAVE="$CPPFLAGS" |
1cf3d07d | 22012 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
5213506e | 22013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22014 | /* end confdefs.h. */ |
22015 | #include <netdb.h> | |
22016 | int | |
22017 | main () | |
22018 | { | |
22019 | gethostbyname_r("", 0, 0); | |
22020 | ; | |
22021 | return 0; | |
22022 | } | |
22023 | _ACEOF | |
5213506e | 22024 | if ac_fn_cxx_try_compile "$LINENO"; then : |
1cf3d07d SE |
22025 | libjava_cv_gethostbyname_r_needs_reentrant=yes |
22026 | else | |
5213506e | 22027 | libjava_cv_gethostbyname_r_needs_reentrant=fail |
1cf3d07d | 22028 | fi |
5213506e | 22029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
22030 | CPPFLAGS="$CPPFLAGS_SAVE" |
22031 | ||
22032 | fi | |
5213506e | 22033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
22034 | ac_ext=c |
22035 | ac_cpp='$CPP $CPPFLAGS' | |
22036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22039 | ||
22040 | ||
22041 | fi | |
5213506e RW |
22042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5 |
22043 | $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; } | |
1cf3d07d SE |
22044 | if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then |
22045 | ||
5213506e | 22046 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
1cf3d07d SE |
22047 | |
22048 | fi | |
22049 | ;; | |
22050 | esac | |
22051 | ||
5213506e RW |
22052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5 |
22053 | $as_echo_n "checking for struct hostent_data... " >&6; } | |
22054 | if test "${libjava_cv_struct_hostent_data+set}" = set; then : | |
22055 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 22056 | else |
5213506e | 22057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22058 | /* end confdefs.h. */ |
22059 | ||
22060 | #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT) | |
22061 | # define _REENTRANT 1 | |
22062 | #endif | |
22063 | #include <netdb.h> | |
22064 | int | |
22065 | main () | |
22066 | { | |
22067 | struct hostent_data data; | |
22068 | ; | |
22069 | return 0; | |
22070 | } | |
22071 | _ACEOF | |
5213506e | 22072 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d SE |
22073 | libjava_cv_struct_hostent_data=yes |
22074 | else | |
5213506e | 22075 | libjava_cv_struct_hostent_data=no |
1cf3d07d | 22076 | fi |
5213506e | 22077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 22078 | fi |
5213506e RW |
22079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5 |
22080 | $as_echo "$libjava_cv_struct_hostent_data" >&6; } | |
1cf3d07d SE |
22081 | if test "x$libjava_cv_struct_hostent_data" = xyes; then |
22082 | ||
5213506e | 22083 | $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h |
1cf3d07d SE |
22084 | |
22085 | fi | |
22086 | ||
22087 | fi | |
22088 | done | |
22089 | ||
22090 | ||
22091 | # FIXME: libjava source code expects to find a prototype for | |
22092 | # gethostbyaddr_r in netdb.h. The outer check ensures that | |
22093 | # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails | |
22094 | # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C | |
22095 | # linkage check is enough, yet C++ code requires proper prototypes.) | |
5213506e | 22096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22097 | /* end confdefs.h. */ |
22098 | #include <netdb.h> | |
22099 | ||
22100 | _ACEOF | |
22101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 22102 | $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : |
1cf3d07d | 22103 | |
5213506e RW |
22104 | for ac_func in gethostbyaddr_r |
22105 | do : | |
22106 | ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r" | |
22107 | if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then : | |
1cf3d07d | 22108 | cat >>confdefs.h <<_ACEOF |
5213506e | 22109 | #define HAVE_GETHOSTBYADDR_R 1 |
1cf3d07d SE |
22110 | _ACEOF |
22111 | ||
22112 | ||
5213506e | 22113 | $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h |
1cf3d07d SE |
22114 | |
22115 | # There are two different kinds of gethostbyaddr_r. | |
22116 | # We look for the one that returns `int'. | |
22117 | # Hopefully this check is robust enough. | |
5213506e | 22118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22119 | /* end confdefs.h. */ |
22120 | #include <netdb.h> | |
22121 | ||
22122 | _ACEOF | |
22123 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 22124 | $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then : |
1cf3d07d SE |
22125 | |
22126 | ||
5213506e | 22127 | $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h |
1cf3d07d SE |
22128 | |
22129 | fi | |
22130 | rm -f conftest* | |
22131 | ||
22132 | fi | |
22133 | done | |
22134 | ||
5213506e RW |
22135 | fi |
22136 | rm -f conftest* | |
22137 | ||
22138 | ||
22139 | for ac_func in gethostname | |
22140 | do : | |
22141 | ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" | |
22142 | if test "x$ac_cv_func_gethostname" = x""yes; then : | |
22143 | cat >>confdefs.h <<_ACEOF | |
22144 | #define HAVE_GETHOSTNAME 1 | |
1cf3d07d | 22145 | _ACEOF |
1cf3d07d | 22146 | |
5213506e RW |
22147 | |
22148 | $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h | |
22149 | ||
22150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22151 | /* end confdefs.h. */ | |
22152 | #include <unistd.h> | |
22153 | ||
22154 | _ACEOF | |
22155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
22156 | $EGREP "gethostname" >/dev/null 2>&1; then : | |
22157 | ||
22158 | ||
22159 | $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h | |
22160 | ||
1cf3d07d | 22161 | fi |
5213506e RW |
22162 | rm -f conftest* |
22163 | ||
1cf3d07d | 22164 | fi |
5213506e RW |
22165 | done |
22166 | ||
22167 | ||
22168 | for ac_func in usleep | |
22169 | do : | |
22170 | ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" | |
22171 | if test "x$ac_cv_func_usleep" = x""yes; then : | |
1cf3d07d | 22172 | cat >>confdefs.h <<_ACEOF |
5213506e | 22173 | #define HAVE_USLEEP 1 |
1cf3d07d SE |
22174 | _ACEOF |
22175 | ||
5213506e | 22176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22177 | /* end confdefs.h. */ |
22178 | #include <unistd.h> | |
22179 | ||
22180 | _ACEOF | |
22181 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5213506e | 22182 | $EGREP "usleep" >/dev/null 2>&1; then : |
1cf3d07d SE |
22183 | |
22184 | ||
5213506e | 22185 | $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h |
1cf3d07d SE |
22186 | |
22187 | fi | |
22188 | rm -f conftest* | |
22189 | ||
22190 | fi | |
22191 | done | |
22192 | ||
22193 | ||
22194 | # Look for these functions in the thread library, but only bother | |
22195 | # if using POSIX threads. | |
22196 | if test "$THREADS" = posix; then | |
22197 | save_LIBS="$LIBS" | |
22198 | LIBS="$LIBS $THREADLIBS" | |
22199 | ||
22200 | # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since | |
22201 | # Solaris 7 the name librt is preferred. | |
5213506e RW |
22202 | for ac_func in sched_yield |
22203 | do : | |
22204 | ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" | |
22205 | if test "x$ac_cv_func_sched_yield" = x""yes; then : | |
1cf3d07d | 22206 | cat >>confdefs.h <<_ACEOF |
5213506e | 22207 | #define HAVE_SCHED_YIELD 1 |
1cf3d07d SE |
22208 | _ACEOF |
22209 | ||
22210 | else | |
22211 | ||
5213506e RW |
22212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 |
22213 | $as_echo_n "checking for sched_yield in -lrt... " >&6; } | |
22214 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then : | |
22215 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22216 | else |
22217 | ac_check_lib_save_LIBS=$LIBS | |
22218 | LIBS="-lrt $LIBS" | |
22219 | if test x$gcc_no_link = xyes; then | |
5213506e | 22220 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 22221 | fi |
5213506e | 22222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22223 | /* end confdefs.h. */ |
22224 | ||
5213506e RW |
22225 | /* Override any GCC internal prototype to avoid an error. |
22226 | Use char because int might match the return type of a GCC | |
22227 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
22228 | #ifdef __cplusplus |
22229 | extern "C" | |
22230 | #endif | |
1cf3d07d SE |
22231 | char sched_yield (); |
22232 | int | |
22233 | main () | |
22234 | { | |
5213506e | 22235 | return sched_yield (); |
1cf3d07d SE |
22236 | ; |
22237 | return 0; | |
22238 | } | |
22239 | _ACEOF | |
5213506e | 22240 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
22241 | ac_cv_lib_rt_sched_yield=yes |
22242 | else | |
5213506e | 22243 | ac_cv_lib_rt_sched_yield=no |
1cf3d07d | 22244 | fi |
5213506e RW |
22245 | rm -f core conftest.err conftest.$ac_objext \ |
22246 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
22247 | LIBS=$ac_check_lib_save_LIBS |
22248 | fi | |
5213506e RW |
22249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 |
22250 | $as_echo "$ac_cv_lib_rt_sched_yield" >&6; } | |
22251 | if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then : | |
1cf3d07d | 22252 | |
5213506e | 22253 | $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h |
1cf3d07d SE |
22254 | |
22255 | THREADLIBS="$THREADLIBS -lrt" | |
22256 | THREADSPEC="$THREADSPEC -lrt" | |
22257 | else | |
22258 | ||
5213506e RW |
22259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 |
22260 | $as_echo_n "checking for sched_yield in -lposix4... " >&6; } | |
22261 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then : | |
22262 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22263 | else |
22264 | ac_check_lib_save_LIBS=$LIBS | |
22265 | LIBS="-lposix4 $LIBS" | |
22266 | if test x$gcc_no_link = xyes; then | |
5213506e | 22267 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 22268 | fi |
5213506e | 22269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22270 | /* end confdefs.h. */ |
22271 | ||
5213506e RW |
22272 | /* Override any GCC internal prototype to avoid an error. |
22273 | Use char because int might match the return type of a GCC | |
22274 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
22275 | #ifdef __cplusplus |
22276 | extern "C" | |
22277 | #endif | |
1cf3d07d SE |
22278 | char sched_yield (); |
22279 | int | |
22280 | main () | |
22281 | { | |
5213506e | 22282 | return sched_yield (); |
1cf3d07d SE |
22283 | ; |
22284 | return 0; | |
22285 | } | |
22286 | _ACEOF | |
5213506e | 22287 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
22288 | ac_cv_lib_posix4_sched_yield=yes |
22289 | else | |
5213506e | 22290 | ac_cv_lib_posix4_sched_yield=no |
1cf3d07d | 22291 | fi |
5213506e RW |
22292 | rm -f core conftest.err conftest.$ac_objext \ |
22293 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
22294 | LIBS=$ac_check_lib_save_LIBS |
22295 | fi | |
5213506e RW |
22296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 |
22297 | $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } | |
22298 | if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then : | |
1cf3d07d | 22299 | |
5213506e | 22300 | $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h |
1cf3d07d SE |
22301 | |
22302 | THREADLIBS="$THREADLIBS -lposix4" | |
22303 | THREADSPEC="$THREADSPEC -lposix4" | |
22304 | fi | |
22305 | ||
22306 | fi | |
22307 | ||
22308 | fi | |
22309 | done | |
22310 | ||
22311 | ||
5213506e RW |
22312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
22313 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22314 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
22315 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22316 | else |
22317 | ac_check_lib_save_LIBS=$LIBS | |
22318 | LIBS="-lrt $LIBS" | |
22319 | if test x$gcc_no_link = xyes; then | |
5213506e | 22320 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 22321 | fi |
5213506e | 22322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22323 | /* end confdefs.h. */ |
22324 | ||
5213506e RW |
22325 | /* Override any GCC internal prototype to avoid an error. |
22326 | Use char because int might match the return type of a GCC | |
22327 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
22328 | #ifdef __cplusplus |
22329 | extern "C" | |
22330 | #endif | |
1cf3d07d SE |
22331 | char clock_gettime (); |
22332 | int | |
22333 | main () | |
22334 | { | |
5213506e | 22335 | return clock_gettime (); |
1cf3d07d SE |
22336 | ; |
22337 | return 0; | |
22338 | } | |
22339 | _ACEOF | |
5213506e | 22340 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
22341 | ac_cv_lib_rt_clock_gettime=yes |
22342 | else | |
5213506e | 22343 | ac_cv_lib_rt_clock_gettime=no |
1cf3d07d | 22344 | fi |
5213506e RW |
22345 | rm -f core conftest.err conftest.$ac_objext \ |
22346 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
22347 | LIBS=$ac_check_lib_save_LIBS |
22348 | fi | |
5213506e RW |
22349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
22350 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22351 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
1cf3d07d SE |
22352 | |
22353 | ||
5213506e | 22354 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
1cf3d07d SE |
22355 | |
22356 | case "$THREADSPEC" in | |
22357 | *-lrt*) ;; | |
22358 | *) | |
22359 | THREADSPEC="$THREADSPEC -lrt" | |
22360 | THREADLIBS="$THREADLIBS -lrt" | |
22361 | ;; | |
22362 | esac | |
22363 | fi | |
22364 | ||
22365 | ||
22366 | LIBS="$save_LIBS" | |
22367 | ||
22368 | # We can save a little space at runtime if the mutex has m_count | |
22369 | # or __m_count. This is a nice hack for Linux. | |
5213506e | 22370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22371 | /* end confdefs.h. */ |
22372 | #include <pthread.h> | |
22373 | int | |
22374 | main () | |
22375 | { | |
22376 | ||
22377 | extern pthread_mutex_t *mutex; int q = mutex->m_count; | |
22378 | ||
22379 | ; | |
22380 | return 0; | |
22381 | } | |
22382 | _ACEOF | |
5213506e | 22383 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 22384 | |
5213506e RW |
22385 | $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h |
22386 | ||
22387 | else | |
22388 | ||
22389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
22390 | /* end confdefs.h. */ | |
22391 | #include <pthread.h> | |
1cf3d07d SE |
22392 | int |
22393 | main () | |
22394 | { | |
5213506e RW |
22395 | |
22396 | extern pthread_mutex_t *mutex; int q = mutex->__m_count; | |
22397 | ||
1cf3d07d SE |
22398 | ; |
22399 | return 0; | |
22400 | } | |
22401 | _ACEOF | |
5213506e RW |
22402 | if ac_fn_c_try_compile "$LINENO"; then : |
22403 | ||
22404 | $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h | |
1cf3d07d | 22405 | |
1cf3d07d | 22406 | fi |
5213506e | 22407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 22408 | fi |
5213506e RW |
22409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22410 | fi | |
22411 | ||
22412 | # We require a way to get the time. | |
22413 | time_found=no | |
22414 | for ac_func in gettimeofday time ftime | |
22415 | do : | |
22416 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22417 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22418 | eval as_val=\$$as_ac_var | |
22419 | if test "x$as_val" = x""yes; then : | |
1cf3d07d | 22420 | cat >>confdefs.h <<_ACEOF |
5213506e | 22421 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
1cf3d07d | 22422 | _ACEOF |
5213506e | 22423 | time_found=yes |
1cf3d07d SE |
22424 | fi |
22425 | done | |
22426 | ||
5213506e RW |
22427 | if test "$time_found" = no; then |
22428 | as_fn_error "no function found to get the time" "$LINENO" 5 | |
22429 | fi | |
1cf3d07d | 22430 | |
5213506e RW |
22431 | for ac_func in memmove |
22432 | do : | |
22433 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" | |
22434 | if test "x$ac_cv_func_memmove" = x""yes; then : | |
22435 | cat >>confdefs.h <<_ACEOF | |
22436 | #define HAVE_MEMMOVE 1 | |
1cf3d07d | 22437 | _ACEOF |
1cf3d07d | 22438 | |
5213506e RW |
22439 | fi |
22440 | done | |
1cf3d07d | 22441 | |
1cf3d07d | 22442 | |
5213506e RW |
22443 | # We require memcpy. |
22444 | memcpy_found=no | |
22445 | for ac_func in memcpy | |
22446 | do : | |
22447 | ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" | |
22448 | if test "x$ac_cv_func_memcpy" = x""yes; then : | |
1cf3d07d | 22449 | cat >>confdefs.h <<_ACEOF |
5213506e | 22450 | #define HAVE_MEMCPY 1 |
1cf3d07d SE |
22451 | _ACEOF |
22452 | memcpy_found=yes | |
22453 | fi | |
22454 | done | |
22455 | ||
22456 | if test "$memcpy_found" = no; then | |
5213506e | 22457 | as_fn_error "memcpy is required" "$LINENO" 5 |
1cf3d07d SE |
22458 | fi |
22459 | # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl | |
5213506e RW |
22460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
22461 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22462 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
22463 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22464 | else |
22465 | ac_check_lib_save_LIBS=$LIBS | |
22466 | LIBS="-ldl $LIBS" | |
22467 | if test x$gcc_no_link = xyes; then | |
5213506e | 22468 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 22469 | fi |
5213506e | 22470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22471 | /* end confdefs.h. */ |
22472 | ||
5213506e RW |
22473 | /* Override any GCC internal prototype to avoid an error. |
22474 | Use char because int might match the return type of a GCC | |
22475 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
22476 | #ifdef __cplusplus |
22477 | extern "C" | |
22478 | #endif | |
1cf3d07d SE |
22479 | char dlopen (); |
22480 | int | |
22481 | main () | |
22482 | { | |
5213506e | 22483 | return dlopen (); |
1cf3d07d SE |
22484 | ; |
22485 | return 0; | |
22486 | } | |
22487 | _ACEOF | |
5213506e | 22488 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
22489 | ac_cv_lib_dl_dlopen=yes |
22490 | else | |
5213506e | 22491 | ac_cv_lib_dl_dlopen=no |
1cf3d07d | 22492 | fi |
5213506e RW |
22493 | rm -f core conftest.err conftest.$ac_objext \ |
22494 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
22495 | LIBS=$ac_check_lib_save_LIBS |
22496 | fi | |
5213506e RW |
22497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
22498 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22499 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
1cf3d07d SE |
22500 | |
22501 | ||
5213506e | 22502 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
1cf3d07d SE |
22503 | |
22504 | else | |
22505 | ||
5213506e RW |
22506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5 |
22507 | $as_echo_n "checking for dlopen in -ldld... " >&6; } | |
22508 | if test "${ac_cv_lib_dld_dlopen+set}" = set; then : | |
22509 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22510 | else |
22511 | ac_check_lib_save_LIBS=$LIBS | |
22512 | LIBS="-ldld $LIBS" | |
22513 | if test x$gcc_no_link = xyes; then | |
5213506e | 22514 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 22515 | fi |
5213506e | 22516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22517 | /* end confdefs.h. */ |
22518 | ||
5213506e RW |
22519 | /* Override any GCC internal prototype to avoid an error. |
22520 | Use char because int might match the return type of a GCC | |
22521 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
22522 | #ifdef __cplusplus |
22523 | extern "C" | |
22524 | #endif | |
1cf3d07d SE |
22525 | char dlopen (); |
22526 | int | |
22527 | main () | |
22528 | { | |
5213506e | 22529 | return dlopen (); |
1cf3d07d SE |
22530 | ; |
22531 | return 0; | |
22532 | } | |
22533 | _ACEOF | |
5213506e | 22534 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
22535 | ac_cv_lib_dld_dlopen=yes |
22536 | else | |
5213506e | 22537 | ac_cv_lib_dld_dlopen=no |
1cf3d07d | 22538 | fi |
5213506e RW |
22539 | rm -f core conftest.err conftest.$ac_objext \ |
22540 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
22541 | LIBS=$ac_check_lib_save_LIBS |
22542 | fi | |
5213506e RW |
22543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5 |
22544 | $as_echo "$ac_cv_lib_dld_dlopen" >&6; } | |
22545 | if test "x$ac_cv_lib_dld_dlopen" = x""yes; then : | |
1cf3d07d SE |
22546 | |
22547 | ||
5213506e | 22548 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
1cf3d07d SE |
22549 | |
22550 | fi | |
22551 | ||
22552 | fi | |
22553 | ||
22554 | ||
22555 | # Some library-finding code we stole from Tcl. | |
22556 | #-------------------------------------------------------------------- | |
22557 | # Check for the existence of the -lsocket and -lnsl libraries. | |
22558 | # The order here is important, so that they end up in the right | |
22559 | # order in the command line generated by make. Here are some | |
22560 | # special considerations: | |
22561 | # 1. Use "connect" and "accept" to check for -lsocket, and | |
22562 | # "gethostbyname" to check for -lnsl. | |
22563 | # 2. Use each function name only once: can't redo a check because | |
22564 | # autoconf caches the results of the last check and won't redo it. | |
22565 | # 3. Use -lnsl and -lsocket only if they supply procedures that | |
22566 | # aren't already present in the normal libraries. This is because | |
22567 | # IRIX 5.2 has libraries, but they aren't needed and they're | |
22568 | # bogus: they goof up name resolution if used. | |
22569 | # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. | |
22570 | # To get around this problem, check for both libraries together | |
22571 | # if -lsocket doesn't work by itself. | |
22572 | #-------------------------------------------------------------------- | |
22573 | ||
5213506e RW |
22574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5 |
22575 | $as_echo_n "checking for socket libraries... " >&6; } | |
22576 | if test "${gcj_cv_lib_sockets+set}" = set; then : | |
22577 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22578 | else |
22579 | gcj_cv_lib_sockets= | |
22580 | gcj_checkBoth=0 | |
22581 | unset ac_cv_func_connect | |
5213506e RW |
22582 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
22583 | if test "x$ac_cv_func_connect" = x""yes; then : | |
1cf3d07d SE |
22584 | gcj_checkSocket=0 |
22585 | else | |
22586 | gcj_checkSocket=1 | |
22587 | fi | |
22588 | ||
22589 | if test "$gcj_checkSocket" = 1; then | |
22590 | unset ac_cv_func_connect | |
5213506e RW |
22591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 |
22592 | $as_echo_n "checking for main in -lsocket... " >&6; } | |
22593 | if test "${ac_cv_lib_socket_main+set}" = set; then : | |
22594 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22595 | else |
22596 | ac_check_lib_save_LIBS=$LIBS | |
22597 | LIBS="-lsocket $LIBS" | |
22598 | if test x$gcc_no_link = xyes; then | |
5213506e | 22599 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 22600 | fi |
5213506e | 22601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 22602 | /* end confdefs.h. */ |
1cf3d07d | 22603 | |
1cf3d07d SE |
22604 | |
22605 | int | |
22606 | main () | |
22607 | { | |
5213506e | 22608 | return main (); |
1cf3d07d SE |
22609 | ; |
22610 | return 0; | |
22611 | } | |
22612 | _ACEOF | |
5213506e RW |
22613 | if ac_fn_c_try_link "$LINENO"; then : |
22614 | ac_cv_lib_socket_main=yes | |
1cf3d07d | 22615 | else |
5213506e | 22616 | ac_cv_lib_socket_main=no |
1cf3d07d | 22617 | fi |
5213506e RW |
22618 | rm -f core conftest.err conftest.$ac_objext \ |
22619 | conftest$ac_exeext conftest.$ac_ext | |
22620 | LIBS=$ac_check_lib_save_LIBS | |
1cf3d07d | 22621 | fi |
5213506e RW |
22622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 |
22623 | $as_echo "$ac_cv_lib_socket_main" >&6; } | |
22624 | if test "x$ac_cv_lib_socket_main" = x""yes; then : | |
22625 | gcj_cv_lib_sockets="-lsocket" | |
22626 | else | |
22627 | gcj_checkBoth=1 | |
22628 | fi | |
22629 | ||
22630 | fi | |
22631 | if test "$gcj_checkBoth" = 1; then | |
22632 | gcj_oldLibs=$LIBS | |
22633 | LIBS="$LIBS -lsocket -lnsl" | |
22634 | unset ac_cv_func_accept | |
22635 | ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" | |
22636 | if test "x$ac_cv_func_accept" = x""yes; then : | |
22637 | gcj_checkNsl=0 | |
22638 | gcj_cv_lib_sockets="-lsocket -lnsl" | |
22639 | fi | |
22640 | ||
22641 | unset ac_cv_func_accept | |
22642 | LIBS=$gcj_oldLibs | |
22643 | fi | |
22644 | unset ac_cv_func_gethostbyname | |
22645 | gcj_oldLibs=$LIBS | |
22646 | LIBS="$LIBS $gcj_cv_lib_sockets" | |
22647 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | |
22648 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : | |
22649 | ||
1cf3d07d | 22650 | else |
5213506e RW |
22651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 |
22652 | $as_echo_n "checking for main in -lnsl... " >&6; } | |
22653 | if test "${ac_cv_lib_nsl_main+set}" = set; then : | |
22654 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22655 | else |
22656 | ac_check_lib_save_LIBS=$LIBS | |
22657 | LIBS="-lnsl $LIBS" | |
22658 | if test x$gcc_no_link = xyes; then | |
5213506e | 22659 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 22660 | fi |
5213506e | 22661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22662 | /* end confdefs.h. */ |
22663 | ||
22664 | ||
22665 | int | |
22666 | main () | |
22667 | { | |
5213506e | 22668 | return main (); |
1cf3d07d SE |
22669 | ; |
22670 | return 0; | |
22671 | } | |
22672 | _ACEOF | |
5213506e | 22673 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
22674 | ac_cv_lib_nsl_main=yes |
22675 | else | |
5213506e | 22676 | ac_cv_lib_nsl_main=no |
1cf3d07d | 22677 | fi |
5213506e RW |
22678 | rm -f core conftest.err conftest.$ac_objext \ |
22679 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
22680 | LIBS=$ac_check_lib_save_LIBS |
22681 | fi | |
5213506e RW |
22682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 |
22683 | $as_echo "$ac_cv_lib_nsl_main" >&6; } | |
22684 | if test "x$ac_cv_lib_nsl_main" = x""yes; then : | |
1cf3d07d SE |
22685 | gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl" |
22686 | fi | |
22687 | ||
22688 | fi | |
22689 | ||
22690 | unset ac_cv_func_gethostbyname | |
22691 | LIBS=$gcj_oldLIBS | |
22692 | ||
22693 | fi | |
5213506e RW |
22694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5 |
22695 | $as_echo "$gcj_cv_lib_sockets" >&6; } | |
1cf3d07d SE |
22696 | SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets" |
22697 | ||
22698 | if test "$with_system_zlib" = yes; then | |
5213506e RW |
22699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
22700 | $as_echo_n "checking for deflate in -lz... " >&6; } | |
22701 | if test "${ac_cv_lib_z_deflate+set}" = set; then : | |
22702 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22703 | else |
22704 | ac_check_lib_save_LIBS=$LIBS | |
22705 | LIBS="-lz $LIBS" | |
22706 | if test x$gcc_no_link = xyes; then | |
5213506e | 22707 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 22708 | fi |
5213506e | 22709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
22710 | /* end confdefs.h. */ |
22711 | ||
5213506e RW |
22712 | /* Override any GCC internal prototype to avoid an error. |
22713 | Use char because int might match the return type of a GCC | |
22714 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
22715 | #ifdef __cplusplus |
22716 | extern "C" | |
22717 | #endif | |
1cf3d07d SE |
22718 | char deflate (); |
22719 | int | |
22720 | main () | |
22721 | { | |
5213506e | 22722 | return deflate (); |
1cf3d07d SE |
22723 | ; |
22724 | return 0; | |
22725 | } | |
22726 | _ACEOF | |
5213506e | 22727 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
22728 | ac_cv_lib_z_deflate=yes |
22729 | else | |
5213506e | 22730 | ac_cv_lib_z_deflate=no |
1cf3d07d | 22731 | fi |
5213506e RW |
22732 | rm -f core conftest.err conftest.$ac_objext \ |
22733 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
22734 | LIBS=$ac_check_lib_save_LIBS |
22735 | fi | |
5213506e RW |
22736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
22737 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | |
22738 | if test "x$ac_cv_lib_z_deflate" = x""yes; then : | |
1cf3d07d SE |
22739 | ZLIBSPEC=-lz |
22740 | else | |
22741 | ZLIBSPEC= | |
22742 | fi | |
22743 | ||
22744 | fi | |
22745 | ||
22746 | # Test for Gtk stuff, if asked for. | |
22747 | if test "$use_gtk_awt" = yes; then | |
22748 | ||
22749 | succeeded=no | |
22750 | ||
22751 | if test -z "$PKG_CONFIG"; then | |
22752 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22753 | set dummy pkg-config; ac_word=$2 | |
5213506e RW |
22754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
22755 | $as_echo_n "checking for $ac_word... " >&6; } | |
22756 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
22757 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22758 | else |
22759 | case $PKG_CONFIG in | |
22760 | [\\/]* | ?:[\\/]*) | |
22761 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22762 | ;; | |
22763 | *) | |
22764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22765 | for as_dir in $PATH | |
22766 | do | |
22767 | IFS=$as_save_IFS | |
22768 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
22769 | for ac_exec_ext in '' $ac_executable_extensions; do |
22770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 22771 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 22772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
22773 | break 2 |
22774 | fi | |
22775 | done | |
5213506e RW |
22776 | done |
22777 | IFS=$as_save_IFS | |
1cf3d07d SE |
22778 | |
22779 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22780 | ;; | |
22781 | esac | |
22782 | fi | |
22783 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
1cf3d07d | 22784 | if test -n "$PKG_CONFIG"; then |
5213506e RW |
22785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
22786 | $as_echo "$PKG_CONFIG" >&6; } | |
1cf3d07d | 22787 | else |
5213506e RW |
22788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22789 | $as_echo "no" >&6; } | |
1cf3d07d SE |
22790 | fi |
22791 | ||
5213506e | 22792 | |
1cf3d07d SE |
22793 | fi |
22794 | ||
22795 | if test "$PKG_CONFIG" = "no" ; then | |
22796 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22797 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22798 | echo "*** to the full path to pkg-config." | |
22799 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22800 | else | |
22801 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22802 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
5213506e RW |
22803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5 |
22804 | $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; } | |
1cf3d07d SE |
22805 | |
22806 | if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then | |
5213506e RW |
22807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
22808 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
22809 | succeeded=yes |
22810 | ||
5213506e RW |
22811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 |
22812 | $as_echo_n "checking GTK_CFLAGS... " >&6; } | |
1cf3d07d | 22813 | GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"` |
5213506e RW |
22814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 |
22815 | $as_echo "$GTK_CFLAGS" >&6; } | |
1cf3d07d | 22816 | |
5213506e RW |
22817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 |
22818 | $as_echo_n "checking GTK_LIBS... " >&6; } | |
1cf3d07d | 22819 | GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"` |
5213506e RW |
22820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 |
22821 | $as_echo "$GTK_LIBS" >&6; } | |
1cf3d07d SE |
22822 | else |
22823 | GTK_CFLAGS="" | |
22824 | GTK_LIBS="" | |
22825 | ## If we have a custom action on failure, don't print errors, but | |
22826 | ## do set a variable so people can do so. | |
22827 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"` | |
22828 | echo $GTK_PKG_ERRORS | |
22829 | fi | |
22830 | ||
22831 | ||
22832 | ||
22833 | else | |
22834 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22835 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22836 | fi | |
22837 | fi | |
22838 | ||
22839 | if test $succeeded = yes; then | |
22840 | : | |
22841 | else | |
5213506e | 22842 | as_fn_error "Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5 |
1cf3d07d SE |
22843 | fi |
22844 | ||
22845 | ||
22846 | ||
22847 | ||
22848 | ||
22849 | succeeded=no | |
22850 | ||
22851 | if test -z "$PKG_CONFIG"; then | |
22852 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22853 | set dummy pkg-config; ac_word=$2 | |
5213506e RW |
22854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
22855 | $as_echo_n "checking for $ac_word... " >&6; } | |
22856 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
22857 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22858 | else |
22859 | case $PKG_CONFIG in | |
22860 | [\\/]* | ?:[\\/]*) | |
22861 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22862 | ;; | |
22863 | *) | |
22864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22865 | for as_dir in $PATH | |
22866 | do | |
22867 | IFS=$as_save_IFS | |
22868 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
22869 | for ac_exec_ext in '' $ac_executable_extensions; do |
22870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 22871 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 22872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
22873 | break 2 |
22874 | fi | |
22875 | done | |
5213506e RW |
22876 | done |
22877 | IFS=$as_save_IFS | |
1cf3d07d SE |
22878 | |
22879 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22880 | ;; | |
22881 | esac | |
22882 | fi | |
22883 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
1cf3d07d | 22884 | if test -n "$PKG_CONFIG"; then |
5213506e RW |
22885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
22886 | $as_echo "$PKG_CONFIG" >&6; } | |
1cf3d07d | 22887 | else |
5213506e RW |
22888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22889 | $as_echo "no" >&6; } | |
1cf3d07d SE |
22890 | fi |
22891 | ||
5213506e | 22892 | |
1cf3d07d SE |
22893 | fi |
22894 | ||
22895 | if test "$PKG_CONFIG" = "no" ; then | |
22896 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22897 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22898 | echo "*** to the full path to pkg-config." | |
22899 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22900 | else | |
22901 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22902 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
5213506e RW |
22903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5 |
22904 | $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; } | |
1cf3d07d SE |
22905 | |
22906 | if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then | |
5213506e RW |
22907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
22908 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
22909 | succeeded=yes |
22910 | ||
5213506e RW |
22911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5 |
22912 | $as_echo_n "checking GLIB_CFLAGS... " >&6; } | |
1cf3d07d | 22913 | GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"` |
5213506e RW |
22914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5 |
22915 | $as_echo "$GLIB_CFLAGS" >&6; } | |
1cf3d07d | 22916 | |
5213506e RW |
22917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5 |
22918 | $as_echo_n "checking GLIB_LIBS... " >&6; } | |
1cf3d07d | 22919 | GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"` |
5213506e RW |
22920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5 |
22921 | $as_echo "$GLIB_LIBS" >&6; } | |
1cf3d07d SE |
22922 | else |
22923 | GLIB_CFLAGS="" | |
22924 | GLIB_LIBS="" | |
22925 | ## If we have a custom action on failure, don't print errors, but | |
22926 | ## do set a variable so people can do so. | |
22927 | GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"` | |
22928 | echo $GLIB_PKG_ERRORS | |
22929 | fi | |
22930 | ||
22931 | ||
22932 | ||
22933 | else | |
22934 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22935 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22936 | fi | |
22937 | fi | |
22938 | ||
22939 | if test $succeeded = yes; then | |
22940 | : | |
22941 | else | |
5213506e | 22942 | as_fn_error "Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5 |
1cf3d07d SE |
22943 | fi |
22944 | ||
22945 | ||
22946 | ||
22947 | ||
22948 | ||
22949 | succeeded=no | |
22950 | ||
22951 | if test -z "$PKG_CONFIG"; then | |
22952 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22953 | set dummy pkg-config; ac_word=$2 | |
5213506e RW |
22954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
22955 | $as_echo_n "checking for $ac_word... " >&6; } | |
22956 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
22957 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
22958 | else |
22959 | case $PKG_CONFIG in | |
22960 | [\\/]* | ?:[\\/]*) | |
22961 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22962 | ;; | |
22963 | *) | |
22964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22965 | for as_dir in $PATH | |
22966 | do | |
22967 | IFS=$as_save_IFS | |
22968 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
22969 | for ac_exec_ext in '' $ac_executable_extensions; do |
22970 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 22971 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 22972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
22973 | break 2 |
22974 | fi | |
22975 | done | |
5213506e RW |
22976 | done |
22977 | IFS=$as_save_IFS | |
1cf3d07d SE |
22978 | |
22979 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22980 | ;; | |
22981 | esac | |
22982 | fi | |
22983 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
1cf3d07d | 22984 | if test -n "$PKG_CONFIG"; then |
5213506e RW |
22985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
22986 | $as_echo "$PKG_CONFIG" >&6; } | |
1cf3d07d | 22987 | else |
5213506e RW |
22988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22989 | $as_echo "no" >&6; } | |
1cf3d07d SE |
22990 | fi |
22991 | ||
5213506e | 22992 | |
1cf3d07d SE |
22993 | fi |
22994 | ||
22995 | if test "$PKG_CONFIG" = "no" ; then | |
22996 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22997 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22998 | echo "*** to the full path to pkg-config." | |
22999 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23000 | else | |
23001 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23002 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
5213506e RW |
23003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5 |
23004 | $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; } | |
1cf3d07d SE |
23005 | |
23006 | if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then | |
5213506e RW |
23007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
23008 | $as_echo "yes" >&6; } | |
1cf3d07d SE |
23009 | succeeded=yes |
23010 | ||
5213506e RW |
23011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5 |
23012 | $as_echo_n "checking LIBART_CFLAGS... " >&6; } | |
1cf3d07d | 23013 | LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"` |
5213506e RW |
23014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5 |
23015 | $as_echo "$LIBART_CFLAGS" >&6; } | |
1cf3d07d | 23016 | |
5213506e RW |
23017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5 |
23018 | $as_echo_n "checking LIBART_LIBS... " >&6; } | |
1cf3d07d | 23019 | LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"` |
5213506e RW |
23020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5 |
23021 | $as_echo "$LIBART_LIBS" >&6; } | |
1cf3d07d SE |
23022 | else |
23023 | LIBART_CFLAGS="" | |
23024 | LIBART_LIBS="" | |
23025 | ## If we have a custom action on failure, don't print errors, but | |
23026 | ## do set a variable so people can do so. | |
23027 | LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"` | |
23028 | echo $LIBART_PKG_ERRORS | |
23029 | fi | |
23030 | ||
23031 | ||
23032 | ||
23033 | else | |
23034 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23035 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23036 | fi | |
23037 | fi | |
23038 | ||
23039 | if test $succeeded = yes; then | |
23040 | : | |
23041 | else | |
5213506e | 23042 | as_fn_error "Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5 |
1cf3d07d SE |
23043 | fi |
23044 | ||
23045 | ||
23046 | ||
23047 | ||
23048 | # We require the XTest Extension to support java.awt.Robot. | |
5213506e RW |
23049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5 |
23050 | $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; } | |
23051 | if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then : | |
23052 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
23053 | else |
23054 | ac_check_lib_save_LIBS=$LIBS | |
23055 | LIBS="-lXtst ${X_LIBS} $LIBS" | |
23056 | if test x$gcc_no_link = xyes; then | |
5213506e | 23057 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 23058 | fi |
5213506e | 23059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
23060 | /* end confdefs.h. */ |
23061 | ||
5213506e RW |
23062 | /* Override any GCC internal prototype to avoid an error. |
23063 | Use char because int might match the return type of a GCC | |
23064 | builtin and then its argument prototype would still apply. */ | |
1cf3d07d SE |
23065 | #ifdef __cplusplus |
23066 | extern "C" | |
23067 | #endif | |
1cf3d07d SE |
23068 | char XTestQueryExtension (); |
23069 | int | |
23070 | main () | |
23071 | { | |
5213506e | 23072 | return XTestQueryExtension (); |
1cf3d07d SE |
23073 | ; |
23074 | return 0; | |
23075 | } | |
23076 | _ACEOF | |
5213506e | 23077 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
23078 | ac_cv_lib_Xtst_XTestQueryExtension=yes |
23079 | else | |
5213506e | 23080 | ac_cv_lib_Xtst_XTestQueryExtension=no |
1cf3d07d | 23081 | fi |
5213506e RW |
23082 | rm -f core conftest.err conftest.$ac_objext \ |
23083 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
23084 | LIBS=$ac_check_lib_save_LIBS |
23085 | fi | |
5213506e RW |
23086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5 |
23087 | $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; } | |
23088 | if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then : | |
1cf3d07d SE |
23089 | true |
23090 | else | |
5213506e | 23091 | as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5 |
1cf3d07d SE |
23092 | fi |
23093 | ||
23094 | fi | |
23095 | ||
23096 | # On Solaris, and maybe other architectures, the Boehm collector | |
23097 | # requires -ldl. | |
23098 | if test "$GC" = boehm; then | |
de2b3a07 RO |
23099 | case "${host}" in |
23100 | mips-sgi-irix6*) | |
23101 | # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib) | |
23102 | # libgcj.spec is used, so override here | |
23103 | SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}" | |
23104 | ;; | |
23105 | *) | |
5213506e RW |
23106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5 |
23107 | $as_echo_n "checking for main in -ldl... " >&6; } | |
23108 | if test "${ac_cv_lib_dl_main+set}" = set; then : | |
23109 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
23110 | else |
23111 | ac_check_lib_save_LIBS=$LIBS | |
23112 | LIBS="-ldl $LIBS" | |
23113 | if test x$gcc_no_link = xyes; then | |
5213506e | 23114 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 23115 | fi |
5213506e | 23116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
23117 | /* end confdefs.h. */ |
23118 | ||
23119 | ||
23120 | int | |
23121 | main () | |
23122 | { | |
5213506e | 23123 | return main (); |
1cf3d07d SE |
23124 | ; |
23125 | return 0; | |
23126 | } | |
23127 | _ACEOF | |
5213506e | 23128 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d SE |
23129 | ac_cv_lib_dl_main=yes |
23130 | else | |
5213506e | 23131 | ac_cv_lib_dl_main=no |
1cf3d07d | 23132 | fi |
5213506e RW |
23133 | rm -f core conftest.err conftest.$ac_objext \ |
23134 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
23135 | LIBS=$ac_check_lib_save_LIBS |
23136 | fi | |
5213506e RW |
23137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5 |
23138 | $as_echo "$ac_cv_lib_dl_main" >&6; } | |
23139 | if test "x$ac_cv_lib_dl_main" = x""yes; then : | |
1cf3d07d SE |
23140 | SYSTEMSPEC="$SYSTEMSPEC -ldl" |
23141 | fi | |
23142 | ||
de2b3a07 RO |
23143 | ;; |
23144 | esac | |
1cf3d07d SE |
23145 | fi |
23146 | fi | |
23147 | ||
23148 | # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon. | |
23149 | case $build in | |
23150 | *-mingw32) CLASSPATH_SEPARATOR=';' ;; | |
23151 | *) CLASSPATH_SEPARATOR=':' ;; | |
23152 | esac | |
23153 | ||
23154 | ||
23155 | # We must search the source tree for java.lang, since we still don't | |
23156 | # have libgcj.jar nor java/lang/*.class | |
23157 | GCJ_SAVE_CPPFLAGS=$CPPFLAGS | |
23158 | CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`" | |
23159 | ||
23160 | # Since some classes depend on this one, we need its source available | |
23161 | # before we can do any GCJ compilation test :-( | |
23162 | if test ! -f gnu/classpath/Configuration.java; then | |
23163 | test -d gnu || mkdir gnu | |
23164 | test -d gnu/classpath || mkdir gnu/classpath | |
23165 | # Note that it is not crucial that all the values here be correct. | |
f3392d53 | 23166 | sed -e "s,@prefix@,$expanded_prefix," \ |
1cf3d07d SE |
23167 | -e "s,@VERSION@,$VERSION," \ |
23168 | -e "s,@LIBDEBUG@,false," \ | |
23169 | -e "s,@INIT_LOAD_LIBRARY@,false," \ | |
23170 | -e "s,@@,$LIBGCJDEBUG," \ | |
23171 | -e "s,@default_toolkit@,$TOOLKIT," \ | |
23172 | -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \ | |
23173 | -e "s,@GTK_CAIRO_ENABLED@,false," \ | |
23174 | -e "s,@ECJ_JAR@,," \ | |
cd6d4007 | 23175 | -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \ |
1cf3d07d SE |
23176 | < $srcdir/classpath/gnu/classpath/Configuration.java.in \ |
23177 | > gnu/classpath/Configuration.java | |
23178 | # We do not want to redirect the output of the grep below to /dev/null, | |
23179 | # but we add /dev/null to the input list so that grep will print the | |
23180 | # filename of Configuration.java in case it finds any matches. | |
23181 | if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then | |
5213506e | 23182 | as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5 |
1cf3d07d SE |
23183 | fi |
23184 | fi | |
23185 | ||
23186 | ||
4d9e8446 RW |
23187 | if test -n "$ac_tool_prefix"; then |
23188 | for ac_prog in gcj | |
23189 | do | |
23190 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
23191 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
23192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
23193 | $as_echo_n "checking for $ac_word... " >&6; } | |
23194 | if test "${ac_cv_prog_GCJ+set}" = set; then : | |
23195 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
23196 | else |
23197 | if test -n "$GCJ"; then | |
23198 | ac_cv_prog_GCJ="$GCJ" # Let the user override the test. | |
23199 | else | |
23200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23201 | for as_dir in $PATH | |
23202 | do | |
23203 | IFS=$as_save_IFS | |
23204 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
23205 | for ac_exec_ext in '' $ac_executable_extensions; do |
23206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4d9e8446 | 23207 | ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog" |
5213506e | 23208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
23209 | break 2 |
23210 | fi | |
23211 | done | |
5213506e RW |
23212 | done |
23213 | IFS=$as_save_IFS | |
1cf3d07d SE |
23214 | |
23215 | fi | |
23216 | fi | |
23217 | GCJ=$ac_cv_prog_GCJ | |
23218 | if test -n "$GCJ"; then | |
5213506e RW |
23219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5 |
23220 | $as_echo "$GCJ" >&6; } | |
1cf3d07d | 23221 | else |
5213506e RW |
23222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23223 | $as_echo "no" >&6; } | |
1cf3d07d SE |
23224 | fi |
23225 | ||
5213506e | 23226 | |
4d9e8446 RW |
23227 | test -n "$GCJ" && break |
23228 | done | |
23229 | fi | |
23230 | if test -z "$GCJ"; then | |
23231 | ac_ct_GCJ=$GCJ | |
23232 | for ac_prog in gcj | |
23233 | do | |
23234 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
23235 | set dummy $ac_prog; ac_word=$2 | |
23236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
23237 | $as_echo_n "checking for $ac_word... " >&6; } | |
23238 | if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then : | |
23239 | $as_echo_n "(cached) " >&6 | |
23240 | else | |
23241 | if test -n "$ac_ct_GCJ"; then | |
23242 | ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test. | |
23243 | else | |
23244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23245 | for as_dir in $PATH | |
23246 | do | |
23247 | IFS=$as_save_IFS | |
23248 | test -z "$as_dir" && as_dir=. | |
23249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
23251 | ac_cv_prog_ac_ct_GCJ="$ac_prog" | |
23252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23253 | break 2 | |
23254 | fi | |
23255 | done | |
23256 | done | |
23257 | IFS=$as_save_IFS | |
23258 | ||
23259 | fi | |
23260 | fi | |
23261 | ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ | |
23262 | if test -n "$ac_ct_GCJ"; then | |
23263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5 | |
23264 | $as_echo "$ac_ct_GCJ" >&6; } | |
23265 | else | |
23266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23267 | $as_echo "no" >&6; } | |
23268 | fi | |
23269 | ||
23270 | ||
23271 | test -n "$ac_ct_GCJ" && break | |
1cf3d07d | 23272 | done |
4d9e8446 RW |
23273 | |
23274 | if test "x$ac_ct_GCJ" = x; then | |
23275 | GCJ="gcj" | |
23276 | else | |
23277 | case $cross_compiling:$ac_tool_warned in | |
23278 | yes:) | |
23279 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
23280 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
23281 | ac_tool_warned=yes ;; | |
23282 | esac | |
23283 | GCJ=$ac_ct_GCJ | |
23284 | fi | |
23285 | fi | |
1cf3d07d | 23286 | |
5213506e | 23287 | test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5 |
1cf3d07d SE |
23288 | if test "x${GCJFLAGS-unset}" = xunset; then |
23289 | GCJFLAGS="-g -O2" | |
23290 | fi | |
23291 | ||
23292 | ||
23293 | depcc="$GCJ" am_compiler_list='gcc3 gcc' | |
23294 | ||
5213506e RW |
23295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
23296 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
23297 | if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then : | |
23298 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
23299 | else |
23300 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
23301 | # We make a subdir and do the tests there. Otherwise we can end up | |
23302 | # making bogus files that we don't know about and never remove. For | |
23303 | # instance it was reported that on HP-UX the gcc test will end up | |
23304 | # making a dummy file named `D' -- because `-MD' means `put the output | |
23305 | # in D'. | |
23306 | mkdir conftest.dir | |
23307 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
23308 | # using a relative directory. | |
23309 | cp "$am_depcomp" conftest.dir | |
23310 | cd conftest.dir | |
23311 | # We will build objects and dependencies in a subdirectory because | |
23312 | # it helps to detect inapplicable dependency modes. For instance | |
23313 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
23314 | # side effect of compilation, but ICC will put the dependencies in | |
23315 | # the current directory while Tru64 will put them in the object | |
23316 | # directory. | |
23317 | mkdir sub | |
23318 | ||
23319 | am_cv_GCJ_dependencies_compiler_type=none | |
23320 | if test "$am_compiler_list" = ""; then | |
23321 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
23322 | fi | |
5213506e RW |
23323 | am__universal=false |
23324 | ||
23325 | ||
1cf3d07d SE |
23326 | for depmode in $am_compiler_list; do |
23327 | # Setup a source with many dependencies, because some compilers | |
23328 | # like to wrap large dependency lists on column 80 (with \), and | |
23329 | # we should not choose a depcomp mode which is confused by this. | |
23330 | # | |
23331 | # We need to recreate these files for each test, as the compiler may | |
23332 | # overwrite some of them when testing with obscure command lines. | |
23333 | # This happens at least with the AIX C compiler. | |
23334 | : > sub/conftest.c | |
23335 | for i in 1 2 3 4 5 6; do | |
23336 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
23337 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
23338 | # Solaris 8's {/usr,}/bin/sh. | |
23339 | touch sub/conftst$i.h | |
23340 | done | |
23341 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
23342 | ||
5213506e RW |
23343 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
23344 | # mode. It turns out that the SunPro C++ compiler does not properly | |
23345 | # handle `-M -o', and we need to detect this. Also, some Intel | |
23346 | # versions had trouble with output in subdirs | |
23347 | am__obj=sub/conftest.${OBJEXT-o} | |
23348 | am__minus_obj="-o $am__obj" | |
1cf3d07d | 23349 | case $depmode in |
5213506e RW |
23350 | gcc) |
23351 | # This depmode causes a compiler race in universal mode. | |
23352 | test "$am__universal" = false || continue | |
23353 | ;; | |
1cf3d07d SE |
23354 | nosideeffect) |
23355 | # after this tag, mechanisms are not by side-effect, so they'll | |
23356 | # only be used when explicitly requested | |
23357 | if test "x$enable_dependency_tracking" = xyes; then | |
23358 | continue | |
23359 | else | |
23360 | break | |
23361 | fi | |
23362 | ;; | |
5213506e RW |
23363 | msvisualcpp | msvcmsys) |
23364 | # This compiler won't grok `-c -o', but also, the minuso test has | |
23365 | # not run yet. These depmodes are late enough in the game, and | |
23366 | # so weak that their functioning should not be impacted. | |
23367 | am__obj=conftest.${OBJEXT-o} | |
23368 | am__minus_obj= | |
23369 | ;; | |
1cf3d07d SE |
23370 | none) break ;; |
23371 | esac | |
1cf3d07d | 23372 | if depmode=$depmode \ |
5213506e | 23373 | source=sub/conftest.c object=$am__obj \ |
1cf3d07d | 23374 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5213506e | 23375 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
1cf3d07d | 23376 | >/dev/null 2>conftest.err && |
5213506e | 23377 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
1cf3d07d | 23378 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5213506e | 23379 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
1cf3d07d SE |
23380 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
23381 | # icc doesn't choke on unknown options, it will just issue warnings | |
23382 | # or remarks (even with -Werror). So we grep stderr for any message | |
23383 | # that says an option was ignored or not supported. | |
23384 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
23385 | # icc: Command line warning: ignoring option '-M'; no argument required | |
23386 | # The diagnosis changed in icc 8.0: | |
23387 | # icc: Command line remark: option '-MP' not supported | |
23388 | if (grep 'ignoring option' conftest.err || | |
23389 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
23390 | am_cv_GCJ_dependencies_compiler_type=$depmode | |
23391 | break | |
23392 | fi | |
23393 | fi | |
23394 | done | |
23395 | ||
23396 | cd .. | |
23397 | rm -rf conftest.dir | |
23398 | else | |
23399 | am_cv_GCJ_dependencies_compiler_type=none | |
23400 | fi | |
23401 | ||
23402 | fi | |
5213506e RW |
23403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5 |
23404 | $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; } | |
1cf3d07d SE |
23405 | GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type |
23406 | ||
5213506e | 23407 | if |
1cf3d07d SE |
23408 | test "x$enable_dependency_tracking" != xno \ |
23409 | && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then | |
23410 | am__fastdepGCJ_TRUE= | |
23411 | am__fastdepGCJ_FALSE='#' | |
23412 | else | |
5213506e RW |
23413 | am__fastdepGCJ_TRUE='#' |
23414 | am__fastdepGCJ_FALSE= | |
1cf3d07d | 23415 | fi |
1cf3d07d | 23416 | |
1cf3d07d | 23417 | |
5213506e RW |
23418 | |
23419 | ||
23420 | # Now remove it. | |
23421 | rm -f gnu/classpath/Configuration.java | |
23422 | ||
23423 | CPPFLAGS=$GCJ_SAVE_CPPFLAGS | |
23424 | ||
23425 | # The cast to long int works around a bug in the HP C Compiler | |
23426 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
23427 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
23428 | # This bug is HP SR number 8606223364. | |
23429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
23430 | $as_echo_n "checking size of void *... " >&6; } | |
23431 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
23432 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 23433 | else |
5213506e | 23434 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
1cf3d07d | 23435 | |
1cf3d07d | 23436 | else |
5213506e RW |
23437 | if test "$ac_cv_type_void_p" = yes; then |
23438 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
23439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
23440 | { as_fn_set_status 77 | |
23441 | as_fn_error "cannot compute sizeof (void *) | |
23442 | See \`config.log' for more details." "$LINENO" 5; }; } | |
23443 | else | |
23444 | ac_cv_sizeof_void_p=0 | |
23445 | fi | |
1cf3d07d | 23446 | fi |
5213506e | 23447 | |
1cf3d07d | 23448 | fi |
5213506e RW |
23449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
23450 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
23451 | ||
23452 | ||
23453 | ||
1cf3d07d SE |
23454 | cat >>confdefs.h <<_ACEOF |
23455 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
23456 | _ACEOF | |
23457 | ||
23458 | ||
23459 | ||
5213506e RW |
23460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
23461 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
23462 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
23463 | $as_echo_n "(cached) " >&6 | |
1cf3d07d | 23464 | else |
5213506e RW |
23465 | ac_cv_c_bigendian=unknown |
23466 | # See if we're dealing with a universal compiler. | |
23467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23468 | /* end confdefs.h. */ | |
23469 | #ifndef __APPLE_CC__ | |
23470 | not a universal capable compiler | |
23471 | #endif | |
23472 | typedef int dummy; | |
23473 | ||
23474 | _ACEOF | |
23475 | if ac_fn_c_try_compile "$LINENO"; then : | |
23476 | ||
23477 | # Check for potential -arch flags. It is not universal unless | |
23478 | # there are at least two -arch flags with different values. | |
23479 | ac_arch= | |
23480 | ac_prev= | |
23481 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
23482 | if test -n "$ac_prev"; then | |
23483 | case $ac_word in | |
23484 | i?86 | x86_64 | ppc | ppc64) | |
23485 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
23486 | ac_arch=$ac_word | |
23487 | else | |
23488 | ac_cv_c_bigendian=universal | |
23489 | break | |
23490 | fi | |
23491 | ;; | |
23492 | esac | |
23493 | ac_prev= | |
23494 | elif test "x$ac_word" = "x-arch"; then | |
23495 | ac_prev=arch | |
23496 | fi | |
23497 | done | |
23498 | fi | |
23499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23500 | if test $ac_cv_c_bigendian = unknown; then | |
23501 | # See if sys/param.h defines the BYTE_ORDER macro. | |
23502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
23503 | /* end confdefs.h. */ |
23504 | #include <sys/types.h> | |
5213506e | 23505 | #include <sys/param.h> |
1cf3d07d SE |
23506 | |
23507 | int | |
23508 | main () | |
23509 | { | |
5213506e RW |
23510 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
23511 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
23512 | && LITTLE_ENDIAN) | |
23513 | bogus endian macros | |
23514 | #endif | |
1cf3d07d SE |
23515 | |
23516 | ; | |
23517 | return 0; | |
23518 | } | |
23519 | _ACEOF | |
5213506e | 23520 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 23521 | # It does; now see whether it defined to BIG_ENDIAN or not. |
5213506e | 23522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
23523 | /* end confdefs.h. */ |
23524 | #include <sys/types.h> | |
5213506e | 23525 | #include <sys/param.h> |
1cf3d07d SE |
23526 | |
23527 | int | |
23528 | main () | |
23529 | { | |
23530 | #if BYTE_ORDER != BIG_ENDIAN | |
5213506e RW |
23531 | not big endian |
23532 | #endif | |
1cf3d07d SE |
23533 | |
23534 | ; | |
23535 | return 0; | |
23536 | } | |
23537 | _ACEOF | |
5213506e | 23538 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d SE |
23539 | ac_cv_c_bigendian=yes |
23540 | else | |
5213506e | 23541 | ac_cv_c_bigendian=no |
1cf3d07d | 23542 | fi |
5213506e RW |
23543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23544 | fi | |
23545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23546 | fi | |
23547 | if test $ac_cv_c_bigendian = unknown; then | |
23548 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
23549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23550 | /* end confdefs.h. */ | |
23551 | #include <limits.h> | |
1cf3d07d | 23552 | |
5213506e RW |
23553 | int |
23554 | main () | |
23555 | { | |
23556 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
23557 | bogus endian macros | |
23558 | #endif | |
23559 | ||
23560 | ; | |
23561 | return 0; | |
23562 | } | |
1cf3d07d | 23563 | _ACEOF |
5213506e RW |
23564 | if ac_fn_c_try_compile "$LINENO"; then : |
23565 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
23566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d | 23567 | /* end confdefs.h. */ |
5213506e RW |
23568 | #include <limits.h> |
23569 | ||
1cf3d07d SE |
23570 | int |
23571 | main () | |
23572 | { | |
5213506e RW |
23573 | #ifndef _BIG_ENDIAN |
23574 | not big endian | |
23575 | #endif | |
23576 | ||
1cf3d07d SE |
23577 | ; |
23578 | return 0; | |
23579 | } | |
23580 | _ACEOF | |
5213506e | 23581 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 23582 | ac_cv_c_bigendian=yes |
5213506e RW |
23583 | else |
23584 | ac_cv_c_bigendian=no | |
1cf3d07d | 23585 | fi |
5213506e | 23586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 23587 | fi |
5213506e RW |
23588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23589 | fi | |
23590 | if test $ac_cv_c_bigendian = unknown; then | |
23591 | # Compile a test program. | |
23592 | if test "$cross_compiling" = yes; then : | |
23593 | # Try to guess by grepping values from an object file. | |
23594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23595 | /* end confdefs.h. */ | |
23596 | short int ascii_mm[] = | |
23597 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
23598 | short int ascii_ii[] = | |
23599 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
23600 | int use_ascii (int i) { | |
23601 | return ascii_mm[i] + ascii_ii[i]; | |
23602 | } | |
23603 | short int ebcdic_ii[] = | |
23604 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
23605 | short int ebcdic_mm[] = | |
23606 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
23607 | int use_ebcdic (int i) { | |
23608 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
23609 | } | |
23610 | extern int foo; | |
1cf3d07d | 23611 | |
5213506e RW |
23612 | int |
23613 | main () | |
23614 | { | |
23615 | return use_ascii (foo) == use_ebcdic (foo); | |
23616 | ; | |
23617 | return 0; | |
23618 | } | |
23619 | _ACEOF | |
23620 | if ac_fn_c_try_compile "$LINENO"; then : | |
23621 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
23622 | ac_cv_c_bigendian=yes | |
23623 | fi | |
23624 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
23625 | if test "$ac_cv_c_bigendian" = unknown; then | |
23626 | ac_cv_c_bigendian=no | |
23627 | else | |
23628 | # finding both strings is unlikely to happen, but who knows? | |
23629 | ac_cv_c_bigendian=unknown | |
23630 | fi | |
23631 | fi | |
1cf3d07d | 23632 | fi |
5213506e | 23633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 23634 | else |
5213506e | 23635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d | 23636 | /* end confdefs.h. */ |
5213506e | 23637 | $ac_includes_default |
1cf3d07d SE |
23638 | int |
23639 | main () | |
23640 | { | |
5213506e RW |
23641 | |
23642 | /* Are we little or big endian? From Harbison&Steele. */ | |
23643 | union | |
23644 | { | |
23645 | long int l; | |
23646 | char c[sizeof (long int)]; | |
23647 | } u; | |
23648 | u.l = 1; | |
23649 | return u.c[sizeof (long int) - 1] == 1; | |
23650 | ||
23651 | ; | |
23652 | return 0; | |
1cf3d07d SE |
23653 | } |
23654 | _ACEOF | |
5213506e | 23655 | if ac_fn_c_try_run "$LINENO"; then : |
1cf3d07d SE |
23656 | ac_cv_c_bigendian=no |
23657 | else | |
5213506e | 23658 | ac_cv_c_bigendian=yes |
1cf3d07d | 23659 | fi |
5213506e RW |
23660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
23661 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1cf3d07d | 23662 | fi |
5213506e RW |
23663 | |
23664 | fi | |
1cf3d07d | 23665 | fi |
5213506e RW |
23666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
23667 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
23668 | case $ac_cv_c_bigendian in #( | |
23669 | yes) | |
23670 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
23671 | ;; #( | |
23672 | no) | |
23673 | ;; #( | |
23674 | universal) | |
1cf3d07d | 23675 | |
5213506e RW |
23676 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
23677 | ||
23678 | ;; #( | |
23679 | *) | |
23680 | as_fn_error "unknown endianness | |
23681 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
23682 | esac | |
1cf3d07d SE |
23683 | |
23684 | ||
23685 | ZLIBS= | |
23686 | SYS_ZLIBS= | |
23687 | ZINCS= | |
23688 | ||
23689 | if test -z "$ZLIBSPEC"; then | |
23690 | # Use zlib from the GCC tree. | |
23691 | ZINCS='-I$(top_srcdir)/../zlib' | |
23692 | ZLIBS=../zlib/libzgcj_convenience.la | |
23693 | else | |
23694 | # System's zlib. | |
23695 | SYS_ZLIBS="$ZLIBSPEC" | |
23696 | fi | |
23697 | ||
23698 | ||
23699 | ||
23700 | ||
23701 | ||
23702 | ||
23703 | ||
23704 | ||
23705 | ||
23706 | ||
5213506e | 23707 | if test "$NATIVE" = yes; then |
1cf3d07d SE |
23708 | NATIVE_TRUE= |
23709 | NATIVE_FALSE='#' | |
23710 | else | |
23711 | NATIVE_TRUE='#' | |
23712 | NATIVE_FALSE= | |
23713 | fi | |
23714 | ||
5213506e | 23715 | if test "$enable_shared" = yes; then |
1cf3d07d SE |
23716 | ENABLE_SHARED_TRUE= |
23717 | ENABLE_SHARED_FALSE='#' | |
23718 | else | |
23719 | ENABLE_SHARED_TRUE='#' | |
23720 | ENABLE_SHARED_FALSE= | |
23721 | fi | |
23722 | ||
5213506e | 23723 | if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then |
1cf3d07d SE |
23724 | NEEDS_DATA_START_TRUE= |
23725 | NEEDS_DATA_START_FALSE='#' | |
23726 | else | |
23727 | NEEDS_DATA_START_TRUE='#' | |
23728 | NEEDS_DATA_START_FALSE= | |
23729 | fi | |
23730 | ||
5213506e | 23731 | if test -z "${with_multisubdir}"; then |
4bf95cef JJ |
23732 | INSTALL_BINARIES_TRUE= |
23733 | INSTALL_BINARIES_FALSE='#' | |
23734 | else | |
23735 | INSTALL_BINARIES_TRUE='#' | |
23736 | INSTALL_BINARIES_FALSE= | |
23737 | fi | |
23738 | ||
23739 | ||
23740 | ||
1cf3d07d SE |
23741 | # Process the option "--enable-version-specific-runtime-libs" |
23742 | # Calculate toolexeclibdir | |
23743 | case ${version_specific_libs} in | |
23744 | yes) | |
23745 | # Need the gcc compiler version to know where to install libraries | |
23746 | # and header files if --enable-version-specific-runtime-libs option | |
23747 | # is selected. | |
23748 | includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/' | |
23749 | toolexecdir='$(libdir)/gcc/$(target_noncanonical)' | |
23750 | toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
23751 | toolexeclibdir=$toolexecmainlibdir | |
23752 | ;; | |
23753 | no) | |
23754 | if test -n "$with_cross_host" && | |
23755 | test x"$with_cross_host" != x"no"; then | |
23756 | # Install a library built with a cross compiler in tooldir, not libdir. | |
23757 | toolexecdir='$(exec_prefix)/$(target_noncanonical)' | |
23758 | toolexecmainlibdir='$(toolexecdir)/lib' | |
23759 | else | |
23760 | toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' | |
23761 | toolexecmainlibdir='$(libdir)' | |
23762 | fi | |
23763 | multi_os_directory=`$CC -print-multi-os-directory` | |
23764 | case $multi_os_directory in | |
23765 | .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /. | |
23766 | *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;; | |
23767 | esac | |
23768 | ;; | |
23769 | esac | |
23770 | ||
23771 | ||
23772 | ||
23773 | ||
ed339fbc | 23774 | # Determine gcj and libgcj version number. |
acd29efb | 23775 | gcjversion=`cat "$srcdir/../gcc/BASE-VER"` |
ed339fbc MK |
23776 | libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version` |
23777 | GCJVERSION=$gcjversion | |
23778 | ||
23779 | ||
23780 | cat >>confdefs.h <<_ACEOF | |
23781 | #define GCJVERSION "$GCJVERSION" | |
23782 | _ACEOF | |
23783 | ||
23784 | ||
1cf3d07d SE |
23785 | # Determine where the standard .db file and GNU Classpath JNI |
23786 | # libraries are found. | |
50e47dba | 23787 | gcjsubdir=gcj-$gcjversion-$libgcj_soversion |
1cf3d07d SE |
23788 | multi_os_directory=`$CC -print-multi-os-directory` |
23789 | case $multi_os_directory in | |
23790 | .) | |
50e47dba | 23791 | dbexecdir='$(libdir)/'$gcjsubdir # Avoid /. |
1cf3d07d SE |
23792 | ;; |
23793 | *) | |
50e47dba | 23794 | dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir |
1cf3d07d SE |
23795 | ;; |
23796 | esac | |
23797 | ||
1cf3d07d SE |
23798 | |
23799 | ||
c9db365d | 23800 | |
5213506e | 23801 | $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h |
1cf3d07d SE |
23802 | |
23803 | ||
5213506e | 23804 | $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h |
1cf3d07d SE |
23805 | |
23806 | ||
23807 | ||
23808 | case "${with_gxx_include_dir}" in | |
23809 | yes) | |
5213506e | 23810 | as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5 |
1cf3d07d SE |
23811 | ;; |
23812 | no | "") | |
23813 | case "${enable_version_specific_runtime_libs}" in | |
23814 | yes) gxx_include_dir='$(libsubdir)/include/c++' ;; | |
23815 | *) | |
23816 | libstdcxx_incdir='c++/$(gcc_version)' | |
23817 | gxx_include_dir='include/$(libstdcxx_incdir)' | |
23818 | if test -n "$with_cross_host" && | |
23819 | test x"$with_cross_host" != x"no"; then | |
23820 | gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir" | |
23821 | else | |
23822 | gxx_include_dir='${prefix}/'"$gxx_include_dir" | |
23823 | fi;; | |
23824 | esac ;; | |
23825 | *) gxx_include_dir=${with_gxx_include_dir} ;; | |
23826 | esac | |
23827 | ||
23828 | ||
5213506e RW |
23829 | |
23830 | ||
23831 | # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there. | |
23832 | # On that system, sys/ioctl.h will not include sys/filio.h unless | |
23833 | # BSD_COMP is defined; just including sys/filio.h is simpler. | |
23834 | # We avoid AC_HEADER_DIRENT since we really only care about dirent.h | |
23835 | # for now. If you change this, you also must update natFile.cc. | |
23836 | for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \ | |
23837 | sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \ | |
9e8b671c | 23838 | sys/socket.h netinet/in.h arpa/inet.h netdb.h \ |
5213506e RW |
23839 | pwd.h sys/config.h stdint.h langinfo.h locale.h \ |
23840 | dirent.h sys/rw_lock.h magic.h ifaddrs.h | |
23841 | do : | |
23842 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23843 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
23844 | eval as_val=\$$as_ac_Header | |
23845 | if test "x$as_val" = x""yes; then : | |
23846 | cat >>confdefs.h <<_ACEOF | |
23847 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
1cf3d07d | 23848 | _ACEOF |
1cf3d07d | 23849 | |
1cf3d07d | 23850 | fi |
1cf3d07d | 23851 | |
5213506e | 23852 | done |
1cf3d07d | 23853 | |
9e8b671c EB |
23854 | |
23855 | # sys/socket.h is a prerequisite for net/if.h on Solaris. | |
23856 | for ac_header in net/if.h | |
23857 | do : | |
23858 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " | |
23859 | #ifdef HAVE_SYS_SOCKET_H | |
23860 | #include <sys/socket.h> | |
23861 | #endif | |
23862 | ||
23863 | " | |
23864 | if test "x$ac_cv_header_net_if_h" = x""yes; then : | |
23865 | cat >>confdefs.h <<_ACEOF | |
23866 | #define HAVE_NET_IF_H 1 | |
23867 | _ACEOF | |
23868 | ||
23869 | fi | |
23870 | ||
23871 | done | |
23872 | ||
23873 | ||
5213506e RW |
23874 | for ac_header in inttypes.h |
23875 | do : | |
23876 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
23877 | if test "x$ac_cv_header_inttypes_h" = x""yes; then : | |
1cf3d07d | 23878 | cat >>confdefs.h <<_ACEOF |
5213506e | 23879 | #define HAVE_INTTYPES_H 1 |
1cf3d07d SE |
23880 | _ACEOF |
23881 | ||
23882 | ||
5213506e | 23883 | $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h |
1cf3d07d SE |
23884 | |
23885 | ||
5213506e | 23886 | $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h |
1cf3d07d SE |
23887 | |
23888 | ||
23889 | fi | |
23890 | ||
23891 | done | |
23892 | ||
23893 | ||
5213506e RW |
23894 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
23895 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
1cf3d07d | 23896 | |
1cf3d07d SE |
23897 | else |
23898 | ||
23899 | cat >>confdefs.h <<_ACEOF | |
23900 | #define ssize_t int | |
23901 | _ACEOF | |
23902 | ||
23903 | fi | |
23904 | ||
5213506e | 23905 | ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" " |
1cf3d07d SE |
23906 | #ifdef HAVE_MAGIC_H |
23907 | #include <magic.h> | |
23908 | #endif | |
5213506e RW |
23909 | " |
23910 | if test "x$ac_cv_type_magic_t" = x""yes; then : | |
1cf3d07d | 23911 | |
1cf3d07d | 23912 | |
5213506e | 23913 | $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h |
1cf3d07d SE |
23914 | |
23915 | fi | |
23916 | ||
23917 | ||
5213506e RW |
23918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5 |
23919 | $as_echo_n "checking for in_addr_t... " >&6; } | |
23920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
23921 | /* end confdefs.h. */ |
23922 | #include <sys/types.h> | |
23923 | #if STDC_HEADERS | |
23924 | #include <stdlib.h> | |
23925 | #include <stddef.h> | |
23926 | #endif | |
23927 | #if HAVE_NETINET_IN_H | |
23928 | #include <netinet/in.h> | |
23929 | #endif | |
23930 | int | |
23931 | main () | |
23932 | { | |
23933 | in_addr_t foo; | |
23934 | ; | |
23935 | return 0; | |
23936 | } | |
23937 | _ACEOF | |
5213506e | 23938 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 23939 | |
5213506e | 23940 | $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h |
1cf3d07d | 23941 | |
5213506e RW |
23942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
23943 | $as_echo "yes" >&6; } | |
1cf3d07d | 23944 | else |
5213506e RW |
23945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23946 | $as_echo "no" >&6; } | |
1cf3d07d | 23947 | fi |
5213506e | 23948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 23949 | |
5213506e RW |
23950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5 |
23951 | $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; } | |
23952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
23953 | /* end confdefs.h. */ |
23954 | #include <netinet/in.h> | |
23955 | int | |
23956 | main () | |
23957 | { | |
23958 | struct ip_mreq mreq; | |
23959 | ; | |
23960 | return 0; | |
23961 | } | |
23962 | _ACEOF | |
5213506e | 23963 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 23964 | |
5213506e | 23965 | $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h |
1cf3d07d | 23966 | |
5213506e RW |
23967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
23968 | $as_echo "yes" >&6; } | |
1cf3d07d | 23969 | else |
5213506e RW |
23970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23971 | $as_echo "no" >&6; } | |
1cf3d07d | 23972 | fi |
5213506e | 23973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 23974 | |
5213506e RW |
23975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5 |
23976 | $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; } | |
23977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
23978 | /* end confdefs.h. */ |
23979 | #include <netinet/in.h> | |
23980 | int | |
23981 | main () | |
23982 | { | |
23983 | struct ipv6_mreq mreq6; | |
23984 | ; | |
23985 | return 0; | |
23986 | } | |
23987 | _ACEOF | |
5213506e | 23988 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 23989 | |
5213506e | 23990 | $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h |
1cf3d07d | 23991 | |
5213506e RW |
23992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
23993 | $as_echo "yes" >&6; } | |
1cf3d07d | 23994 | else |
5213506e RW |
23995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23996 | $as_echo "no" >&6; } | |
1cf3d07d | 23997 | fi |
5213506e | 23998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 23999 | |
5213506e RW |
24000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5 |
24001 | $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; } | |
24002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
24003 | /* end confdefs.h. */ |
24004 | #include <netinet/in.h> | |
24005 | int | |
24006 | main () | |
24007 | { | |
24008 | struct sockaddr_in6 addr6; | |
24009 | ; | |
24010 | return 0; | |
24011 | } | |
24012 | _ACEOF | |
5213506e | 24013 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 24014 | |
5213506e | 24015 | $as_echo "#define HAVE_INET6 1" >>confdefs.h |
1cf3d07d | 24016 | |
5213506e RW |
24017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24018 | $as_echo "yes" >&6; } | |
1cf3d07d | 24019 | else |
5213506e RW |
24020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24021 | $as_echo "no" >&6; } | |
1cf3d07d | 24022 | fi |
5213506e | 24023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 24024 | |
5213506e RW |
24025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5 |
24026 | $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; } | |
24027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
24028 | /* end confdefs.h. */ |
24029 | #define _POSIX_PII_SOCKET | |
24030 | #include <sys/types.h> | |
24031 | #include <sys/socket.h> | |
24032 | int | |
24033 | main () | |
24034 | { | |
24035 | socklen_t x = 5; | |
24036 | ; | |
24037 | return 0; | |
24038 | } | |
24039 | _ACEOF | |
5213506e | 24040 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 24041 | |
5213506e | 24042 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
1cf3d07d | 24043 | |
5213506e RW |
24044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24045 | $as_echo "yes" >&6; } | |
1cf3d07d | 24046 | else |
5213506e RW |
24047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24048 | $as_echo "no" >&6; } | |
1cf3d07d | 24049 | fi |
5213506e | 24050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 24051 | |
5213506e RW |
24052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 |
24053 | $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } | |
24054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
24055 | /* end confdefs.h. */ |
24056 | #include <time.h> | |
24057 | int | |
24058 | main () | |
24059 | { | |
24060 | struct tm tim; tim.tm_gmtoff = 0; | |
24061 | ; | |
24062 | return 0; | |
24063 | } | |
24064 | _ACEOF | |
5213506e | 24065 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 24066 | |
5213506e | 24067 | $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h |
1cf3d07d | 24068 | |
5213506e RW |
24069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24070 | $as_echo "yes" >&6; } | |
1cf3d07d | 24071 | else |
5213506e RW |
24072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24073 | $as_echo "no" >&6; } | |
24074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5 | |
24075 | $as_echo_n "checking for global timezone variable... " >&6; } | |
24076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
24077 | /* end confdefs.h. */ |
24078 | #include <time.h> | |
24079 | int | |
24080 | main () | |
24081 | { | |
24082 | void i(){long z2 = 2*timezone;} | |
24083 | ; | |
24084 | return 0; | |
24085 | } | |
24086 | _ACEOF | |
5213506e | 24087 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 24088 | |
5213506e | 24089 | $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h |
1cf3d07d | 24090 | |
5213506e RW |
24091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24092 | $as_echo "yes" >&6; } | |
1cf3d07d | 24093 | else |
5213506e RW |
24094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24095 | $as_echo "no" >&6; } | |
24096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5 | |
24097 | $as_echo_n "checking for global _timezone variable... " >&6; } | |
24098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
24099 | /* end confdefs.h. */ |
24100 | #include <time.h> | |
24101 | int | |
24102 | main () | |
24103 | { | |
24104 | long z2 = _timezone; | |
24105 | ; | |
24106 | return 0; | |
24107 | } | |
24108 | _ACEOF | |
5213506e | 24109 | if ac_fn_c_try_compile "$LINENO"; then : |
1cf3d07d | 24110 | |
5213506e | 24111 | $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h |
1cf3d07d | 24112 | |
5213506e RW |
24113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24114 | $as_echo "yes" >&6; } | |
1cf3d07d | 24115 | else |
5213506e RW |
24116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24117 | $as_echo "no" >&6; } | |
1cf3d07d | 24118 | fi |
5213506e | 24119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 24120 | fi |
5213506e | 24121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d | 24122 | fi |
5213506e | 24123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1cf3d07d SE |
24124 | |
24125 | for ac_prog in perl | |
24126 | do | |
24127 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
24128 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
24129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
24130 | $as_echo_n "checking for $ac_word... " >&6; } | |
24131 | if test "${ac_cv_prog_PERL+set}" = set; then : | |
24132 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
24133 | else |
24134 | if test -n "$PERL"; then | |
24135 | ac_cv_prog_PERL="$PERL" # Let the user override the test. | |
24136 | else | |
24137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24138 | for as_dir in $PATH | |
24139 | do | |
24140 | IFS=$as_save_IFS | |
24141 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
24142 | for ac_exec_ext in '' $ac_executable_extensions; do |
24143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1cf3d07d | 24144 | ac_cv_prog_PERL="$ac_prog" |
5213506e | 24145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1cf3d07d SE |
24146 | break 2 |
24147 | fi | |
24148 | done | |
5213506e RW |
24149 | done |
24150 | IFS=$as_save_IFS | |
1cf3d07d SE |
24151 | |
24152 | fi | |
24153 | fi | |
24154 | PERL=$ac_cv_prog_PERL | |
24155 | if test -n "$PERL"; then | |
5213506e RW |
24156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
24157 | $as_echo "$PERL" >&6; } | |
1cf3d07d | 24158 | else |
5213506e RW |
24159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24160 | $as_echo "no" >&6; } | |
1cf3d07d SE |
24161 | fi |
24162 | ||
5213506e | 24163 | |
1cf3d07d SE |
24164 | test -n "$PERL" && break |
24165 | done | |
24166 | test -n "$PERL" || PERL="false" | |
24167 | ||
24168 | ||
24169 | SYSDEP_SOURCES= | |
24170 | SIGNAL_HANDLER_AUX= | |
24171 | ||
24172 | case "${host}" in | |
24173 | i?86-*-linux*) | |
24174 | SIGNAL_HANDLER=include/i386-signal.h | |
24175 | ;; | |
f644b3d1 RO |
24176 | *-*-solaris2*) |
24177 | SIGNAL_HANDLER=include/solaris-signal.h | |
1cf3d07d SE |
24178 | ;; |
24179 | # ia64-*) | |
24180 | # SYSDEP_SOURCES=sysdep/ia64.c | |
24181 | # test -d sysdep || mkdir sysdep | |
24182 | # ;; | |
24183 | hppa*-*-linux*) | |
24184 | SIGNAL_HANDLER=include/pa-signal.h | |
24185 | ;; | |
24186 | hppa*-hp-hpux*) | |
24187 | SIGNAL_HANDLER=include/hppa-signal.h | |
24188 | ;; | |
24189 | ia64-*-linux*) | |
24190 | SIGNAL_HANDLER=include/dwarf2-signal.h | |
24191 | ;; | |
24192 | powerpc*-*-linux*) | |
24193 | SIGNAL_HANDLER=include/powerpc-signal.h | |
24194 | ;; | |
24195 | alpha*-*-linux*) | |
24196 | SIGNAL_HANDLER=include/dwarf2-signal.h | |
24197 | ;; | |
24198 | s390*-*-linux*) | |
24199 | SIGNAL_HANDLER=include/s390-signal.h | |
24200 | ;; | |
24201 | x86_64*-*-linux*) | |
24202 | SIGNAL_HANDLER=include/x86_64-signal.h | |
24203 | SIGNAL_HANDLER_AUX=include/i386-signal.h | |
24204 | ;; | |
24205 | sparc*-*-linux*) | |
24206 | SIGNAL_HANDLER=include/dwarf2-signal.h | |
24207 | ;; | |
24208 | sh*-*-linux*) | |
24209 | SIGNAL_HANDLER=include/sh-signal.h | |
24210 | ;; | |
24211 | *mingw*) | |
24212 | SIGNAL_HANDLER=include/win32-signal.h | |
24213 | ;; | |
24214 | mips*-*-linux*) | |
24215 | SIGNAL_HANDLER=include/mips-signal.h | |
24216 | ;; | |
dbc293c8 RZ |
24217 | m68*-*-linux*) |
24218 | SIGNAL_HANDLER=include/dwarf2-signal.h | |
24219 | ;; | |
dc4e3423 | 24220 | powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*) |
1cf3d07d SE |
24221 | SIGNAL_HANDLER=include/darwin-signal.h |
24222 | ;; | |
887e6178 DE |
24223 | powerpc*-*-aix*) |
24224 | SIGNAL_HANDLER=include/aix-signal.h | |
24225 | ;; | |
1cf3d07d SE |
24226 | *) |
24227 | SIGNAL_HANDLER=include/default-signal.h | |
24228 | ;; | |
24229 | esac | |
24230 | ||
24231 | # If we're using sjlj exceptions, forget what we just learned. | |
24232 | if test "$enable_sjlj_exceptions" = yes; then | |
24233 | SIGNAL_HANDLER=include/default-signal.h | |
24234 | SIGNAL_HANDLER_AUX= | |
24235 | fi | |
24236 | ||
24237 | ||
24238 | ||
24239 | if test -z "$SIGNAL_HANDLER_AUX"; then | |
24240 | SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER | |
24241 | fi | |
24242 | ||
5213506e | 24243 | ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" |
1cf3d07d SE |
24244 | |
24245 | ||
24246 | if test "${multilib}" = "yes"; then | |
24247 | multilib_arg="--enable-multilib" | |
24248 | else | |
24249 | multilib_arg= | |
24250 | fi | |
24251 | ||
24252 | # See if we support thread-local storage. | |
24253 | ||
396b7fa4 | 24254 | |
5213506e RW |
24255 | # Check whether --enable-tls was given. |
24256 | if test "${enable_tls+set}" = set; then : | |
24257 | enableval=$enable_tls; | |
1cf3d07d SE |
24258 | case "$enableval" in |
24259 | yes|no) ;; | |
5213506e | 24260 | *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; |
1cf3d07d SE |
24261 | esac |
24262 | ||
24263 | else | |
24264 | enable_tls=yes | |
5213506e RW |
24265 | fi |
24266 | ||
1cf3d07d | 24267 | |
5213506e RW |
24268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 |
24269 | $as_echo_n "checking whether the target supports thread-local storage... " >&6; } | |
24270 | if test "${gcc_cv_have_tls+set}" = set; then : | |
24271 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
24272 | else |
24273 | ||
5213506e | 24274 | if test "$cross_compiling" = yes; then : |
1cf3d07d | 24275 | if test x$gcc_no_link = xyes; then |
5213506e | 24276 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 24277 | fi |
5213506e RW |
24278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24279 | /* end confdefs.h. */ | |
1cf3d07d SE |
24280 | __thread int a; int b; int main() { return a = b; } |
24281 | _ACEOF | |
5213506e | 24282 | if ac_fn_c_try_link "$LINENO"; then : |
396b7fa4 JM |
24283 | chktls_save_LDFLAGS="$LDFLAGS" |
24284 | case $host in | |
24285 | *-*-linux*) | |
24286 | LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" | |
24287 | ;; | |
24288 | esac | |
24289 | chktls_save_CFLAGS="$CFLAGS" | |
24290 | CFLAGS="-fPIC $CFLAGS" | |
24291 | if test x$gcc_no_link = xyes; then | |
5213506e | 24292 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
396b7fa4 | 24293 | fi |
5213506e RW |
24294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24295 | /* end confdefs.h. */ | |
396b7fa4 JM |
24296 | int f() { return 0; } |
24297 | _ACEOF | |
5213506e | 24298 | if ac_fn_c_try_link "$LINENO"; then : |
396b7fa4 | 24299 | if test x$gcc_no_link = xyes; then |
5213506e | 24300 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
396b7fa4 | 24301 | fi |
5213506e RW |
24302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24303 | /* end confdefs.h. */ | |
396b7fa4 JM |
24304 | __thread int a; int b; int f() { return a = b; } |
24305 | _ACEOF | |
5213506e | 24306 | if ac_fn_c_try_link "$LINENO"; then : |
3afcaaf4 | 24307 | gcc_cv_have_tls=yes |
1cf3d07d | 24308 | else |
5213506e | 24309 | gcc_cv_have_tls=no |
396b7fa4 | 24310 | fi |
5213506e RW |
24311 | rm -f core conftest.err conftest.$ac_objext \ |
24312 | conftest$ac_exeext conftest.$ac_ext | |
396b7fa4 | 24313 | else |
5213506e | 24314 | gcc_cv_have_tls=yes |
396b7fa4 | 24315 | fi |
5213506e RW |
24316 | rm -f core conftest.err conftest.$ac_objext \ |
24317 | conftest$ac_exeext conftest.$ac_ext | |
396b7fa4 JM |
24318 | CFLAGS="$chktls_save_CFLAGS" |
24319 | LDFLAGS="$chktls_save_LDFLAGS" | |
24320 | else | |
5213506e | 24321 | gcc_cv_have_tls=no |
1cf3d07d | 24322 | fi |
5213506e RW |
24323 | rm -f core conftest.err conftest.$ac_objext \ |
24324 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
24325 | |
24326 | ||
24327 | else | |
5213506e RW |
24328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24329 | /* end confdefs.h. */ | |
1cf3d07d SE |
24330 | __thread int a; int b; int main() { return a = b; } |
24331 | _ACEOF | |
5213506e | 24332 | if ac_fn_c_try_run "$LINENO"; then : |
1cf3d07d SE |
24333 | chktls_save_LDFLAGS="$LDFLAGS" |
24334 | LDFLAGS="-static $LDFLAGS" | |
24335 | if test x$gcc_no_link = xyes; then | |
5213506e | 24336 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 24337 | fi |
5213506e RW |
24338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
24339 | /* end confdefs.h. */ | |
1cf3d07d SE |
24340 | int main() { return 0; } |
24341 | _ACEOF | |
5213506e RW |
24342 | if ac_fn_c_try_link "$LINENO"; then : |
24343 | if test "$cross_compiling" = yes; then : | |
24344 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
24345 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
24346 | as_fn_error "cannot run test program while cross compiling | |
24347 | See \`config.log' for more details." "$LINENO" 5; } | |
24348 | else | |
24349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24350 | /* end confdefs.h. */ | |
1cf3d07d SE |
24351 | __thread int a; int b; int main() { return a = b; } |
24352 | _ACEOF | |
5213506e | 24353 | if ac_fn_c_try_run "$LINENO"; then : |
3afcaaf4 | 24354 | gcc_cv_have_tls=yes |
1cf3d07d | 24355 | else |
5213506e | 24356 | gcc_cv_have_tls=no |
1cf3d07d | 24357 | fi |
5213506e RW |
24358 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
24359 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1cf3d07d | 24360 | fi |
1cf3d07d | 24361 | |
5213506e RW |
24362 | else |
24363 | gcc_cv_have_tls=yes | |
1cf3d07d | 24364 | fi |
5213506e RW |
24365 | rm -f core conftest.err conftest.$ac_objext \ |
24366 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d | 24367 | LDFLAGS="$chktls_save_LDFLAGS" |
3afcaaf4 | 24368 | if test $gcc_cv_have_tls = yes; then |
1cf3d07d SE |
24369 | chktls_save_CFLAGS="$CFLAGS" |
24370 | thread_CFLAGS=failed | |
24371 | for flag in '' '-pthread' '-lpthread'; do | |
24372 | CFLAGS="$flag $chktls_save_CFLAGS" | |
24373 | if test x$gcc_no_link = xyes; then | |
5213506e | 24374 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 24375 | fi |
5213506e | 24376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
24377 | /* end confdefs.h. */ |
24378 | #include <pthread.h> | |
24379 | void *g(void *d) { return NULL; } | |
24380 | int | |
24381 | main () | |
24382 | { | |
24383 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
24384 | ; | |
24385 | return 0; | |
24386 | } | |
24387 | _ACEOF | |
5213506e | 24388 | if ac_fn_c_try_link "$LINENO"; then : |
1cf3d07d | 24389 | thread_CFLAGS="$flag" |
1cf3d07d | 24390 | fi |
5213506e RW |
24391 | rm -f core conftest.err conftest.$ac_objext \ |
24392 | conftest$ac_exeext conftest.$ac_ext | |
1cf3d07d SE |
24393 | if test "X$thread_CFLAGS" != Xfailed; then |
24394 | break | |
24395 | fi | |
24396 | done | |
24397 | CFLAGS="$chktls_save_CFLAGS" | |
24398 | if test "X$thread_CFLAGS" != Xfailed; then | |
24399 | CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" | |
22a4778a | 24400 | if test "$cross_compiling" = yes; then : |
5213506e RW |
24401 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
24402 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
24403 | as_fn_error "cannot run test program while cross compiling | |
24404 | See \`config.log' for more details." "$LINENO" 5; } | |
24405 | else | |
24406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1cf3d07d SE |
24407 | /* end confdefs.h. */ |
24408 | #include <pthread.h> | |
24409 | __thread int a; | |
dbd34b89 | 24410 | static int *volatile a_in_other_thread; |
1cf3d07d SE |
24411 | static void * |
24412 | thread_func (void *arg) | |
24413 | { | |
24414 | a_in_other_thread = &a; | |
24415 | return (void *)0; | |
24416 | } | |
24417 | int | |
24418 | main () | |
24419 | { | |
24420 | pthread_t thread; | |
24421 | void *thread_retval; | |
dbd34b89 IS |
24422 | int *volatile a_in_main_thread; |
24423 | a_in_main_thread = &a; | |
1cf3d07d SE |
24424 | if (pthread_create (&thread, (pthread_attr_t *)0, |
24425 | thread_func, (void *)0)) | |
24426 | return 0; | |
1cf3d07d SE |
24427 | if (pthread_join (thread, &thread_retval)) |
24428 | return 0; | |
24429 | return (a_in_other_thread == a_in_main_thread); | |
24430 | ; | |
24431 | return 0; | |
24432 | } | |
24433 | _ACEOF | |
5213506e | 24434 | if ac_fn_c_try_run "$LINENO"; then : |
3afcaaf4 | 24435 | gcc_cv_have_tls=yes |
1cf3d07d | 24436 | else |
5213506e | 24437 | gcc_cv_have_tls=no |
1cf3d07d | 24438 | fi |
5213506e RW |
24439 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
24440 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1cf3d07d | 24441 | fi |
5213506e | 24442 | |
1cf3d07d SE |
24443 | CFLAGS="$chktls_save_CFLAGS" |
24444 | fi | |
24445 | fi | |
24446 | else | |
5213506e | 24447 | gcc_cv_have_tls=no |
1cf3d07d | 24448 | fi |
5213506e RW |
24449 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
24450 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1cf3d07d | 24451 | fi |
5213506e | 24452 | |
1cf3d07d | 24453 | fi |
5213506e RW |
24454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 |
24455 | $as_echo "$gcc_cv_have_tls" >&6; } | |
3afcaaf4 | 24456 | if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then |
1cf3d07d | 24457 | |
5213506e | 24458 | $as_echo "#define HAVE_TLS 1" >>confdefs.h |
1cf3d07d SE |
24459 | |
24460 | fi | |
24461 | ||
24462 | # For _Unwind_GetIPInfo. | |
24463 | ||
24464 | ||
5213506e RW |
24465 | # Check whether --with-system-libunwind was given. |
24466 | if test "${with_system_libunwind+set}" = set; then : | |
24467 | withval=$with_system_libunwind; | |
24468 | fi | |
1cf3d07d | 24469 | |
bc3f0248 SE |
24470 | # If system-libunwind was not specifically set, pick a default setting. |
24471 | if test x$with_system_libunwind = x; then | |
24472 | case ${target} in | |
24473 | ia64-*-hpux*) with_system_libunwind=yes ;; | |
24474 | *) with_system_libunwind=no ;; | |
24475 | esac | |
24476 | fi | |
24477 | # Based on system-libunwind and target, do we have ipinfo? | |
24478 | if test x$with_system_libunwind = xyes; then | |
24479 | case ${target} in | |
24480 | ia64-*-*) have_unwind_getipinfo=no ;; | |
24481 | *) have_unwind_getipinfo=yes ;; | |
24482 | esac | |
24483 | else | |
a0e02041 AP |
24484 | # Darwin before version 9 does not have _Unwind_GetIPInfo. |
24485 | ||
24486 | case ${target} in | |
24487 | *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; | |
24488 | *) have_unwind_getipinfo=yes ;; | |
24489 | esac | |
24490 | ||
bc3f0248 | 24491 | fi |
1cf3d07d | 24492 | |
bc3f0248 | 24493 | if test x$have_unwind_getipinfo = xyes; then |
1cf3d07d | 24494 | |
5213506e | 24495 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h |
1cf3d07d SE |
24496 | |
24497 | fi | |
1cf3d07d SE |
24498 | |
24499 | ||
24500 | # See if linker supports anonymous version scripts. | |
5213506e RW |
24501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5 |
24502 | $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; } | |
24503 | if test "${libjava_cv_anon_version_script+set}" = set; then : | |
24504 | $as_echo_n "(cached) " >&6 | |
1cf3d07d SE |
24505 | else |
24506 | save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS" | |
24507 | libjava_cv_anon_version_script=no | |
22a4778a RO |
24508 | CFLAGS="$CFLAGS -fPIC"; |
24509 | LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map" | |
1cf3d07d SE |
24510 | echo '{ global: globalsymb*; local: *; };' > conftest.map |
24511 | if test x$gcc_no_link = xyes; then | |
5213506e | 24512 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 |
1cf3d07d | 24513 | fi |
5213506e | 24514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1cf3d07d SE |
24515 | /* end confdefs.h. */ |
24516 | void globalsymbol (void) {} void localsymbol (void) {} | |
24517 | int | |
24518 | main () | |
24519 | { | |
24520 | ||
24521 | ; | |
24522 | return 0; | |
24523 | } | |
24524 | _ACEOF | |
5213506e | 24525 | if ac_fn_c_try_link "$LINENO"; then : |
22a4778a | 24526 | libjava_cv_anon_version_script=gnu |
1cf3d07d | 24527 | fi |
5213506e RW |
24528 | rm -f core conftest.err conftest.$ac_objext \ |
24529 | conftest$ac_exeext conftest.$ac_ext | |
22a4778a RO |
24530 | if test x$libjava_cv_anon_version_script = xno; then |
24531 | case "$target_os" in | |
24532 | solaris2*) | |
24533 | LDFLAGS="$save_LDFLAGS" | |
24534 | LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map" | |
24535 | # Sun ld doesn't understand wildcards here. | |
24536 | echo '{ global: globalsymbol; local: *; };' > conftest.map | |
24537 | if test x$gcc_no_link = xyes; then | |
24538 | as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 | |
24539 | fi | |
24540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
24541 | /* end confdefs.h. */ | |
24542 | void globalsymbol (void) {} void localsymbol (void) {} | |
24543 | int | |
24544 | main () | |
24545 | { | |
24546 | ||
24547 | ; | |
24548 | return 0; | |
24549 | } | |
24550 | _ACEOF | |
24551 | if ac_fn_c_try_link "$LINENO"; then : | |
24552 | libjava_cv_anon_version_script=sun | |
24553 | fi | |
24554 | rm -f core conftest.err conftest.$ac_objext \ | |
24555 | conftest$ac_exeext conftest.$ac_ext | |
24556 | ;; | |
24557 | esac | |
24558 | fi | |
1cf3d07d SE |
24559 | CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS" |
24560 | ||
24561 | fi | |
5213506e RW |
24562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5 |
24563 | $as_echo "$libjava_cv_anon_version_script" >&6; } | |
22a4778a | 24564 | if test "$libjava_cv_anon_version_script" != no; then |
1cf3d07d SE |
24565 | ANONVERSCRIPT_TRUE= |
24566 | ANONVERSCRIPT_FALSE='#' | |
24567 | else | |
24568 | ANONVERSCRIPT_TRUE='#' | |
24569 | ANONVERSCRIPT_FALSE= | |
24570 | fi | |
24571 | ||
22a4778a RO |
24572 | if test "$libjava_cv_anon_version_script" = gnu; then |
24573 | ANONVERSCRIPT_GNU_TRUE= | |
24574 | ANONVERSCRIPT_GNU_FALSE='#' | |
24575 | else | |
24576 | ANONVERSCRIPT_GNU_TRUE='#' | |
24577 | ANONVERSCRIPT_GNU_FALSE= | |
24578 | fi | |
24579 | ||
24580 | if test "$libjava_cv_anon_version_script" = sun; then | |
24581 | ANONVERSCRIPT_SUN_TRUE= | |
24582 | ANONVERSCRIPT_SUN_FALSE='#' | |
24583 | else | |
24584 | ANONVERSCRIPT_SUN_TRUE='#' | |
24585 | ANONVERSCRIPT_SUN_FALSE= | |
24586 | fi | |
24587 | ||
1cf3d07d SE |
24588 | |
24589 | # Check if linker supports static linking on a per library basis | |
24590 | LD_START_STATIC_SPEC= | |
24591 | LD_FINISH_STATIC_SPEC= | |
bc492e47 RO |
24592 | if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then |
24593 | if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then | |
1cf3d07d SE |
24594 | LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}' |
24595 | LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}' | |
24596 | fi | |
24597 | fi | |
24598 | ||
24599 | ||
24600 | ||
24601 | here=`${PWDCMD-pwd}` | |
24602 | ||
24603 | ||
24604 | # We get this from the environment. | |
24605 | ||
24606 | ||
c9db365d | 24607 | |
5213506e RW |
24608 | # Check whether --with-python-dir was given. |
24609 | if test "${with_python_dir+set}" = set; then : | |
24610 | withval=$with_python_dir; with_python_dir=$withval | |
c9db365d JS |
24611 | else |
24612 | with_python_dir="" | |
5213506e RW |
24613 | fi |
24614 | ||
c9db365d JS |
24615 | |
24616 | if test "x${with_python_dir}" = "x" | |
24617 | then | |
24618 | # Needed for installing Python modules during make install. | |
24619 | python_mod_dir="\${prefix}/share/python" | |
24620 | # Needed for substituting into aot-compile* | |
f3392d53 | 24621 | python_mod_dir_expanded="${expanded_prefix}/share/python" |
c9db365d JS |
24622 | else |
24623 | python_mod_dir="\${prefix}${with_python_dir}" | |
f3392d53 | 24624 | python_mod_dir_expanded="${expanded_prefix}${with_python_dir}" |
c9db365d | 24625 | fi |
5213506e RW |
24626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5 |
24627 | $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; }; | |
c9db365d JS |
24628 | |
24629 | ||
24630 | ||
24631 | # needed for aot-compile-rpm | |
24632 | MAKE=`which make` | |
24633 | ||
24634 | ||
5213506e RW |
24635 | # Check whether --enable-aot-compile-rpm was given. |
24636 | if test "${enable_aot_compile_rpm+set}" = set; then : | |
24637 | enableval=$enable_aot_compile_rpm; case "${enableval}" in | |
c9db365d JS |
24638 | yes) AOT_RPM_ENABLED=yes ;; |
24639 | no) AOT_RPM_ENABLED=no ;; | |
5213506e | 24640 | *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;; |
c9db365d JS |
24641 | esac |
24642 | else | |
24643 | AOT_RPM_ENABLED=no | |
24644 | ||
5213506e | 24645 | fi |
c9db365d | 24646 | |
5213506e | 24647 | if test "x${AOT_RPM_ENABLED}" = xyes; then |
c9db365d JS |
24648 | INSTALL_AOT_RPM_TRUE= |
24649 | INSTALL_AOT_RPM_FALSE='#' | |
24650 | else | |
24651 | INSTALL_AOT_RPM_TRUE='#' | |
24652 | INSTALL_AOT_RPM_FALSE= | |
24653 | fi | |
24654 | ||
24655 | ||
5213506e RW |
24656 | # Check whether --enable-java-home was given. |
24657 | if test "${enable_java_home+set}" = set; then : | |
24658 | enableval=$enable_java_home; case "${enableval}" in | |
c9db365d JS |
24659 | yes) JAVA_HOME_ENABLED=yes ;; |
24660 | no) JAVA_HOME_ENABLED=no ;; | |
5213506e | 24661 | *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;; |
c9db365d JS |
24662 | esac |
24663 | else | |
24664 | JAVA_HOME_ENABLED=no | |
24665 | ||
5213506e | 24666 | fi |
c9db365d | 24667 | |
5213506e | 24668 | if test "x${JAVA_HOME_ENABLED}" = xyes; then |
c9db365d JS |
24669 | CREATE_JAVA_HOME_TRUE= |
24670 | CREATE_JAVA_HOME_FALSE='#' | |
24671 | else | |
24672 | CREATE_JAVA_HOME_TRUE='#' | |
24673 | CREATE_JAVA_HOME_FALSE= | |
24674 | fi | |
24675 | ||
24676 | ||
24677 | # Only do these checks if java-home above is enabled. | |
cd6d4007 | 24678 | if test "x${JAVA_HOME_ENABLED}" = xyes |
c9db365d JS |
24679 | then |
24680 | ||
24681 | ||
5213506e RW |
24682 | # Check whether --with-gcc-suffix was given. |
24683 | if test "${with_gcc_suffix+set}" = set; then : | |
24684 | withval=$with_gcc_suffix; gcc_suffix=$withval | |
c9db365d JS |
24685 | else |
24686 | gcc_suffix="" | |
5213506e | 24687 | fi |
c9db365d | 24688 | |
5213506e RW |
24689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5 |
24690 | $as_echo "GCC suffix: ${gcc_suffix}" >&6; } | |
c9db365d JS |
24691 | |
24692 | ||
5213506e RW |
24693 | |
24694 | # Check whether --with-arch-directory was given. | |
24695 | if test "${with_arch_directory+set}" = set; then : | |
24696 | withval=$with_arch_directory; host_cpu=$withval | |
c9db365d JS |
24697 | else |
24698 | host_cpu="" | |
5213506e | 24699 | fi |
c9db365d JS |
24700 | |
24701 | ||
5213506e RW |
24702 | |
24703 | # Check whether --with-os-directory was given. | |
24704 | if test "${with_os_directory+set}" = set; then : | |
24705 | withval=$with_os_directory; host_os=$withval | |
c9db365d JS |
24706 | else |
24707 | host_os="" | |
5213506e | 24708 | fi |
c9db365d JS |
24709 | |
24710 | ||
5213506e RW |
24711 | |
24712 | # Check whether --with-origin-name was given. | |
24713 | if test "${with_origin_name+set}" = set; then : | |
24714 | withval=$with_origin_name; origin_name=$withval | |
c9db365d JS |
24715 | else |
24716 | origin_name=gcj${gcc_suffix} | |
5213506e | 24717 | fi |
c9db365d | 24718 | |
5213506e RW |
24719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5 |
24720 | $as_echo "JPackage origin name: ${origin_name}" >&6; } | |
c9db365d | 24721 | |
5213506e RW |
24722 | |
24723 | # Check whether --with-arch-suffix was given. | |
24724 | if test "${with_arch_suffix+set}" = set; then : | |
24725 | withval=$with_arch_suffix; arch_suffix=$withval | |
c9db365d JS |
24726 | else |
24727 | arch_suffix="" | |
5213506e | 24728 | fi |
c9db365d | 24729 | |
5213506e RW |
24730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5 |
24731 | $as_echo "arch suffix: ${arch_suffix}" >&6; } | |
c9db365d | 24732 | |
5213506e RW |
24733 | |
24734 | # Check whether --with-jvm-root-dir was given. | |
24735 | if test "${with_jvm_root_dir+set}" = set; then : | |
24736 | withval=$with_jvm_root_dir; jvm_root_dir=$withval | |
c9db365d JS |
24737 | else |
24738 | jvm_root_dir="\${prefix}/lib/jvm" | |
5213506e | 24739 | fi |
c9db365d | 24740 | |
5213506e RW |
24741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5 |
24742 | $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; } | |
c9db365d | 24743 | |
5213506e RW |
24744 | |
24745 | # Check whether --with-jvm-jar-dir was given. | |
24746 | if test "${with_jvm_jar_dir+set}" = set; then : | |
24747 | withval=$with_jvm_jar_dir; jvm_jar_dir=$withval | |
c9db365d JS |
24748 | else |
24749 | jvm_jar_dir=\${prefix}/lib/jvm-exports | |
5213506e RW |
24750 | fi |
24751 | ||
24752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5 | |
24753 | $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; } | |
c9db365d JS |
24754 | |
24755 | JAVA_VERSION=1.5.0 | |
24756 | BUILD_VERSION=0 | |
24757 | ||
24758 | ||
5213506e RW |
24759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5 |
24760 | $as_echo "Java version: ${JAVA_VERSION}" >&6; } | |
c9db365d | 24761 | |
6eaf85d0 | 24762 | jre_dir=jre |
c9db365d JS |
24763 | jre_lnk=jre-${JAVA_VERSION}-${origin_name} |
24764 | sdk_lnk=java-${JAVA_VERSION}-${origin_name} | |
24765 | ||
24766 | JVM_ROOT_DIR=${jvm_root_dir} | |
24767 | ||
5213506e RW |
24768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5 |
24769 | $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; } | |
c9db365d JS |
24770 | |
24771 | JVM_JAR_ROOT_DIR=${jvm_jar_dir} | |
24772 | ||
5213506e RW |
24773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5 |
24774 | $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; } | |
c9db365d | 24775 | |
6eaf85d0 | 24776 | JVM_JAR_DIR=${jvm_jar_dir} |
c9db365d | 24777 | |
5213506e RW |
24778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5 |
24779 | $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; } | |
c9db365d JS |
24780 | |
24781 | JRE_DIR=${jre_dir} | |
24782 | ||
24783 | ||
c9db365d JS |
24784 | JRE_LNK=${jre_lnk} |
24785 | ||
24786 | ||
24787 | SDK_LNK=${sdk_lnk} | |
24788 | ||
24789 | ||
6eaf85d0 | 24790 | SDK_BIN_DIR=${jvm_root_dir}/bin |
c9db365d | 24791 | |
5213506e RW |
24792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5 |
24793 | $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; } | |
c9db365d | 24794 | |
6eaf85d0 | 24795 | SDK_LIB_DIR=${jvm_root_dir}/lib |
c9db365d | 24796 | |
5213506e RW |
24797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5 |
24798 | $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; } | |
c9db365d | 24799 | |
6eaf85d0 | 24800 | SDK_INCLUDE_DIR=${jvm_root_dir}/include |
c9db365d | 24801 | |
5213506e RW |
24802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5 |
24803 | $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; } | |
c9db365d JS |
24804 | |
24805 | JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin | |
24806 | ||
5213506e RW |
24807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5 |
24808 | $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; } | |
c9db365d JS |
24809 | |
24810 | JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib | |
24811 | ||
5213506e RW |
24812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5 |
24813 | $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; } | |
c9db365d JS |
24814 | |
24815 | # Find gcj prefix using gcj found in PATH. | |
24816 | gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"` | |
24817 | ||
24818 | # Where do the gcj binaries live? | |
24819 | # For jhbuild based builds, they all live in a sibling of bin called | |
24820 | # gcj-bin. Check for gcj-bin first, and use bin otherwise. | |
24821 | GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi` | |
24822 | ||
5213506e RW |
24823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5 |
24824 | $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; } | |
c9db365d | 24825 | |
5213506e RW |
24826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5 |
24827 | $as_echo "host is ${host}" >&6; } | |
c9db365d JS |
24828 | if test "x${host_cpu}" = "x" |
24829 | then | |
24830 | case ${host} in | |
24831 | *-mingw* | *-cygwin*) | |
24832 | host_cpu=x86;; | |
24833 | i486-* | i586-* | i686-*) | |
24834 | host_cpu=i386;; | |
6eaf85d0 AJH |
24835 | x86_64-*) |
24836 | host_cpu=amd64;; | |
c9db365d JS |
24837 | *) |
24838 | host_cpu=${host_cpu};; | |
24839 | esac | |
24840 | fi | |
5213506e RW |
24841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5 |
24842 | $as_echo "arch directory: ${host_cpu}" >&6; } | |
c9db365d JS |
24843 | CPU=${host_cpu} |
24844 | ||
24845 | ||
24846 | if test "x${host_os}" = "x" | |
24847 | then | |
24848 | case ${host} in | |
24849 | *-mingw* | *-cygwin*) | |
24850 | host_os=win32;; | |
24851 | *-linux*) | |
24852 | host_os=linux;; | |
24853 | *) | |
24854 | host_os=${host_os};; | |
24855 | esac | |
24856 | fi | |
24857 | echo os directory: ${host_os} | |
24858 | OS=${host_os} | |
24859 | ||
24860 | ||
24861 | # make an expanded $libdir, for substituting into | |
24862 | # scripts (and other non-Makefile things). | |
24863 | LIBDIR=$libdir | |
24864 | if test "x${exec_prefix}" = "xNONE" | |
24865 | then | |
f3392d53 | 24866 | lib_exec_prefix=$expanded_prefix |
c9db365d JS |
24867 | else |
24868 | lib_exec_prefix=$exec_prefix | |
24869 | fi | |
24870 | LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"` | |
24871 | ||
24872 | fi | |
24873 | ||
5213506e | 24874 | ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/generate-cacerts.pl contrib/rebuild-gcj-db" |
1cf3d07d SE |
24875 | |
24876 | ||
04e0cb88 L |
24877 | if test ${multilib} = yes; then |
24878 | multilib_arg="--enable-multilib" | |
24879 | else | |
24880 | multilib_arg= | |
24881 | fi | |
1cf3d07d | 24882 | |
5213506e | 24883 | ac_config_files="$ac_config_files scripts/jar" |
1cf3d07d SE |
24884 | |
24885 | cat >confcache <<\_ACEOF | |
24886 | # This file is a shell script that caches the results of configure | |
24887 | # tests run on this system so they can be shared between configure | |
24888 | # scripts and configure runs, see configure's option --config-cache. | |
24889 | # It is not useful on other systems. If it contains results you don't | |
24890 | # want to keep, you may remove or edit it. | |
24891 | # | |
24892 | # config.status only pays attention to the cache file if you give it | |
24893 | # the --recheck option to rerun configure. | |
24894 | # | |
24895 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24896 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24897 | # following values. | |
24898 | ||
24899 | _ACEOF | |
24900 | ||
24901 | # The following way of writing the cache mishandles newlines in values, | |
24902 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 24903 | # So, we kill variables containing newlines. |
1cf3d07d SE |
24904 | # Ultrix sh set writes to stderr and can't be redirected directly, |
24905 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
24906 | ( |
24907 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
24908 | eval ac_val=\$$ac_var | |
24909 | case $ac_val in #( | |
24910 | *${as_nl}*) | |
24911 | case $ac_var in #( | |
24912 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
24913 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
24914 | esac | |
24915 | case $ac_var in #( | |
24916 | _ | IFS | as_nl) ;; #( | |
24917 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
24918 | *) { eval $ac_var=; unset $ac_var;} ;; | |
24919 | esac ;; | |
24920 | esac | |
24921 | done | |
24922 | ||
1cf3d07d | 24923 | (set) 2>&1 | |
5213506e RW |
24924 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
24925 | *${as_nl}ac_space=\ *) | |
24926 | # `set' does not quote correctly, so add quotes: double-quote | |
24927 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1cf3d07d SE |
24928 | sed -n \ |
24929 | "s/'/'\\\\''/g; | |
24930 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 24931 | ;; #( |
1cf3d07d SE |
24932 | *) |
24933 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 24934 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1cf3d07d | 24935 | ;; |
5213506e RW |
24936 | esac | |
24937 | sort | |
24938 | ) | | |
1cf3d07d | 24939 | sed ' |
5213506e | 24940 | /^ac_cv_env_/b end |
1cf3d07d | 24941 | t clear |
5213506e | 24942 | :clear |
1cf3d07d SE |
24943 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
24944 | t end | |
5213506e RW |
24945 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
24946 | :end' >>confcache | |
24947 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
24948 | if test -w "$cache_file"; then | |
24949 | test "x$cache_file" != "x/dev/null" && | |
24950 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
24951 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1cf3d07d SE |
24952 | cat confcache >$cache_file |
24953 | else | |
5213506e RW |
24954 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
24955 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
1cf3d07d SE |
24956 | fi |
24957 | fi | |
24958 | rm -f confcache | |
24959 | ||
24960 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
24961 | # Let make expand exec_prefix. | |
24962 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
24963 | ||
1cf3d07d SE |
24964 | DEFS=-DHAVE_CONFIG_H |
24965 | ||
24966 | ac_libobjs= | |
24967 | ac_ltlibobjs= | |
24968 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
24969 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
24970 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
24971 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
24972 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
24973 | # will be set to the directory where LIBOBJS objects are built. | |
24974 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
24975 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1cf3d07d SE |
24976 | done |
24977 | LIBOBJS=$ac_libobjs | |
24978 | ||
24979 | LTLIBOBJS=$ac_ltlibobjs | |
24980 | ||
24981 | ||
cd6d4007 | 24982 | if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then |
5213506e RW |
24983 | as_fn_error "conditional \"CREATE_GJDOC\" was never defined. |
24984 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
cd6d4007 | 24985 | fi |
1cf3d07d | 24986 | if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then |
5213506e RW |
24987 | as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined. |
24988 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
24989 | fi |
24990 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5213506e RW |
24991 | as_fn_error "conditional \"AMDEP\" was never defined. |
24992 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
24993 | fi |
24994 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5213506e RW |
24995 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
24996 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
24997 | fi |
24998 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
5213506e RW |
24999 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
25000 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
25001 | fi | |
25002 | if test -n "$EXEEXT"; then | |
25003 | am__EXEEXT_TRUE= | |
25004 | am__EXEEXT_FALSE='#' | |
25005 | else | |
25006 | am__EXEEXT_TRUE='#' | |
25007 | am__EXEEXT_FALSE= | |
1cf3d07d | 25008 | fi |
5213506e | 25009 | |
1cf3d07d | 25010 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5213506e RW |
25011 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
25012 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d | 25013 | fi |
6a92b6c7 DK |
25014 | if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then |
25015 | as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined. | |
25016 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
25017 | fi | |
1cf3d07d | 25018 | if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then |
5213506e RW |
25019 | as_fn_error "conditional \"XLIB_AWT\" was never defined. |
25020 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25021 | fi |
25022 | if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then | |
5213506e RW |
25023 | as_fn_error "conditional \"X_AWT\" was never defined. |
25024 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25025 | fi |
25026 | if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then | |
5213506e RW |
25027 | as_fn_error "conditional \"am__fastdepGCJ\" was never defined. |
25028 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25029 | fi |
25030 | if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then | |
5213506e RW |
25031 | as_fn_error "conditional \"am__fastdepGCJ\" was never defined. |
25032 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25033 | fi |
25034 | if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then | |
5213506e RW |
25035 | as_fn_error "conditional \"TESTSUBDIR\" was never defined. |
25036 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25037 | fi |
25038 | if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then | |
5213506e RW |
25039 | as_fn_error "conditional \"BUILD_ECJ1\" was never defined. |
25040 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25041 | fi |
25042 | if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then | |
5213506e RW |
25043 | as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined. |
25044 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25045 | fi |
25046 | if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then | |
5213506e RW |
25047 | as_fn_error "conditional \"JAVA_HOME_SET\" was never defined. |
25048 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d | 25049 | fi |
a507baad | 25050 | if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then |
5213506e RW |
25051 | as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined. |
25052 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
a507baad | 25053 | fi |
c07cd2c7 | 25054 | if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then |
5213506e RW |
25055 | as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined. |
25056 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c07cd2c7 | 25057 | fi |
86acf60c | 25058 | if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then |
5213506e RW |
25059 | as_fn_error "conditional \"INTERPRETER\" was never defined. |
25060 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
86acf60c | 25061 | fi |
1cf3d07d | 25062 | if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then |
5213506e RW |
25063 | as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined. |
25064 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25065 | fi |
25066 | if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then | |
5213506e RW |
25067 | as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined. |
25068 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25069 | fi |
25070 | if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then | |
5213506e RW |
25071 | as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined. |
25072 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25073 | fi |
25074 | if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then | |
5213506e RW |
25075 | as_fn_error "conditional \"USING_BOEHMGC\" was never defined. |
25076 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25077 | fi |
25078 | if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then | |
5213506e RW |
25079 | as_fn_error "conditional \"USING_NOGC\" was never defined. |
25080 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25081 | fi |
25082 | if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then | |
5213506e RW |
25083 | as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined. |
25084 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25085 | fi |
25086 | if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then | |
5213506e RW |
25087 | as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined. |
25088 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25089 | fi |
25090 | if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then | |
5213506e RW |
25091 | as_fn_error "conditional \"USING_NO_THREADS\" was never defined. |
25092 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25093 | fi |
25094 | if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then | |
5213506e RW |
25095 | as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined. |
25096 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25097 | fi |
25098 | if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then | |
5213506e RW |
25099 | as_fn_error "conditional \"USING_GCC\" was never defined. |
25100 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25101 | fi |
25102 | if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then | |
5213506e RW |
25103 | as_fn_error "conditional \"am__fastdepGCJ\" was never defined. |
25104 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d | 25105 | fi |
5213506e | 25106 | |
1cf3d07d | 25107 | if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then |
5213506e RW |
25108 | as_fn_error "conditional \"NATIVE\" was never defined. |
25109 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25110 | fi |
25111 | if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then | |
5213506e RW |
25112 | as_fn_error "conditional \"ENABLE_SHARED\" was never defined. |
25113 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d SE |
25114 | fi |
25115 | if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then | |
5213506e RW |
25116 | as_fn_error "conditional \"NEEDS_DATA_START\" was never defined. |
25117 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d | 25118 | fi |
4bf95cef | 25119 | if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then |
5213506e RW |
25120 | as_fn_error "conditional \"INSTALL_BINARIES\" was never defined. |
25121 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
4bf95cef | 25122 | fi |
1cf3d07d | 25123 | if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then |
5213506e RW |
25124 | as_fn_error "conditional \"ANONVERSCRIPT\" was never defined. |
25125 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
1cf3d07d | 25126 | fi |
22a4778a RO |
25127 | if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then |
25128 | as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined. | |
25129 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
25130 | fi | |
25131 | if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then | |
25132 | as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined. | |
25133 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
25134 | fi | |
c9db365d | 25135 | if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then |
5213506e RW |
25136 | as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined. |
25137 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c9db365d JS |
25138 | fi |
25139 | if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then | |
5213506e RW |
25140 | as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined. |
25141 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
c9db365d | 25142 | fi |
1cf3d07d SE |
25143 | |
25144 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 25145 | ac_write_fail=0 |
1cf3d07d SE |
25146 | ac_clean_files_save=$ac_clean_files |
25147 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
25148 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
25149 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
25150 | as_write_fail=0 | |
25151 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1cf3d07d SE |
25152 | #! $SHELL |
25153 | # Generated by $as_me. | |
25154 | # Run this file to recreate the current configuration. | |
25155 | # Compiler output produced by configure, useful for debugging | |
25156 | # configure, is in config.log if it exists. | |
25157 | ||
25158 | debug=false | |
25159 | ac_cs_recheck=false | |
25160 | ac_cs_silent=false | |
1cf3d07d | 25161 | |
5213506e RW |
25162 | SHELL=\${CONFIG_SHELL-$SHELL} |
25163 | export SHELL | |
25164 | _ASEOF | |
25165 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
25166 | ## -------------------- ## | |
25167 | ## M4sh Initialization. ## | |
25168 | ## -------------------- ## | |
25169 | ||
25170 | # Be more Bourne compatible | |
25171 | DUALCASE=1; export DUALCASE # for MKS sh | |
25172 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1cf3d07d SE |
25173 | emulate sh |
25174 | NULLCMD=: | |
5213506e | 25175 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1cf3d07d SE |
25176 | # is contrary to our usage. Disable this feature. |
25177 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
25178 | setopt NO_GLOB_SUBST |
25179 | else | |
25180 | case `(set -o) 2>/dev/null` in #( | |
25181 | *posix*) : | |
25182 | set -o posix ;; #( | |
25183 | *) : | |
25184 | ;; | |
25185 | esac | |
1cf3d07d | 25186 | fi |
1cf3d07d | 25187 | |
5213506e RW |
25188 | |
25189 | as_nl=' | |
25190 | ' | |
25191 | export as_nl | |
25192 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
25193 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
25194 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
25195 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
25196 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
25197 | # but without wasting forks for bash or zsh. | |
25198 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
25199 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
25200 | as_echo='print -r --' | |
25201 | as_echo_n='print -rn --' | |
25202 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
25203 | as_echo='printf %s\n' | |
25204 | as_echo_n='printf %s' | |
25205 | else | |
25206 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
25207 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
25208 | as_echo_n='/usr/ucb/echo -n' | |
25209 | else | |
25210 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
25211 | as_echo_n_body='eval | |
25212 | arg=$1; | |
25213 | case $arg in #( | |
25214 | *"$as_nl"*) | |
25215 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
25216 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
25217 | esac; | |
25218 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
25219 | ' | |
25220 | export as_echo_n_body | |
25221 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
25222 | fi | |
25223 | export as_echo_body | |
25224 | as_echo='sh -c $as_echo_body as_echo' | |
25225 | fi | |
25226 | ||
25227 | # The user is always right. | |
25228 | if test "${PATH_SEPARATOR+set}" != set; then | |
25229 | PATH_SEPARATOR=: | |
25230 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
25231 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
25232 | PATH_SEPARATOR=';' | |
25233 | } | |
1cf3d07d SE |
25234 | fi |
25235 | ||
25236 | ||
5213506e RW |
25237 | # IFS |
25238 | # We need space, tab and new line, in precisely that order. Quoting is | |
25239 | # there to prevent editors from complaining about space-tab. | |
25240 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
25241 | # splitting by setting IFS to empty value.) | |
25242 | IFS=" "" $as_nl" | |
25243 | ||
25244 | # Find who we are. Look in the path if we contain no directory separator. | |
25245 | case $0 in #(( | |
25246 | *[\\/]* ) as_myself=$0 ;; | |
25247 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25248 | for as_dir in $PATH | |
25249 | do | |
25250 | IFS=$as_save_IFS | |
25251 | test -z "$as_dir" && as_dir=. | |
25252 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
25253 | done | |
25254 | IFS=$as_save_IFS | |
25255 | ||
25256 | ;; | |
25257 | esac | |
25258 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
25259 | # in which case we are not to be found in the path. | |
25260 | if test "x$as_myself" = x; then | |
25261 | as_myself=$0 | |
25262 | fi | |
25263 | if test ! -f "$as_myself"; then | |
25264 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
25265 | exit 1 | |
25266 | fi | |
25267 | ||
25268 | # Unset variables that we do not need and which cause bugs (e.g. in | |
25269 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
25270 | # suppresses any "Segmentation fault" message there. '((' could | |
25271 | # trigger a bug in pdksh 5.2.14. | |
25272 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
25273 | do eval test x\${$as_var+set} = xset \ | |
25274 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
25275 | done | |
1cf3d07d SE |
25276 | PS1='$ ' |
25277 | PS2='> ' | |
25278 | PS4='+ ' | |
25279 | ||
25280 | # NLS nuisances. | |
5213506e RW |
25281 | LC_ALL=C |
25282 | export LC_ALL | |
25283 | LANGUAGE=C | |
25284 | export LANGUAGE | |
25285 | ||
25286 | # CDPATH. | |
25287 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
25288 | ||
25289 | ||
25290 | # as_fn_error ERROR [LINENO LOG_FD] | |
25291 | # --------------------------------- | |
25292 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
25293 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
25294 | # script with status $?, using 1 if that was 0. | |
25295 | as_fn_error () | |
25296 | { | |
25297 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
25298 | if test "$3"; then | |
25299 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
25300 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
1cf3d07d | 25301 | fi |
5213506e RW |
25302 | $as_echo "$as_me: error: $1" >&2 |
25303 | as_fn_exit $as_status | |
25304 | } # as_fn_error | |
25305 | ||
25306 | ||
25307 | # as_fn_set_status STATUS | |
25308 | # ----------------------- | |
25309 | # Set $? to STATUS, without forking. | |
25310 | as_fn_set_status () | |
25311 | { | |
25312 | return $1 | |
25313 | } # as_fn_set_status | |
25314 | ||
25315 | # as_fn_exit STATUS | |
25316 | # ----------------- | |
25317 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
25318 | as_fn_exit () | |
25319 | { | |
25320 | set +e | |
25321 | as_fn_set_status $1 | |
25322 | exit $1 | |
25323 | } # as_fn_exit | |
25324 | ||
25325 | # as_fn_unset VAR | |
25326 | # --------------- | |
25327 | # Portably unset VAR. | |
25328 | as_fn_unset () | |
25329 | { | |
25330 | { eval $1=; unset $1;} | |
25331 | } | |
25332 | as_unset=as_fn_unset | |
25333 | # as_fn_append VAR VALUE | |
25334 | # ---------------------- | |
25335 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
25336 | # advantage of any shell optimizations that allow amortized linear growth over | |
25337 | # repeated appends, instead of the typical quadratic growth present in naive | |
25338 | # implementations. | |
25339 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
25340 | eval 'as_fn_append () | |
25341 | { | |
25342 | eval $1+=\$2 | |
25343 | }' | |
25344 | else | |
25345 | as_fn_append () | |
25346 | { | |
25347 | eval $1=\$$1\$2 | |
25348 | } | |
25349 | fi # as_fn_append | |
25350 | ||
25351 | # as_fn_arith ARG... | |
25352 | # ------------------ | |
25353 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
25354 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
25355 | # must be portable across $(()) and expr. | |
25356 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
25357 | eval 'as_fn_arith () | |
25358 | { | |
25359 | as_val=$(( $* )) | |
25360 | }' | |
25361 | else | |
25362 | as_fn_arith () | |
25363 | { | |
25364 | as_val=`expr "$@" || test $? -eq 1` | |
25365 | } | |
25366 | fi # as_fn_arith | |
25367 | ||
1cf3d07d | 25368 | |
5213506e RW |
25369 | if expr a : '\(a\)' >/dev/null 2>&1 && |
25370 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1cf3d07d SE |
25371 | as_expr=expr |
25372 | else | |
25373 | as_expr=false | |
25374 | fi | |
25375 | ||
5213506e | 25376 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1cf3d07d SE |
25377 | as_basename=basename |
25378 | else | |
25379 | as_basename=false | |
25380 | fi | |
25381 | ||
5213506e RW |
25382 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
25383 | as_dirname=dirname | |
25384 | else | |
25385 | as_dirname=false | |
25386 | fi | |
1cf3d07d | 25387 | |
5213506e | 25388 | as_me=`$as_basename -- "$0" || |
1cf3d07d SE |
25389 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
25390 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
25391 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
25392 | $as_echo X/"$0" | | |
25393 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
25394 | s//\1/ | |
25395 | q | |
25396 | } | |
25397 | /^X\/\(\/\/\)$/{ | |
25398 | s//\1/ | |
25399 | q | |
25400 | } | |
25401 | /^X\/\(\/\).*/{ | |
25402 | s//\1/ | |
25403 | q | |
25404 | } | |
25405 | s/.*/./; q'` | |
1cf3d07d | 25406 | |
1cf3d07d SE |
25407 | # Avoid depending upon Character Ranges. |
25408 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
25409 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
25410 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
25411 | as_cr_digits='0123456789' | |
25412 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
25413 | ||
5213506e RW |
25414 | ECHO_C= ECHO_N= ECHO_T= |
25415 | case `echo -n x` in #((((( | |
25416 | -n*) | |
25417 | case `echo 'xy\c'` in | |
25418 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
25419 | xy) ECHO_C='\c';; | |
25420 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
25421 | ECHO_T=' ';; | |
25422 | esac;; | |
25423 | *) | |
25424 | ECHO_N='-n';; | |
1cf3d07d SE |
25425 | esac |
25426 | ||
5213506e RW |
25427 | rm -f conf$$ conf$$.exe conf$$.file |
25428 | if test -d conf$$.dir; then | |
25429 | rm -f conf$$.dir/conf$$.file | |
1cf3d07d | 25430 | else |
5213506e RW |
25431 | rm -f conf$$.dir |
25432 | mkdir conf$$.dir 2>/dev/null | |
1cf3d07d | 25433 | fi |
5213506e RW |
25434 | if (echo >conf$$.file) 2>/dev/null; then |
25435 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
1cf3d07d | 25436 | as_ln_s='ln -s' |
5213506e RW |
25437 | # ... but there are two gotchas: |
25438 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
25439 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
25440 | # In both cases, we have to default to `cp -p'. | |
25441 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
25442 | as_ln_s='cp -p' | |
25443 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
25444 | as_ln_s=ln | |
25445 | else | |
25446 | as_ln_s='cp -p' | |
1cf3d07d | 25447 | fi |
1cf3d07d SE |
25448 | else |
25449 | as_ln_s='cp -p' | |
25450 | fi | |
5213506e RW |
25451 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
25452 | rmdir conf$$.dir 2>/dev/null | |
25453 | ||
1cf3d07d | 25454 | |
5213506e RW |
25455 | # as_fn_mkdir_p |
25456 | # ------------- | |
25457 | # Create "$as_dir" as a directory, including parents if necessary. | |
25458 | as_fn_mkdir_p () | |
25459 | { | |
25460 | ||
25461 | case $as_dir in #( | |
25462 | -*) as_dir=./$as_dir;; | |
25463 | esac | |
25464 | test -d "$as_dir" || eval $as_mkdir_p || { | |
25465 | as_dirs= | |
25466 | while :; do | |
25467 | case $as_dir in #( | |
25468 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
25469 | *) as_qdir=$as_dir;; | |
25470 | esac | |
25471 | as_dirs="'$as_qdir' $as_dirs" | |
25472 | as_dir=`$as_dirname -- "$as_dir" || | |
25473 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25474 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25475 | X"$as_dir" : 'X\(//\)$' \| \ | |
25476 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
25477 | $as_echo X"$as_dir" | | |
25478 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25479 | s//\1/ | |
25480 | q | |
25481 | } | |
25482 | /^X\(\/\/\)[^/].*/{ | |
25483 | s//\1/ | |
25484 | q | |
25485 | } | |
25486 | /^X\(\/\/\)$/{ | |
25487 | s//\1/ | |
25488 | q | |
25489 | } | |
25490 | /^X\(\/\).*/{ | |
25491 | s//\1/ | |
25492 | q | |
25493 | } | |
25494 | s/.*/./; q'` | |
25495 | test -d "$as_dir" && break | |
25496 | done | |
25497 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
25498 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
25499 | ||
25500 | ||
25501 | } # as_fn_mkdir_p | |
1cf3d07d | 25502 | if mkdir -p . 2>/dev/null; then |
5213506e | 25503 | as_mkdir_p='mkdir -p "$as_dir"' |
1cf3d07d SE |
25504 | else |
25505 | test -d ./-p && rmdir ./-p | |
25506 | as_mkdir_p=false | |
25507 | fi | |
25508 | ||
5213506e RW |
25509 | if test -x / >/dev/null 2>&1; then |
25510 | as_test_x='test -x' | |
25511 | else | |
25512 | if ls -dL / >/dev/null 2>&1; then | |
25513 | as_ls_L_option=L | |
25514 | else | |
25515 | as_ls_L_option= | |
25516 | fi | |
25517 | as_test_x=' | |
25518 | eval sh -c '\'' | |
25519 | if test -d "$1"; then | |
25520 | test -d "$1/."; | |
25521 | else | |
25522 | case $1 in #( | |
25523 | -*)set "./$1";; | |
25524 | esac; | |
25525 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
25526 | ???[sx]*):;;*)false;;esac;fi | |
25527 | '\'' sh | |
25528 | ' | |
25529 | fi | |
25530 | as_executable_p=$as_test_x | |
1cf3d07d SE |
25531 | |
25532 | # Sed expression to map a string onto a valid CPP name. | |
25533 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
25534 | ||
25535 | # Sed expression to map a string onto a valid variable name. | |
25536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
25537 | ||
25538 | ||
1cf3d07d | 25539 | exec 6>&1 |
5213506e RW |
25540 | ## ----------------------------------- ## |
25541 | ## Main body of $CONFIG_STATUS script. ## | |
25542 | ## ----------------------------------- ## | |
25543 | _ASEOF | |
25544 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
25545 | ||
25546 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25547 | # Save the log message, to keep $0 and so on meaningful, and to | |
1cf3d07d | 25548 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
25549 | # values after options handling. |
25550 | ac_log=" | |
1cf3d07d | 25551 | This file was extended by libjava $as_me version-unused, which was |
5213506e | 25552 | generated by GNU Autoconf 2.64. Invocation command line was |
1cf3d07d SE |
25553 | |
25554 | CONFIG_FILES = $CONFIG_FILES | |
25555 | CONFIG_HEADERS = $CONFIG_HEADERS | |
25556 | CONFIG_LINKS = $CONFIG_LINKS | |
25557 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
25558 | $ $0 $@ | |
25559 | ||
5213506e RW |
25560 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
25561 | " | |
25562 | ||
1cf3d07d SE |
25563 | _ACEOF |
25564 | ||
5213506e RW |
25565 | case $ac_config_files in *" |
25566 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
25567 | esac | |
1cf3d07d | 25568 | |
5213506e RW |
25569 | case $ac_config_headers in *" |
25570 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
25571 | esac | |
1cf3d07d | 25572 | |
1cf3d07d | 25573 | |
5213506e RW |
25574 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
25575 | # Files that config.status was made for. | |
25576 | config_files="$ac_config_files" | |
25577 | config_headers="$ac_config_headers" | |
25578 | config_links="$ac_config_links" | |
25579 | config_commands="$ac_config_commands" | |
1cf3d07d | 25580 | |
5213506e | 25581 | _ACEOF |
1cf3d07d | 25582 | |
5213506e | 25583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1cf3d07d | 25584 | ac_cs_usage="\ |
5213506e RW |
25585 | \`$as_me' instantiates files and other configuration actions |
25586 | from templates according to the current configuration. Unless the files | |
25587 | and actions are specified as TAGs, all are instantiated by default. | |
1cf3d07d | 25588 | |
5213506e | 25589 | Usage: $0 [OPTION]... [TAG]... |
1cf3d07d SE |
25590 | |
25591 | -h, --help print this help, then exit | |
5213506e RW |
25592 | -V, --version print version number and configuration settings, then exit |
25593 | -q, --quiet, --silent | |
25594 | do not print progress messages | |
1cf3d07d SE |
25595 | -d, --debug don't remove temporary files |
25596 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
25597 | --file=FILE[:TEMPLATE] |
25598 | instantiate the configuration file FILE | |
25599 | --header=FILE[:TEMPLATE] | |
25600 | instantiate the configuration header FILE | |
1cf3d07d SE |
25601 | |
25602 | Configuration files: | |
25603 | $config_files | |
25604 | ||
25605 | Configuration headers: | |
25606 | $config_headers | |
25607 | ||
25608 | Configuration links: | |
25609 | $config_links | |
25610 | ||
25611 | Configuration commands: | |
25612 | $config_commands | |
25613 | ||
5213506e | 25614 | Report bugs to the package provider." |
1cf3d07d | 25615 | |
5213506e RW |
25616 | _ACEOF |
25617 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1cf3d07d SE |
25618 | ac_cs_version="\\ |
25619 | libjava config.status version-unused | |
5213506e RW |
25620 | configured by $0, generated by GNU Autoconf 2.64, |
25621 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1cf3d07d | 25622 | |
5213506e | 25623 | Copyright (C) 2009 Free Software Foundation, Inc. |
1cf3d07d SE |
25624 | This config.status script is free software; the Free Software Foundation |
25625 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
25626 | |
25627 | ac_pwd='$ac_pwd' | |
25628 | srcdir='$srcdir' | |
25629 | INSTALL='$INSTALL' | |
25630 | MKDIR_P='$MKDIR_P' | |
25631 | AWK='$AWK' | |
25632 | test -n "\$AWK" || AWK=awk | |
1cf3d07d SE |
25633 | _ACEOF |
25634 | ||
5213506e RW |
25635 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25636 | # The default lists apply if the user does not specify any file. | |
1cf3d07d SE |
25637 | ac_need_defaults=: |
25638 | while test $# != 0 | |
25639 | do | |
25640 | case $1 in | |
25641 | --*=*) | |
5213506e RW |
25642 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
25643 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1cf3d07d SE |
25644 | ac_shift=: |
25645 | ;; | |
5213506e | 25646 | *) |
1cf3d07d SE |
25647 | ac_option=$1 |
25648 | ac_optarg=$2 | |
25649 | ac_shift=shift | |
25650 | ;; | |
1cf3d07d SE |
25651 | esac |
25652 | ||
25653 | case $ac_option in | |
25654 | # Handling of the options. | |
1cf3d07d SE |
25655 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25656 | ac_cs_recheck=: ;; | |
5213506e RW |
25657 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
25658 | $as_echo "$ac_cs_version"; exit ;; | |
25659 | --debug | --debu | --deb | --de | --d | -d ) | |
1cf3d07d SE |
25660 | debug=: ;; |
25661 | --file | --fil | --fi | --f ) | |
25662 | $ac_shift | |
5213506e RW |
25663 | case $ac_optarg in |
25664 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
25665 | esac | |
25666 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
1cf3d07d SE |
25667 | ac_need_defaults=false;; |
25668 | --header | --heade | --head | --hea ) | |
25669 | $ac_shift | |
5213506e RW |
25670 | case $ac_optarg in |
25671 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
25672 | esac | |
25673 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
1cf3d07d | 25674 | ac_need_defaults=false;; |
5213506e RW |
25675 | --he | --h) |
25676 | # Conflict between --help and --header | |
25677 | as_fn_error "ambiguous option: \`$1' | |
25678 | Try \`$0 --help' for more information.";; | |
25679 | --help | --hel | -h ) | |
25680 | $as_echo "$ac_cs_usage"; exit ;; | |
1cf3d07d SE |
25681 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
25682 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
25683 | ac_cs_silent=: ;; | |
25684 | ||
25685 | # This is an error. | |
5213506e RW |
25686 | -*) as_fn_error "unrecognized option: \`$1' |
25687 | Try \`$0 --help' for more information." ;; | |
1cf3d07d | 25688 | |
5213506e RW |
25689 | *) as_fn_append ac_config_targets " $1" |
25690 | ac_need_defaults=false ;; | |
1cf3d07d SE |
25691 | |
25692 | esac | |
25693 | shift | |
25694 | done | |
25695 | ||
25696 | ac_configure_extra_args= | |
25697 | ||
25698 | if $ac_cs_silent; then | |
25699 | exec 6>/dev/null | |
25700 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
25701 | fi | |
25702 | ||
25703 | _ACEOF | |
5213506e | 25704 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1cf3d07d | 25705 | if \$ac_cs_recheck; then |
5213506e RW |
25706 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
25707 | shift | |
25708 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
25709 | CONFIG_SHELL='$SHELL' | |
25710 | export CONFIG_SHELL | |
25711 | exec "\$@" | |
1cf3d07d SE |
25712 | fi |
25713 | ||
25714 | _ACEOF | |
5213506e RW |
25715 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25716 | exec 5>>config.log | |
25717 | { | |
25718 | echo | |
25719 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
25720 | ## Running $as_me. ## | |
25721 | _ASBOX | |
25722 | $as_echo "$ac_log" | |
25723 | } >&5 | |
1cf3d07d | 25724 | |
5213506e RW |
25725 | _ACEOF |
25726 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1cf3d07d | 25727 | # |
5213506e | 25728 | # INIT-COMMANDS |
1cf3d07d SE |
25729 | # |
25730 | ||
1cf3d07d SE |
25731 | srcdir="$srcdir" |
25732 | host="$host" | |
25733 | target="$target" | |
25734 | with_multisubdir="$with_multisubdir" | |
25735 | with_multisrctop="$with_multisrctop" | |
25736 | with_target_subdir="$with_target_subdir" | |
25737 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
25738 | multi_basedir="$multi_basedir" | |
25739 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
25740 | CC="$CC" | |
4a4a4e99 AO |
25741 | CXX="$CXX" |
25742 | GFORTRAN="$GFORTRAN" | |
25743 | GCJ="$GCJ" | |
1cf3d07d SE |
25744 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
25745 | ||
25746 | ||
25747 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
25748 | # if CDPATH is set. | |
25749 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
25750 | ||
25751 | sed_quote_subst='$sed_quote_subst' | |
25752 | double_quote_subst='$double_quote_subst' | |
25753 | delay_variable_subst='$delay_variable_subst' | |
43e02a8a RW |
25754 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
25755 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
25756 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
25757 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
25758 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
25759 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
25760 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
25761 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
25762 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
25763 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
25764 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
25765 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
25766 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
25767 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
25768 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
25769 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
25770 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
25771 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
25772 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
25773 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
25774 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
25775 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
25776 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
25777 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
25778 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
25779 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
25780 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
25781 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
25782 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
25783 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
25784 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
25785 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
25786 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
25787 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
25788 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
25789 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
25790 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
25791 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
25792 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
25793 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
25794 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
25795 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
25796 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
25797 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
25798 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
25799 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
25800 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
25801 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
25802 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
25803 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
25804 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
25805 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
25806 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
25807 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
25808 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
25809 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
25810 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
25811 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
25812 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
25813 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
25814 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
25815 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
25816 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
25817 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
25818 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
25819 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
25820 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
25821 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
25822 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
25823 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
25824 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
25825 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
25826 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
25827 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
25828 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
25829 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
25830 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
25831 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
25832 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
25833 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
25834 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
25835 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
25836 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
25837 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
25838 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
25839 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
25840 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
25841 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
25842 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
25843 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
25844 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
25845 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
25846 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
25847 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
25848 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
25849 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
25850 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
25851 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
25852 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
25853 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
25854 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
25855 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
25856 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
25857 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
25858 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
25859 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
25860 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
25861 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
25862 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
25863 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
25864 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
25865 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
25866 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
25867 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
25868 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
25869 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
25870 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
25871 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
25872 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
25873 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
25874 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
25875 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
25876 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
25877 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
25878 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
25879 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
25880 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
25881 | LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`' | |
25882 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
25883 | reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`' | |
25884 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25885 | reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25886 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25887 | old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25888 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
25889 | compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`' | |
25890 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
25891 | GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`' | |
25892 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
25893 | lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`' | |
25894 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
25895 | lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`' | |
25896 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
25897 | lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`' | |
25898 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
25899 | lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`' | |
25900 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
25901 | lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`' | |
25902 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
25903 | archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`' | |
25904 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
25905 | enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`' | |
25906 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
25907 | export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`' | |
25908 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
25909 | whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`' | |
25910 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
25911 | compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`' | |
25912 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25913 | old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25914 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25915 | old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25916 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25917 | archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25918 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25919 | archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25920 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25921 | module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25922 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25923 | module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25924 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
25925 | with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`' | |
25926 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
25927 | allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`' | |
25928 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
25929 | no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`' | |
25930 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
25931 | hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`' | |
25932 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
25933 | hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`' | |
25934 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
25935 | hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`' | |
25936 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
25937 | hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`' | |
25938 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
25939 | hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`' | |
25940 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
25941 | hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`' | |
25942 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
25943 | hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`' | |
25944 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
25945 | hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`' | |
25946 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
25947 | inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`' | |
25948 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
25949 | link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`' | |
25950 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
25951 | fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`' | |
25952 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
25953 | always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`' | |
25954 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25955 | export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25956 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
25957 | exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`' | |
25958 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
25959 | include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`' | |
25960 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
25961 | prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`' | |
25962 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
25963 | file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`' | |
25964 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
25965 | hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`' | |
25966 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
25967 | compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`' | |
25968 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
25969 | predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`' | |
25970 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
25971 | postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`' | |
25972 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
25973 | predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`' | |
25974 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
25975 | postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`' | |
25976 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
25977 | compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`' | |
1cf3d07d SE |
25978 | |
25979 | LTCC='$LTCC' | |
25980 | LTCFLAGS='$LTCFLAGS' | |
25981 | compiler='$compiler_DEFAULT' | |
25982 | ||
43e02a8a RW |
25983 | # A function that is used when there is no print builtin or printf. |
25984 | func_fallback_echo () | |
25985 | { | |
25986 | eval 'cat <<_LTECHO_EOF | |
25987 | \$1 | |
25988 | _LTECHO_EOF' | |
25989 | } | |
25990 | ||
1cf3d07d | 25991 | # Quote evaled strings. |
43e02a8a RW |
25992 | for var in SHELL \ |
25993 | ECHO \ | |
25994 | SED \ | |
1cf3d07d SE |
25995 | GREP \ |
25996 | EGREP \ | |
25997 | FGREP \ | |
25998 | LD \ | |
25999 | NM \ | |
26000 | LN_S \ | |
26001 | lt_SP2NL \ | |
26002 | lt_NL2SP \ | |
26003 | reload_flag \ | |
0da7a284 | 26004 | OBJDUMP \ |
1cf3d07d SE |
26005 | deplibs_check_method \ |
26006 | file_magic_cmd \ | |
26007 | AR \ | |
26008 | AR_FLAGS \ | |
26009 | STRIP \ | |
26010 | RANLIB \ | |
26011 | CC \ | |
26012 | CFLAGS \ | |
26013 | compiler \ | |
26014 | lt_cv_sys_global_symbol_pipe \ | |
26015 | lt_cv_sys_global_symbol_to_cdecl \ | |
26016 | lt_cv_sys_global_symbol_to_c_name_address \ | |
0da7a284 | 26017 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
26018 | lt_prog_compiler_no_builtin_flag \ |
26019 | lt_prog_compiler_wl \ | |
26020 | lt_prog_compiler_pic \ | |
26021 | lt_prog_compiler_static \ | |
26022 | lt_cv_prog_compiler_c_o \ | |
26023 | need_locks \ | |
0da7a284 PG |
26024 | DSYMUTIL \ |
26025 | NMEDIT \ | |
26026 | LIPO \ | |
26027 | OTOOL \ | |
26028 | OTOOL64 \ | |
1cf3d07d SE |
26029 | shrext_cmds \ |
26030 | export_dynamic_flag_spec \ | |
26031 | whole_archive_flag_spec \ | |
26032 | compiler_needs_object \ | |
26033 | with_gnu_ld \ | |
26034 | allow_undefined_flag \ | |
26035 | no_undefined_flag \ | |
26036 | hardcode_libdir_flag_spec \ | |
26037 | hardcode_libdir_flag_spec_ld \ | |
26038 | hardcode_libdir_separator \ | |
26039 | fix_srcfile_path \ | |
26040 | exclude_expsyms \ | |
26041 | include_expsyms \ | |
26042 | file_list_spec \ | |
26043 | variables_saved_for_relink \ | |
26044 | libname_spec \ | |
26045 | library_names_spec \ | |
26046 | soname_spec \ | |
43e02a8a | 26047 | install_override_mode \ |
1cf3d07d SE |
26048 | finish_eval \ |
26049 | old_striplib \ | |
26050 | striplib \ | |
0da7a284 | 26051 | compiler_lib_search_dirs \ |
1cf3d07d SE |
26052 | predep_objects \ |
26053 | postdep_objects \ | |
26054 | predeps \ | |
26055 | postdeps \ | |
26056 | compiler_lib_search_path \ | |
26057 | LD_CXX \ | |
26058 | LD_GCJ \ | |
43e02a8a RW |
26059 | reload_flag_CXX \ |
26060 | reload_flag_GCJ \ | |
1cf3d07d SE |
26061 | compiler_CXX \ |
26062 | compiler_GCJ \ | |
26063 | lt_prog_compiler_no_builtin_flag_CXX \ | |
26064 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
26065 | lt_prog_compiler_wl_CXX \ | |
26066 | lt_prog_compiler_wl_GCJ \ | |
26067 | lt_prog_compiler_pic_CXX \ | |
26068 | lt_prog_compiler_pic_GCJ \ | |
26069 | lt_prog_compiler_static_CXX \ | |
26070 | lt_prog_compiler_static_GCJ \ | |
26071 | lt_cv_prog_compiler_c_o_CXX \ | |
26072 | lt_cv_prog_compiler_c_o_GCJ \ | |
26073 | export_dynamic_flag_spec_CXX \ | |
26074 | export_dynamic_flag_spec_GCJ \ | |
26075 | whole_archive_flag_spec_CXX \ | |
26076 | whole_archive_flag_spec_GCJ \ | |
26077 | compiler_needs_object_CXX \ | |
26078 | compiler_needs_object_GCJ \ | |
26079 | with_gnu_ld_CXX \ | |
26080 | with_gnu_ld_GCJ \ | |
26081 | allow_undefined_flag_CXX \ | |
26082 | allow_undefined_flag_GCJ \ | |
26083 | no_undefined_flag_CXX \ | |
26084 | no_undefined_flag_GCJ \ | |
26085 | hardcode_libdir_flag_spec_CXX \ | |
26086 | hardcode_libdir_flag_spec_GCJ \ | |
26087 | hardcode_libdir_flag_spec_ld_CXX \ | |
26088 | hardcode_libdir_flag_spec_ld_GCJ \ | |
26089 | hardcode_libdir_separator_CXX \ | |
26090 | hardcode_libdir_separator_GCJ \ | |
26091 | fix_srcfile_path_CXX \ | |
26092 | fix_srcfile_path_GCJ \ | |
26093 | exclude_expsyms_CXX \ | |
26094 | exclude_expsyms_GCJ \ | |
26095 | include_expsyms_CXX \ | |
26096 | include_expsyms_GCJ \ | |
26097 | file_list_spec_CXX \ | |
26098 | file_list_spec_GCJ \ | |
0da7a284 PG |
26099 | compiler_lib_search_dirs_CXX \ |
26100 | compiler_lib_search_dirs_GCJ \ | |
1cf3d07d SE |
26101 | predep_objects_CXX \ |
26102 | predep_objects_GCJ \ | |
26103 | postdep_objects_CXX \ | |
26104 | postdep_objects_GCJ \ | |
26105 | predeps_CXX \ | |
26106 | predeps_GCJ \ | |
26107 | postdeps_CXX \ | |
26108 | postdeps_GCJ \ | |
26109 | compiler_lib_search_path_CXX \ | |
26110 | compiler_lib_search_path_GCJ; do | |
43e02a8a | 26111 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 26112 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 26113 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
26114 | ;; |
26115 | *) | |
26116 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
26117 | ;; | |
26118 | esac | |
26119 | done | |
26120 | ||
26121 | # Double-quote double-evaled strings. | |
26122 | for var in reload_cmds \ | |
26123 | old_postinstall_cmds \ | |
26124 | old_postuninstall_cmds \ | |
26125 | old_archive_cmds \ | |
26126 | extract_expsyms_cmds \ | |
26127 | old_archive_from_new_cmds \ | |
26128 | old_archive_from_expsyms_cmds \ | |
26129 | archive_cmds \ | |
26130 | archive_expsym_cmds \ | |
26131 | module_cmds \ | |
26132 | module_expsym_cmds \ | |
26133 | export_symbols_cmds \ | |
26134 | prelink_cmds \ | |
26135 | postinstall_cmds \ | |
26136 | postuninstall_cmds \ | |
26137 | finish_cmds \ | |
26138 | sys_lib_search_path_spec \ | |
26139 | sys_lib_dlsearch_path_spec \ | |
43e02a8a RW |
26140 | reload_cmds_CXX \ |
26141 | reload_cmds_GCJ \ | |
1cf3d07d SE |
26142 | old_archive_cmds_CXX \ |
26143 | old_archive_cmds_GCJ \ | |
26144 | old_archive_from_new_cmds_CXX \ | |
26145 | old_archive_from_new_cmds_GCJ \ | |
26146 | old_archive_from_expsyms_cmds_CXX \ | |
26147 | old_archive_from_expsyms_cmds_GCJ \ | |
26148 | archive_cmds_CXX \ | |
26149 | archive_cmds_GCJ \ | |
26150 | archive_expsym_cmds_CXX \ | |
26151 | archive_expsym_cmds_GCJ \ | |
26152 | module_cmds_CXX \ | |
26153 | module_cmds_GCJ \ | |
26154 | module_expsym_cmds_CXX \ | |
26155 | module_expsym_cmds_GCJ \ | |
26156 | export_symbols_cmds_CXX \ | |
26157 | export_symbols_cmds_GCJ \ | |
26158 | prelink_cmds_CXX \ | |
26159 | prelink_cmds_GCJ; do | |
43e02a8a | 26160 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
1cf3d07d | 26161 | *[\\\\\\\`\\"\\\$]*) |
43e02a8a | 26162 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
1cf3d07d SE |
26163 | ;; |
26164 | *) | |
26165 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
26166 | ;; | |
26167 | esac | |
26168 | done | |
26169 | ||
1cf3d07d SE |
26170 | ac_aux_dir='$ac_aux_dir' |
26171 | xsi_shell='$xsi_shell' | |
26172 | lt_shell_append='$lt_shell_append' | |
26173 | ||
26174 | # See if we are running on zsh, and set the options which allow our | |
26175 | # commands through without removal of \ escapes INIT. | |
26176 | if test -n "\${ZSH_VERSION+set}" ; then | |
26177 | setopt NO_GLOB_SUBST | |
26178 | fi | |
26179 | ||
26180 | ||
26181 | PACKAGE='$PACKAGE' | |
26182 | VERSION='$VERSION' | |
26183 | TIMESTAMP='$TIMESTAMP' | |
26184 | RM='$RM' | |
26185 | ofile='$ofile' | |
26186 | ||
26187 | ||
26188 | ||
26189 | ||
26190 | ||
26191 | ||
26192 | ||
1cf3d07d SE |
26193 | |
26194 | _ACEOF | |
26195 | ||
5213506e | 26196 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1cf3d07d | 26197 | |
5213506e | 26198 | # Handling of arguments. |
1cf3d07d SE |
26199 | for ac_config_target in $ac_config_targets |
26200 | do | |
5213506e RW |
26201 | case $ac_config_target in |
26202 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
26203 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
26204 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; | |
26205 | "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;; | |
26206 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
26207 | "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;; | |
26208 | "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;; | |
26209 | "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;; | |
26210 | "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;; | |
26211 | "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;; | |
26212 | "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;; | |
26213 | "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;; | |
26214 | "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;; | |
26215 | "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;; | |
26216 | "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;; | |
26217 | "gnu/java/security/jce/prng/natVMSecureRandom.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" ;; | |
26218 | "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;; | |
26219 | "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;; | |
26220 | "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;; | |
26221 | "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;; | |
26222 | "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;; | |
26223 | "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;; | |
26224 | "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;; | |
26225 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
26226 | "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;; | |
26227 | "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;; | |
26228 | "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;; | |
26229 | "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;; | |
26230 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
26231 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
26232 | "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;; | |
26233 | "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;; | |
26234 | "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;; | |
26235 | "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;; | |
26236 | "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;; | |
26237 | "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;; | |
26238 | ||
26239 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
1cf3d07d SE |
26240 | esac |
26241 | done | |
26242 | ||
5213506e | 26243 | |
1cf3d07d SE |
26244 | # If the user did not use the arguments to specify the items to instantiate, |
26245 | # then the envvar interface is used. Set only those that are not. | |
26246 | # We use the long form for the default assignment because of an extremely | |
26247 | # bizarre bug on SunOS 4.1.3. | |
26248 | if $ac_need_defaults; then | |
26249 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
26250 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
26251 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
26252 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
26253 | fi | |
26254 | ||
26255 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 26256 | # simply because there is no reason against having it here, and in addition, |
1cf3d07d | 26257 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
26258 | # Hook for its removal unless debugging. |
26259 | # Note that there is a small window in which the directory will not be cleaned: | |
26260 | # after its creation but before its name has been assigned to `$tmp'. | |
1cf3d07d SE |
26261 | $debug || |
26262 | { | |
5213506e RW |
26263 | tmp= |
26264 | trap 'exit_status=$? | |
26265 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
26266 | ' 0 | |
26267 | trap 'as_fn_exit 1' 1 2 13 15 | |
26268 | } | |
26269 | # Create a (secure) tmp directory for tmp files. | |
26270 | ||
26271 | { | |
26272 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
26273 | test -n "$tmp" && test -d "$tmp" | |
26274 | } || | |
26275 | { | |
26276 | tmp=./conf$$-$RANDOM | |
26277 | (umask 077 && mkdir "$tmp") | |
26278 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
26279 | ||
26280 | # Set up the scripts for CONFIG_FILES section. | |
26281 | # No need to generate them if there are no CONFIG_FILES. | |
26282 | # This happens for instance with `./config.status config.h'. | |
26283 | if test -n "$CONFIG_FILES"; then | |
26284 | ||
26285 | ||
26286 | ac_cr=`echo X | tr X '\015'` | |
26287 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
26288 | # But we know of no other shell where ac_cr would be empty at this | |
26289 | # point, so we can use a bashism as a fallback. | |
26290 | if test "x$ac_cr" = x; then | |
26291 | eval ac_cr=\$\'\\r\' | |
26292 | fi | |
26293 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
26294 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
26295 | ac_cs_awk_cr='\r' | |
26296 | else | |
26297 | ac_cs_awk_cr=$ac_cr | |
26298 | fi | |
26299 | ||
26300 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
26301 | _ACEOF | |
26302 | ||
26303 | ||
26304 | { | |
26305 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
26306 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
26307 | echo "_ACEOF" | |
26308 | } >conf$$subs.sh || | |
26309 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
26310 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
26311 | ac_delim='%!_!# ' | |
26312 | for ac_last_try in false false false false false :; do | |
26313 | . ./conf$$subs.sh || | |
26314 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
26315 | ||
26316 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
26317 | if test $ac_delim_n = $ac_delim_num; then | |
26318 | break | |
26319 | elif $ac_last_try; then | |
26320 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
26321 | else | |
26322 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
26323 | fi | |
26324 | done | |
26325 | rm -f conf$$subs.sh | |
26326 | ||
26327 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26328 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
26329 | _ACEOF | |
26330 | sed -n ' | |
26331 | h | |
26332 | s/^/S["/; s/!.*/"]=/ | |
26333 | p | |
26334 | g | |
26335 | s/^[^!]*!// | |
26336 | :repl | |
26337 | t repl | |
26338 | s/'"$ac_delim"'$// | |
26339 | t delim | |
26340 | :nl | |
26341 | h | |
26342 | s/\(.\{148\}\).*/\1/ | |
26343 | t more1 | |
26344 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
26345 | p | |
26346 | n | |
26347 | b repl | |
26348 | :more1 | |
26349 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
26350 | p | |
26351 | g | |
26352 | s/.\{148\}// | |
26353 | t nl | |
26354 | :delim | |
26355 | h | |
26356 | s/\(.\{148\}\).*/\1/ | |
26357 | t more2 | |
26358 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
26359 | p | |
26360 | b | |
26361 | :more2 | |
26362 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
26363 | p | |
26364 | g | |
26365 | s/.\{148\}// | |
26366 | t delim | |
26367 | ' <conf$$subs.awk | sed ' | |
26368 | /^[^""]/{ | |
26369 | N | |
26370 | s/\n// | |
26371 | } | |
26372 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
26373 | rm -f conf$$subs.awk | |
26374 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26375 | _ACAWK | |
26376 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
26377 | for (key in S) S_is_set[key] = 1 | |
26378 | FS = "\a" | |
26379 | ||
26380 | } | |
26381 | { | |
26382 | line = $ 0 | |
26383 | nfields = split(line, field, "@") | |
26384 | substed = 0 | |
26385 | len = length(field[1]) | |
26386 | for (i = 2; i < nfields; i++) { | |
26387 | key = field[i] | |
26388 | keylen = length(key) | |
26389 | if (S_is_set[key]) { | |
26390 | value = S[key] | |
26391 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
26392 | len += length(value) + length(field[++i]) | |
26393 | substed = 1 | |
26394 | } else | |
26395 | len += 1 + keylen | |
26396 | } | |
26397 | ||
26398 | print line | |
1cf3d07d SE |
26399 | } |
26400 | ||
5213506e RW |
26401 | _ACAWK |
26402 | _ACEOF | |
26403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
26404 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
26405 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
26406 | else | |
26407 | cat | |
26408 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
26409 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
26410 | _ACEOF | |
26411 | ||
26412 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
26413 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
26414 | # trailing colons and then remove the whole line if VPATH becomes empty | |
26415 | # (actually we leave an empty line to preserve line numbers). | |
26416 | if test "x$srcdir" = x.; then | |
26417 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
26418 | s/:*\$(srcdir):*/:/ | |
26419 | s/:*\${srcdir}:*/:/ | |
26420 | s/:*@srcdir@:*/:/ | |
26421 | s/^\([^=]*=[ ]*\):*/\1/ | |
26422 | s/:*$// | |
26423 | s/^[^=]*=[ ]*$// | |
26424 | }' | |
26425 | fi | |
26426 | ||
26427 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
26428 | fi # test -n "$CONFIG_FILES" | |
26429 | ||
26430 | # Set up the scripts for CONFIG_HEADERS section. | |
26431 | # No need to generate them if there are no CONFIG_HEADERS. | |
26432 | # This happens for instance with `./config.status Makefile'. | |
26433 | if test -n "$CONFIG_HEADERS"; then | |
26434 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
26435 | BEGIN { | |
26436 | _ACEOF | |
26437 | ||
26438 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
26439 | # here-document in config.status, that substitutes the proper values into | |
26440 | # config.h.in to produce config.h. | |
26441 | ||
26442 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
26443 | # handling of long lines. | |
26444 | ac_delim='%!_!# ' | |
26445 | for ac_last_try in false false :; do | |
26446 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
26447 | if test -z "$ac_t"; then | |
26448 | break | |
26449 | elif $ac_last_try; then | |
26450 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
26451 | else | |
26452 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
26453 | fi | |
26454 | done | |
1cf3d07d | 26455 | |
5213506e RW |
26456 | # For the awk script, D is an array of macro values keyed by name, |
26457 | # likewise P contains macro parameters if any. Preserve backslash | |
26458 | # newline sequences. | |
26459 | ||
26460 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
26461 | sed -n ' | |
26462 | s/.\{148\}/&'"$ac_delim"'/g | |
26463 | t rset | |
26464 | :rset | |
26465 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
26466 | t def | |
26467 | d | |
26468 | :def | |
26469 | s/\\$// | |
26470 | t bsnl | |
26471 | s/["\\]/\\&/g | |
26472 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
26473 | D["\1"]=" \3"/p | |
26474 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
26475 | d | |
26476 | :bsnl | |
26477 | s/["\\]/\\&/g | |
26478 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
26479 | D["\1"]=" \3\\\\\\n"\\/p | |
26480 | t cont | |
26481 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
26482 | t cont | |
26483 | d | |
26484 | :cont | |
26485 | n | |
26486 | s/.\{148\}/&'"$ac_delim"'/g | |
26487 | t clear | |
26488 | :clear | |
26489 | s/\\$// | |
26490 | t bsnlc | |
26491 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
26492 | d | |
26493 | :bsnlc | |
26494 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
26495 | b cont | |
26496 | ' <confdefs.h | sed ' | |
26497 | s/'"$ac_delim"'/"\\\ | |
26498 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
26499 | ||
26500 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26501 | for (key in D) D_is_set[key] = 1 | |
26502 | FS = "\a" | |
1cf3d07d | 26503 | } |
5213506e RW |
26504 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
26505 | line = \$ 0 | |
26506 | split(line, arg, " ") | |
26507 | if (arg[1] == "#") { | |
26508 | defundef = arg[2] | |
26509 | mac1 = arg[3] | |
26510 | } else { | |
26511 | defundef = substr(arg[1], 2) | |
26512 | mac1 = arg[2] | |
26513 | } | |
26514 | split(mac1, mac2, "(") #) | |
26515 | macro = mac2[1] | |
26516 | prefix = substr(line, 1, index(line, defundef) - 1) | |
26517 | if (D_is_set[macro]) { | |
26518 | # Preserve the white space surrounding the "#". | |
26519 | print prefix "define", macro P[macro] D[macro] | |
26520 | next | |
26521 | } else { | |
26522 | # Replace #undef with comments. This is necessary, for example, | |
26523 | # in the case of _POSIX_SOURCE, which is predefined and required | |
26524 | # on some systems where configure will not decide to define it. | |
26525 | if (defundef == "undef") { | |
26526 | print "/*", prefix defundef, macro, "*/" | |
26527 | next | |
26528 | } | |
26529 | } | |
26530 | } | |
26531 | { print } | |
26532 | _ACAWK | |
1cf3d07d | 26533 | _ACEOF |
5213506e RW |
26534 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26535 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
26536 | fi # test -n "$CONFIG_HEADERS" | |
1cf3d07d | 26537 | |
1cf3d07d | 26538 | |
5213506e RW |
26539 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" |
26540 | shift | |
26541 | for ac_tag | |
26542 | do | |
26543 | case $ac_tag in | |
26544 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
26545 | esac | |
26546 | case $ac_mode$ac_tag in | |
26547 | :[FHL]*:*);; | |
26548 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
26549 | :[FH]-) ac_tag=-:-;; | |
26550 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
26551 | esac | |
26552 | ac_save_IFS=$IFS | |
26553 | IFS=: | |
26554 | set x $ac_tag | |
26555 | IFS=$ac_save_IFS | |
26556 | shift | |
26557 | ac_file=$1 | |
26558 | shift | |
ade710a5 | 26559 | |
5213506e RW |
26560 | case $ac_mode in |
26561 | :L) ac_source=$1;; | |
26562 | :[FH]) | |
26563 | ac_file_inputs= | |
26564 | for ac_f | |
26565 | do | |
26566 | case $ac_f in | |
26567 | -) ac_f="$tmp/stdin";; | |
26568 | *) # Look for the file first in the build tree, then in the source tree | |
26569 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
26570 | # because $ac_f cannot contain `:'. | |
26571 | test -f "$ac_f" || | |
26572 | case $ac_f in | |
26573 | [\\/$]*) false;; | |
26574 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
26575 | esac || | |
26576 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
26577 | esac | |
26578 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
26579 | as_fn_append ac_file_inputs " '$ac_f'" | |
26580 | done | |
1cf3d07d | 26581 | |
5213506e RW |
26582 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
26583 | # use $as_me), people would be surprised to read: | |
26584 | # /* config.h. Generated by config.status. */ | |
26585 | configure_input='Generated from '` | |
26586 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
26587 | `' by configure.' | |
26588 | if test x"$ac_file" != x-; then | |
26589 | configure_input="$ac_file. $configure_input" | |
26590 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
26591 | $as_echo "$as_me: creating $ac_file" >&6;} | |
1cf3d07d | 26592 | fi |
5213506e RW |
26593 | # Neutralize special characters interpreted by sed in replacement strings. |
26594 | case $configure_input in #( | |
26595 | *\&* | *\|* | *\\* ) | |
26596 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
26597 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
26598 | *) ac_sed_conf_input=$configure_input;; | |
26599 | esac | |
1cf3d07d | 26600 | |
5213506e RW |
26601 | case $ac_tag in |
26602 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
26603 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
26604 | esac | |
26605 | ;; | |
1cf3d07d SE |
26606 | esac |
26607 | ||
5213506e | 26608 | ac_dir=`$as_dirname -- "$ac_file" || |
1cf3d07d SE |
26609 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26610 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26611 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
26612 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
26613 | $as_echo X"$ac_file" | | |
26614 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26615 | s//\1/ | |
26616 | q | |
26617 | } | |
26618 | /^X\(\/\/\)[^/].*/{ | |
26619 | s//\1/ | |
26620 | q | |
26621 | } | |
26622 | /^X\(\/\/\)$/{ | |
26623 | s//\1/ | |
26624 | q | |
26625 | } | |
26626 | /^X\(\/\).*/{ | |
26627 | s//\1/ | |
26628 | q | |
26629 | } | |
26630 | s/.*/./; q'` | |
26631 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1cf3d07d SE |
26632 | ac_builddir=. |
26633 | ||
5213506e RW |
26634 | case "$ac_dir" in |
26635 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26636 | *) | |
26637 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
26638 | # A ".." for each directory in $ac_dir_suffix. | |
26639 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
26640 | case $ac_top_builddir_sub in | |
26641 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26642 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
26643 | esac ;; | |
26644 | esac | |
26645 | ac_abs_top_builddir=$ac_pwd | |
26646 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
26647 | # for backward compatibility: | |
26648 | ac_top_builddir=$ac_top_build_prefix | |
1cf3d07d SE |
26649 | |
26650 | case $srcdir in | |
5213506e | 26651 | .) # We are building in place. |
1cf3d07d | 26652 | ac_srcdir=. |
5213506e RW |
26653 | ac_top_srcdir=$ac_top_builddir_sub |
26654 | ac_abs_top_srcdir=$ac_pwd ;; | |
26655 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1cf3d07d | 26656 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
26657 | ac_top_srcdir=$srcdir |
26658 | ac_abs_top_srcdir=$srcdir ;; | |
26659 | *) # Relative name. | |
26660 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
26661 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
26662 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1cf3d07d | 26663 | esac |
5213506e | 26664 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1cf3d07d | 26665 | |
1cf3d07d | 26666 | |
5213506e RW |
26667 | case $ac_mode in |
26668 | :F) | |
26669 | # | |
26670 | # CONFIG_FILE | |
26671 | # | |
1cf3d07d SE |
26672 | |
26673 | case $INSTALL in | |
26674 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 26675 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
1cf3d07d | 26676 | esac |
5213506e RW |
26677 | ac_MKDIR_P=$MKDIR_P |
26678 | case $MKDIR_P in | |
26679 | [\\/$]* | ?:[\\/]* ) ;; | |
26680 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
26681 | esac | |
26682 | _ACEOF | |
1cf3d07d | 26683 | |
5213506e RW |
26684 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26685 | # If the template does not know about datarootdir, expand it. | |
26686 | # FIXME: This hack should be removed a few years after 2.60. | |
26687 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
26688 | ac_sed_dataroot=' | |
26689 | /datarootdir/ { | |
26690 | p | |
26691 | q | |
26692 | } | |
26693 | /@datadir@/p | |
26694 | /@docdir@/p | |
26695 | /@infodir@/p | |
26696 | /@localedir@/p | |
26697 | /@mandir@/p' | |
26698 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
26699 | *datarootdir*) ac_datarootdir_seen=yes;; | |
26700 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
26701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
26702 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
26703 | _ACEOF | |
26704 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26705 | ac_datarootdir_hack=' | |
26706 | s&@datadir@&$datadir&g | |
26707 | s&@docdir@&$docdir&g | |
26708 | s&@infodir@&$infodir&g | |
26709 | s&@localedir@&$localedir&g | |
26710 | s&@mandir@&$mandir&g | |
26711 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
26712 | esac | |
1cf3d07d | 26713 | _ACEOF |
5213506e RW |
26714 | |
26715 | # Neutralize VPATH when `$srcdir' = `.'. | |
26716 | # Shell code in configure.ac might set extrasub. | |
26717 | # FIXME: do we really want to maintain this feature? | |
26718 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
26719 | ac_sed_extra="$ac_vpsub | |
1cf3d07d SE |
26720 | $extrasub |
26721 | _ACEOF | |
5213506e | 26722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1cf3d07d SE |
26723 | :t |
26724 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
26725 | s|@configure_input@|$ac_sed_conf_input|;t t |
26726 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
26727 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
26728 | s&@srcdir@&$ac_srcdir&;t t | |
26729 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
26730 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
26731 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
26732 | s&@builddir@&$ac_builddir&;t t | |
26733 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
26734 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
26735 | s&@INSTALL@&$ac_INSTALL&;t t | |
26736 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
26737 | $ac_datarootdir_hack | |
26738 | " | |
26739 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
26740 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
26741 | ||
26742 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
26743 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
26744 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
26745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
26746 | which seems to be undefined. Please make sure it is defined." >&5 | |
26747 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
26748 | which seems to be undefined. Please make sure it is defined." >&2;} | |
26749 | ||
26750 | rm -f "$tmp/stdin" | |
1cf3d07d | 26751 | case $ac_file in |
5213506e RW |
26752 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
26753 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
26754 | esac \ | |
26755 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
26756 | ;; | |
26757 | :H) | |
26758 | # | |
26759 | # CONFIG_HEADER | |
26760 | # | |
1cf3d07d | 26761 | if test x"$ac_file" != x-; then |
5213506e RW |
26762 | { |
26763 | $as_echo "/* $configure_input */" \ | |
26764 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
26765 | } >"$tmp/config.h" \ | |
26766 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
26767 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
26768 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
26769 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
1cf3d07d | 26770 | else |
5213506e RW |
26771 | rm -f "$ac_file" |
26772 | mv "$tmp/config.h" "$ac_file" \ | |
26773 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
1cf3d07d SE |
26774 | fi |
26775 | else | |
5213506e RW |
26776 | $as_echo "/* $configure_input */" \ |
26777 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
26778 | || as_fn_error "could not create -" "$LINENO" 5 | |
1cf3d07d | 26779 | fi |
5213506e RW |
26780 | # Compute "$ac_file"'s index in $config_headers. |
26781 | _am_arg="$ac_file" | |
1cf3d07d SE |
26782 | _am_stamp_count=1 |
26783 | for _am_header in $config_headers :; do | |
26784 | case $_am_header in | |
5213506e | 26785 | $_am_arg | $_am_arg:* ) |
1cf3d07d SE |
26786 | break ;; |
26787 | * ) | |
26788 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
26789 | esac | |
26790 | done | |
5213506e RW |
26791 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
26792 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
26793 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
26794 | X"$_am_arg" : 'X\(//\)$' \| \ | |
26795 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
26796 | $as_echo X"$_am_arg" | | |
26797 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26798 | s//\1/ | |
26799 | q | |
26800 | } | |
26801 | /^X\(\/\/\)[^/].*/{ | |
26802 | s//\1/ | |
26803 | q | |
26804 | } | |
26805 | /^X\(\/\/\)$/{ | |
26806 | s//\1/ | |
26807 | q | |
26808 | } | |
26809 | /^X\(\/\).*/{ | |
26810 | s//\1/ | |
26811 | q | |
26812 | } | |
26813 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
26814 | ;; | |
26815 | :L) | |
26816 | # | |
26817 | # CONFIG_LINK | |
26818 | # | |
1cf3d07d | 26819 | |
5213506e RW |
26820 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
26821 | : | |
1cf3d07d | 26822 | else |
5213506e RW |
26823 | # Prefer the file from the source tree if names are identical. |
26824 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then | |
26825 | ac_source=$srcdir/$ac_source | |
26826 | fi | |
1cf3d07d | 26827 | |
5213506e RW |
26828 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
26829 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} | |
1cf3d07d | 26830 | |
5213506e RW |
26831 | if test ! -r "$ac_source"; then |
26832 | as_fn_error "$ac_source: file not found" "$LINENO" 5 | |
26833 | fi | |
26834 | rm -f "$ac_file" | |
1cf3d07d | 26835 | |
5213506e RW |
26836 | # Try a relative symlink, then a hard link, then a copy. |
26837 | case $srcdir in | |
26838 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; | |
26839 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; | |
26840 | esac | |
26841 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || | |
26842 | ln "$ac_source" "$ac_file" 2>/dev/null || | |
26843 | cp -p "$ac_source" "$ac_file" || | |
26844 | as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 | |
26845 | fi | |
26846 | ;; | |
26847 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
26848 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
26849 | ;; | |
1cf3d07d SE |
26850 | esac |
26851 | ||
ee9dd372 | 26852 | |
5213506e RW |
26853 | case $ac_file$ac_mode in |
26854 | "default-1":C) | |
1cf3d07d SE |
26855 | # Only add multilib support code if we just rebuilt the top-level |
26856 | # Makefile. | |
26857 | case " $CONFIG_FILES " in | |
26858 | *" Makefile "*) | |
26859 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
26860 | ;; | |
26861 | esac ;; | |
5213506e RW |
26862 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
26863 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
26864 | # are listed without --file. Let's play safe and only enable the eval | |
26865 | # if we detect the quoting. | |
26866 | case $CONFIG_FILES in | |
26867 | *\'*) eval set x "$CONFIG_FILES" ;; | |
26868 | *) set x $CONFIG_FILES ;; | |
26869 | esac | |
26870 | shift | |
26871 | for mf | |
26872 | do | |
26873 | # Strip MF so we end up with the name of the file. | |
26874 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
26875 | # Check whether this is an Automake generated Makefile or not. | |
26876 | # We used to match only the files named `Makefile.in', but | |
26877 | # some people rename them; so instead we look at the file content. | |
26878 | # Grep'ing the first line is not enough: some people post-process | |
26879 | # each Makefile.in and add a new line on top of each file to say so. | |
26880 | # Grep'ing the whole file is not good either: AIX grep has a line | |
26881 | # limit of 2048, but all sed's we know have understand at least 4000. | |
26882 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
26883 | dirpart=`$as_dirname -- "$mf" || | |
1cf3d07d SE |
26884 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26885 | X"$mf" : 'X\(//\)[^/]' \| \ | |
26886 | X"$mf" : 'X\(//\)$' \| \ | |
5213506e RW |
26887 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
26888 | $as_echo X"$mf" | | |
26889 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26890 | s//\1/ | |
26891 | q | |
26892 | } | |
26893 | /^X\(\/\/\)[^/].*/{ | |
26894 | s//\1/ | |
26895 | q | |
26896 | } | |
26897 | /^X\(\/\/\)$/{ | |
26898 | s//\1/ | |
26899 | q | |
26900 | } | |
26901 | /^X\(\/\).*/{ | |
26902 | s//\1/ | |
26903 | q | |
26904 | } | |
26905 | s/.*/./; q'` | |
26906 | else | |
26907 | continue | |
26908 | fi | |
26909 | # Extract the definition of DEPDIR, am__include, and am__quote | |
26910 | # from the Makefile without running `make'. | |
26911 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
26912 | test -z "$DEPDIR" && continue | |
26913 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
26914 | test -z "am__include" && continue | |
26915 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
26916 | # When using ansi2knr, U may be empty or an underscore; expand it | |
26917 | U=`sed -n 's/^U = //p' < "$mf"` | |
26918 | # Find all dependency output files, they are included files with | |
26919 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
26920 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
26921 | # expansion. | |
26922 | for file in `sed -n " | |
26923 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
26924 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
26925 | # Make sure the directory exists. | |
26926 | test -f "$dirpart/$file" && continue | |
26927 | fdir=`$as_dirname -- "$file" || | |
1cf3d07d SE |
26928 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26929 | X"$file" : 'X\(//\)[^/]' \| \ | |
26930 | X"$file" : 'X\(//\)$' \| \ | |
5213506e RW |
26931 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
26932 | $as_echo X"$file" | | |
26933 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
26934 | s//\1/ | |
26935 | q | |
26936 | } | |
26937 | /^X\(\/\/\)[^/].*/{ | |
26938 | s//\1/ | |
26939 | q | |
26940 | } | |
26941 | /^X\(\/\/\)$/{ | |
26942 | s//\1/ | |
26943 | q | |
26944 | } | |
26945 | /^X\(\/\).*/{ | |
26946 | s//\1/ | |
26947 | q | |
26948 | } | |
26949 | s/.*/./; q'` | |
26950 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
26951 | # echo "creating $dirpart/$file" | |
26952 | echo '# dummy' > "$dirpart/$file" | |
ed698112 | 26953 | done |
1cf3d07d | 26954 | done |
5213506e | 26955 | } |
1cf3d07d | 26956 | ;; |
5213506e | 26957 | "libtool":C) |
1cf3d07d SE |
26958 | |
26959 | # See if we are running on zsh, and set the options which allow our | |
26960 | # commands through without removal of \ escapes. | |
26961 | if test -n "${ZSH_VERSION+set}" ; then | |
26962 | setopt NO_GLOB_SUBST | |
26963 | fi | |
26964 | ||
26965 | cfgfile="${ofile}T" | |
26966 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
26967 | $RM "$cfgfile" | |
26968 | ||
26969 | cat <<_LT_EOF >> "$cfgfile" | |
26970 | #! $SHELL | |
26971 | ||
26972 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
0da7a284 | 26973 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
26974 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
26975 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
26976 | # | |
0da7a284 | 26977 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
43e02a8a | 26978 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
0da7a284 | 26979 | # Written by Gordon Matzigkeit, 1996 |
1cf3d07d | 26980 | # |
0da7a284 | 26981 | # This file is part of GNU Libtool. |
1cf3d07d | 26982 | # |
0da7a284 PG |
26983 | # GNU Libtool is free software; you can redistribute it and/or |
26984 | # modify it under the terms of the GNU General Public License as | |
26985 | # published by the Free Software Foundation; either version 2 of | |
26986 | # the License, or (at your option) any later version. | |
1cf3d07d | 26987 | # |
0da7a284 PG |
26988 | # As a special exception to the GNU General Public License, |
26989 | # if you distribute this file as part of a program or library that | |
26990 | # is built using GNU Libtool, you may include this file under the | |
26991 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 26992 | # |
0da7a284 PG |
26993 | # GNU Libtool is distributed in the hope that it will be useful, |
26994 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
26995 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26996 | # GNU General Public License for more details. | |
1cf3d07d | 26997 | # |
0da7a284 PG |
26998 | # You should have received a copy of the GNU General Public License |
26999 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
27000 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
27001 | # obtained by writing to the Free Software Foundation, Inc., | |
27002 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
27003 | |
27004 | ||
27005 | # The names of the tagged configurations supported by this script. | |
27006 | available_tags="CXX GCJ " | |
27007 | ||
27008 | # ### BEGIN LIBTOOL CONFIG | |
27009 | ||
27010 | # Which release of libtool.m4 was used? | |
27011 | macro_version=$macro_version | |
27012 | macro_revision=$macro_revision | |
27013 | ||
27014 | # Whether or not to build shared libraries. | |
27015 | build_libtool_libs=$enable_shared | |
27016 | ||
27017 | # Whether or not to build static libraries. | |
27018 | build_old_libs=$enable_static | |
27019 | ||
27020 | # What type of objects to build. | |
27021 | pic_mode=$pic_mode | |
27022 | ||
27023 | # Whether or not to optimize for fast installation. | |
27024 | fast_install=$enable_fast_install | |
27025 | ||
43e02a8a RW |
27026 | # Shell to use when invoking shell scripts. |
27027 | SHELL=$lt_SHELL | |
27028 | ||
27029 | # An echo program that protects backslashes. | |
27030 | ECHO=$lt_ECHO | |
27031 | ||
1cf3d07d SE |
27032 | # The host system. |
27033 | host_alias=$host_alias | |
27034 | host=$host | |
27035 | host_os=$host_os | |
27036 | ||
27037 | # The build system. | |
27038 | build_alias=$build_alias | |
27039 | build=$build | |
27040 | build_os=$build_os | |
27041 | ||
27042 | # A sed program that does not truncate output. | |
27043 | SED=$lt_SED | |
27044 | ||
27045 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
27046 | Xsed="\$SED -e 1s/^X//" | |
27047 | ||
27048 | # A grep program that handles long lines. | |
27049 | GREP=$lt_GREP | |
27050 | ||
27051 | # An ERE matcher. | |
27052 | EGREP=$lt_EGREP | |
27053 | ||
27054 | # A literal string matcher. | |
27055 | FGREP=$lt_FGREP | |
27056 | ||
27057 | # A BSD- or MS-compatible name lister. | |
27058 | NM=$lt_NM | |
27059 | ||
27060 | # Whether we need soft or hard links. | |
27061 | LN_S=$lt_LN_S | |
27062 | ||
27063 | # What is the maximum length of a command? | |
27064 | max_cmd_len=$max_cmd_len | |
27065 | ||
27066 | # Object file suffix (normally "o"). | |
27067 | objext=$ac_objext | |
27068 | ||
27069 | # Executable file suffix (normally ""). | |
27070 | exeext=$exeext | |
27071 | ||
27072 | # whether the shell understands "unset". | |
27073 | lt_unset=$lt_unset | |
27074 | ||
27075 | # turn spaces into newlines. | |
27076 | SP2NL=$lt_lt_SP2NL | |
27077 | ||
27078 | # turn newlines into spaces. | |
27079 | NL2SP=$lt_lt_NL2SP | |
27080 | ||
0da7a284 PG |
27081 | # An object symbol dumper. |
27082 | OBJDUMP=$lt_OBJDUMP | |
27083 | ||
1cf3d07d SE |
27084 | # Method to check whether dependent libraries are shared objects. |
27085 | deplibs_check_method=$lt_deplibs_check_method | |
27086 | ||
27087 | # Command to use when deplibs_check_method == "file_magic". | |
27088 | file_magic_cmd=$lt_file_magic_cmd | |
27089 | ||
27090 | # The archiver. | |
27091 | AR=$lt_AR | |
27092 | AR_FLAGS=$lt_AR_FLAGS | |
27093 | ||
27094 | # A symbol stripping program. | |
27095 | STRIP=$lt_STRIP | |
27096 | ||
27097 | # Commands used to install an old-style archive. | |
27098 | RANLIB=$lt_RANLIB | |
27099 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
27100 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
27101 | ||
43e02a8a RW |
27102 | # Whether to use a lock for old archive extraction. |
27103 | lock_old_archive_extraction=$lock_old_archive_extraction | |
27104 | ||
1cf3d07d SE |
27105 | # A C compiler. |
27106 | LTCC=$lt_CC | |
27107 | ||
27108 | # LTCC compiler flags. | |
27109 | LTCFLAGS=$lt_CFLAGS | |
27110 | ||
27111 | # Take the output of nm and produce a listing of raw symbols and C names. | |
27112 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
27113 | ||
27114 | # Transform the output of nm in a proper C declaration. | |
27115 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
27116 | ||
27117 | # Transform the output of nm in a C name address pair. | |
27118 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
27119 | ||
0da7a284 PG |
27120 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
27121 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
27122 | ||
1cf3d07d SE |
27123 | # The name of the directory that contains temporary libtool files. |
27124 | objdir=$objdir | |
27125 | ||
1cf3d07d SE |
27126 | # Used to examine libraries when file_magic_cmd begins with "file". |
27127 | MAGIC_CMD=$MAGIC_CMD | |
27128 | ||
27129 | # Must we lock files when doing compilation? | |
27130 | need_locks=$lt_need_locks | |
27131 | ||
0da7a284 PG |
27132 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
27133 | DSYMUTIL=$lt_DSYMUTIL | |
27134 | ||
27135 | # Tool to change global to local symbols on Mac OS X. | |
27136 | NMEDIT=$lt_NMEDIT | |
27137 | ||
27138 | # Tool to manipulate fat objects and archives on Mac OS X. | |
27139 | LIPO=$lt_LIPO | |
27140 | ||
27141 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
27142 | OTOOL=$lt_OTOOL | |
27143 | ||
27144 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
27145 | OTOOL64=$lt_OTOOL64 | |
27146 | ||
1cf3d07d SE |
27147 | # Old archive suffix (normally "a"). |
27148 | libext=$libext | |
27149 | ||
27150 | # Shared library suffix (normally ".so"). | |
27151 | shrext_cmds=$lt_shrext_cmds | |
27152 | ||
27153 | # The commands to extract the exported symbol list from a shared archive. | |
27154 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
27155 | ||
27156 | # Variables whose values should be saved in libtool wrapper scripts and | |
27157 | # restored at link time. | |
27158 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
27159 | ||
27160 | # Do we need the "lib" prefix for modules? | |
27161 | need_lib_prefix=$need_lib_prefix | |
27162 | ||
27163 | # Do we need a version for libraries? | |
27164 | need_version=$need_version | |
27165 | ||
27166 | # Library versioning type. | |
27167 | version_type=$version_type | |
27168 | ||
27169 | # Shared library runtime path variable. | |
27170 | runpath_var=$runpath_var | |
27171 | ||
27172 | # Shared library path variable. | |
27173 | shlibpath_var=$shlibpath_var | |
27174 | ||
27175 | # Is shlibpath searched before the hard-coded library search path? | |
27176 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
27177 | ||
27178 | # Format of library name prefix. | |
27179 | libname_spec=$lt_libname_spec | |
27180 | ||
27181 | # List of archive names. First name is the real one, the rest are links. | |
27182 | # The last name is the one that the linker finds with -lNAME | |
27183 | library_names_spec=$lt_library_names_spec | |
27184 | ||
27185 | # The coded name of the library, if different from the real name. | |
27186 | soname_spec=$lt_soname_spec | |
27187 | ||
43e02a8a RW |
27188 | # Permission mode override for installation of shared libraries. |
27189 | install_override_mode=$lt_install_override_mode | |
27190 | ||
1cf3d07d SE |
27191 | # Command to use after installation of a shared archive. |
27192 | postinstall_cmds=$lt_postinstall_cmds | |
27193 | ||
27194 | # Command to use after uninstallation of a shared archive. | |
27195 | postuninstall_cmds=$lt_postuninstall_cmds | |
27196 | ||
27197 | # Commands used to finish a libtool library installation in a directory. | |
27198 | finish_cmds=$lt_finish_cmds | |
27199 | ||
27200 | # As "finish_cmds", except a single script fragment to be evaled but | |
27201 | # not shown. | |
27202 | finish_eval=$lt_finish_eval | |
27203 | ||
27204 | # Whether we should hardcode library paths into libraries. | |
27205 | hardcode_into_libs=$hardcode_into_libs | |
27206 | ||
27207 | # Compile-time system search path for libraries. | |
27208 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
27209 | ||
27210 | # Run-time system search path for libraries. | |
27211 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
27212 | ||
27213 | # Whether dlopen is supported. | |
27214 | dlopen_support=$enable_dlopen | |
27215 | ||
27216 | # Whether dlopen of programs is supported. | |
27217 | dlopen_self=$enable_dlopen_self | |
27218 | ||
27219 | # Whether dlopen of statically linked programs is supported. | |
27220 | dlopen_self_static=$enable_dlopen_self_static | |
27221 | ||
27222 | # Commands to strip libraries. | |
27223 | old_striplib=$lt_old_striplib | |
27224 | striplib=$lt_striplib | |
27225 | ||
27226 | ||
27227 | # The linker used to build libraries. | |
27228 | LD=$lt_LD | |
27229 | ||
43e02a8a RW |
27230 | # How to create reloadable object files. |
27231 | reload_flag=$lt_reload_flag | |
27232 | reload_cmds=$lt_reload_cmds | |
27233 | ||
1cf3d07d SE |
27234 | # Commands used to build an old-style archive. |
27235 | old_archive_cmds=$lt_old_archive_cmds | |
27236 | ||
27237 | # A language specific compiler. | |
27238 | CC=$lt_compiler | |
27239 | ||
27240 | # Is the compiler the GNU compiler? | |
27241 | with_gcc=$GCC | |
27242 | ||
27243 | # Compiler flag to turn off builtin functions. | |
27244 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
27245 | ||
27246 | # How to pass a linker flag through the compiler. | |
27247 | wl=$lt_lt_prog_compiler_wl | |
27248 | ||
27249 | # Additional compiler flags for building library objects. | |
27250 | pic_flag=$lt_lt_prog_compiler_pic | |
27251 | ||
27252 | # Compiler flag to prevent dynamic linking. | |
27253 | link_static_flag=$lt_lt_prog_compiler_static | |
27254 | ||
27255 | # Does compiler simultaneously support -c and -o options? | |
27256 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
27257 | ||
27258 | # Whether or not to add -lc for building shared libraries. | |
27259 | build_libtool_need_lc=$archive_cmds_need_lc | |
27260 | ||
27261 | # Whether or not to disallow shared libs when runtime libs are static. | |
27262 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
27263 | ||
27264 | # Compiler flag to allow reflexive dlopens. | |
27265 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
27266 | ||
27267 | # Compiler flag to generate shared objects directly from archives. | |
27268 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
27269 | ||
27270 | # Whether the compiler copes with passing no objects directly. | |
27271 | compiler_needs_object=$lt_compiler_needs_object | |
27272 | ||
27273 | # Create an old-style archive from a shared archive. | |
27274 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
27275 | ||
27276 | # Create a temporary old-style archive to link instead of a shared archive. | |
27277 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
27278 | ||
27279 | # Commands used to build a shared archive. | |
27280 | archive_cmds=$lt_archive_cmds | |
27281 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
27282 | ||
27283 | # Commands used to build a loadable module if different from building | |
27284 | # a shared archive. | |
27285 | module_cmds=$lt_module_cmds | |
27286 | module_expsym_cmds=$lt_module_expsym_cmds | |
27287 | ||
27288 | # Whether we are building with GNU ld or not. | |
27289 | with_gnu_ld=$lt_with_gnu_ld | |
27290 | ||
27291 | # Flag that allows shared libraries with undefined symbols to be built. | |
27292 | allow_undefined_flag=$lt_allow_undefined_flag | |
27293 | ||
27294 | # Flag that enforces no undefined symbols. | |
27295 | no_undefined_flag=$lt_no_undefined_flag | |
27296 | ||
27297 | # Flag to hardcode \$libdir into a binary during linking. | |
27298 | # This must work even if \$libdir does not exist | |
27299 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
27300 | ||
27301 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
27302 | # during linking. This must work even if \$libdir does not exist. | |
27303 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
27304 | ||
27305 | # Whether we need a single "-rpath" flag with a separated argument. | |
27306 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
27307 | ||
27308 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
27309 | # DIR into the resulting binary. | |
27310 | hardcode_direct=$hardcode_direct | |
27311 | ||
27312 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
27313 | # DIR into the resulting binary and the resulting library dependency is | |
27314 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
27315 | # library is relocated. | |
27316 | hardcode_direct_absolute=$hardcode_direct_absolute | |
27317 | ||
27318 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
27319 | # into the resulting binary. | |
27320 | hardcode_minus_L=$hardcode_minus_L | |
27321 | ||
27322 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
27323 | # into the resulting binary. | |
27324 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
27325 | ||
27326 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
27327 | # into the library and all subsequent libraries and executables linked | |
27328 | # against it. | |
27329 | hardcode_automatic=$hardcode_automatic | |
27330 | ||
27331 | # Set to yes if linker adds runtime paths of dependent libraries | |
27332 | # to runtime path list. | |
27333 | inherit_rpath=$inherit_rpath | |
27334 | ||
27335 | # Whether libtool must link a program against all its dependency libraries. | |
27336 | link_all_deplibs=$link_all_deplibs | |
27337 | ||
27338 | # Fix the shell variable \$srcfile for the compiler. | |
27339 | fix_srcfile_path=$lt_fix_srcfile_path | |
27340 | ||
27341 | # Set to "yes" if exported symbols are required. | |
27342 | always_export_symbols=$always_export_symbols | |
27343 | ||
27344 | # The commands to list exported symbols. | |
27345 | export_symbols_cmds=$lt_export_symbols_cmds | |
27346 | ||
27347 | # Symbols that should not be listed in the preloaded symbols. | |
27348 | exclude_expsyms=$lt_exclude_expsyms | |
27349 | ||
27350 | # Symbols that must always be exported. | |
27351 | include_expsyms=$lt_include_expsyms | |
27352 | ||
27353 | # Commands necessary for linking programs (against libraries) with templates. | |
27354 | prelink_cmds=$lt_prelink_cmds | |
27355 | ||
27356 | # Specify filename containing input files. | |
27357 | file_list_spec=$lt_file_list_spec | |
27358 | ||
27359 | # How to hardcode a shared library path into an executable. | |
27360 | hardcode_action=$hardcode_action | |
27361 | ||
0da7a284 PG |
27362 | # The directories searched by this compiler when creating a shared library. |
27363 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
27364 | ||
1cf3d07d SE |
27365 | # Dependencies to place before and after the objects being linked to |
27366 | # create a shared library. | |
27367 | predep_objects=$lt_predep_objects | |
27368 | postdep_objects=$lt_postdep_objects | |
27369 | predeps=$lt_predeps | |
27370 | postdeps=$lt_postdeps | |
27371 | ||
27372 | # The library search path used internally by the compiler when linking | |
27373 | # a shared library. | |
27374 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
27375 | ||
27376 | # ### END LIBTOOL CONFIG | |
27377 | ||
27378 | _LT_EOF | |
27379 | ||
27380 | case $host_os in | |
27381 | aix3*) | |
27382 | cat <<\_LT_EOF >> "$cfgfile" | |
27383 | # AIX sometimes has problems with the GCC collect2 program. For some | |
27384 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
27385 | # vanish in a puff of smoke. | |
27386 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
27387 | COLLECT_NAMES= | |
27388 | export COLLECT_NAMES | |
27389 | fi | |
27390 | _LT_EOF | |
27391 | ;; | |
27392 | esac | |
27393 | ||
27394 | ||
27395 | ltmain="$ac_aux_dir/ltmain.sh" | |
27396 | ||
27397 | ||
27398 | # We use sed instead of cat because bash on DJGPP gets confused if | |
27399 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
27400 | # text mode, it properly converts lines to CR/LF. This bash problem | |
27401 | # is reportedly fixed, but why not run on old versions too? | |
27402 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
27403 | || (rm -f "$cfgfile"; exit 1) | |
27404 | ||
27405 | case $xsi_shell in | |
27406 | yes) | |
27407 | cat << \_LT_EOF >> "$cfgfile" | |
0da7a284 | 27408 | |
1cf3d07d SE |
27409 | # func_dirname file append nondir_replacement |
27410 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
27411 | # otherwise set result to NONDIR_REPLACEMENT. | |
27412 | func_dirname () | |
27413 | { | |
27414 | case ${1} in | |
27415 | */*) func_dirname_result="${1%/*}${2}" ;; | |
27416 | * ) func_dirname_result="${3}" ;; | |
27417 | esac | |
27418 | } | |
27419 | ||
27420 | # func_basename file | |
27421 | func_basename () | |
27422 | { | |
27423 | func_basename_result="${1##*/}" | |
27424 | } | |
27425 | ||
0da7a284 PG |
27426 | # func_dirname_and_basename file append nondir_replacement |
27427 | # perform func_basename and func_dirname in a single function | |
27428 | # call: | |
27429 | # dirname: Compute the dirname of FILE. If nonempty, | |
27430 | # add APPEND to the result, otherwise set result | |
27431 | # to NONDIR_REPLACEMENT. | |
27432 | # value returned in "$func_dirname_result" | |
27433 | # basename: Compute filename of FILE. | |
27434 | # value retuned in "$func_basename_result" | |
27435 | # Implementation must be kept synchronized with func_dirname | |
27436 | # and func_basename. For efficiency, we do not delegate to | |
27437 | # those functions but instead duplicate the functionality here. | |
27438 | func_dirname_and_basename () | |
27439 | { | |
27440 | case ${1} in | |
27441 | */*) func_dirname_result="${1%/*}${2}" ;; | |
27442 | * ) func_dirname_result="${3}" ;; | |
27443 | esac | |
27444 | func_basename_result="${1##*/}" | |
27445 | } | |
27446 | ||
1cf3d07d SE |
27447 | # func_stripname prefix suffix name |
27448 | # strip PREFIX and SUFFIX off of NAME. | |
27449 | # PREFIX and SUFFIX must not contain globbing or regex special | |
27450 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
27451 | # dot (in which case that matches only a dot). | |
27452 | func_stripname () | |
27453 | { | |
27454 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
27455 | # positional parameters, so assign one to ordinary parameter first. | |
27456 | func_stripname_result=${3} | |
27457 | func_stripname_result=${func_stripname_result#"${1}"} | |
27458 | func_stripname_result=${func_stripname_result%"${2}"} | |
27459 | } | |
27460 | ||
27461 | # func_opt_split | |
27462 | func_opt_split () | |
27463 | { | |
27464 | func_opt_split_opt=${1%%=*} | |
27465 | func_opt_split_arg=${1#*=} | |
27466 | } | |
27467 | ||
27468 | # func_lo2o object | |
27469 | func_lo2o () | |
27470 | { | |
27471 | case ${1} in | |
27472 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
27473 | *) func_lo2o_result=${1} ;; | |
27474 | esac | |
27475 | } | |
0da7a284 PG |
27476 | |
27477 | # func_xform libobj-or-source | |
27478 | func_xform () | |
27479 | { | |
27480 | func_xform_result=${1%.*}.lo | |
27481 | } | |
27482 | ||
27483 | # func_arith arithmetic-term... | |
27484 | func_arith () | |
27485 | { | |
27486 | func_arith_result=$(( $* )) | |
27487 | } | |
27488 | ||
27489 | # func_len string | |
27490 | # STRING may not start with a hyphen. | |
27491 | func_len () | |
27492 | { | |
27493 | func_len_result=${#1} | |
27494 | } | |
27495 | ||
1cf3d07d SE |
27496 | _LT_EOF |
27497 | ;; | |
27498 | *) # Bourne compatible functions. | |
27499 | cat << \_LT_EOF >> "$cfgfile" | |
0da7a284 | 27500 | |
1cf3d07d SE |
27501 | # func_dirname file append nondir_replacement |
27502 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
27503 | # otherwise set result to NONDIR_REPLACEMENT. | |
27504 | func_dirname () | |
27505 | { | |
27506 | # Extract subdirectory from the argument. | |
43e02a8a | 27507 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
1cf3d07d SE |
27508 | if test "X$func_dirname_result" = "X${1}"; then |
27509 | func_dirname_result="${3}" | |
27510 | else | |
27511 | func_dirname_result="$func_dirname_result${2}" | |
27512 | fi | |
27513 | } | |
27514 | ||
27515 | # func_basename file | |
27516 | func_basename () | |
27517 | { | |
43e02a8a | 27518 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
1cf3d07d SE |
27519 | } |
27520 | ||
0da7a284 | 27521 | |
1cf3d07d SE |
27522 | # func_stripname prefix suffix name |
27523 | # strip PREFIX and SUFFIX off of NAME. | |
27524 | # PREFIX and SUFFIX must not contain globbing or regex special | |
27525 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
27526 | # dot (in which case that matches only a dot). | |
27527 | # func_strip_suffix prefix name | |
27528 | func_stripname () | |
27529 | { | |
27530 | case ${2} in | |
43e02a8a RW |
27531 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
27532 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
1cf3d07d SE |
27533 | esac |
27534 | } | |
27535 | ||
27536 | # sed scripts: | |
27537 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
27538 | my_sed_long_arg='1s/^-[^=]*=//' | |
ed698112 | 27539 | |
1cf3d07d SE |
27540 | # func_opt_split |
27541 | func_opt_split () | |
27542 | { | |
43e02a8a RW |
27543 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
27544 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
1cf3d07d | 27545 | } |
ee9dd372 | 27546 | |
1cf3d07d SE |
27547 | # func_lo2o object |
27548 | func_lo2o () | |
27549 | { | |
43e02a8a | 27550 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
1cf3d07d | 27551 | } |
0da7a284 PG |
27552 | |
27553 | # func_xform libobj-or-source | |
27554 | func_xform () | |
27555 | { | |
43e02a8a | 27556 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
0da7a284 PG |
27557 | } |
27558 | ||
27559 | # func_arith arithmetic-term... | |
27560 | func_arith () | |
27561 | { | |
27562 | func_arith_result=`expr "$@"` | |
27563 | } | |
27564 | ||
27565 | # func_len string | |
27566 | # STRING may not start with a hyphen. | |
27567 | func_len () | |
27568 | { | |
27569 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
27570 | } | |
27571 | ||
1cf3d07d | 27572 | _LT_EOF |
ed698112 | 27573 | esac |
ee9dd372 | 27574 | |
1cf3d07d SE |
27575 | case $lt_shell_append in |
27576 | yes) | |
27577 | cat << \_LT_EOF >> "$cfgfile" | |
ee9dd372 | 27578 | |
1cf3d07d SE |
27579 | # func_append var value |
27580 | # Append VALUE to the end of shell variable VAR. | |
27581 | func_append () | |
27582 | { | |
27583 | eval "$1+=\$2" | |
27584 | } | |
27585 | _LT_EOF | |
27586 | ;; | |
27587 | *) | |
27588 | cat << \_LT_EOF >> "$cfgfile" | |
ed698112 | 27589 | |
1cf3d07d SE |
27590 | # func_append var value |
27591 | # Append VALUE to the end of shell variable VAR. | |
27592 | func_append () | |
27593 | { | |
27594 | eval "$1=\$$1\$2" | |
27595 | } | |
0da7a284 | 27596 | |
1cf3d07d SE |
27597 | _LT_EOF |
27598 | ;; | |
ee9dd372 TT |
27599 | esac |
27600 | ||
ade710a5 | 27601 | |
1cf3d07d SE |
27602 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
27603 | || (rm -f "$cfgfile"; exit 1) | |
ade710a5 | 27604 | |
1cf3d07d SE |
27605 | mv -f "$cfgfile" "$ofile" || |
27606 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
27607 | chmod +x "$ofile" | |
ade710a5 | 27608 | |
ade710a5 | 27609 | |
1cf3d07d | 27610 | cat <<_LT_EOF >> "$ofile" |
ade710a5 | 27611 | |
1cf3d07d | 27612 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
ade710a5 | 27613 | |
1cf3d07d SE |
27614 | # The linker used to build libraries. |
27615 | LD=$lt_LD_CXX | |
ade710a5 | 27616 | |
43e02a8a RW |
27617 | # How to create reloadable object files. |
27618 | reload_flag=$lt_reload_flag_CXX | |
27619 | reload_cmds=$lt_reload_cmds_CXX | |
27620 | ||
1cf3d07d SE |
27621 | # Commands used to build an old-style archive. |
27622 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
27623 | ||
27624 | # A language specific compiler. | |
27625 | CC=$lt_compiler_CXX | |
27626 | ||
27627 | # Is the compiler the GNU compiler? | |
27628 | with_gcc=$GCC_CXX | |
27629 | ||
27630 | # Compiler flag to turn off builtin functions. | |
27631 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
27632 | ||
27633 | # How to pass a linker flag through the compiler. | |
27634 | wl=$lt_lt_prog_compiler_wl_CXX | |
27635 | ||
27636 | # Additional compiler flags for building library objects. | |
27637 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
27638 | ||
27639 | # Compiler flag to prevent dynamic linking. | |
27640 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
27641 | ||
27642 | # Does compiler simultaneously support -c and -o options? | |
27643 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
27644 | ||
27645 | # Whether or not to add -lc for building shared libraries. | |
27646 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
27647 | ||
27648 | # Whether or not to disallow shared libs when runtime libs are static. | |
27649 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
27650 | ||
27651 | # Compiler flag to allow reflexive dlopens. | |
27652 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
27653 | ||
27654 | # Compiler flag to generate shared objects directly from archives. | |
27655 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
27656 | ||
27657 | # Whether the compiler copes with passing no objects directly. | |
27658 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
27659 | ||
27660 | # Create an old-style archive from a shared archive. | |
27661 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
27662 | ||
27663 | # Create a temporary old-style archive to link instead of a shared archive. | |
27664 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
27665 | ||
27666 | # Commands used to build a shared archive. | |
27667 | archive_cmds=$lt_archive_cmds_CXX | |
27668 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
27669 | ||
27670 | # Commands used to build a loadable module if different from building | |
27671 | # a shared archive. | |
27672 | module_cmds=$lt_module_cmds_CXX | |
27673 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
27674 | ||
27675 | # Whether we are building with GNU ld or not. | |
27676 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
27677 | ||
27678 | # Flag that allows shared libraries with undefined symbols to be built. | |
27679 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
27680 | ||
27681 | # Flag that enforces no undefined symbols. | |
27682 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
27683 | ||
27684 | # Flag to hardcode \$libdir into a binary during linking. | |
27685 | # This must work even if \$libdir does not exist | |
27686 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
27687 | ||
27688 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
27689 | # during linking. This must work even if \$libdir does not exist. | |
27690 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
27691 | ||
27692 | # Whether we need a single "-rpath" flag with a separated argument. | |
27693 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
27694 | ||
27695 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
27696 | # DIR into the resulting binary. | |
27697 | hardcode_direct=$hardcode_direct_CXX | |
27698 | ||
27699 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
27700 | # DIR into the resulting binary and the resulting library dependency is | |
27701 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
27702 | # library is relocated. | |
27703 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
27704 | ||
27705 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
27706 | # into the resulting binary. | |
27707 | hardcode_minus_L=$hardcode_minus_L_CXX | |
27708 | ||
27709 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
27710 | # into the resulting binary. | |
27711 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
27712 | ||
27713 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
27714 | # into the library and all subsequent libraries and executables linked | |
27715 | # against it. | |
27716 | hardcode_automatic=$hardcode_automatic_CXX | |
27717 | ||
27718 | # Set to yes if linker adds runtime paths of dependent libraries | |
27719 | # to runtime path list. | |
27720 | inherit_rpath=$inherit_rpath_CXX | |
27721 | ||
27722 | # Whether libtool must link a program against all its dependency libraries. | |
27723 | link_all_deplibs=$link_all_deplibs_CXX | |
27724 | ||
27725 | # Fix the shell variable \$srcfile for the compiler. | |
27726 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
27727 | ||
27728 | # Set to "yes" if exported symbols are required. | |
27729 | always_export_symbols=$always_export_symbols_CXX | |
27730 | ||
27731 | # The commands to list exported symbols. | |
27732 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
27733 | ||
27734 | # Symbols that should not be listed in the preloaded symbols. | |
27735 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
27736 | ||
27737 | # Symbols that must always be exported. | |
27738 | include_expsyms=$lt_include_expsyms_CXX | |
27739 | ||
27740 | # Commands necessary for linking programs (against libraries) with templates. | |
27741 | prelink_cmds=$lt_prelink_cmds_CXX | |
27742 | ||
27743 | # Specify filename containing input files. | |
27744 | file_list_spec=$lt_file_list_spec_CXX | |
27745 | ||
27746 | # How to hardcode a shared library path into an executable. | |
27747 | hardcode_action=$hardcode_action_CXX | |
27748 | ||
0da7a284 PG |
27749 | # The directories searched by this compiler when creating a shared library. |
27750 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
27751 | ||
1cf3d07d SE |
27752 | # Dependencies to place before and after the objects being linked to |
27753 | # create a shared library. | |
27754 | predep_objects=$lt_predep_objects_CXX | |
27755 | postdep_objects=$lt_postdep_objects_CXX | |
27756 | predeps=$lt_predeps_CXX | |
27757 | postdeps=$lt_postdeps_CXX | |
27758 | ||
27759 | # The library search path used internally by the compiler when linking | |
27760 | # a shared library. | |
27761 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
27762 | ||
27763 | # ### END LIBTOOL TAG CONFIG: CXX | |
27764 | _LT_EOF | |
27765 | ||
27766 | ||
27767 | cat <<_LT_EOF >> "$ofile" | |
27768 | ||
27769 | # ### BEGIN LIBTOOL TAG CONFIG: GCJ | |
27770 | ||
27771 | # The linker used to build libraries. | |
27772 | LD=$lt_LD_GCJ | |
ade710a5 | 27773 | |
43e02a8a RW |
27774 | # How to create reloadable object files. |
27775 | reload_flag=$lt_reload_flag_GCJ | |
27776 | reload_cmds=$lt_reload_cmds_GCJ | |
27777 | ||
1cf3d07d SE |
27778 | # Commands used to build an old-style archive. |
27779 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
ade710a5 | 27780 | |
1cf3d07d SE |
27781 | # A language specific compiler. |
27782 | CC=$lt_compiler_GCJ | |
ade710a5 | 27783 | |
1cf3d07d SE |
27784 | # Is the compiler the GNU compiler? |
27785 | with_gcc=$GCC_GCJ | |
ade710a5 | 27786 | |
1cf3d07d SE |
27787 | # Compiler flag to turn off builtin functions. |
27788 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
ade710a5 | 27789 | |
1cf3d07d SE |
27790 | # How to pass a linker flag through the compiler. |
27791 | wl=$lt_lt_prog_compiler_wl_GCJ | |
ed698112 | 27792 | |
1cf3d07d SE |
27793 | # Additional compiler flags for building library objects. |
27794 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
ade710a5 | 27795 | |
1cf3d07d SE |
27796 | # Compiler flag to prevent dynamic linking. |
27797 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
ade710a5 | 27798 | |
1cf3d07d SE |
27799 | # Does compiler simultaneously support -c and -o options? |
27800 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
ee9dd372 | 27801 | |
1cf3d07d SE |
27802 | # Whether or not to add -lc for building shared libraries. |
27803 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
ade710a5 | 27804 | |
1cf3d07d SE |
27805 | # Whether or not to disallow shared libs when runtime libs are static. |
27806 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
ee9dd372 | 27807 | |
1cf3d07d SE |
27808 | # Compiler flag to allow reflexive dlopens. |
27809 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
ade710a5 | 27810 | |
1cf3d07d SE |
27811 | # Compiler flag to generate shared objects directly from archives. |
27812 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
ade710a5 | 27813 | |
1cf3d07d SE |
27814 | # Whether the compiler copes with passing no objects directly. |
27815 | compiler_needs_object=$lt_compiler_needs_object_GCJ | |
ade710a5 | 27816 | |
1cf3d07d SE |
27817 | # Create an old-style archive from a shared archive. |
27818 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
ade710a5 | 27819 | |
1cf3d07d SE |
27820 | # Create a temporary old-style archive to link instead of a shared archive. |
27821 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
27822 | ||
27823 | # Commands used to build a shared archive. | |
27824 | archive_cmds=$lt_archive_cmds_GCJ | |
27825 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
27826 | ||
27827 | # Commands used to build a loadable module if different from building | |
27828 | # a shared archive. | |
27829 | module_cmds=$lt_module_cmds_GCJ | |
27830 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
27831 | ||
27832 | # Whether we are building with GNU ld or not. | |
27833 | with_gnu_ld=$lt_with_gnu_ld_GCJ | |
27834 | ||
27835 | # Flag that allows shared libraries with undefined symbols to be built. | |
27836 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
27837 | ||
27838 | # Flag that enforces no undefined symbols. | |
27839 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
27840 | ||
27841 | # Flag to hardcode \$libdir into a binary during linking. | |
27842 | # This must work even if \$libdir does not exist | |
27843 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
27844 | ||
27845 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
27846 | # during linking. This must work even if \$libdir does not exist. | |
27847 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
27848 | ||
27849 | # Whether we need a single "-rpath" flag with a separated argument. | |
27850 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
ade710a5 | 27851 | |
1cf3d07d SE |
27852 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
27853 | # DIR into the resulting binary. | |
27854 | hardcode_direct=$hardcode_direct_GCJ | |
ade710a5 | 27855 | |
1cf3d07d SE |
27856 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
27857 | # DIR into the resulting binary and the resulting library dependency is | |
27858 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
27859 | # library is relocated. | |
27860 | hardcode_direct_absolute=$hardcode_direct_absolute_GCJ | |
ed698112 | 27861 | |
1cf3d07d SE |
27862 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
27863 | # into the resulting binary. | |
27864 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
ade710a5 | 27865 | |
1cf3d07d SE |
27866 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
27867 | # into the resulting binary. | |
27868 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
ade710a5 | 27869 | |
1cf3d07d SE |
27870 | # Set to "yes" if building a shared library automatically hardcodes DIR |
27871 | # into the library and all subsequent libraries and executables linked | |
27872 | # against it. | |
27873 | hardcode_automatic=$hardcode_automatic_GCJ | |
ade710a5 | 27874 | |
1cf3d07d SE |
27875 | # Set to yes if linker adds runtime paths of dependent libraries |
27876 | # to runtime path list. | |
27877 | inherit_rpath=$inherit_rpath_GCJ | |
ed698112 | 27878 | |
1cf3d07d SE |
27879 | # Whether libtool must link a program against all its dependency libraries. |
27880 | link_all_deplibs=$link_all_deplibs_GCJ | |
ed698112 | 27881 | |
1cf3d07d SE |
27882 | # Fix the shell variable \$srcfile for the compiler. |
27883 | fix_srcfile_path=$lt_fix_srcfile_path_GCJ | |
ade710a5 | 27884 | |
1cf3d07d SE |
27885 | # Set to "yes" if exported symbols are required. |
27886 | always_export_symbols=$always_export_symbols_GCJ | |
ade710a5 | 27887 | |
1cf3d07d SE |
27888 | # The commands to list exported symbols. |
27889 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
ade710a5 | 27890 | |
1cf3d07d SE |
27891 | # Symbols that should not be listed in the preloaded symbols. |
27892 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
27893 | ||
27894 | # Symbols that must always be exported. | |
27895 | include_expsyms=$lt_include_expsyms_GCJ | |
27896 | ||
27897 | # Commands necessary for linking programs (against libraries) with templates. | |
27898 | prelink_cmds=$lt_prelink_cmds_GCJ | |
27899 | ||
27900 | # Specify filename containing input files. | |
27901 | file_list_spec=$lt_file_list_spec_GCJ | |
27902 | ||
27903 | # How to hardcode a shared library path into an executable. | |
27904 | hardcode_action=$hardcode_action_GCJ | |
27905 | ||
0da7a284 PG |
27906 | # The directories searched by this compiler when creating a shared library. |
27907 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ | |
27908 | ||
1cf3d07d SE |
27909 | # Dependencies to place before and after the objects being linked to |
27910 | # create a shared library. | |
27911 | predep_objects=$lt_predep_objects_GCJ | |
27912 | postdep_objects=$lt_postdep_objects_GCJ | |
27913 | predeps=$lt_predeps_GCJ | |
27914 | postdeps=$lt_postdeps_GCJ | |
27915 | ||
27916 | # The library search path used internally by the compiler when linking | |
27917 | # a shared library. | |
27918 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
27919 | ||
27920 | # ### END LIBTOOL TAG CONFIG: GCJ | |
27921 | _LT_EOF | |
ade710a5 | 27922 | |
ed698112 | 27923 | ;; |
5213506e RW |
27924 | "scripts/jar":F) chmod +x scripts/jar ;; |
27925 | ||
ed698112 | 27926 | esac |
5213506e | 27927 | done # for ac_tag |
480222b5 | 27928 | |
ed698112 | 27929 | |
5213506e | 27930 | as_fn_exit 0 |
ed698112 | 27931 | _ACEOF |
ed698112 NN |
27932 | ac_clean_files=$ac_clean_files_save |
27933 | ||
5213506e RW |
27934 | test $ac_write_fail = 0 || |
27935 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
27936 | ||
ed698112 NN |
27937 | |
27938 | # configure is writing to config.log, and then calls config.status. | |
27939 | # config.status does its own redirection, appending to config.log. | |
27940 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
27941 | # by configure, so config.status won't be able to write to it; its | |
27942 | # output is simply discarded. So we exec the FD to /dev/null, | |
27943 | # effectively closing config.log, so it can be properly (re)opened and | |
27944 | # appended to by config.status. When coming back to configure, we | |
27945 | # need to make the FD available again. | |
27946 | if test "$no_create" != yes; then | |
27947 | ac_cs_success=: | |
27948 | ac_config_status_args= | |
27949 | test "$silent" = yes && | |
27950 | ac_config_status_args="$ac_config_status_args --quiet" | |
27951 | exec 5>/dev/null | |
27952 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
27953 | exec 5>>config.log | |
27954 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
27955 | # would make configure fail if this is the last instruction. | |
5213506e | 27956 | $ac_cs_success || as_fn_exit $? |
ed698112 | 27957 | fi |
ee9dd372 | 27958 | |
ed698112 | 27959 | # |
5213506e | 27960 | # CONFIG_SUBDIRS section. |
ed698112 | 27961 | # |
7af85558 TT |
27962 | if test "$no_recursion" != yes; then |
27963 | ||
5213506e RW |
27964 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
27965 | # so they do not pile up. | |
7af85558 TT |
27966 | ac_sub_configure_args= |
27967 | ac_prev= | |
7fd1de41 L |
27968 | eval "set x $ac_configure_args" |
27969 | shift | |
27970 | for ac_arg | |
27971 | do | |
7af85558 TT |
27972 | if test -n "$ac_prev"; then |
27973 | ac_prev= | |
27974 | continue | |
27975 | fi | |
ed698112 | 27976 | case $ac_arg in |
7af85558 TT |
27977 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
27978 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
27979 | ac_prev=cache_file ;; | |
27980 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
ed698112 NN |
27981 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
27982 | | --c=*) | |
27983 | ;; | |
27984 | --config-cache | -C) | |
7af85558 TT |
27985 | ;; |
27986 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
27987 | ac_prev=srcdir ;; | |
27988 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
27989 | ;; | |
ed698112 NN |
27990 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
27991 | ac_prev=prefix ;; | |
27992 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
27993 | ;; | |
5213506e RW |
27994 | --disable-option-checking) |
27995 | ;; | |
7fd1de41 L |
27996 | *) |
27997 | case $ac_arg in | |
5213506e | 27998 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fd1de41 | 27999 | esac |
5213506e | 28000 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
7af85558 TT |
28001 | esac |
28002 | done | |
28003 | ||
ed698112 NN |
28004 | # Always prepend --prefix to ensure using the same prefix |
28005 | # in subdir configurations. | |
7fd1de41 L |
28006 | ac_arg="--prefix=$prefix" |
28007 | case $ac_arg in | |
5213506e | 28008 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fd1de41 | 28009 | esac |
5213506e RW |
28010 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
28011 | ||
28012 | # Pass --silent | |
28013 | if test "$silent" = yes; then | |
28014 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
28015 | fi | |
28016 | ||
28017 | # Always prepend --disable-option-checking to silence warnings, since | |
28018 | # different subdirs can have different --enable and --with options. | |
28019 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
ed698112 | 28020 | |
ade710a5 | 28021 | ac_popdir=`pwd` |
ed698112 | 28022 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
7af85558 TT |
28023 | |
28024 | # Do not complain, so a configure script can configure whichever | |
28025 | # parts of a large source tree are present. | |
7fd1de41 | 28026 | test -d "$srcdir/$ac_dir" || continue |
7af85558 | 28027 | |
5213506e RW |
28028 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
28029 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
28030 | $as_echo "$ac_msg" >&6 | |
28031 | as_dir="$ac_dir"; as_fn_mkdir_p | |
ed698112 NN |
28032 | ac_builddir=. |
28033 | ||
5213506e RW |
28034 | case "$ac_dir" in |
28035 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28036 | *) | |
28037 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
28038 | # A ".." for each directory in $ac_dir_suffix. | |
28039 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
28040 | case $ac_top_builddir_sub in | |
28041 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
28042 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
28043 | esac ;; | |
28044 | esac | |
28045 | ac_abs_top_builddir=$ac_pwd | |
28046 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
28047 | # for backward compatibility: | |
28048 | ac_top_builddir=$ac_top_build_prefix | |
ed698112 NN |
28049 | |
28050 | case $srcdir in | |
5213506e | 28051 | .) # We are building in place. |
ed698112 | 28052 | ac_srcdir=. |
5213506e RW |
28053 | ac_top_srcdir=$ac_top_builddir_sub |
28054 | ac_abs_top_srcdir=$ac_pwd ;; | |
28055 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ed698112 | 28056 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
28057 | ac_top_srcdir=$srcdir |
28058 | ac_abs_top_srcdir=$srcdir ;; | |
28059 | *) # Relative name. | |
28060 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
28061 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
28062 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ed698112 | 28063 | esac |
5213506e | 28064 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
7af85558 | 28065 | |
7af85558 | 28066 | |
7fd1de41 | 28067 | cd "$ac_dir" |
7af85558 TT |
28068 | |
28069 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fd1de41 L |
28070 | if test -f "$ac_srcdir/configure.gnu"; then |
28071 | ac_sub_configure=$ac_srcdir/configure.gnu | |
28072 | elif test -f "$ac_srcdir/configure"; then | |
28073 | ac_sub_configure=$ac_srcdir/configure | |
28074 | elif test -f "$ac_srcdir/configure.in"; then | |
28075 | # This should be Cygnus configure. | |
28076 | ac_sub_configure=$ac_aux_dir/configure | |
7af85558 | 28077 | else |
5213506e RW |
28078 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
28079 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
7af85558 TT |
28080 | ac_sub_configure= |
28081 | fi | |
28082 | ||
28083 | # The recursion is here. | |
28084 | if test -n "$ac_sub_configure"; then | |
7af85558 | 28085 | # Make the cache file name correct relative to the subdirectory. |
ed698112 NN |
28086 | case $cache_file in |
28087 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
5213506e RW |
28088 | *) # Relative name. |
28089 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
7af85558 | 28090 | esac |
7af85558 | 28091 | |
5213506e RW |
28092 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
28093 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
7af85558 | 28094 | # The eval makes quoting arguments work. |
7fd1de41 L |
28095 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
28096 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
5213506e | 28097 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
7af85558 TT |
28098 | fi |
28099 | ||
7fd1de41 | 28100 | cd "$ac_popdir" |
7af85558 TT |
28101 | done |
28102 | fi | |
5213506e RW |
28103 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
28104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
28105 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
28106 | fi | |
7af85558 | 28107 |