]>
Commit | Line | Data |
---|---|---|
c7aa54aa DWT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
9c60689e | 3 | # Generated by GNU Autoconf 2.65 for Cycript 0.9. |
c7aa54aa DWT |
4 | # |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
9c60689e | 7 | # |
c7aa54aa | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9c60689e DWT |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
10 | # Inc. | |
11 | # | |
c7aa54aa DWT |
12 | # |
13 | # This configure script is free software; the Free Software Foundation | |
14 | # gives unlimited permission to copy, distribute and modify it. | |
15 | ## -------------------- ## | |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
94 | case $0 in #(( | |
95 | *[\\/]* ) as_myself=$0 ;; | |
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
97 | for as_dir in $PATH | |
98 | do | |
99 | IFS=$as_save_IFS | |
100 | test -z "$as_dir" && as_dir=. | |
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
102 | done | |
103 | IFS=$as_save_IFS | |
104 | ||
105 | ;; | |
106 | esac | |
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
108 | # in which case we are not to be found in the path. | |
109 | if test "x$as_myself" = x; then | |
110 | as_myself=$0 | |
111 | fi | |
112 | if test ! -f "$as_myself"; then | |
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
114 | exit 1 | |
115 | fi | |
116 | ||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | |
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
119 | # suppresses any "Segmentation fault" message there. '((' could | |
120 | # trigger a bug in pdksh 5.2.14. | |
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
122 | do eval test x\${$as_var+set} = xset \ | |
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
124 | done | |
125 | PS1='$ ' | |
126 | PS2='> ' | |
127 | PS4='+ ' | |
128 | ||
129 | # NLS nuisances. | |
130 | LC_ALL=C | |
131 | export LC_ALL | |
132 | LANGUAGE=C | |
133 | export LANGUAGE | |
134 | ||
135 | # CDPATH. | |
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
137 | ||
138 | if test "x$CONFIG_SHELL" = x; then | |
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
140 | emulate sh | |
141 | NULLCMD=: | |
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
143 | # is contrary to our usage. Disable this feature. | |
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
145 | setopt NO_GLOB_SUBST | |
146 | else | |
147 | case \`(set -o) 2>/dev/null\` in #( | |
148 | *posix*) : | |
149 | set -o posix ;; #( | |
150 | *) : | |
151 | ;; | |
152 | esac | |
153 | fi | |
154 | " | |
155 | as_required="as_fn_return () { (exit \$1); } | |
156 | as_fn_success () { as_fn_return 0; } | |
157 | as_fn_failure () { as_fn_return 1; } | |
158 | as_fn_ret_success () { return 0; } | |
159 | as_fn_ret_failure () { return 1; } | |
160 | ||
161 | exitcode=0 | |
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
167 | ||
168 | else | |
169 | exitcode=1; echo positional parameters were not saved. | |
170 | fi | |
171 | test x\$exitcode = x0 || exit 1" | |
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
35fa52c0 DWT |
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
176 | test \$(( 1 + 1 )) = 2 || exit 1" | |
c7aa54aa DWT |
177 | if (eval "$as_required") 2>/dev/null; then : |
178 | as_have_required=yes | |
179 | else | |
180 | as_have_required=no | |
181 | fi | |
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
183 | ||
184 | else | |
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
186 | as_found=false | |
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
188 | do | |
189 | IFS=$as_save_IFS | |
190 | test -z "$as_dir" && as_dir=. | |
191 | as_found=: | |
192 | case $as_dir in #( | |
193 | /*) | |
194 | for as_base in sh bash ksh sh5; do | |
195 | # Try only shells that exist, to save several forks. | |
196 | as_shell=$as_dir/$as_base | |
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | CONFIG_SHELL=$as_shell as_have_required=yes | |
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
201 | break 2 | |
202 | fi | |
203 | fi | |
204 | done;; | |
205 | esac | |
206 | as_found=false | |
207 | done | |
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
210 | CONFIG_SHELL=$SHELL as_have_required=yes | |
211 | fi; } | |
212 | IFS=$as_save_IFS | |
213 | ||
214 | ||
215 | if test "x$CONFIG_SHELL" != x; then : | |
216 | # We cannot yet assume a decent shell, so we have to provide a | |
217 | # neutralization value for shells without unset; and this also | |
218 | # works around shells that cannot unset nonexistent variables. | |
219 | BASH_ENV=/dev/null | |
220 | ENV=/dev/null | |
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | export CONFIG_SHELL | |
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
224 | fi | |
225 | ||
226 | if test x$as_have_required = xno; then : | |
227 | $as_echo "$0: This script requires a shell more modern than all" | |
228 | $as_echo "$0: the shells that I found on your system." | |
229 | if test x${ZSH_VERSION+set} = xset ; then | |
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
232 | else | |
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
234 | $0: about your system, including any error possibly output | |
235 | $0: before this message. Then install a modern shell, or | |
236 | $0: manually run the script under such a shell if you do | |
237 | $0: have one." | |
238 | fi | |
239 | exit 1 | |
240 | fi | |
241 | fi | |
242 | fi | |
243 | SHELL=${CONFIG_SHELL-/bin/sh} | |
244 | export SHELL | |
245 | # Unset more variables known to interfere with behavior of common tools. | |
246 | CLICOLOR_FORCE= GREP_OPTIONS= | |
247 | unset CLICOLOR_FORCE GREP_OPTIONS | |
248 | ||
249 | ## --------------------- ## | |
250 | ## M4sh Shell Functions. ## | |
251 | ## --------------------- ## | |
252 | # as_fn_unset VAR | |
253 | # --------------- | |
254 | # Portably unset VAR. | |
255 | as_fn_unset () | |
256 | { | |
257 | { eval $1=; unset $1;} | |
258 | } | |
259 | as_unset=as_fn_unset | |
260 | ||
261 | # as_fn_set_status STATUS | |
262 | # ----------------------- | |
263 | # Set $? to STATUS, without forking. | |
264 | as_fn_set_status () | |
265 | { | |
266 | return $1 | |
267 | } # as_fn_set_status | |
268 | ||
269 | # as_fn_exit STATUS | |
270 | # ----------------- | |
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
272 | as_fn_exit () | |
273 | { | |
274 | set +e | |
275 | as_fn_set_status $1 | |
276 | exit $1 | |
277 | } # as_fn_exit | |
278 | ||
279 | # as_fn_mkdir_p | |
280 | # ------------- | |
281 | # Create "$as_dir" as a directory, including parents if necessary. | |
282 | as_fn_mkdir_p () | |
283 | { | |
284 | ||
285 | case $as_dir in #( | |
286 | -*) as_dir=./$as_dir;; | |
287 | esac | |
288 | test -d "$as_dir" || eval $as_mkdir_p || { | |
289 | as_dirs= | |
290 | while :; do | |
291 | case $as_dir in #( | |
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
293 | *) as_qdir=$as_dir;; | |
294 | esac | |
295 | as_dirs="'$as_qdir' $as_dirs" | |
296 | as_dir=`$as_dirname -- "$as_dir" || | |
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
299 | X"$as_dir" : 'X\(//\)$' \| \ | |
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
301 | $as_echo X"$as_dir" | | |
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
303 | s//\1/ | |
304 | q | |
305 | } | |
306 | /^X\(\/\/\)[^/].*/{ | |
307 | s//\1/ | |
308 | q | |
309 | } | |
310 | /^X\(\/\/\)$/{ | |
311 | s//\1/ | |
312 | q | |
313 | } | |
314 | /^X\(\/\).*/{ | |
315 | s//\1/ | |
316 | q | |
317 | } | |
318 | s/.*/./; q'` | |
319 | test -d "$as_dir" && break | |
320 | done | |
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
323 | ||
324 | ||
325 | } # as_fn_mkdir_p | |
326 | # as_fn_append VAR VALUE | |
327 | # ---------------------- | |
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
329 | # advantage of any shell optimizations that allow amortized linear growth over | |
330 | # repeated appends, instead of the typical quadratic growth present in naive | |
331 | # implementations. | |
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
333 | eval 'as_fn_append () | |
334 | { | |
335 | eval $1+=\$2 | |
336 | }' | |
337 | else | |
338 | as_fn_append () | |
339 | { | |
340 | eval $1=\$$1\$2 | |
341 | } | |
342 | fi # as_fn_append | |
343 | ||
344 | # as_fn_arith ARG... | |
345 | # ------------------ | |
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
348 | # must be portable across $(()) and expr. | |
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
350 | eval 'as_fn_arith () | |
351 | { | |
352 | as_val=$(( $* )) | |
353 | }' | |
354 | else | |
355 | as_fn_arith () | |
356 | { | |
357 | as_val=`expr "$@" || test $? -eq 1` | |
358 | } | |
359 | fi # as_fn_arith | |
360 | ||
361 | ||
362 | # as_fn_error ERROR [LINENO LOG_FD] | |
363 | # --------------------------------- | |
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
366 | # script with status $?, using 1 if that was 0. | |
367 | as_fn_error () | |
368 | { | |
369 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
370 | if test "$3"; then | |
371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
373 | fi | |
374 | $as_echo "$as_me: error: $1" >&2 | |
375 | as_fn_exit $as_status | |
376 | } # as_fn_error | |
377 | ||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
380 | as_expr=expr | |
381 | else | |
382 | as_expr=false | |
383 | fi | |
384 | ||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
386 | as_basename=basename | |
387 | else | |
388 | as_basename=false | |
389 | fi | |
390 | ||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
392 | as_dirname=dirname | |
393 | else | |
394 | as_dirname=false | |
395 | fi | |
396 | ||
397 | as_me=`$as_basename -- "$0" || | |
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
399 | X"$0" : 'X\(//\)$' \| \ | |
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
401 | $as_echo X/"$0" | | |
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
403 | s//\1/ | |
404 | q | |
405 | } | |
406 | /^X\/\(\/\/\)$/{ | |
407 | s//\1/ | |
408 | q | |
409 | } | |
410 | /^X\/\(\/\).*/{ | |
411 | s//\1/ | |
412 | q | |
413 | } | |
414 | s/.*/./; q'` | |
415 | ||
416 | # Avoid depending upon Character Ranges. | |
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
420 | as_cr_digits='0123456789' | |
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
422 | ||
423 | ||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
429 | sed -n ' | |
430 | p | |
431 | /[$]LINENO/= | |
432 | ' <$as_myself | | |
433 | sed ' | |
434 | s/[$]LINENO.*/&-/ | |
435 | t lineno | |
436 | b | |
437 | :lineno | |
438 | N | |
439 | :loop | |
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
441 | t loop | |
442 | s/-\n.*// | |
443 | ' >$as_me.lineno && | |
444 | chmod +x "$as_me.lineno" || | |
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
446 | ||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | |
448 | # (the dirname of $[0] is not the place where we might find the | |
449 | # original and so on. Autoconf is especially sensitive to this). | |
450 | . "./$as_me.lineno" | |
451 | # Exit status is that of the last command. | |
452 | exit | |
453 | } | |
454 | ||
455 | ECHO_C= ECHO_N= ECHO_T= | |
456 | case `echo -n x` in #((((( | |
457 | -n*) | |
458 | case `echo 'xy\c'` in | |
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
460 | xy) ECHO_C='\c';; | |
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
462 | ECHO_T=' ';; | |
463 | esac;; | |
464 | *) | |
465 | ECHO_N='-n';; | |
466 | esac | |
467 | ||
468 | rm -f conf$$ conf$$.exe conf$$.file | |
469 | if test -d conf$$.dir; then | |
470 | rm -f conf$$.dir/conf$$.file | |
471 | else | |
472 | rm -f conf$$.dir | |
473 | mkdir conf$$.dir 2>/dev/null | |
474 | fi | |
475 | if (echo >conf$$.file) 2>/dev/null; then | |
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
477 | as_ln_s='ln -s' | |
478 | # ... but there are two gotchas: | |
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
481 | # In both cases, we have to default to `cp -p'. | |
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
483 | as_ln_s='cp -p' | |
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
485 | as_ln_s=ln | |
486 | else | |
487 | as_ln_s='cp -p' | |
488 | fi | |
489 | else | |
490 | as_ln_s='cp -p' | |
491 | fi | |
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
493 | rmdir conf$$.dir 2>/dev/null | |
494 | ||
495 | if mkdir -p . 2>/dev/null; then | |
496 | as_mkdir_p='mkdir -p "$as_dir"' | |
497 | else | |
498 | test -d ./-p && rmdir ./-p | |
499 | as_mkdir_p=false | |
500 | fi | |
501 | ||
502 | if test -x / >/dev/null 2>&1; then | |
503 | as_test_x='test -x' | |
504 | else | |
505 | if ls -dL / >/dev/null 2>&1; then | |
506 | as_ls_L_option=L | |
507 | else | |
508 | as_ls_L_option= | |
509 | fi | |
510 | as_test_x=' | |
511 | eval sh -c '\'' | |
512 | if test -d "$1"; then | |
513 | test -d "$1/."; | |
514 | else | |
515 | case $1 in #( | |
516 | -*)set "./$1";; | |
517 | esac; | |
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
519 | ???[sx]*):;;*)false;;esac;fi | |
520 | '\'' sh | |
521 | ' | |
522 | fi | |
523 | as_executable_p=$as_test_x | |
524 | ||
525 | # Sed expression to map a string onto a valid CPP name. | |
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
527 | ||
528 | # Sed expression to map a string onto a valid variable name. | |
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
9c60689e DWT |
531 | |
532 | ||
533 | # Check that we are running under the correct shell. | |
534 | SHELL=${CONFIG_SHELL-/bin/sh} | |
535 | ||
536 | case X$lt_ECHO in | |
537 | X*--fallback-echo) | |
538 | # Remove one level of quotation (which was required for Make). | |
539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
540 | ;; | |
541 | esac | |
542 | ||
543 | ECHO=${lt_ECHO-echo} | |
544 | if test "X$1" = X--no-reexec; then | |
545 | # Discard the --no-reexec flag, and continue. | |
546 | shift | |
547 | elif test "X$1" = X--fallback-echo; then | |
548 | # Avoid inline document here, it may be left over | |
549 | : | |
550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
551 | # Yippee, $ECHO works! | |
552 | : | |
553 | else | |
554 | # Restart under the correct shell. | |
555 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
556 | fi | |
557 | ||
558 | if test "X$1" = X--fallback-echo; then | |
559 | # used as fallback echo | |
560 | shift | |
561 | cat <<_LT_EOF | |
562 | $* | |
563 | _LT_EOF | |
564 | exit 0 | |
565 | fi | |
566 | ||
567 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
568 | # if CDPATH is set. | |
569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
570 | ||
571 | if test -z "$lt_ECHO"; then | |
572 | if test "X${echo_test_string+set}" != Xset; then | |
573 | # find a string as large as possible, as long as the shell can cope with it | |
574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
578 | then | |
579 | break | |
580 | fi | |
581 | done | |
582 | fi | |
583 | ||
584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
586 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
587 | : | |
588 | else | |
589 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
590 | # backslashes. This makes it impossible to quote backslashes using | |
591 | # echo "$something" | sed 's/\\/\\\\/g' | |
592 | # | |
593 | # So, first we look for a working echo in the user's PATH. | |
594 | ||
595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
596 | for dir in $PATH /usr/ucb; do | |
597 | IFS="$lt_save_ifs" | |
598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
601 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
602 | ECHO="$dir/echo" | |
603 | break | |
604 | fi | |
605 | done | |
606 | IFS="$lt_save_ifs" | |
607 | ||
608 | if test "X$ECHO" = Xecho; then | |
609 | # We didn't find a better echo, so look for alternatives. | |
610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
612 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
613 | # This shell has a builtin print -r that does the trick. | |
614 | ECHO='print -r' | |
615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
616 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
617 | # If we have ksh, try running configure again with it. | |
618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
619 | export ORIGINAL_CONFIG_SHELL | |
620 | CONFIG_SHELL=/bin/ksh | |
621 | export CONFIG_SHELL | |
622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
623 | else | |
624 | # Try using printf. | |
625 | ECHO='printf %s\n' | |
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
629 | # Cool, printf works | |
630 | : | |
631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
632 | test "X$echo_testing_string" = 'X\t' && | |
633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
634 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
636 | export CONFIG_SHELL | |
637 | SHELL="$CONFIG_SHELL" | |
638 | export SHELL | |
639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
641 | test "X$echo_testing_string" = 'X\t' && | |
642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
645 | else | |
646 | # maybe with a smaller string... | |
647 | prev=: | |
648 | ||
649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
651 | then | |
652 | break | |
653 | fi | |
654 | prev="$cmd" | |
655 | done | |
656 | ||
657 | if test "$prev" != 'sed 50q "$0"'; then | |
658 | echo_test_string=`eval $prev` | |
659 | export echo_test_string | |
660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
661 | else | |
662 | # Oops. We lost completely, so just stick with echo. | |
663 | ECHO=echo | |
664 | fi | |
665 | fi | |
666 | fi | |
667 | fi | |
668 | fi | |
669 | fi | |
670 | ||
671 | # Copy echo and quote the copy suitably for passing to libtool from | |
672 | # the Makefile, instead of quoting the original, which is used later. | |
673 | lt_ECHO=$ECHO | |
674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
676 | fi | |
677 | ||
678 | ||
679 | ||
c7aa54aa | 680 | |
9c60689e DWT |
681 | test -n "$DJDIR" || exec 7<&0 </dev/null |
682 | exec 6>&1 | |
c7aa54aa DWT |
683 | |
684 | # Name of the host. | |
685 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
686 | # so uname gets run too. | |
687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
688 | ||
689 | # | |
690 | # Initializations. | |
691 | # | |
692 | ac_default_prefix=/usr/local | |
693 | ac_clean_files= | |
694 | ac_config_libobj_dir=. | |
695 | LIBOBJS= | |
696 | cross_compiling=no | |
697 | subdirs= | |
698 | MFLAGS= | |
699 | MAKEFLAGS= | |
700 | ||
701 | # Identity of this package. | |
702 | PACKAGE_NAME='Cycript' | |
703 | PACKAGE_TARNAME='cycript' | |
704 | PACKAGE_VERSION='0.9' | |
705 | PACKAGE_STRING='Cycript 0.9' | |
706 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
707 | PACKAGE_URL='http://www.cycript.org/' | |
708 | ||
35fa52c0 | 709 | ac_unique_file="Console.cpp" |
6b66678a DWT |
710 | # Factoring default headers for most tests. |
711 | ac_includes_default="\ | |
712 | #include <stdio.h> | |
713 | #ifdef HAVE_SYS_TYPES_H | |
714 | # include <sys/types.h> | |
715 | #endif | |
716 | #ifdef HAVE_SYS_STAT_H | |
717 | # include <sys/stat.h> | |
718 | #endif | |
719 | #ifdef STDC_HEADERS | |
720 | # include <stdlib.h> | |
721 | # include <stddef.h> | |
722 | #else | |
723 | # ifdef HAVE_STDLIB_H | |
724 | # include <stdlib.h> | |
725 | # endif | |
726 | #endif | |
727 | #ifdef HAVE_STRING_H | |
728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
729 | # include <memory.h> | |
730 | # endif | |
731 | # include <string.h> | |
732 | #endif | |
733 | #ifdef HAVE_STRINGS_H | |
734 | # include <strings.h> | |
735 | #endif | |
736 | #ifdef HAVE_INTTYPES_H | |
737 | # include <inttypes.h> | |
738 | #endif | |
739 | #ifdef HAVE_STDINT_H | |
740 | # include <stdint.h> | |
741 | #endif | |
742 | #ifdef HAVE_UNISTD_H | |
743 | # include <unistd.h> | |
744 | #endif" | |
745 | ||
9c60689e DWT |
746 | ac_subst_vars='LTLIBOBJS |
747 | LIBOBJS | |
e1cce270 | 748 | CY_OBJECTIVEC_MACH |
5053a6d1 DWT |
749 | LTLIBICONV |
750 | LIBICONV | |
47aaa820 | 751 | GNUSTEP_CONFIG |
c823f118 | 752 | CY_OBJECTIVEC |
309b0535 | 753 | LIBFFI_LIBS |
35fa52c0 | 754 | LIBFFI_CFLAGS |
3fd51f51 | 755 | CY_EXECUTE |
35fa52c0 DWT |
756 | WEBKIT_LIBS |
757 | WEBKIT_CFLAGS | |
549f29b5 | 758 | LTLIBAPR |
632b71ea DWT |
759 | ac_ct_OBJCXX |
760 | OBJCXXFLAGS | |
761 | OBJCXX | |
47aaa820 DWT |
762 | CXXCPP |
763 | ac_ct_CXX | |
764 | CXXFLAGS | |
765 | CXX | |
b65019fe DWT |
766 | SVNVERSION |
767 | SVN | |
e9c9a47c DWT |
768 | GNUTAR |
769 | INSTALL_DATA | |
770 | INSTALL_SCRIPT | |
771 | INSTALL_PROGRAM | |
772 | GPERF | |
773 | FLEX | |
774 | BISON | |
775 | TIME | |
776 | _BASH | |
790e5246 | 777 | GMAKE |
632b71ea | 778 | ifGNUmake |
3fd51f51 | 779 | PKG_CONFIG |
9c60689e DWT |
780 | CPP |
781 | OTOOL64 | |
782 | OTOOL | |
783 | LIPO | |
784 | NMEDIT | |
785 | DSYMUTIL | |
786 | lt_ECHO | |
787 | RANLIB | |
788 | STRIP | |
789 | AR | |
790 | OBJDUMP | |
791 | LN_S | |
792 | NM | |
793 | ac_ct_DUMPBIN | |
794 | DUMPBIN | |
795 | LD | |
796 | FGREP | |
797 | EGREP | |
798 | GREP | |
799 | SED | |
35fa52c0 DWT |
800 | OBJEXT |
801 | EXEEXT | |
802 | ac_ct_CC | |
803 | CPPFLAGS | |
804 | LDFLAGS | |
805 | CFLAGS | |
806 | CC | |
9c60689e DWT |
807 | host_os |
808 | host_vendor | |
809 | host_cpu | |
810 | host | |
811 | build_os | |
812 | build_vendor | |
813 | build_cpu | |
814 | build | |
815 | LIBTOOL | |
dbadc56a | 816 | target_alias |
c7aa54aa DWT |
817 | host_alias |
818 | build_alias | |
819 | LIBS | |
820 | ECHO_T | |
821 | ECHO_N | |
822 | ECHO_C | |
823 | DEFS | |
824 | mandir | |
825 | localedir | |
826 | libdir | |
827 | psdir | |
828 | pdfdir | |
829 | dvidir | |
830 | htmldir | |
831 | infodir | |
832 | docdir | |
833 | oldincludedir | |
834 | includedir | |
835 | localstatedir | |
836 | sharedstatedir | |
837 | sysconfdir | |
838 | datadir | |
839 | datarootdir | |
840 | libexecdir | |
841 | sbindir | |
842 | bindir | |
843 | program_transform_name | |
844 | prefix | |
845 | exec_prefix | |
846 | PACKAGE_URL | |
847 | PACKAGE_BUGREPORT | |
848 | PACKAGE_STRING | |
849 | PACKAGE_VERSION | |
850 | PACKAGE_TARNAME | |
851 | PACKAGE_NAME | |
852 | PATH_SEPARATOR | |
853 | SHELL' | |
854 | ac_subst_files='' | |
855 | ac_user_opts=' | |
856 | enable_option_checking | |
9c60689e | 857 | enable_static |
549f29b5 | 858 | enable_shared |
9c60689e DWT |
859 | with_pic |
860 | enable_fast_install | |
35fa52c0 | 861 | with_gnu_ld |
9c60689e | 862 | enable_libtool_lock |
632b71ea | 863 | with_frameworks |
9c60689e | 864 | with_apr |
5053a6d1 | 865 | enable_javascript |
35fa52c0 DWT |
866 | enable_rpath |
867 | with_libiconv_prefix | |
c7aa54aa DWT |
868 | ' |
869 | ac_precious_vars='build_alias | |
870 | host_alias | |
dbadc56a | 871 | target_alias |
35fa52c0 DWT |
872 | CC |
873 | CFLAGS | |
dbadc56a DWT |
874 | LDFLAGS |
875 | LIBS | |
876 | CPPFLAGS | |
9c60689e | 877 | CPP |
3fd51f51 | 878 | PKG_CONFIG |
e9c9a47c DWT |
879 | BISON |
880 | FLEX | |
881 | GPERF | |
35fa52c0 DWT |
882 | CXX |
883 | CXXFLAGS | |
884 | CCC | |
9c60689e | 885 | CXXCPP |
632b71ea DWT |
886 | OBJCXX |
887 | OBJCXXFLAGS | |
35fa52c0 DWT |
888 | WEBKIT_CFLAGS |
889 | WEBKIT_LIBS | |
a667869d | 890 | LIBFFI_CFLAGS |
790e5246 DWT |
891 | LIBFFI_LIBS |
892 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
893 | |
894 | ||
895 | # Initialize some variables set by options. | |
896 | ac_init_help= | |
897 | ac_init_version=false | |
898 | ac_unrecognized_opts= | |
899 | ac_unrecognized_sep= | |
900 | # The variables have the same names as the options, with | |
901 | # dashes changed to underlines. | |
902 | cache_file=/dev/null | |
903 | exec_prefix=NONE | |
904 | no_create= | |
905 | no_recursion= | |
906 | prefix=NONE | |
907 | program_prefix=NONE | |
908 | program_suffix=NONE | |
909 | program_transform_name=s,x,x, | |
910 | silent= | |
911 | site= | |
912 | srcdir= | |
913 | verbose= | |
914 | x_includes=NONE | |
915 | x_libraries=NONE | |
916 | ||
917 | # Installation directory options. | |
918 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
919 | # and all the variables that are supposed to be based on exec_prefix | |
920 | # by default will actually change. | |
921 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
922 | # (The list follows the same order as the GNU Coding Standards.) | |
923 | bindir='${exec_prefix}/bin' | |
924 | sbindir='${exec_prefix}/sbin' | |
925 | libexecdir='${exec_prefix}/libexec' | |
926 | datarootdir='${prefix}/share' | |
927 | datadir='${datarootdir}' | |
928 | sysconfdir='${prefix}/etc' | |
929 | sharedstatedir='${prefix}/com' | |
930 | localstatedir='${prefix}/var' | |
931 | includedir='${prefix}/include' | |
932 | oldincludedir='/usr/include' | |
933 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
934 | infodir='${datarootdir}/info' | |
935 | htmldir='${docdir}' | |
936 | dvidir='${docdir}' | |
937 | pdfdir='${docdir}' | |
938 | psdir='${docdir}' | |
939 | libdir='${exec_prefix}/lib' | |
940 | localedir='${datarootdir}/locale' | |
941 | mandir='${datarootdir}/man' | |
942 | ||
943 | ac_prev= | |
944 | ac_dashdash= | |
945 | for ac_option | |
946 | do | |
947 | # If the previous option needs an argument, assign it. | |
948 | if test -n "$ac_prev"; then | |
949 | eval $ac_prev=\$ac_option | |
950 | ac_prev= | |
951 | continue | |
952 | fi | |
953 | ||
954 | case $ac_option in | |
955 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
956 | *) ac_optarg=yes ;; | |
957 | esac | |
958 | ||
959 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
960 | ||
961 | case $ac_dashdash$ac_option in | |
962 | --) | |
963 | ac_dashdash=yes ;; | |
964 | ||
965 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
966 | ac_prev=bindir ;; | |
967 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
968 | bindir=$ac_optarg ;; | |
969 | ||
970 | -build | --build | --buil | --bui | --bu) | |
971 | ac_prev=build_alias ;; | |
972 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
973 | build_alias=$ac_optarg ;; | |
974 | ||
975 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
976 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
977 | ac_prev=cache_file ;; | |
978 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
979 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
980 | cache_file=$ac_optarg ;; | |
981 | ||
982 | --config-cache | -C) | |
983 | cache_file=config.cache ;; | |
984 | ||
985 | -datadir | --datadir | --datadi | --datad) | |
986 | ac_prev=datadir ;; | |
987 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
988 | datadir=$ac_optarg ;; | |
989 | ||
990 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
991 | | --dataroo | --dataro | --datar) | |
992 | ac_prev=datarootdir ;; | |
993 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
994 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
995 | datarootdir=$ac_optarg ;; | |
996 | ||
997 | -disable-* | --disable-*) | |
998 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
999 | # Reject names that are not valid shell variable names. | |
1000 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1001 | as_fn_error "invalid feature name: $ac_useropt" | |
1002 | ac_useropt_orig=$ac_useropt | |
1003 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1004 | case $ac_user_opts in | |
1005 | *" | |
1006 | "enable_$ac_useropt" | |
1007 | "*) ;; | |
1008 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1009 | ac_unrecognized_sep=', ';; | |
1010 | esac | |
1011 | eval enable_$ac_useropt=no ;; | |
1012 | ||
1013 | -docdir | --docdir | --docdi | --doc | --do) | |
1014 | ac_prev=docdir ;; | |
1015 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1016 | docdir=$ac_optarg ;; | |
1017 | ||
1018 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1019 | ac_prev=dvidir ;; | |
1020 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1021 | dvidir=$ac_optarg ;; | |
1022 | ||
1023 | -enable-* | --enable-*) | |
1024 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1025 | # Reject names that are not valid shell variable names. | |
1026 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1027 | as_fn_error "invalid feature name: $ac_useropt" | |
1028 | ac_useropt_orig=$ac_useropt | |
1029 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1030 | case $ac_user_opts in | |
1031 | *" | |
1032 | "enable_$ac_useropt" | |
1033 | "*) ;; | |
1034 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1035 | ac_unrecognized_sep=', ';; | |
1036 | esac | |
1037 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1038 | ||
1039 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1040 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1041 | | --exec | --exe | --ex) | |
1042 | ac_prev=exec_prefix ;; | |
1043 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1044 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1045 | | --exec=* | --exe=* | --ex=*) | |
1046 | exec_prefix=$ac_optarg ;; | |
1047 | ||
1048 | -gas | --gas | --ga | --g) | |
1049 | # Obsolete; use --with-gas. | |
1050 | with_gas=yes ;; | |
1051 | ||
1052 | -help | --help | --hel | --he | -h) | |
1053 | ac_init_help=long ;; | |
1054 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1055 | ac_init_help=recursive ;; | |
1056 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1057 | ac_init_help=short ;; | |
1058 | ||
1059 | -host | --host | --hos | --ho) | |
1060 | ac_prev=host_alias ;; | |
1061 | -host=* | --host=* | --hos=* | --ho=*) | |
1062 | host_alias=$ac_optarg ;; | |
1063 | ||
1064 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1065 | ac_prev=htmldir ;; | |
1066 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1067 | | --ht=*) | |
1068 | htmldir=$ac_optarg ;; | |
1069 | ||
1070 | -includedir | --includedir | --includedi | --included | --include \ | |
1071 | | --includ | --inclu | --incl | --inc) | |
1072 | ac_prev=includedir ;; | |
1073 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1074 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1075 | includedir=$ac_optarg ;; | |
1076 | ||
1077 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1078 | ac_prev=infodir ;; | |
1079 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1080 | infodir=$ac_optarg ;; | |
1081 | ||
1082 | -libdir | --libdir | --libdi | --libd) | |
1083 | ac_prev=libdir ;; | |
1084 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1085 | libdir=$ac_optarg ;; | |
1086 | ||
1087 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1088 | | --libexe | --libex | --libe) | |
1089 | ac_prev=libexecdir ;; | |
1090 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1091 | | --libexe=* | --libex=* | --libe=*) | |
1092 | libexecdir=$ac_optarg ;; | |
1093 | ||
1094 | -localedir | --localedir | --localedi | --localed | --locale) | |
1095 | ac_prev=localedir ;; | |
1096 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1097 | localedir=$ac_optarg ;; | |
1098 | ||
1099 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1100 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1101 | ac_prev=localstatedir ;; | |
1102 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1103 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1104 | localstatedir=$ac_optarg ;; | |
1105 | ||
1106 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1107 | ac_prev=mandir ;; | |
1108 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1109 | mandir=$ac_optarg ;; | |
1110 | ||
1111 | -nfp | --nfp | --nf) | |
1112 | # Obsolete; use --without-fp. | |
1113 | with_fp=no ;; | |
1114 | ||
1115 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1116 | | --no-cr | --no-c | -n) | |
1117 | no_create=yes ;; | |
1118 | ||
1119 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1120 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1121 | no_recursion=yes ;; | |
1122 | ||
1123 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1124 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1125 | | --oldin | --oldi | --old | --ol | --o) | |
1126 | ac_prev=oldincludedir ;; | |
1127 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1128 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1129 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1130 | oldincludedir=$ac_optarg ;; | |
1131 | ||
1132 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1133 | ac_prev=prefix ;; | |
1134 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1135 | prefix=$ac_optarg ;; | |
1136 | ||
1137 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1138 | | --program-pre | --program-pr | --program-p) | |
1139 | ac_prev=program_prefix ;; | |
1140 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1141 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1142 | program_prefix=$ac_optarg ;; | |
1143 | ||
1144 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1145 | | --program-suf | --program-su | --program-s) | |
1146 | ac_prev=program_suffix ;; | |
1147 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1148 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1149 | program_suffix=$ac_optarg ;; | |
1150 | ||
1151 | -program-transform-name | --program-transform-name \ | |
1152 | | --program-transform-nam | --program-transform-na \ | |
1153 | | --program-transform-n | --program-transform- \ | |
1154 | | --program-transform | --program-transfor \ | |
1155 | | --program-transfo | --program-transf \ | |
1156 | | --program-trans | --program-tran \ | |
1157 | | --progr-tra | --program-tr | --program-t) | |
1158 | ac_prev=program_transform_name ;; | |
1159 | -program-transform-name=* | --program-transform-name=* \ | |
1160 | | --program-transform-nam=* | --program-transform-na=* \ | |
1161 | | --program-transform-n=* | --program-transform-=* \ | |
1162 | | --program-transform=* | --program-transfor=* \ | |
1163 | | --program-transfo=* | --program-transf=* \ | |
1164 | | --program-trans=* | --program-tran=* \ | |
1165 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1166 | program_transform_name=$ac_optarg ;; | |
1167 | ||
1168 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1169 | ac_prev=pdfdir ;; | |
1170 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1171 | pdfdir=$ac_optarg ;; | |
1172 | ||
1173 | -psdir | --psdir | --psdi | --psd | --ps) | |
1174 | ac_prev=psdir ;; | |
1175 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1176 | psdir=$ac_optarg ;; | |
1177 | ||
1178 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1179 | | -silent | --silent | --silen | --sile | --sil) | |
1180 | silent=yes ;; | |
1181 | ||
1182 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1183 | ac_prev=sbindir ;; | |
1184 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1185 | | --sbi=* | --sb=*) | |
1186 | sbindir=$ac_optarg ;; | |
1187 | ||
1188 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1189 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1190 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1191 | | --sha | --sh) | |
1192 | ac_prev=sharedstatedir ;; | |
1193 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1194 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1195 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1196 | | --sha=* | --sh=*) | |
1197 | sharedstatedir=$ac_optarg ;; | |
1198 | ||
1199 | -site | --site | --sit) | |
1200 | ac_prev=site ;; | |
1201 | -site=* | --site=* | --sit=*) | |
1202 | site=$ac_optarg ;; | |
1203 | ||
1204 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1205 | ac_prev=srcdir ;; | |
1206 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1207 | srcdir=$ac_optarg ;; | |
1208 | ||
1209 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1210 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1211 | ac_prev=sysconfdir ;; | |
1212 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1213 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1214 | sysconfdir=$ac_optarg ;; | |
1215 | ||
1216 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1217 | ac_prev=target_alias ;; | |
1218 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1219 | target_alias=$ac_optarg ;; | |
1220 | ||
1221 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1222 | verbose=yes ;; | |
1223 | ||
1224 | -version | --version | --versio | --versi | --vers | -V) | |
1225 | ac_init_version=: ;; | |
1226 | ||
1227 | -with-* | --with-*) | |
1228 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1229 | # Reject names that are not valid shell variable names. | |
1230 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1231 | as_fn_error "invalid package name: $ac_useropt" | |
1232 | ac_useropt_orig=$ac_useropt | |
1233 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1234 | case $ac_user_opts in | |
1235 | *" | |
1236 | "with_$ac_useropt" | |
1237 | "*) ;; | |
1238 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1239 | ac_unrecognized_sep=', ';; | |
1240 | esac | |
1241 | eval with_$ac_useropt=\$ac_optarg ;; | |
1242 | ||
1243 | -without-* | --without-*) | |
1244 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1245 | # Reject names that are not valid shell variable names. | |
1246 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1247 | as_fn_error "invalid package name: $ac_useropt" | |
1248 | ac_useropt_orig=$ac_useropt | |
1249 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1250 | case $ac_user_opts in | |
1251 | *" | |
1252 | "with_$ac_useropt" | |
1253 | "*) ;; | |
1254 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1255 | ac_unrecognized_sep=', ';; | |
1256 | esac | |
1257 | eval with_$ac_useropt=no ;; | |
1258 | ||
1259 | --x) | |
1260 | # Obsolete; use --with-x. | |
1261 | with_x=yes ;; | |
1262 | ||
1263 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1264 | | --x-incl | --x-inc | --x-in | --x-i) | |
1265 | ac_prev=x_includes ;; | |
1266 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1267 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1268 | x_includes=$ac_optarg ;; | |
1269 | ||
1270 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1271 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1272 | ac_prev=x_libraries ;; | |
1273 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1274 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1275 | x_libraries=$ac_optarg ;; | |
1276 | ||
1277 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1278 | Try \`$0 --help' for more information." | |
1279 | ;; | |
1280 | ||
1281 | *=*) | |
1282 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1283 | # Reject names that are not valid shell variable names. | |
1284 | case $ac_envvar in #( | |
1285 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1286 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1287 | esac | |
1288 | eval $ac_envvar=\$ac_optarg | |
1289 | export $ac_envvar ;; | |
1290 | ||
1291 | *) | |
1292 | # FIXME: should be removed in autoconf 3.0. | |
1293 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1294 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1295 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1296 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1297 | ;; | |
1298 | ||
1299 | esac | |
1300 | done | |
1301 | ||
1302 | if test -n "$ac_prev"; then | |
1303 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1304 | as_fn_error "missing argument to $ac_option" | |
1305 | fi | |
1306 | ||
1307 | if test -n "$ac_unrecognized_opts"; then | |
1308 | case $enable_option_checking in | |
1309 | no) ;; | |
1310 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1311 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1312 | esac | |
1313 | fi | |
1314 | ||
1315 | # Check all directory arguments for consistency. | |
1316 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1317 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1318 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1319 | libdir localedir mandir | |
1320 | do | |
1321 | eval ac_val=\$$ac_var | |
1322 | # Remove trailing slashes. | |
1323 | case $ac_val in | |
1324 | */ ) | |
1325 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1326 | eval $ac_var=\$ac_val;; | |
1327 | esac | |
1328 | # Be sure to have absolute directory names. | |
1329 | case $ac_val in | |
1330 | [\\/$]* | ?:[\\/]* ) continue;; | |
1331 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1332 | esac | |
1333 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1334 | done | |
1335 | ||
1336 | # There might be people who depend on the old broken behavior: `$host' | |
1337 | # used to hold the argument of --host etc. | |
1338 | # FIXME: To remove some day. | |
1339 | build=$build_alias | |
1340 | host=$host_alias | |
1341 | target=$target_alias | |
1342 | ||
1343 | # FIXME: To remove some day. | |
1344 | if test "x$host_alias" != x; then | |
1345 | if test "x$build_alias" = x; then | |
1346 | cross_compiling=maybe | |
1347 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1348 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1349 | elif test "x$build_alias" != "x$host_alias"; then | |
1350 | cross_compiling=yes | |
1351 | fi | |
1352 | fi | |
1353 | ||
1354 | ac_tool_prefix= | |
1355 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1356 | ||
1357 | test "$silent" = yes && exec 6>/dev/null | |
1358 | ||
1359 | ||
1360 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1361 | ac_ls_di=`ls -di .` && | |
1362 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1363 | as_fn_error "working directory cannot be determined" | |
1364 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1365 | as_fn_error "pwd does not report name of working directory" | |
1366 | ||
1367 | ||
1368 | # Find the source files, if location was not specified. | |
1369 | if test -z "$srcdir"; then | |
1370 | ac_srcdir_defaulted=yes | |
1371 | # Try the directory containing this script, then the parent directory. | |
1372 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1373 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1374 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1375 | X"$as_myself" : 'X\(//\)$' \| \ | |
1376 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1377 | $as_echo X"$as_myself" | | |
1378 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\/\)[^/].*/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | /^X\(\/\/\)$/{ | |
1387 | s//\1/ | |
1388 | q | |
1389 | } | |
1390 | /^X\(\/\).*/{ | |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | s/.*/./; q'` | |
1395 | srcdir=$ac_confdir | |
1396 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1397 | srcdir=.. | |
1398 | fi | |
1399 | else | |
1400 | ac_srcdir_defaulted=no | |
1401 | fi | |
1402 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1403 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1404 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1405 | fi | |
1406 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1407 | ac_abs_confdir=`( | |
1408 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1409 | pwd)` | |
1410 | # When building in place, set srcdir=. | |
1411 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1412 | srcdir=. | |
1413 | fi | |
1414 | # Remove unnecessary trailing slashes from srcdir. | |
1415 | # Double slashes in file names in object file debugging info | |
1416 | # mess up M-x gdb in Emacs. | |
1417 | case $srcdir in | |
1418 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1419 | esac | |
1420 | for ac_var in $ac_precious_vars; do | |
1421 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1422 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1423 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1424 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1425 | done | |
1426 | ||
1427 | # | |
1428 | # Report the --help message. | |
1429 | # | |
1430 | if test "$ac_init_help" = "long"; then | |
1431 | # Omit some internal or obsolete options to make the list less imposing. | |
1432 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1433 | cat <<_ACEOF | |
1434 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1435 | ||
1436 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1437 | ||
1438 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1439 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1440 | ||
1441 | Defaults for the options are specified in brackets. | |
1442 | ||
1443 | Configuration: | |
1444 | -h, --help display this help and exit | |
1445 | --help=short display options specific to this package | |
1446 | --help=recursive display the short help of all the included packages | |
1447 | -V, --version display version information and exit | |
1448 | -q, --quiet, --silent do not print \`checking...' messages | |
1449 | --cache-file=FILE cache test results in FILE [disabled] | |
1450 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1451 | -n, --no-create do not create output files | |
1452 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1453 | ||
1454 | Installation directories: | |
1455 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1456 | [$ac_default_prefix] | |
1457 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1458 | [PREFIX] | |
1459 | ||
1460 | By default, \`make install' will install all the files in | |
1461 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1462 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1463 | for instance \`--prefix=\$HOME'. | |
1464 | ||
1465 | For better control, use the options below. | |
1466 | ||
1467 | Fine tuning of the installation directories: | |
1468 | --bindir=DIR user executables [EPREFIX/bin] | |
1469 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1470 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1471 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1472 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1473 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1474 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1475 | --includedir=DIR C header files [PREFIX/include] | |
1476 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1477 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1478 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1479 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1480 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1481 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1482 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1483 | --htmldir=DIR html documentation [DOCDIR] | |
1484 | --dvidir=DIR dvi documentation [DOCDIR] | |
1485 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1486 | --psdir=DIR ps documentation [DOCDIR] | |
1487 | _ACEOF | |
1488 | ||
1489 | cat <<\_ACEOF | |
35fa52c0 DWT |
1490 | |
1491 | System types: | |
1492 | --build=BUILD configure for building on BUILD [guessed] | |
1493 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1494 | _ACEOF |
1495 | fi | |
1496 | ||
1497 | if test -n "$ac_init_help"; then | |
1498 | case $ac_init_help in | |
1499 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1500 | esac | |
1501 | cat <<\_ACEOF | |
1502 | ||
35fa52c0 DWT |
1503 | Optional Features: |
1504 | --disable-option-checking ignore unrecognized --enable/--with options | |
1505 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1506 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
549f29b5 | 1507 | --enable-static[=PKGS] build static libraries [default=no] |
9c60689e | 1508 | --enable-shared[=PKGS] build shared libraries [default=yes] |
9c60689e DWT |
1509 | --enable-fast-install[=PKGS] |
1510 | optimize for fast installation [default=yes] | |
1511 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b66977f1 | 1512 | --enable-javascript[=ENGINE] |
790e5246 | 1513 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1514 | available option for ENGINE is JavaScriptCore) |
1515 | [default=yes] | |
5053a6d1 | 1516 | --disable-rpath do not hardcode runtime library paths |
35fa52c0 DWT |
1517 | |
1518 | Optional Packages: | |
1519 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1520 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
9c60689e DWT |
1521 | --with-pic try to use only PIC/non-PIC objects [default=use |
1522 | both] | |
1523 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
632b71ea DWT |
1524 | --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include |
1525 | path for frameworks with -F | |
309b0535 DWT |
1526 | --with-apr=PATH prefix for installed APR or the full path to |
1527 | apr-config | |
35fa52c0 DWT |
1528 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1529 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1530 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1531 | ||
dbadc56a | 1532 | Some influential environment variables: |
35fa52c0 DWT |
1533 | CC C compiler command |
1534 | CFLAGS C compiler flags | |
dbadc56a DWT |
1535 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1536 | nonstandard directory <lib dir> | |
1537 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1538 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1539 | you have headers in a nonstandard directory <include dir> |
9c60689e | 1540 | CPP C preprocessor |
3fd51f51 | 1541 | PKG_CONFIG path to pkg-config utility |
e9c9a47c DWT |
1542 | BISON GNU Project parser generator (yacc replacement) |
1543 | FLEX the fast lexical analyser generator | |
1544 | GPERF perfect hash function generator | |
47aaa820 DWT |
1545 | CXX C++ compiler command |
1546 | CXXFLAGS C++ compiler flags | |
1547 | CXXCPP C++ preprocessor | |
632b71ea DWT |
1548 | OBJCXX Objective C++ compiler command |
1549 | OBJCXXFLAGS Objective C++ compiler flags | |
35fa52c0 DWT |
1550 | WEBKIT_CFLAGS |
1551 | C compiler flags for WEBKIT, overriding pkg-config | |
1552 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1553 | LIBFFI_CFLAGS | |
1554 | C compiler flags for LIBFFI, overriding pkg-config | |
1555 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
790e5246 DWT |
1556 | GNUSTEP_CONFIG |
1557 | prints information about the current gnustep installation | |
dbadc56a DWT |
1558 | |
1559 | Use these variables to override the choices made by `configure' or to help | |
1560 | it to find libraries and programs with nonstandard names/locations. | |
1561 | ||
c7aa54aa DWT |
1562 | Report bugs to <saurik@saurik.com>. |
1563 | Cycript home page: <http://www.cycript.org/>. | |
1564 | _ACEOF | |
1565 | ac_status=$? | |
1566 | fi | |
1567 | ||
1568 | if test "$ac_init_help" = "recursive"; then | |
1569 | # If there are subdirs, report their specific --help. | |
1570 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1571 | test -d "$ac_dir" || | |
1572 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1573 | continue | |
1574 | ac_builddir=. | |
1575 | ||
1576 | case "$ac_dir" in | |
1577 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1578 | *) | |
1579 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1580 | # A ".." for each directory in $ac_dir_suffix. | |
1581 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1582 | case $ac_top_builddir_sub in | |
1583 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1584 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1585 | esac ;; | |
1586 | esac | |
1587 | ac_abs_top_builddir=$ac_pwd | |
1588 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1589 | # for backward compatibility: | |
1590 | ac_top_builddir=$ac_top_build_prefix | |
1591 | ||
1592 | case $srcdir in | |
1593 | .) # We are building in place. | |
1594 | ac_srcdir=. | |
1595 | ac_top_srcdir=$ac_top_builddir_sub | |
1596 | ac_abs_top_srcdir=$ac_pwd ;; | |
1597 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1598 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1599 | ac_top_srcdir=$srcdir | |
1600 | ac_abs_top_srcdir=$srcdir ;; | |
1601 | *) # Relative name. | |
1602 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1603 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1604 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1605 | esac | |
1606 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1607 | ||
1608 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1609 | # Check for guested configure. | |
1610 | if test -f "$ac_srcdir/configure.gnu"; then | |
1611 | echo && | |
1612 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1613 | elif test -f "$ac_srcdir/configure"; then | |
1614 | echo && | |
1615 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1616 | else | |
1617 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1618 | fi || ac_status=$? | |
1619 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1620 | done | |
1621 | fi | |
1622 | ||
1623 | test -n "$ac_init_help" && exit $ac_status | |
1624 | if $ac_init_version; then | |
1625 | cat <<\_ACEOF | |
1626 | Cycript configure 0.9 | |
9c60689e | 1627 | generated by GNU Autoconf 2.65 |
c7aa54aa DWT |
1628 | |
1629 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1630 | This configure script is free software; the Free Software Foundation | |
1631 | gives unlimited permission to copy, distribute and modify it. | |
1632 | _ACEOF | |
1633 | exit | |
1634 | fi | |
1635 | ||
1636 | ## ------------------------ ## | |
1637 | ## Autoconf initialization. ## | |
1638 | ## ------------------------ ## | |
dbadc56a | 1639 | |
35fa52c0 DWT |
1640 | # ac_fn_c_try_compile LINENO |
1641 | # -------------------------- | |
1642 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1643 | ac_fn_c_try_compile () | |
1644 | { | |
1645 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1646 | rm -f conftest.$ac_objext | |
1647 | if { { ac_try="$ac_compile" | |
1648 | case "(($ac_try" in | |
1649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1650 | *) ac_try_echo=$ac_try;; | |
1651 | esac | |
1652 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1653 | $as_echo "$ac_try_echo"; } >&5 | |
1654 | (eval "$ac_compile") 2>conftest.err | |
1655 | ac_status=$? | |
1656 | if test -s conftest.err; then | |
1657 | grep -v '^ *+' conftest.err >conftest.er1 | |
1658 | cat conftest.er1 >&5 | |
1659 | mv -f conftest.er1 conftest.err | |
1660 | fi | |
1661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1662 | test $ac_status = 0; } && { | |
1663 | test -z "$ac_c_werror_flag" || | |
1664 | test ! -s conftest.err | |
1665 | } && test -s conftest.$ac_objext; then : | |
1666 | ac_retval=0 | |
1667 | else | |
1668 | $as_echo "$as_me: failed program was:" >&5 | |
1669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1670 | ||
1671 | ac_retval=1 | |
1672 | fi | |
1673 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1674 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1675 | |
1676 | } # ac_fn_c_try_compile | |
1677 | ||
1678 | # ac_fn_c_try_link LINENO | |
1679 | # ----------------------- | |
1680 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1681 | ac_fn_c_try_link () | |
1682 | { | |
1683 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1684 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1685 | if { { ac_try="$ac_link" | |
1686 | case "(($ac_try" in | |
1687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1688 | *) ac_try_echo=$ac_try;; | |
1689 | esac | |
1690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1691 | $as_echo "$ac_try_echo"; } >&5 | |
1692 | (eval "$ac_link") 2>conftest.err | |
1693 | ac_status=$? | |
1694 | if test -s conftest.err; then | |
1695 | grep -v '^ *+' conftest.err >conftest.er1 | |
1696 | cat conftest.er1 >&5 | |
1697 | mv -f conftest.er1 conftest.err | |
1698 | fi | |
1699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1700 | test $ac_status = 0; } && { | |
1701 | test -z "$ac_c_werror_flag" || | |
1702 | test ! -s conftest.err | |
1703 | } && test -s conftest$ac_exeext && { | |
1704 | test "$cross_compiling" = yes || | |
1705 | $as_test_x conftest$ac_exeext | |
1706 | }; then : | |
1707 | ac_retval=0 | |
1708 | else | |
1709 | $as_echo "$as_me: failed program was:" >&5 | |
1710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1711 | ||
1712 | ac_retval=1 | |
1713 | fi | |
1714 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1715 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1716 | # interfere with the next link command; also delete a directory that is | |
1717 | # left behind by Apple's compiler. We do this before executing the actions. | |
1718 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1719 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1720 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1721 | |
1722 | } # ac_fn_c_try_link | |
1723 | ||
9c60689e DWT |
1724 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1725 | # ------------------------------------------------------- | |
1726 | # Tests whether HEADER exists and can be compiled using the include files in | |
1727 | # INCLUDES, setting the cache variable VAR accordingly. | |
1728 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1729 | { |
1730 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1732 | $as_echo_n "checking for $2... " >&6; } | |
1733 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1734 | $as_echo_n "(cached) " >&6 | |
1735 | else | |
1736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1737 | /* end confdefs.h. */ | |
1738 | $4 | |
1739 | #include <$2> | |
1740 | _ACEOF | |
1741 | if ac_fn_c_try_compile "$LINENO"; then : | |
1742 | eval "$3=yes" | |
1743 | else | |
1744 | eval "$3=no" | |
1745 | fi | |
1746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1747 | fi | |
1748 | eval ac_res=\$$3 | |
1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1750 | $as_echo "$ac_res" >&6; } | |
1751 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1752 | ||
1753 | } # ac_fn_c_check_header_compile | |
1754 | ||
1755 | # ac_fn_c_try_cpp LINENO | |
1756 | # ---------------------- | |
1757 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1758 | ac_fn_c_try_cpp () | |
1759 | { | |
1760 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1761 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1762 | case "(($ac_try" in |
1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1764 | *) ac_try_echo=$ac_try;; | |
1765 | esac | |
1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1767 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1768 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1769 | ac_status=$? |
1770 | if test -s conftest.err; then | |
1771 | grep -v '^ *+' conftest.err >conftest.er1 | |
1772 | cat conftest.er1 >&5 | |
1773 | mv -f conftest.er1 conftest.err | |
1774 | fi | |
1775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9c60689e DWT |
1776 | test $ac_status = 0; } >/dev/null && { |
1777 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dbadc56a | 1778 | test ! -s conftest.err |
9c60689e | 1779 | }; then : |
dbadc56a DWT |
1780 | ac_retval=0 |
1781 | else | |
1782 | $as_echo "$as_me: failed program was:" >&5 | |
1783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1784 | ||
9c60689e | 1785 | ac_retval=1 |
dbadc56a DWT |
1786 | fi |
1787 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1788 | as_fn_set_status $ac_retval |
dbadc56a | 1789 | |
9c60689e | 1790 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1791 | |
1792 | # ac_fn_c_try_run LINENO | |
1793 | # ---------------------- | |
1794 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1795 | # that executables *can* be run. | |
1796 | ac_fn_c_try_run () | |
1797 | { | |
1798 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1799 | if { { ac_try="$ac_link" | |
1800 | case "(($ac_try" in | |
1801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1802 | *) ac_try_echo=$ac_try;; | |
1803 | esac | |
1804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1805 | $as_echo "$ac_try_echo"; } >&5 | |
1806 | (eval "$ac_link") 2>&5 | |
1807 | ac_status=$? | |
1808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1809 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1810 | { { case "(($ac_try" in | |
1811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1812 | *) ac_try_echo=$ac_try;; | |
1813 | esac | |
1814 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1815 | $as_echo "$ac_try_echo"; } >&5 | |
1816 | (eval "$ac_try") 2>&5 | |
1817 | ac_status=$? | |
1818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1819 | test $ac_status = 0; }; }; then : | |
1820 | ac_retval=0 | |
1821 | else | |
1822 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1823 | $as_echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | ac_retval=$ac_status | |
1827 | fi | |
1828 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1829 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1830 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1831 | |
1832 | } # ac_fn_c_try_run | |
6b66678a | 1833 | |
9c60689e DWT |
1834 | # ac_fn_c_check_func LINENO FUNC VAR |
1835 | # ---------------------------------- | |
1836 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1837 | ac_fn_c_check_func () | |
6b66678a DWT |
1838 | { |
1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1841 | $as_echo_n "checking for $2... " >&6; } | |
1842 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1843 | $as_echo_n "(cached) " >&6 | |
6b66678a | 1844 | else |
9c60689e DWT |
1845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1846 | /* end confdefs.h. */ | |
1847 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1849 | #define $2 innocuous_$2 | |
6b66678a | 1850 | |
9c60689e DWT |
1851 | /* System header to define __stub macros and hopefully few prototypes, |
1852 | which can conflict with char $2 (); below. | |
1853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1854 | <limits.h> exists even on freestanding compilers. */ | |
1855 | ||
1856 | #ifdef __STDC__ | |
1857 | # include <limits.h> | |
1858 | #else | |
1859 | # include <assert.h> | |
1860 | #endif | |
1861 | ||
1862 | #undef $2 | |
1863 | ||
1864 | /* Override any GCC internal prototype to avoid an error. | |
1865 | Use char because int might match the return type of a GCC | |
1866 | builtin and then its argument prototype would still apply. */ | |
1867 | #ifdef __cplusplus | |
1868 | extern "C" | |
1869 | #endif | |
1870 | char $2 (); | |
1871 | /* The GNU C library defines this for functions which it implements | |
1872 | to always fail with ENOSYS. Some functions are actually named | |
1873 | something starting with __ and the normal name is an alias. */ | |
1874 | #if defined __stub_$2 || defined __stub___$2 | |
1875 | choke me | |
1876 | #endif | |
1877 | ||
1878 | int | |
1879 | main () | |
1880 | { | |
1881 | return $2 (); | |
1882 | ; | |
1883 | return 0; | |
1884 | } | |
1885 | _ACEOF | |
1886 | if ac_fn_c_try_link "$LINENO"; then : | |
1887 | eval "$3=yes" | |
1888 | else | |
1889 | eval "$3=no" | |
1890 | fi | |
1891 | rm -f core conftest.err conftest.$ac_objext \ | |
1892 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1893 | fi |
9c60689e DWT |
1894 | eval ac_res=\$$3 |
1895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1896 | $as_echo "$ac_res" >&6; } | |
6b66678a | 1897 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
6b66678a | 1898 | |
9c60689e | 1899 | } # ac_fn_c_check_func |
6b66678a | 1900 | |
9c60689e DWT |
1901 | # ac_fn_cxx_try_compile LINENO |
1902 | # ---------------------------- | |
1903 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1904 | ac_fn_cxx_try_compile () | |
6b66678a DWT |
1905 | { |
1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1907 | rm -f conftest.$ac_objext |
1908 | if { { ac_try="$ac_compile" | |
1909 | case "(($ac_try" in | |
1910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1911 | *) ac_try_echo=$ac_try;; | |
1912 | esac | |
1913 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1914 | $as_echo "$ac_try_echo"; } >&5 | |
1915 | (eval "$ac_compile") 2>conftest.err | |
1916 | ac_status=$? | |
1917 | if test -s conftest.err; then | |
1918 | grep -v '^ *+' conftest.err >conftest.er1 | |
1919 | cat conftest.er1 >&5 | |
1920 | mv -f conftest.er1 conftest.err | |
1921 | fi | |
1922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1923 | test $ac_status = 0; } && { | |
1924 | test -z "$ac_cxx_werror_flag" || | |
1925 | test ! -s conftest.err | |
1926 | } && test -s conftest.$ac_objext; then : | |
1927 | ac_retval=0 | |
1928 | else | |
1929 | $as_echo "$as_me: failed program was:" >&5 | |
1930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1931 | ||
1932 | ac_retval=1 | |
1933 | fi | |
1934 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1935 | as_fn_set_status $ac_retval | |
1936 | ||
1937 | } # ac_fn_cxx_try_compile | |
1938 | ||
1939 | # ac_fn_cxx_try_cpp LINENO | |
1940 | # ------------------------ | |
1941 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1942 | ac_fn_cxx_try_cpp () | |
1943 | { | |
1944 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1945 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1946 | case "(($ac_try" in | |
1947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1948 | *) ac_try_echo=$ac_try;; | |
1949 | esac | |
1950 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1951 | $as_echo "$ac_try_echo"; } >&5 | |
1952 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1953 | ac_status=$? | |
1954 | if test -s conftest.err; then | |
1955 | grep -v '^ *+' conftest.err >conftest.er1 | |
1956 | cat conftest.er1 >&5 | |
1957 | mv -f conftest.er1 conftest.err | |
1958 | fi | |
1959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1960 | test $ac_status = 0; } >/dev/null && { | |
1961 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1962 | test ! -s conftest.err | |
1963 | }; then : | |
1964 | ac_retval=0 | |
1965 | else | |
1966 | $as_echo "$as_me: failed program was:" >&5 | |
1967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1968 | ||
1969 | ac_retval=1 | |
1970 | fi | |
1971 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1972 | as_fn_set_status $ac_retval | |
1973 | ||
1974 | } # ac_fn_cxx_try_cpp | |
1975 | ||
1976 | # ac_fn_cxx_try_link LINENO | |
1977 | # ------------------------- | |
1978 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1979 | ac_fn_cxx_try_link () | |
1980 | { | |
1981 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1983 | if { { ac_try="$ac_link" | |
1984 | case "(($ac_try" in | |
1985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1986 | *) ac_try_echo=$ac_try;; | |
1987 | esac | |
1988 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1989 | $as_echo "$ac_try_echo"; } >&5 | |
1990 | (eval "$ac_link") 2>conftest.err | |
1991 | ac_status=$? | |
1992 | if test -s conftest.err; then | |
1993 | grep -v '^ *+' conftest.err >conftest.er1 | |
1994 | cat conftest.er1 >&5 | |
1995 | mv -f conftest.er1 conftest.err | |
1996 | fi | |
1997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1998 | test $ac_status = 0; } && { | |
1999 | test -z "$ac_cxx_werror_flag" || | |
2000 | test ! -s conftest.err | |
2001 | } && test -s conftest$ac_exeext && { | |
2002 | test "$cross_compiling" = yes || | |
2003 | $as_test_x conftest$ac_exeext | |
2004 | }; then : | |
2005 | ac_retval=0 | |
2006 | else | |
2007 | $as_echo "$as_me: failed program was:" >&5 | |
2008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2009 | ||
2010 | ac_retval=1 | |
2011 | fi | |
2012 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2013 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2014 | # interfere with the next link command; also delete a directory that is | |
2015 | # left behind by Apple's compiler. We do this before executing the actions. | |
2016 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2017 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2018 | as_fn_set_status $ac_retval | |
2019 | ||
2020 | } # ac_fn_cxx_try_link | |
2021 | ||
632b71ea DWT |
2022 | # ac_fn_objcxx_try_compile LINENO |
2023 | # ------------------------------- | |
2024 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2025 | ac_fn_objcxx_try_compile () | |
2026 | { | |
2027 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2028 | rm -f conftest.$ac_objext | |
2029 | if { { ac_try="$ac_compile" | |
2030 | case "(($ac_try" in | |
2031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2032 | *) ac_try_echo=$ac_try;; | |
2033 | esac | |
2034 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2035 | $as_echo "$ac_try_echo"; } >&5 | |
2036 | (eval "$ac_compile") 2>conftest.err | |
2037 | ac_status=$? | |
2038 | if test -s conftest.err; then | |
2039 | grep -v '^ *+' conftest.err >conftest.er1 | |
2040 | cat conftest.er1 >&5 | |
2041 | mv -f conftest.er1 conftest.err | |
2042 | fi | |
2043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2044 | test $ac_status = 0; } && { | |
2045 | test -z "$ac_objcxx_werror_flag" || | |
2046 | test ! -s conftest.err | |
2047 | } && test -s conftest.$ac_objext; then : | |
2048 | ac_retval=0 | |
2049 | else | |
2050 | $as_echo "$as_me: failed program was:" >&5 | |
2051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2052 | ||
2053 | ac_retval=1 | |
2054 | fi | |
2055 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2056 | as_fn_set_status $ac_retval | |
2057 | ||
2058 | } # ac_fn_objcxx_try_compile | |
2059 | ||
47aaa820 DWT |
2060 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2061 | # --------------------------------------------------------- | |
2062 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2063 | # the include files in INCLUDES and setting the cache variable VAR | |
2064 | # accordingly. | |
2065 | ac_fn_cxx_check_header_mongrel () | |
2066 | { | |
2067 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2068 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2070 | $as_echo_n "checking for $2... " >&6; } | |
2071 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2072 | $as_echo_n "(cached) " >&6 | |
2073 | fi | |
2074 | eval ac_res=\$$3 | |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2076 | $as_echo "$ac_res" >&6; } | |
2077 | else | |
2078 | # Is the header compilable? | |
2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2080 | $as_echo_n "checking $2 usability... " >&6; } | |
2081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2082 | /* end confdefs.h. */ | |
2083 | $4 | |
2084 | #include <$2> | |
2085 | _ACEOF | |
2086 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2087 | ac_header_compiler=yes | |
2088 | else | |
2089 | ac_header_compiler=no | |
2090 | fi | |
2091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2093 | $as_echo "$ac_header_compiler" >&6; } | |
2094 | ||
2095 | # Is the header present? | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2097 | $as_echo_n "checking $2 presence... " >&6; } | |
2098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2099 | /* end confdefs.h. */ | |
2100 | #include <$2> | |
2101 | _ACEOF | |
2102 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2103 | ac_header_preproc=yes | |
2104 | else | |
2105 | ac_header_preproc=no | |
2106 | fi | |
2107 | rm -f conftest.err conftest.$ac_ext | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2109 | $as_echo "$ac_header_preproc" >&6; } | |
2110 | ||
2111 | # So? What about this header? | |
2112 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2113 | yes:no: ) | |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2115 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2117 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2118 | ;; | |
2119 | no:yes:* ) | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2121 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2123 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2125 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2127 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2129 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2130 | ( cat <<\_ASBOX | |
2131 | ## -------------------------------- ## | |
2132 | ## Report this to saurik@saurik.com ## | |
2133 | ## -------------------------------- ## | |
2134 | _ASBOX | |
2135 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2136 | ;; | |
2137 | esac | |
2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2139 | $as_echo_n "checking for $2... " >&6; } | |
2140 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2141 | $as_echo_n "(cached) " >&6 | |
2142 | else | |
2143 | eval "$3=\$ac_header_compiler" | |
2144 | fi | |
2145 | eval ac_res=\$$3 | |
2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2147 | $as_echo "$ac_res" >&6; } | |
2148 | fi | |
2149 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2150 | ||
2151 | } # ac_fn_cxx_check_header_mongrel | |
2152 | ||
c823f118 DWT |
2153 | # ac_fn_objcxx_try_link LINENO |
2154 | # ---------------------------- | |
2155 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2156 | ac_fn_objcxx_try_link () | |
2157 | { | |
2158 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2160 | if { { ac_try="$ac_link" | |
2161 | case "(($ac_try" in | |
2162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2163 | *) ac_try_echo=$ac_try;; | |
2164 | esac | |
2165 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2166 | $as_echo "$ac_try_echo"; } >&5 | |
2167 | (eval "$ac_link") 2>conftest.err | |
2168 | ac_status=$? | |
2169 | if test -s conftest.err; then | |
2170 | grep -v '^ *+' conftest.err >conftest.er1 | |
2171 | cat conftest.er1 >&5 | |
2172 | mv -f conftest.er1 conftest.err | |
2173 | fi | |
2174 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2175 | test $ac_status = 0; } && { | |
2176 | test -z "$ac_objcxx_werror_flag" || | |
2177 | test ! -s conftest.err | |
2178 | } && test -s conftest$ac_exeext && { | |
2179 | test "$cross_compiling" = yes || | |
2180 | $as_test_x conftest$ac_exeext | |
2181 | }; then : | |
2182 | ac_retval=0 | |
2183 | else | |
2184 | $as_echo "$as_me: failed program was:" >&5 | |
2185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2186 | ||
2187 | ac_retval=1 | |
2188 | fi | |
2189 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2190 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2191 | # interfere with the next link command; also delete a directory that is | |
2192 | # left behind by Apple's compiler. We do this before executing the actions. | |
2193 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2194 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2195 | as_fn_set_status $ac_retval | |
2196 | ||
2197 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2198 | cat >config.log <<_ACEOF |
2199 | This file contains any messages produced by compilers while | |
2200 | running configure, to aid debugging if configure makes a mistake. | |
2201 | ||
2202 | It was created by Cycript $as_me 0.9, which was | |
9c60689e | 2203 | generated by GNU Autoconf 2.65. Invocation command line was |
c7aa54aa DWT |
2204 | |
2205 | $ $0 $@ | |
2206 | ||
2207 | _ACEOF | |
2208 | exec 5>>config.log | |
2209 | { | |
2210 | cat <<_ASUNAME | |
2211 | ## --------- ## | |
2212 | ## Platform. ## | |
2213 | ## --------- ## | |
2214 | ||
2215 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2216 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2217 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2218 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2219 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2220 | ||
2221 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2222 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2223 | ||
2224 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2225 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2226 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2227 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2228 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2229 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2230 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2231 | ||
2232 | _ASUNAME | |
2233 | ||
2234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2235 | for as_dir in $PATH | |
2236 | do | |
2237 | IFS=$as_save_IFS | |
2238 | test -z "$as_dir" && as_dir=. | |
2239 | $as_echo "PATH: $as_dir" | |
2240 | done | |
2241 | IFS=$as_save_IFS | |
2242 | ||
2243 | } >&5 | |
2244 | ||
2245 | cat >&5 <<_ACEOF | |
2246 | ||
2247 | ||
2248 | ## ----------- ## | |
2249 | ## Core tests. ## | |
2250 | ## ----------- ## | |
2251 | ||
2252 | _ACEOF | |
2253 | ||
2254 | ||
2255 | # Keep a trace of the command line. | |
2256 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2257 | # Strip out --silent because we don't want to record it for future runs. | |
2258 | # Also quote any args containing shell meta-characters. | |
2259 | # Make two passes to allow for proper duplicate-argument suppression. | |
2260 | ac_configure_args= | |
2261 | ac_configure_args0= | |
2262 | ac_configure_args1= | |
2263 | ac_must_keep_next=false | |
2264 | for ac_pass in 1 2 | |
2265 | do | |
2266 | for ac_arg | |
2267 | do | |
2268 | case $ac_arg in | |
2269 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2270 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2271 | | -silent | --silent | --silen | --sile | --sil) | |
2272 | continue ;; | |
2273 | *\'*) | |
2274 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2275 | esac | |
2276 | case $ac_pass in | |
2277 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2278 | 2) | |
2279 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2280 | if test $ac_must_keep_next = true; then | |
2281 | ac_must_keep_next=false # Got value, back to normal. | |
2282 | else | |
2283 | case $ac_arg in | |
2284 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2285 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2286 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2287 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2288 | case "$ac_configure_args0 " in | |
2289 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2290 | esac | |
2291 | ;; | |
2292 | -* ) ac_must_keep_next=true ;; | |
2293 | esac | |
2294 | fi | |
2295 | as_fn_append ac_configure_args " '$ac_arg'" | |
2296 | ;; | |
2297 | esac | |
2298 | done | |
2299 | done | |
2300 | { ac_configure_args0=; unset ac_configure_args0;} | |
2301 | { ac_configure_args1=; unset ac_configure_args1;} | |
2302 | ||
2303 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2304 | # config.log. We remove comments because anyway the quotes in there | |
2305 | # would cause problems or look ugly. | |
2306 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2307 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2308 | trap 'exit_status=$? | |
2309 | # Save into config.log some information that might help in debugging. | |
2310 | { | |
2311 | echo | |
2312 | ||
2313 | cat <<\_ASBOX | |
2314 | ## ---------------- ## | |
2315 | ## Cache variables. ## | |
2316 | ## ---------------- ## | |
2317 | _ASBOX | |
2318 | echo | |
2319 | # The following way of writing the cache mishandles newlines in values, | |
2320 | ( | |
2321 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2322 | eval ac_val=\$$ac_var | |
2323 | case $ac_val in #( | |
2324 | *${as_nl}*) | |
2325 | case $ac_var in #( | |
2326 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2327 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2328 | esac | |
2329 | case $ac_var in #( | |
2330 | _ | IFS | as_nl) ;; #( | |
2331 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2332 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2333 | esac ;; | |
2334 | esac | |
2335 | done | |
2336 | (set) 2>&1 | | |
2337 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2338 | *${as_nl}ac_space=\ *) | |
2339 | sed -n \ | |
2340 | "s/'\''/'\''\\\\'\'''\''/g; | |
2341 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2342 | ;; #( | |
2343 | *) | |
2344 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2345 | ;; | |
2346 | esac | | |
2347 | sort | |
2348 | ) | |
2349 | echo | |
2350 | ||
2351 | cat <<\_ASBOX | |
2352 | ## ----------------- ## | |
2353 | ## Output variables. ## | |
2354 | ## ----------------- ## | |
2355 | _ASBOX | |
2356 | echo | |
2357 | for ac_var in $ac_subst_vars | |
2358 | do | |
2359 | eval ac_val=\$$ac_var | |
2360 | case $ac_val in | |
2361 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2362 | esac | |
2363 | $as_echo "$ac_var='\''$ac_val'\''" | |
2364 | done | sort | |
2365 | echo | |
2366 | ||
2367 | if test -n "$ac_subst_files"; then | |
2368 | cat <<\_ASBOX | |
2369 | ## ------------------- ## | |
2370 | ## File substitutions. ## | |
2371 | ## ------------------- ## | |
2372 | _ASBOX | |
2373 | echo | |
2374 | for ac_var in $ac_subst_files | |
2375 | do | |
2376 | eval ac_val=\$$ac_var | |
2377 | case $ac_val in | |
2378 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2379 | esac | |
2380 | $as_echo "$ac_var='\''$ac_val'\''" | |
2381 | done | sort | |
2382 | echo | |
2383 | fi | |
2384 | ||
2385 | if test -s confdefs.h; then | |
2386 | cat <<\_ASBOX | |
2387 | ## ----------- ## | |
2388 | ## confdefs.h. ## | |
2389 | ## ----------- ## | |
2390 | _ASBOX | |
2391 | echo | |
2392 | cat confdefs.h | |
2393 | echo | |
2394 | fi | |
2395 | test "$ac_signal" != 0 && | |
2396 | $as_echo "$as_me: caught signal $ac_signal" | |
2397 | $as_echo "$as_me: exit $exit_status" | |
2398 | } >&5 | |
2399 | rm -f core *.core core.conftest.* && | |
2400 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2401 | exit $exit_status | |
2402 | ' 0 | |
2403 | for ac_signal in 1 2 13 15; do | |
2404 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2405 | done | |
2406 | ac_signal=0 | |
2407 | ||
2408 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2409 | rm -f -r conftest* confdefs.h | |
2410 | ||
2411 | $as_echo "/* confdefs.h */" > confdefs.h | |
2412 | ||
2413 | # Predefined preprocessor variables. | |
2414 | ||
2415 | cat >>confdefs.h <<_ACEOF | |
2416 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2417 | _ACEOF | |
2418 | ||
2419 | cat >>confdefs.h <<_ACEOF | |
2420 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2421 | _ACEOF | |
2422 | ||
2423 | cat >>confdefs.h <<_ACEOF | |
2424 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2425 | _ACEOF | |
2426 | ||
2427 | cat >>confdefs.h <<_ACEOF | |
2428 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2429 | _ACEOF | |
2430 | ||
2431 | cat >>confdefs.h <<_ACEOF | |
2432 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2433 | _ACEOF | |
2434 | ||
2435 | cat >>confdefs.h <<_ACEOF | |
2436 | #define PACKAGE_URL "$PACKAGE_URL" | |
2437 | _ACEOF | |
2438 | ||
2439 | ||
2440 | # Let the site file select an alternate cache file if it wants to. | |
2441 | # Prefer an explicitly selected file to automatically selected ones. | |
2442 | ac_site_file1=NONE | |
2443 | ac_site_file2=NONE | |
2444 | if test -n "$CONFIG_SITE"; then | |
2445 | ac_site_file1=$CONFIG_SITE | |
2446 | elif test "x$prefix" != xNONE; then | |
2447 | ac_site_file1=$prefix/share/config.site | |
2448 | ac_site_file2=$prefix/etc/config.site | |
2449 | else | |
2450 | ac_site_file1=$ac_default_prefix/share/config.site | |
2451 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2452 | fi | |
2453 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2454 | do | |
2455 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2456 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2458 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2459 | sed 's/^/| /' "$ac_site_file" >&5 | |
2460 | . "$ac_site_file" | |
2461 | fi | |
2462 | done | |
2463 | ||
2464 | if test -r "$cache_file"; then | |
9c60689e DWT |
2465 | # Some versions of bash will fail to source /dev/null (special files |
2466 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2467 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2469 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2470 | case $cache_file in | |
2471 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2472 | *) . "./$cache_file";; | |
2473 | esac | |
2474 | fi | |
2475 | else | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2477 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2478 | >$cache_file | |
2479 | fi | |
2480 | ||
2481 | # Check that the precious variables saved in the cache have kept the same | |
2482 | # value. | |
2483 | ac_cache_corrupted=false | |
2484 | for ac_var in $ac_precious_vars; do | |
2485 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2486 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2487 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2488 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2489 | case $ac_old_set,$ac_new_set in | |
2490 | set,) | |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2492 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2493 | ac_cache_corrupted=: ;; | |
2494 | ,set) | |
2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2496 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2497 | ac_cache_corrupted=: ;; | |
2498 | ,);; | |
2499 | *) | |
2500 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2501 | # differences in whitespace do not lead to failure. | |
2502 | ac_old_val_w=`echo x $ac_old_val` | |
2503 | ac_new_val_w=`echo x $ac_new_val` | |
2504 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2506 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2507 | ac_cache_corrupted=: | |
2508 | else | |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2510 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2511 | eval $ac_var=\$ac_old_val | |
2512 | fi | |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2514 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2516 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2517 | fi;; | |
2518 | esac | |
2519 | # Pass precious variables to config.status. | |
2520 | if test "$ac_new_set" = set; then | |
2521 | case $ac_new_val in | |
2522 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2523 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2524 | esac | |
2525 | case " $ac_configure_args " in | |
2526 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2527 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2528 | esac | |
2529 | fi | |
2530 | done | |
2531 | if $ac_cache_corrupted; then | |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2533 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2535 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2536 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2537 | fi | |
2538 | ## -------------------- ## | |
2539 | ## Main body of script. ## | |
2540 | ## -------------------- ## | |
2541 | ||
2542 | ac_ext=c | |
2543 | ac_cpp='$CPP $CPPFLAGS' | |
2544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2547 | ||
2548 | ||
35fa52c0 | 2549 | |
6b66678a DWT |
2550 | ac_aux_dir= |
2551 | for ac_dir in . "$srcdir"/.; do | |
2552 | for ac_t in install-sh install.sh shtool; do | |
2553 | if test -f "$ac_dir/$ac_t"; then | |
2554 | ac_aux_dir=$ac_dir | |
2555 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2556 | break 2 | |
2557 | fi | |
2558 | done | |
2559 | done | |
2560 | if test -z "$ac_aux_dir"; then | |
2561 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2562 | fi | |
2563 | ||
2564 | # These three variables are undocumented and unsupported, | |
2565 | # and are intended to be withdrawn in a future Autoconf release. | |
2566 | # They can cause serious problems if a builder's source tree is in a directory | |
2567 | # whose full name contains unusual characters. | |
2568 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2569 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2570 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2571 | ||
2572 | ||
9c60689e DWT |
2573 | case `pwd` in |
2574 | *\ * | *\ *) | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2576 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2577 | esac | |
2578 | ||
2579 | ||
2580 | ||
2581 | macro_version='2.2.6b' | |
2582 | macro_revision='1.3017' | |
2583 | ||
2584 | ||
2585 | ||
2586 | ||
2587 | ||
2588 | ||
2589 | ||
2590 | ||
2591 | ||
2592 | ||
2593 | ||
2594 | ||
2595 | ||
2596 | ltmain="$ac_aux_dir/ltmain.sh" | |
2597 | ||
2598 | # Make sure we can run config.sub. | |
2599 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2600 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2601 | ||
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2603 | $as_echo_n "checking build system type... " >&6; } | |
2604 | if test "${ac_cv_build+set}" = set; then : | |
2605 | $as_echo_n "(cached) " >&6 | |
2606 | else | |
2607 | ac_build_alias=$build_alias | |
2608 | test "x$ac_build_alias" = x && | |
2609 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2610 | test "x$ac_build_alias" = x && | |
2611 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2612 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2613 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2614 | ||
2615 | fi | |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2617 | $as_echo "$ac_cv_build" >&6; } | |
2618 | case $ac_cv_build in | |
2619 | *-*-*) ;; | |
2620 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2621 | esac | |
2622 | build=$ac_cv_build | |
2623 | ac_save_IFS=$IFS; IFS='-' | |
2624 | set x $ac_cv_build | |
2625 | shift | |
2626 | build_cpu=$1 | |
2627 | build_vendor=$2 | |
2628 | shift; shift | |
2629 | # Remember, the first character of IFS is used to create $*, | |
2630 | # except with old shells: | |
2631 | build_os=$* | |
2632 | IFS=$ac_save_IFS | |
2633 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2634 | ||
2635 | ||
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2637 | $as_echo_n "checking host system type... " >&6; } | |
2638 | if test "${ac_cv_host+set}" = set; then : | |
2639 | $as_echo_n "(cached) " >&6 | |
2640 | else | |
2641 | if test "x$host_alias" = x; then | |
2642 | ac_cv_host=$ac_cv_build | |
2643 | else | |
2644 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2645 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2646 | fi | |
2647 | ||
2648 | fi | |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2650 | $as_echo "$ac_cv_host" >&6; } | |
2651 | case $ac_cv_host in | |
2652 | *-*-*) ;; | |
2653 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2654 | esac | |
2655 | host=$ac_cv_host | |
2656 | ac_save_IFS=$IFS; IFS='-' | |
2657 | set x $ac_cv_host | |
2658 | shift | |
2659 | host_cpu=$1 | |
2660 | host_vendor=$2 | |
2661 | shift; shift | |
2662 | # Remember, the first character of IFS is used to create $*, | |
2663 | # except with old shells: | |
2664 | host_os=$* | |
2665 | IFS=$ac_save_IFS | |
2666 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2667 | ||
2668 | ||
2669 | ac_ext=c | |
2670 | ac_cpp='$CPP $CPPFLAGS' | |
2671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2674 | if test -n "$ac_tool_prefix"; then | |
2675 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2676 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2678 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 2679 | if test "${ac_cv_prog_CC+set}" = set; then : |
dbadc56a DWT |
2680 | $as_echo_n "(cached) " >&6 |
2681 | else | |
9c60689e DWT |
2682 | if test -n "$CC"; then |
2683 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
2684 | else |
2685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2686 | for as_dir in $PATH | |
2687 | do | |
2688 | IFS=$as_save_IFS | |
2689 | test -z "$as_dir" && as_dir=. | |
2690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 2692 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
2693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2694 | break 2 | |
2695 | fi | |
2696 | done | |
2697 | done | |
2698 | IFS=$as_save_IFS | |
2699 | ||
2700 | fi | |
2701 | fi | |
9c60689e DWT |
2702 | CC=$ac_cv_prog_CC |
2703 | if test -n "$CC"; then | |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2705 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
2706 | else |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2708 | $as_echo "no" >&6; } | |
2709 | fi | |
2710 | ||
2711 | ||
2712 | fi | |
2713 | if test -z "$ac_cv_prog_CC"; then | |
2714 | ac_ct_CC=$CC | |
2715 | # Extract the first word of "gcc", so it can be a program name with args. | |
2716 | set dummy gcc; ac_word=$2 | |
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2718 | $as_echo_n "checking for $ac_word... " >&6; } | |
2719 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2720 | $as_echo_n "(cached) " >&6 | |
2721 | else | |
2722 | if test -n "$ac_ct_CC"; then | |
2723 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2724 | else | |
2725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2726 | for as_dir in $PATH | |
2727 | do | |
2728 | IFS=$as_save_IFS | |
2729 | test -z "$as_dir" && as_dir=. | |
2730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2732 | ac_cv_prog_ac_ct_CC="gcc" | |
2733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2734 | break 2 | |
2735 | fi | |
2736 | done | |
2737 | done | |
2738 | IFS=$as_save_IFS | |
2739 | ||
2740 | fi | |
2741 | fi | |
2742 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2743 | if test -n "$ac_ct_CC"; then | |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2745 | $as_echo "$ac_ct_CC" >&6; } | |
2746 | else | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2748 | $as_echo "no" >&6; } | |
2749 | fi | |
2750 | ||
2751 | if test "x$ac_ct_CC" = x; then | |
2752 | CC="" | |
2753 | else | |
2754 | case $cross_compiling:$ac_tool_warned in | |
2755 | yes:) | |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2758 | ac_tool_warned=yes ;; | |
2759 | esac | |
2760 | CC=$ac_ct_CC | |
2761 | fi | |
2762 | else | |
2763 | CC="$ac_cv_prog_CC" | |
2764 | fi | |
2765 | ||
2766 | if test -z "$CC"; then | |
2767 | if test -n "$ac_tool_prefix"; then | |
2768 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2769 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2771 | $as_echo_n "checking for $ac_word... " >&6; } | |
2772 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2773 | $as_echo_n "(cached) " >&6 | |
2774 | else | |
2775 | if test -n "$CC"; then | |
2776 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2777 | else | |
2778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2779 | for as_dir in $PATH | |
2780 | do | |
2781 | IFS=$as_save_IFS | |
2782 | test -z "$as_dir" && as_dir=. | |
2783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2785 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2787 | break 2 | |
2788 | fi | |
2789 | done | |
2790 | done | |
2791 | IFS=$as_save_IFS | |
2792 | ||
2793 | fi | |
2794 | fi | |
2795 | CC=$ac_cv_prog_CC | |
2796 | if test -n "$CC"; then | |
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2798 | $as_echo "$CC" >&6; } | |
2799 | else | |
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2801 | $as_echo "no" >&6; } | |
2802 | fi | |
2803 | ||
2804 | ||
2805 | fi | |
2806 | fi | |
2807 | if test -z "$CC"; then | |
2808 | # Extract the first word of "cc", so it can be a program name with args. | |
2809 | set dummy cc; ac_word=$2 | |
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2811 | $as_echo_n "checking for $ac_word... " >&6; } | |
2812 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2813 | $as_echo_n "(cached) " >&6 | |
2814 | else | |
2815 | if test -n "$CC"; then | |
2816 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2817 | else | |
2818 | ac_prog_rejected=no | |
2819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2820 | for as_dir in $PATH | |
2821 | do | |
2822 | IFS=$as_save_IFS | |
2823 | test -z "$as_dir" && as_dir=. | |
2824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2826 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2827 | ac_prog_rejected=yes | |
2828 | continue | |
2829 | fi | |
2830 | ac_cv_prog_CC="cc" | |
2831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2832 | break 2 | |
2833 | fi | |
2834 | done | |
2835 | done | |
2836 | IFS=$as_save_IFS | |
2837 | ||
2838 | if test $ac_prog_rejected = yes; then | |
2839 | # We found a bogon in the path, so make sure we never use it. | |
2840 | set dummy $ac_cv_prog_CC | |
2841 | shift | |
2842 | if test $# != 0; then | |
2843 | # We chose a different compiler from the bogus one. | |
2844 | # However, it has the same basename, so the bogon will be chosen | |
2845 | # first if we set CC to just the basename; use the full file name. | |
2846 | shift | |
2847 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2848 | fi | |
2849 | fi | |
2850 | fi | |
2851 | fi | |
2852 | CC=$ac_cv_prog_CC | |
2853 | if test -n "$CC"; then | |
2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2855 | $as_echo "$CC" >&6; } | |
2856 | else | |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2858 | $as_echo "no" >&6; } | |
2859 | fi | |
2860 | ||
2861 | ||
2862 | fi | |
2863 | if test -z "$CC"; then | |
2864 | if test -n "$ac_tool_prefix"; then | |
2865 | for ac_prog in cl.exe | |
2866 | do | |
2867 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2868 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2870 | $as_echo_n "checking for $ac_word... " >&6; } | |
2871 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2872 | $as_echo_n "(cached) " >&6 | |
2873 | else | |
2874 | if test -n "$CC"; then | |
2875 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2876 | else | |
2877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2878 | for as_dir in $PATH | |
2879 | do | |
2880 | IFS=$as_save_IFS | |
2881 | test -z "$as_dir" && as_dir=. | |
2882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2884 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2886 | break 2 | |
2887 | fi | |
2888 | done | |
2889 | done | |
2890 | IFS=$as_save_IFS | |
2891 | ||
2892 | fi | |
2893 | fi | |
2894 | CC=$ac_cv_prog_CC | |
2895 | if test -n "$CC"; then | |
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2897 | $as_echo "$CC" >&6; } | |
2898 | else | |
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2900 | $as_echo "no" >&6; } | |
2901 | fi | |
2902 | ||
2903 | ||
2904 | test -n "$CC" && break | |
2905 | done | |
2906 | fi | |
2907 | if test -z "$CC"; then | |
2908 | ac_ct_CC=$CC | |
2909 | for ac_prog in cl.exe | |
2910 | do | |
2911 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2912 | set dummy $ac_prog; ac_word=$2 | |
2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2914 | $as_echo_n "checking for $ac_word... " >&6; } | |
2915 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2916 | $as_echo_n "(cached) " >&6 | |
2917 | else | |
2918 | if test -n "$ac_ct_CC"; then | |
2919 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2920 | else | |
2921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2922 | for as_dir in $PATH | |
2923 | do | |
2924 | IFS=$as_save_IFS | |
2925 | test -z "$as_dir" && as_dir=. | |
2926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2928 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2930 | break 2 | |
2931 | fi | |
2932 | done | |
2933 | done | |
2934 | IFS=$as_save_IFS | |
2935 | ||
2936 | fi | |
2937 | fi | |
2938 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2939 | if test -n "$ac_ct_CC"; then | |
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2941 | $as_echo "$ac_ct_CC" >&6; } | |
2942 | else | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2944 | $as_echo "no" >&6; } | |
2945 | fi | |
2946 | ||
2947 | ||
2948 | test -n "$ac_ct_CC" && break | |
2949 | done | |
2950 | ||
2951 | if test "x$ac_ct_CC" = x; then | |
2952 | CC="" | |
2953 | else | |
2954 | case $cross_compiling:$ac_tool_warned in | |
2955 | yes:) | |
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2957 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2958 | ac_tool_warned=yes ;; | |
2959 | esac | |
2960 | CC=$ac_ct_CC | |
2961 | fi | |
2962 | fi | |
2963 | ||
2964 | fi | |
2965 | ||
2966 | ||
2967 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2968 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2969 | as_fn_error "no acceptable C compiler found in \$PATH | |
2970 | See \`config.log' for more details." "$LINENO" 5; } | |
2971 | ||
2972 | # Provide some information about the compiler. | |
2973 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2974 | set X $ac_compile | |
2975 | ac_compiler=$2 | |
2976 | for ac_option in --version -v -V -qversion; do | |
2977 | { { ac_try="$ac_compiler $ac_option >&5" | |
2978 | case "(($ac_try" in | |
2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2980 | *) ac_try_echo=$ac_try;; | |
2981 | esac | |
2982 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2983 | $as_echo "$ac_try_echo"; } >&5 | |
2984 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2985 | ac_status=$? | |
2986 | if test -s conftest.err; then | |
2987 | sed '10a\ | |
2988 | ... rest of stderr output deleted ... | |
2989 | 10q' conftest.err >conftest.er1 | |
2990 | cat conftest.er1 >&5 | |
35fa52c0 | 2991 | fi |
9c60689e | 2992 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
2993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2994 | test $ac_status = 0; } | |
2995 | done | |
2996 | ||
2997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2998 | /* end confdefs.h. */ | |
9c60689e | 2999 | |
35fa52c0 DWT |
3000 | int |
3001 | main () | |
3002 | { | |
35fa52c0 DWT |
3003 | |
3004 | ; | |
3005 | return 0; | |
3006 | } | |
3007 | _ACEOF | |
3008 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3009 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3010 | # Try to create an executable without -o first, disregard a.out. |
3011 | # It will help us diagnose broken compilers, and finding out an intuition | |
3012 | # of exeext. | |
9c60689e DWT |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3014 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
35fa52c0 DWT |
3015 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3016 | ||
3017 | # The possible output files: | |
3018 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3019 | ||
3020 | ac_rmfiles= | |
3021 | for ac_file in $ac_files | |
3022 | do | |
3023 | case $ac_file in | |
3024 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3025 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3026 | esac | |
3027 | done | |
3028 | rm -f $ac_rmfiles | |
3029 | ||
3030 | if { { ac_try="$ac_link_default" | |
3031 | case "(($ac_try" in | |
3032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3033 | *) ac_try_echo=$ac_try;; | |
3034 | esac | |
3035 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3036 | $as_echo "$ac_try_echo"; } >&5 | |
3037 | (eval "$ac_link_default") 2>&5 | |
3038 | ac_status=$? | |
3039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3040 | test $ac_status = 0; }; then : | |
3041 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3042 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3043 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3044 | # so that the user can short-circuit this test for compilers unknown to | |
3045 | # Autoconf. | |
3046 | for ac_file in $ac_files '' | |
3047 | do | |
3048 | test -f "$ac_file" || continue | |
3049 | case $ac_file in | |
3050 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3051 | ;; | |
3052 | [ab].out ) | |
3053 | # We found the default executable, but exeext='' is most | |
3054 | # certainly right. | |
3055 | break;; | |
3056 | *.* ) | |
3057 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3058 | then :; else | |
3059 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3060 | fi | |
3061 | # We set ac_cv_exeext here because the later test for it is not | |
3062 | # safe: cross compilers may not add the suffix if given an `-o' | |
3063 | # argument, so we may need to know it at that point already. | |
3064 | # Even if this section looks crufty: it has the advantage of | |
3065 | # actually working. | |
3066 | break;; | |
3067 | * ) | |
3068 | break;; | |
3069 | esac | |
3070 | done | |
3071 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3072 | ||
3073 | else | |
3074 | ac_file='' | |
3075 | fi | |
35fa52c0 | 3076 | if test -z "$ac_file"; then : |
9c60689e DWT |
3077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3078 | $as_echo "no" >&6; } | |
3079 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3080 | sed 's/^/| /' conftest.$ac_ext >&5 |
3081 | ||
3082 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3083 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3084 | { as_fn_set_status 77 | |
3085 | as_fn_error "C compiler cannot create executables | |
3086 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9c60689e DWT |
3087 | else |
3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3089 | $as_echo "yes" >&6; } | |
35fa52c0 | 3090 | fi |
9c60689e DWT |
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3092 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3094 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3095 | ac_exeext=$ac_cv_exeext |
3096 | ||
9c60689e | 3097 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3098 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3100 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3101 | if { { ac_try="$ac_link" | |
3102 | case "(($ac_try" in | |
3103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3104 | *) ac_try_echo=$ac_try;; | |
3105 | esac | |
3106 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3107 | $as_echo "$ac_try_echo"; } >&5 | |
3108 | (eval "$ac_link") 2>&5 | |
3109 | ac_status=$? | |
3110 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3111 | test $ac_status = 0; }; then : | |
3112 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3113 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3114 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3115 | # `rm'. | |
3116 | for ac_file in conftest.exe conftest conftest.*; do | |
3117 | test -f "$ac_file" || continue | |
3118 | case $ac_file in | |
3119 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3120 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3121 | break;; | |
3122 | * ) break;; | |
3123 | esac | |
3124 | done | |
3125 | else | |
3126 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3127 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3128 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3129 | See \`config.log' for more details." "$LINENO" 5; } | |
3130 | fi | |
9c60689e | 3131 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3133 | $as_echo "$ac_cv_exeext" >&6; } | |
3134 | ||
3135 | rm -f conftest.$ac_ext | |
3136 | EXEEXT=$ac_cv_exeext | |
3137 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3139 | /* end confdefs.h. */ | |
3140 | #include <stdio.h> | |
3141 | int | |
3142 | main () | |
3143 | { | |
3144 | FILE *f = fopen ("conftest.out", "w"); | |
3145 | return ferror (f) || fclose (f) != 0; | |
3146 | ||
3147 | ; | |
3148 | return 0; | |
3149 | } | |
3150 | _ACEOF | |
3151 | ac_clean_files="$ac_clean_files conftest.out" | |
3152 | # Check that the compiler produces executables we can run. If not, either | |
3153 | # the compiler is broken, or we cross compile. | |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3155 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3156 | if test "$cross_compiling" != yes; then | |
3157 | { { ac_try="$ac_link" | |
3158 | case "(($ac_try" in | |
3159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3160 | *) ac_try_echo=$ac_try;; | |
3161 | esac | |
3162 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3163 | $as_echo "$ac_try_echo"; } >&5 | |
3164 | (eval "$ac_link") 2>&5 | |
3165 | ac_status=$? | |
3166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3167 | test $ac_status = 0; } | |
3168 | if { ac_try='./conftest$ac_cv_exeext' | |
3169 | { { case "(($ac_try" in | |
3170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3171 | *) ac_try_echo=$ac_try;; | |
3172 | esac | |
3173 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3174 | $as_echo "$ac_try_echo"; } >&5 | |
3175 | (eval "$ac_try") 2>&5 | |
3176 | ac_status=$? | |
3177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3178 | test $ac_status = 0; }; }; then | |
3179 | cross_compiling=no | |
3180 | else | |
3181 | if test "$cross_compiling" = maybe; then | |
3182 | cross_compiling=yes | |
3183 | else | |
3184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3185 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3186 | as_fn_error "cannot run C compiled programs. | |
3187 | If you meant to cross compile, use \`--host'. | |
3188 | See \`config.log' for more details." "$LINENO" 5; } | |
3189 | fi | |
3190 | fi | |
3191 | fi | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3193 | $as_echo "$cross_compiling" >&6; } | |
3194 | ||
3195 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3196 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3198 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3199 | if test "${ac_cv_objext+set}" = set; then : | |
3200 | $as_echo_n "(cached) " >&6 | |
3201 | else | |
3202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3203 | /* end confdefs.h. */ | |
3204 | ||
3205 | int | |
3206 | main () | |
3207 | { | |
3208 | ||
3209 | ; | |
3210 | return 0; | |
3211 | } | |
3212 | _ACEOF | |
3213 | rm -f conftest.o conftest.obj | |
3214 | if { { ac_try="$ac_compile" | |
3215 | case "(($ac_try" in | |
3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3217 | *) ac_try_echo=$ac_try;; | |
3218 | esac | |
3219 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3220 | $as_echo "$ac_try_echo"; } >&5 | |
3221 | (eval "$ac_compile") 2>&5 | |
3222 | ac_status=$? | |
3223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3224 | test $ac_status = 0; }; then : | |
3225 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3226 | test -f "$ac_file" || continue; | |
3227 | case $ac_file in | |
3228 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3229 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3230 | break;; | |
3231 | esac | |
3232 | done | |
3233 | else | |
3234 | $as_echo "$as_me: failed program was:" >&5 | |
3235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3236 | ||
3237 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3238 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3239 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3240 | See \`config.log' for more details." "$LINENO" 5; } | |
3241 | fi | |
3242 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3243 | fi | |
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3245 | $as_echo "$ac_cv_objext" >&6; } | |
3246 | OBJEXT=$ac_cv_objext | |
3247 | ac_objext=$OBJEXT | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3249 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3250 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3251 | $as_echo_n "(cached) " >&6 | |
3252 | else | |
3253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3254 | /* end confdefs.h. */ | |
3255 | ||
3256 | int | |
3257 | main () | |
3258 | { | |
3259 | #ifndef __GNUC__ | |
3260 | choke me | |
3261 | #endif | |
3262 | ||
3263 | ; | |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | if ac_fn_c_try_compile "$LINENO"; then : | |
3268 | ac_compiler_gnu=yes | |
3269 | else | |
3270 | ac_compiler_gnu=no | |
3271 | fi | |
3272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3273 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3274 | ||
3275 | fi | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3277 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3278 | if test $ac_compiler_gnu = yes; then | |
3279 | GCC=yes | |
3280 | else | |
3281 | GCC= | |
3282 | fi | |
3283 | ac_test_CFLAGS=${CFLAGS+set} | |
3284 | ac_save_CFLAGS=$CFLAGS | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3286 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3287 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3288 | $as_echo_n "(cached) " >&6 | |
3289 | else | |
3290 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3291 | ac_c_werror_flag=yes | |
3292 | ac_cv_prog_cc_g=no | |
3293 | CFLAGS="-g" | |
3294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3295 | /* end confdefs.h. */ | |
3296 | ||
3297 | int | |
3298 | main () | |
3299 | { | |
3300 | ||
3301 | ; | |
3302 | return 0; | |
3303 | } | |
3304 | _ACEOF | |
3305 | if ac_fn_c_try_compile "$LINENO"; then : | |
3306 | ac_cv_prog_cc_g=yes | |
3307 | else | |
3308 | CFLAGS="" | |
3309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3310 | /* end confdefs.h. */ | |
3311 | ||
3312 | int | |
3313 | main () | |
3314 | { | |
3315 | ||
3316 | ; | |
3317 | return 0; | |
3318 | } | |
3319 | _ACEOF | |
3320 | if ac_fn_c_try_compile "$LINENO"; then : | |
3321 | ||
3322 | else | |
3323 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3324 | CFLAGS="-g" | |
3325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3326 | /* end confdefs.h. */ | |
3327 | ||
3328 | int | |
3329 | main () | |
3330 | { | |
3331 | ||
3332 | ; | |
3333 | return 0; | |
3334 | } | |
3335 | _ACEOF | |
3336 | if ac_fn_c_try_compile "$LINENO"; then : | |
3337 | ac_cv_prog_cc_g=yes | |
3338 | fi | |
3339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3340 | fi | |
3341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3342 | fi | |
3343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3344 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3345 | fi | |
3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3347 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3348 | if test "$ac_test_CFLAGS" = set; then | |
3349 | CFLAGS=$ac_save_CFLAGS | |
3350 | elif test $ac_cv_prog_cc_g = yes; then | |
3351 | if test "$GCC" = yes; then | |
3352 | CFLAGS="-g -O2" | |
3353 | else | |
3354 | CFLAGS="-g" | |
3355 | fi | |
3356 | else | |
3357 | if test "$GCC" = yes; then | |
3358 | CFLAGS="-O2" | |
3359 | else | |
3360 | CFLAGS= | |
3361 | fi | |
3362 | fi | |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3364 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3365 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3366 | $as_echo_n "(cached) " >&6 | |
3367 | else | |
3368 | ac_cv_prog_cc_c89=no | |
3369 | ac_save_CC=$CC | |
3370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3371 | /* end confdefs.h. */ | |
3372 | #include <stdarg.h> | |
3373 | #include <stdio.h> | |
3374 | #include <sys/types.h> | |
3375 | #include <sys/stat.h> | |
3376 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3377 | struct buf { int x; }; | |
3378 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3379 | static char *e (p, i) | |
3380 | char **p; | |
3381 | int i; | |
3382 | { | |
3383 | return p[i]; | |
3384 | } | |
3385 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3386 | { | |
3387 | char *s; | |
3388 | va_list v; | |
3389 | va_start (v,p); | |
3390 | s = g (p, va_arg (v,int)); | |
3391 | va_end (v); | |
3392 | return s; | |
3393 | } | |
3394 | ||
3395 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3396 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3397 | These don't provoke an error unfortunately, instead are silently treated | |
3398 | as 'x'. The following induces an error, until -std is added to get | |
3399 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3400 | array size at least. It's necessary to write '\x00'==0 to get something | |
3401 | that's true only with -std. */ | |
3402 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3403 | ||
3404 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3405 | inside strings and character constants. */ | |
3406 | #define FOO(x) 'x' | |
3407 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3408 | ||
3409 | int test (int i, double x); | |
3410 | struct s1 {int (*f) (int a);}; | |
3411 | struct s2 {int (*f) (double a);}; | |
3412 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3413 | int argc; | |
3414 | char **argv; | |
3415 | int | |
3416 | main () | |
3417 | { | |
3418 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3419 | ; | |
3420 | return 0; | |
3421 | } | |
3422 | _ACEOF | |
3423 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3424 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3425 | do | |
3426 | CC="$ac_save_CC $ac_arg" | |
3427 | if ac_fn_c_try_compile "$LINENO"; then : | |
3428 | ac_cv_prog_cc_c89=$ac_arg | |
3429 | fi | |
3430 | rm -f core conftest.err conftest.$ac_objext | |
3431 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3432 | done | |
3433 | rm -f conftest.$ac_ext | |
3434 | CC=$ac_save_CC | |
3435 | ||
3436 | fi | |
3437 | # AC_CACHE_VAL | |
3438 | case "x$ac_cv_prog_cc_c89" in | |
3439 | x) | |
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3441 | $as_echo "none needed" >&6; } ;; | |
3442 | xno) | |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3444 | $as_echo "unsupported" >&6; } ;; | |
3445 | *) | |
3446 | CC="$CC $ac_cv_prog_cc_c89" | |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3448 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3449 | esac | |
3450 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3451 | ||
3452 | fi | |
3453 | ||
3454 | ac_ext=c | |
3455 | ac_cpp='$CPP $CPPFLAGS' | |
3456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3459 | ||
9c60689e DWT |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3461 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3462 | if test "${ac_cv_path_SED+set}" = set; then : | |
35fa52c0 DWT |
3463 | $as_echo_n "(cached) " >&6 |
3464 | else | |
9c60689e DWT |
3465 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3466 | for ac_i in 1 2 3 4 5 6 7; do | |
3467 | ac_script="$ac_script$as_nl$ac_script" | |
3468 | done | |
3469 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3470 | { ac_script=; unset ac_script;} | |
3471 | if test -z "$SED"; then | |
3472 | ac_path_SED_found=false | |
3473 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35fa52c0 DWT |
3475 | for as_dir in $PATH |
3476 | do | |
3477 | IFS=$as_save_IFS | |
3478 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3479 | for ac_prog in sed gsed; do |
35fa52c0 | 3480 | for ac_exec_ext in '' $ac_executable_extensions; do |
9c60689e DWT |
3481 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3482 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3483 | # Check for GNU ac_path_SED and select it if it is found. | |
3484 | # Check for GNU $ac_path_SED | |
3485 | case `"$ac_path_SED" --version 2>&1` in | |
3486 | *GNU*) | |
3487 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3488 | *) | |
3489 | ac_count=0 | |
3490 | $as_echo_n 0123456789 >"conftest.in" | |
3491 | while : | |
3492 | do | |
3493 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3494 | mv "conftest.tmp" "conftest.in" | |
3495 | cp "conftest.in" "conftest.nl" | |
3496 | $as_echo '' >> "conftest.nl" | |
3497 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3498 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3499 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3500 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3501 | # Best one so far, save it but keep looking for a better one | |
3502 | ac_cv_path_SED="$ac_path_SED" | |
3503 | ac_path_SED_max=$ac_count | |
3504 | fi | |
3505 | # 10*(2^10) chars as input seems more than enough | |
3506 | test $ac_count -gt 10 && break | |
35fa52c0 | 3507 | done |
9c60689e DWT |
3508 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3509 | esac | |
35fa52c0 | 3510 | |
9c60689e DWT |
3511 | $ac_path_SED_found && break 3 |
3512 | done | |
3513 | done | |
3514 | done | |
3515 | IFS=$as_save_IFS | |
3516 | if test -z "$ac_cv_path_SED"; then | |
3517 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3518 | fi | |
35fa52c0 | 3519 | else |
9c60689e | 3520 | ac_cv_path_SED=$SED |
35fa52c0 DWT |
3521 | fi |
3522 | ||
9c60689e DWT |
3523 | fi |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3525 | $as_echo "$ac_cv_path_SED" >&6; } | |
3526 | SED="$ac_cv_path_SED" | |
3527 | rm -f conftest.sed | |
35fa52c0 | 3528 | |
9c60689e DWT |
3529 | test -z "$SED" && SED=sed |
3530 | Xsed="$SED -e 1s/^X//" | |
35fa52c0 | 3531 | |
35fa52c0 | 3532 | |
35fa52c0 | 3533 | |
35fa52c0 | 3534 | |
35fa52c0 | 3535 | |
35fa52c0 DWT |
3536 | |
3537 | ||
35fa52c0 | 3538 | |
35fa52c0 | 3539 | |
35fa52c0 | 3540 | |
35fa52c0 | 3541 | |
9c60689e DWT |
3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3543 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3544 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3545 | $as_echo_n "(cached) " >&6 | |
3546 | else | |
3547 | if test -z "$GREP"; then | |
3548 | ac_path_GREP_found=false | |
3549 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3551 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3552 | do | |
3553 | IFS=$as_save_IFS | |
3554 | test -z "$as_dir" && as_dir=. | |
3555 | for ac_prog in grep ggrep; do | |
3556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3557 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3558 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3559 | # Check for GNU ac_path_GREP and select it if it is found. | |
3560 | # Check for GNU $ac_path_GREP | |
3561 | case `"$ac_path_GREP" --version 2>&1` in | |
3562 | *GNU*) | |
3563 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3564 | *) | |
3565 | ac_count=0 | |
3566 | $as_echo_n 0123456789 >"conftest.in" | |
3567 | while : | |
3568 | do | |
3569 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3570 | mv "conftest.tmp" "conftest.in" | |
3571 | cp "conftest.in" "conftest.nl" | |
3572 | $as_echo 'GREP' >> "conftest.nl" | |
3573 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3574 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3575 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3576 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3577 | # Best one so far, save it but keep looking for a better one | |
3578 | ac_cv_path_GREP="$ac_path_GREP" | |
3579 | ac_path_GREP_max=$ac_count | |
3580 | fi | |
3581 | # 10*(2^10) chars as input seems more than enough | |
3582 | test $ac_count -gt 10 && break | |
3583 | done | |
3584 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3585 | esac | |
6b66678a | 3586 | |
9c60689e DWT |
3587 | $ac_path_GREP_found && break 3 |
3588 | done | |
3589 | done | |
3590 | done | |
3591 | IFS=$as_save_IFS | |
3592 | if test -z "$ac_cv_path_GREP"; then | |
3593 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3594 | fi | |
3595 | else | |
3596 | ac_cv_path_GREP=$GREP | |
3597 | fi | |
6b66678a | 3598 | |
9c60689e DWT |
3599 | fi |
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3601 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3602 | GREP="$ac_cv_path_GREP" | |
6b66678a DWT |
3603 | |
3604 | ||
9c60689e DWT |
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3606 | $as_echo_n "checking for egrep... " >&6; } | |
3607 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
6b66678a DWT |
3608 | $as_echo_n "(cached) " >&6 |
3609 | else | |
9c60689e DWT |
3610 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3611 | then ac_cv_path_EGREP="$GREP -E" | |
3612 | else | |
3613 | if test -z "$EGREP"; then | |
3614 | ac_path_EGREP_found=false | |
3615 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3617 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3618 | do | |
3619 | IFS=$as_save_IFS | |
3620 | test -z "$as_dir" && as_dir=. | |
3621 | for ac_prog in egrep; do | |
3622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3623 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3624 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3625 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3626 | # Check for GNU $ac_path_EGREP | |
3627 | case `"$ac_path_EGREP" --version 2>&1` in | |
3628 | *GNU*) | |
3629 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3630 | *) | |
3631 | ac_count=0 | |
3632 | $as_echo_n 0123456789 >"conftest.in" | |
3633 | while : | |
3634 | do | |
3635 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3636 | mv "conftest.tmp" "conftest.in" | |
3637 | cp "conftest.in" "conftest.nl" | |
3638 | $as_echo 'EGREP' >> "conftest.nl" | |
3639 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3640 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3641 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3642 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3643 | # Best one so far, save it but keep looking for a better one | |
3644 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3645 | ac_path_EGREP_max=$ac_count | |
3646 | fi | |
3647 | # 10*(2^10) chars as input seems more than enough | |
3648 | test $ac_count -gt 10 && break | |
3649 | done | |
3650 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3651 | esac | |
3652 | ||
3653 | $ac_path_EGREP_found && break 3 | |
3654 | done | |
3655 | done | |
3656 | done | |
3657 | IFS=$as_save_IFS | |
3658 | if test -z "$ac_cv_path_EGREP"; then | |
3659 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3660 | fi | |
3661 | else | |
3662 | ac_cv_path_EGREP=$EGREP | |
3663 | fi | |
6b66678a | 3664 | |
9c60689e DWT |
3665 | fi |
3666 | fi | |
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3668 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3669 | EGREP="$ac_cv_path_EGREP" | |
6b66678a | 3670 | |
6b66678a | 3671 | |
9c60689e DWT |
3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
3673 | $as_echo_n "checking for fgrep... " >&6; } | |
3674 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3675 | $as_echo_n "(cached) " >&6 | |
6b66678a | 3676 | else |
9c60689e DWT |
3677 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
3678 | then ac_cv_path_FGREP="$GREP -F" | |
3679 | else | |
3680 | if test -z "$FGREP"; then | |
3681 | ac_path_FGREP_found=false | |
3682 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3684 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3685 | do | |
3686 | IFS=$as_save_IFS | |
3687 | test -z "$as_dir" && as_dir=. | |
3688 | for ac_prog in fgrep; do | |
3689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3690 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3691 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3692 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3693 | # Check for GNU $ac_path_FGREP | |
3694 | case `"$ac_path_FGREP" --version 2>&1` in | |
3695 | *GNU*) | |
3696 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3697 | *) | |
3698 | ac_count=0 | |
3699 | $as_echo_n 0123456789 >"conftest.in" | |
3700 | while : | |
3701 | do | |
3702 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3703 | mv "conftest.tmp" "conftest.in" | |
3704 | cp "conftest.in" "conftest.nl" | |
3705 | $as_echo 'FGREP' >> "conftest.nl" | |
3706 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3707 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3708 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3709 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3710 | # Best one so far, save it but keep looking for a better one | |
3711 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3712 | ac_path_FGREP_max=$ac_count | |
3713 | fi | |
3714 | # 10*(2^10) chars as input seems more than enough | |
3715 | test $ac_count -gt 10 && break | |
3716 | done | |
3717 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3718 | esac | |
6b66678a | 3719 | |
9c60689e DWT |
3720 | $ac_path_FGREP_found && break 3 |
3721 | done | |
3722 | done | |
3723 | done | |
3724 | IFS=$as_save_IFS | |
3725 | if test -z "$ac_cv_path_FGREP"; then | |
3726 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3727 | fi | |
3728 | else | |
3729 | ac_cv_path_FGREP=$FGREP | |
6b66678a DWT |
3730 | fi |
3731 | ||
9c60689e | 3732 | fi |
6b66678a | 3733 | fi |
9c60689e DWT |
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
3735 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3736 | FGREP="$ac_cv_path_FGREP" | |
6b66678a | 3737 | |
35fa52c0 | 3738 | |
9c60689e | 3739 | test -z "$GREP" && GREP=grep |
35fa52c0 | 3740 | |
309b0535 | 3741 | |
35fa52c0 | 3742 | |
6b66678a | 3743 | |
6b66678a DWT |
3744 | |
3745 | ||
6b66678a | 3746 | |
6b66678a | 3747 | |
35fa52c0 | 3748 | |
35fa52c0 | 3749 | |
309b0535 | 3750 | |
309b0535 | 3751 | |
309b0535 | 3752 | |
309b0535 | 3753 | |
309b0535 | 3754 | |
309b0535 | 3755 | |
309b0535 | 3756 | |
309b0535 | 3757 | |
309b0535 | 3758 | |
9c60689e DWT |
3759 | # Check whether --with-gnu-ld was given. |
3760 | if test "${with_gnu_ld+set}" = set; then : | |
3761 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
309b0535 | 3762 | else |
9c60689e DWT |
3763 | with_gnu_ld=no |
3764 | fi | |
309b0535 | 3765 | |
9c60689e DWT |
3766 | ac_prog=ld |
3767 | if test "$GCC" = yes; then | |
3768 | # Check if gcc -print-prog-name=ld gives a path. | |
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3770 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3771 | case $host in | |
3772 | *-*-mingw*) | |
3773 | # gcc leaves a trailing carriage return which upsets mingw | |
3774 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3775 | *) | |
3776 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3777 | esac | |
3778 | case $ac_prog in | |
3779 | # Accept absolute paths. | |
3780 | [\\/]* | ?:[\\/]*) | |
3781 | re_direlt='/[^/][^/]*/\.\./' | |
3782 | # Canonicalize the pathname of ld | |
3783 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3784 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3785 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
309b0535 | 3786 | done |
9c60689e DWT |
3787 | test -z "$LD" && LD="$ac_prog" |
3788 | ;; | |
3789 | "") | |
3790 | # If it fails, then pretend we aren't using GCC. | |
3791 | ac_prog=ld | |
3792 | ;; | |
3793 | *) | |
3794 | # If it is relative, then search for the first ld in PATH. | |
3795 | with_gnu_ld=unknown | |
3796 | ;; | |
3797 | esac | |
3798 | elif test "$with_gnu_ld" = yes; then | |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3800 | $as_echo_n "checking for GNU ld... " >&6; } | |
3801 | else | |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3803 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3804 | fi | |
3805 | if test "${lt_cv_path_LD+set}" = set; then : | |
3806 | $as_echo_n "(cached) " >&6 | |
3807 | else | |
3808 | if test -z "$LD"; then | |
3809 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3810 | for ac_dir in $PATH; do | |
3811 | IFS="$lt_save_ifs" | |
3812 | test -z "$ac_dir" && ac_dir=. | |
3813 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3814 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3815 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3816 | # but apparently some variants of GNU ld only accept -v. | |
3817 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3818 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3819 | *GNU* | *'with BFD'*) | |
3820 | test "$with_gnu_ld" != no && break | |
3821 | ;; | |
3822 | *) | |
3823 | test "$with_gnu_ld" != yes && break | |
3824 | ;; | |
309b0535 | 3825 | esac |
309b0535 | 3826 | fi |
9c60689e DWT |
3827 | done |
3828 | IFS="$lt_save_ifs" | |
3829 | else | |
3830 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3831 | fi | |
3832 | fi | |
309b0535 | 3833 | |
9c60689e DWT |
3834 | LD="$lt_cv_path_LD" |
3835 | if test -n "$LD"; then | |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3837 | $as_echo "$LD" >&6; } | |
3838 | else | |
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3840 | $as_echo "no" >&6; } | |
3841 | fi | |
3842 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3844 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3845 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3846 | $as_echo_n "(cached) " >&6 | |
3847 | else | |
3848 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3849 | case `$LD -v 2>&1 </dev/null` in | |
3850 | *GNU* | *'with BFD'*) | |
3851 | lt_cv_prog_gnu_ld=yes | |
3852 | ;; | |
3853 | *) | |
3854 | lt_cv_prog_gnu_ld=no | |
3855 | ;; | |
3856 | esac | |
309b0535 | 3857 | fi |
9c60689e DWT |
3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
3859 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3860 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
309b0535 DWT |
3861 | |
3862 | ||
309b0535 | 3863 | |
309b0535 DWT |
3864 | |
3865 | ||
309b0535 | 3866 | |
309b0535 | 3867 | |
9c60689e DWT |
3868 | |
3869 | ||
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3871 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3872 | if test "${lt_cv_path_NM+set}" = set; then : | |
3873 | $as_echo_n "(cached) " >&6 | |
3874 | else | |
3875 | if test -n "$NM"; then | |
3876 | # Let the user override the test. | |
3877 | lt_cv_path_NM="$NM" | |
3878 | else | |
3879 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3880 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3881 | lt_nm_to_check="$lt_nm_to_check nm" | |
3882 | fi | |
3883 | for lt_tmp_nm in $lt_nm_to_check; do | |
3884 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3885 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3886 | IFS="$lt_save_ifs" | |
3887 | test -z "$ac_dir" && ac_dir=. | |
3888 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3889 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3890 | # Check to see if the nm accepts a BSD-compat flag. | |
3891 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3892 | # nm: unknown option "B" ignored | |
3893 | # Tru64's nm complains that /dev/null is an invalid object file | |
3894 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3895 | */dev/null* | *'Invalid file or object type'*) | |
3896 | lt_cv_path_NM="$tmp_nm -B" | |
3897 | break | |
3898 | ;; | |
3899 | *) | |
3900 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3901 | */dev/null*) | |
3902 | lt_cv_path_NM="$tmp_nm -p" | |
3903 | break | |
3904 | ;; | |
3905 | *) | |
3906 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3907 | continue # so that we can try to find one that supports BSD flags | |
3908 | ;; | |
3909 | esac | |
3910 | ;; | |
3911 | esac | |
309b0535 DWT |
3912 | fi |
3913 | done | |
9c60689e | 3914 | IFS="$lt_save_ifs" |
309b0535 | 3915 | done |
9c60689e DWT |
3916 | : ${lt_cv_path_NM=no} |
3917 | fi | |
3918 | fi | |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3920 | $as_echo "$lt_cv_path_NM" >&6; } | |
3921 | if test "$lt_cv_path_NM" != "no"; then | |
3922 | NM="$lt_cv_path_NM" | |
3923 | else | |
3924 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3925 | if test -n "$ac_tool_prefix"; then | |
3926 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3927 | do |
3928 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3929 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3931 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3932 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3933 | $as_echo_n "(cached) " >&6 |
3934 | else | |
9c60689e DWT |
3935 | if test -n "$DUMPBIN"; then |
3936 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3937 | else |
3938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3939 | for as_dir in $PATH | |
3940 | do | |
3941 | IFS=$as_save_IFS | |
3942 | test -z "$as_dir" && as_dir=. | |
3943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3945 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
35fa52c0 DWT |
3946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3947 | break 2 | |
3948 | fi | |
3949 | done | |
3950 | done | |
3951 | IFS=$as_save_IFS | |
3952 | ||
3953 | fi | |
3954 | fi | |
9c60689e DWT |
3955 | DUMPBIN=$ac_cv_prog_DUMPBIN |
3956 | if test -n "$DUMPBIN"; then | |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
3958 | $as_echo "$DUMPBIN" >&6; } | |
35fa52c0 DWT |
3959 | else |
3960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3961 | $as_echo "no" >&6; } | |
3962 | fi | |
3963 | ||
3964 | ||
9c60689e | 3965 | test -n "$DUMPBIN" && break |
35fa52c0 DWT |
3966 | done |
3967 | fi | |
9c60689e DWT |
3968 | if test -z "$DUMPBIN"; then |
3969 | ac_ct_DUMPBIN=$DUMPBIN | |
3970 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3971 | do |
3972 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3973 | set dummy $ac_prog; ac_word=$2 | |
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3975 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3976 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3977 | $as_echo_n "(cached) " >&6 |
3978 | else | |
9c60689e DWT |
3979 | if test -n "$ac_ct_DUMPBIN"; then |
3980 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3981 | else |
3982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3983 | for as_dir in $PATH | |
3984 | do | |
3985 | IFS=$as_save_IFS | |
3986 | test -z "$as_dir" && as_dir=. | |
3987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3989 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
35fa52c0 DWT |
3990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3991 | break 2 | |
3992 | fi | |
3993 | done | |
3994 | done | |
3995 | IFS=$as_save_IFS | |
3996 | ||
3997 | fi | |
3998 | fi | |
9c60689e DWT |
3999 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4000 | if test -n "$ac_ct_DUMPBIN"; then | |
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4002 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
35fa52c0 DWT |
4003 | else |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4005 | $as_echo "no" >&6; } | |
4006 | fi | |
4007 | ||
4008 | ||
9c60689e | 4009 | test -n "$ac_ct_DUMPBIN" && break |
35fa52c0 DWT |
4010 | done |
4011 | ||
9c60689e DWT |
4012 | if test "x$ac_ct_DUMPBIN" = x; then |
4013 | DUMPBIN=":" | |
35fa52c0 DWT |
4014 | else |
4015 | case $cross_compiling:$ac_tool_warned in | |
4016 | yes:) | |
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4018 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4019 | ac_tool_warned=yes ;; | |
4020 | esac | |
9c60689e | 4021 | DUMPBIN=$ac_ct_DUMPBIN |
35fa52c0 DWT |
4022 | fi |
4023 | fi | |
4024 | ||
9c60689e DWT |
4025 | |
4026 | if test "$DUMPBIN" != ":"; then | |
4027 | NM="$DUMPBIN" | |
35fa52c0 DWT |
4028 | fi |
4029 | fi | |
9c60689e | 4030 | test -z "$NM" && NM=nm |
35fa52c0 | 4031 | |
35fa52c0 | 4032 | |
35fa52c0 | 4033 | |
35fa52c0 | 4034 | |
9c60689e DWT |
4035 | |
4036 | ||
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4038 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4039 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4040 | $as_echo_n "(cached) " >&6 | |
4041 | else | |
4042 | lt_cv_nm_interface="BSD nm" | |
4043 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b65019fe | 4044 | (eval echo "\"\$as_me:4044: $ac_compile\"" >&5) |
9c60689e DWT |
4045 | (eval "$ac_compile" 2>conftest.err) |
4046 | cat conftest.err >&5 | |
b65019fe | 4047 | (eval echo "\"\$as_me:4047: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
9c60689e DWT |
4048 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4049 | cat conftest.err >&5 | |
b65019fe | 4050 | (eval echo "\"\$as_me:4050: output\"" >&5) |
9c60689e DWT |
4051 | cat conftest.out >&5 |
4052 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4053 | lt_cv_nm_interface="MS dumpbin" | |
4054 | fi | |
4055 | rm -f conftest* | |
35fa52c0 | 4056 | fi |
9c60689e DWT |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4058 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4059 | ||
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4061 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4062 | LN_S=$as_ln_s | |
4063 | if test "$LN_S" = "ln -s"; then | |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4065 | $as_echo "yes" >&6; } | |
35fa52c0 | 4066 | else |
9c60689e DWT |
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4068 | $as_echo "no, using $LN_S" >&6; } | |
35fa52c0 | 4069 | fi |
9c60689e DWT |
4070 | |
4071 | # find the maximum length of command line arguments | |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4073 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4074 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
35fa52c0 DWT |
4075 | $as_echo_n "(cached) " >&6 |
4076 | else | |
9c60689e DWT |
4077 | i=0 |
4078 | teststring="ABCD" | |
4079 | ||
4080 | case $build_os in | |
4081 | msdosdjgpp*) | |
4082 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4083 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4084 | # during glob expansion). Even if it were fixed, the result of this | |
4085 | # check would be larger than it should be. | |
4086 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4087 | ;; | |
35fa52c0 | 4088 | |
9c60689e DWT |
4089 | gnu*) |
4090 | # Under GNU Hurd, this test is not required because there is | |
4091 | # no limit to the length of command line arguments. | |
4092 | # Libtool will interpret -1 as no limit whatsoever | |
4093 | lt_cv_sys_max_cmd_len=-1; | |
4094 | ;; | |
35fa52c0 | 4095 | |
9c60689e DWT |
4096 | cygwin* | mingw* | cegcc*) |
4097 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4098 | # about 5 minutes as the teststring grows exponentially. | |
4099 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4100 | # you end up with a "frozen" computer, even though with patience | |
4101 | # the test eventually succeeds (with a max line length of 256k). | |
4102 | # Instead, let's just punt: use the minimum linelength reported by | |
4103 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4104 | lt_cv_sys_max_cmd_len=8192; | |
4105 | ;; | |
35fa52c0 | 4106 | |
9c60689e DWT |
4107 | amigaos*) |
4108 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4109 | # So we just punt and use a minimum line length of 8192. | |
4110 | lt_cv_sys_max_cmd_len=8192; | |
4111 | ;; | |
35fa52c0 | 4112 | |
9c60689e DWT |
4113 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4114 | # This has been around since 386BSD, at least. Likely further. | |
4115 | if test -x /sbin/sysctl; then | |
4116 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4117 | elif test -x /usr/sbin/sysctl; then | |
4118 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4119 | else | |
4120 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4121 | fi | |
4122 | # And add a safety zone | |
4123 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4124 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4125 | ;; | |
35fa52c0 | 4126 | |
9c60689e DWT |
4127 | interix*) |
4128 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4129 | lt_cv_sys_max_cmd_len=196608 | |
4130 | ;; | |
35fa52c0 | 4131 | |
9c60689e DWT |
4132 | osf*) |
4133 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4134 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4135 | # nice to cause kernel panics so lets avoid the loop below. | |
4136 | # First set a reasonable default. | |
4137 | lt_cv_sys_max_cmd_len=16384 | |
4138 | # | |
4139 | if test -x /sbin/sysconfig; then | |
4140 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4141 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4142 | esac | |
4143 | fi | |
4144 | ;; | |
4145 | sco3.2v5*) | |
4146 | lt_cv_sys_max_cmd_len=102400 | |
4147 | ;; | |
4148 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4149 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4150 | if test -n "$kargmax"; then | |
4151 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4152 | else | |
4153 | lt_cv_sys_max_cmd_len=32768 | |
4154 | fi | |
4155 | ;; | |
4156 | *) | |
4157 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4158 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4159 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4160 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4161 | else | |
4162 | # Make teststring a little bigger before we do anything with it. | |
4163 | # a 1K string should be a reasonable start. | |
4164 | for i in 1 2 3 4 5 6 7 8 ; do | |
4165 | teststring=$teststring$teststring | |
4166 | done | |
4167 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4168 | # If test is not a shell built-in, we'll probably end up computing a | |
4169 | # maximum length that is only half of the actual maximum length, but | |
4170 | # we can't tell. | |
4171 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4172 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4173 | test $i != 17 # 1/2 MB should be enough | |
4174 | do | |
4175 | i=`expr $i + 1` | |
4176 | teststring=$teststring$teststring | |
4177 | done | |
4178 | # Only check the string length outside the loop. | |
4179 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4180 | teststring= | |
4181 | # Add a significant safety factor because C++ compilers can tack on | |
4182 | # massive amounts of additional arguments before passing them to the | |
4183 | # linker. It appears as though 1/2 is a usable value. | |
4184 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4185 | fi | |
4186 | ;; | |
4187 | esac | |
35fa52c0 | 4188 | |
35fa52c0 | 4189 | fi |
9c60689e DWT |
4190 | |
4191 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4193 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
35fa52c0 | 4194 | else |
9c60689e DWT |
4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4196 | $as_echo "none" >&6; } | |
35fa52c0 | 4197 | fi |
9c60689e | 4198 | max_cmd_len=$lt_cv_sys_max_cmd_len |
35fa52c0 | 4199 | |
9c60689e DWT |
4200 | |
4201 | ||
4202 | ||
4203 | ||
4204 | ||
4205 | : ${CP="cp -f"} | |
4206 | : ${MV="mv -f"} | |
4207 | : ${RM="rm -f"} | |
4208 | ||
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4210 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4211 | # Try some XSI features | |
4212 | xsi_shell=no | |
4213 | ( _lt_dummy="a/b/c" | |
4214 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4215 | = c,a/b,, \ | |
4216 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4217 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4218 | && xsi_shell=yes | |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4220 | $as_echo "$xsi_shell" >&6; } | |
4221 | ||
4222 | ||
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4224 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4225 | lt_shell_append=no | |
4226 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4227 | >/dev/null 2>&1 \ | |
4228 | && lt_shell_append=yes | |
4229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4230 | $as_echo "$lt_shell_append" >&6; } | |
4231 | ||
4232 | ||
4233 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4234 | lt_unset=unset | |
35fa52c0 | 4235 | else |
9c60689e DWT |
4236 | lt_unset=false |
4237 | fi | |
4238 | ||
4239 | ||
4240 | ||
4241 | ||
4242 | ||
4243 | # test EBCDIC or ASCII | |
4244 | case `echo X|tr X '\101'` in | |
4245 | A) # ASCII based system | |
4246 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4247 | lt_SP2NL='tr \040 \012' | |
4248 | lt_NL2SP='tr \015\012 \040\040' | |
4249 | ;; | |
4250 | *) # EBCDIC based system | |
4251 | lt_SP2NL='tr \100 \n' | |
4252 | lt_NL2SP='tr \r\n \100\100' | |
4253 | ;; | |
35fa52c0 DWT |
4254 | esac |
4255 | ||
35fa52c0 | 4256 | |
35fa52c0 | 4257 | |
35fa52c0 | 4258 | |
35fa52c0 | 4259 | |
35fa52c0 | 4260 | |
35fa52c0 | 4261 | |
35fa52c0 | 4262 | |
9c60689e DWT |
4263 | |
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4265 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4266 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
35fa52c0 DWT |
4267 | $as_echo_n "(cached) " >&6 |
4268 | else | |
9c60689e | 4269 | lt_cv_ld_reload_flag='-r' |
35fa52c0 | 4270 | fi |
9c60689e DWT |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
4272 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4273 | reload_flag=$lt_cv_ld_reload_flag | |
4274 | case $reload_flag in | |
4275 | "" | " "*) ;; | |
4276 | *) reload_flag=" $reload_flag" ;; | |
4277 | esac | |
4278 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4279 | case $host_os in | |
4280 | darwin*) | |
4281 | if test "$GCC" = yes; then | |
4282 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4283 | else | |
4284 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4285 | fi | |
4286 | ;; | |
35fa52c0 | 4287 | esac |
35fa52c0 DWT |
4288 | |
4289 | ||
9c60689e DWT |
4290 | |
4291 | ||
4292 | ||
4293 | ||
4294 | ||
4295 | ||
4296 | ||
4297 | if test -n "$ac_tool_prefix"; then | |
4298 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4299 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4301 | $as_echo_n "checking for $ac_word... " >&6; } | |
4302 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4303 | $as_echo_n "(cached) " >&6 |
4304 | else | |
9c60689e DWT |
4305 | if test -n "$OBJDUMP"; then |
4306 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4307 | else |
9c60689e DWT |
4308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4309 | for as_dir in $PATH | |
4310 | do | |
4311 | IFS=$as_save_IFS | |
4312 | test -z "$as_dir" && as_dir=. | |
4313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4315 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4317 | break 2 | |
35fa52c0 | 4318 | fi |
9c60689e DWT |
4319 | done |
4320 | done | |
4321 | IFS=$as_save_IFS | |
35fa52c0 | 4322 | |
35fa52c0 | 4323 | fi |
35fa52c0 | 4324 | fi |
9c60689e DWT |
4325 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4326 | if test -n "$OBJDUMP"; then | |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4328 | $as_echo "$OBJDUMP" >&6; } | |
35fa52c0 | 4329 | else |
9c60689e DWT |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4331 | $as_echo "no" >&6; } | |
35fa52c0 | 4332 | fi |
9c60689e DWT |
4333 | |
4334 | ||
4335 | fi | |
4336 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4337 | ac_ct_OBJDUMP=$OBJDUMP | |
4338 | # Extract the first word of "objdump", so it can be a program name with args. | |
4339 | set dummy objdump; ac_word=$2 | |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4341 | $as_echo_n "checking for $ac_word... " >&6; } | |
4342 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4343 | $as_echo_n "(cached) " >&6 |
4344 | else | |
9c60689e DWT |
4345 | if test -n "$ac_ct_OBJDUMP"; then |
4346 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4347 | else |
9c60689e DWT |
4348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4349 | for as_dir in $PATH | |
4350 | do | |
4351 | IFS=$as_save_IFS | |
4352 | test -z "$as_dir" && as_dir=. | |
4353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4355 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4357 | break 2 | |
4358 | fi | |
4359 | done | |
4360 | done | |
4361 | IFS=$as_save_IFS | |
4362 | ||
35fa52c0 DWT |
4363 | fi |
4364 | fi | |
9c60689e DWT |
4365 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4366 | if test -n "$ac_ct_OBJDUMP"; then | |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4368 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
35fa52c0 DWT |
4369 | else |
4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4371 | $as_echo "no" >&6; } | |
4372 | fi | |
9c60689e DWT |
4373 | |
4374 | if test "x$ac_ct_OBJDUMP" = x; then | |
4375 | OBJDUMP="false" | |
4376 | else | |
4377 | case $cross_compiling:$ac_tool_warned in | |
4378 | yes:) | |
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4380 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4381 | ac_tool_warned=yes ;; | |
35fa52c0 | 4382 | esac |
9c60689e DWT |
4383 | OBJDUMP=$ac_ct_OBJDUMP |
4384 | fi | |
4385 | else | |
4386 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
35fa52c0 | 4387 | fi |
35fa52c0 | 4388 | |
9c60689e | 4389 | test -z "$OBJDUMP" && OBJDUMP=objdump |
35fa52c0 DWT |
4390 | |
4391 | ||
35fa52c0 | 4392 | |
35fa52c0 | 4393 | |
35fa52c0 DWT |
4394 | |
4395 | ||
4396 | ||
35fa52c0 DWT |
4397 | |
4398 | ||
9c60689e DWT |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4400 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4401 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4402 | $as_echo_n "(cached) " >&6 | |
4403 | else | |
4404 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4405 | lt_cv_file_magic_test_file= | |
4406 | lt_cv_deplibs_check_method='unknown' | |
4407 | # Need to set the preceding variable on all platforms that support | |
4408 | # interlibrary dependencies. | |
4409 | # 'none' -- dependencies not supported. | |
4410 | # `unknown' -- same as none, but documents that we really don't know. | |
4411 | # 'pass_all' -- all dependencies passed with no checks. | |
4412 | # 'test_compile' -- check by making test program. | |
4413 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4414 | # which responds to the $file_magic_cmd with a given extended regex. | |
4415 | # If you have `file' or equivalent on your system and you're not sure | |
4416 | # whether `pass_all' will *always* work, you probably want this one. | |
4417 | ||
4418 | case $host_os in | |
4419 | aix[4-9]*) | |
4420 | lt_cv_deplibs_check_method=pass_all | |
4421 | ;; | |
35fa52c0 | 4422 | |
9c60689e DWT |
4423 | beos*) |
4424 | lt_cv_deplibs_check_method=pass_all | |
4425 | ;; | |
35fa52c0 | 4426 | |
9c60689e DWT |
4427 | bsdi[45]*) |
4428 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4429 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4430 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4431 | ;; | |
35fa52c0 | 4432 | |
9c60689e DWT |
4433 | cygwin*) |
4434 | # func_win32_libid is a shell function defined in ltmain.sh | |
4435 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4436 | lt_cv_file_magic_cmd='func_win32_libid' | |
4437 | ;; | |
35fa52c0 | 4438 | |
9c60689e DWT |
4439 | mingw* | pw32*) |
4440 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4441 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4442 | # unless we find 'file', for example because we are cross-compiling. | |
4443 | if ( file / ) >/dev/null 2>&1; then | |
4444 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4445 | lt_cv_file_magic_cmd='func_win32_libid' | |
4446 | else | |
4447 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4448 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4449 | fi | |
4450 | ;; | |
35fa52c0 | 4451 | |
9c60689e DWT |
4452 | cegcc) |
4453 | # use the weaker test based on 'objdump'. See mingw*. | |
4454 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4455 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4456 | ;; | |
35fa52c0 | 4457 | |
9c60689e DWT |
4458 | darwin* | rhapsody*) |
4459 | lt_cv_deplibs_check_method=pass_all | |
4460 | ;; | |
35fa52c0 | 4461 | |
9c60689e DWT |
4462 | freebsd* | dragonfly*) |
4463 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4464 | case $host_cpu in | |
4465 | i*86 ) | |
4466 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4467 | # Let's accept both of them until this is cleared up. | |
4468 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4469 | lt_cv_file_magic_cmd=/usr/bin/file | |
4470 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4471 | ;; | |
4472 | esac | |
4473 | else | |
4474 | lt_cv_deplibs_check_method=pass_all | |
4475 | fi | |
4476 | ;; | |
35fa52c0 | 4477 | |
9c60689e DWT |
4478 | gnu*) |
4479 | lt_cv_deplibs_check_method=pass_all | |
4480 | ;; | |
35fa52c0 | 4481 | |
9c60689e DWT |
4482 | hpux10.20* | hpux11*) |
4483 | lt_cv_file_magic_cmd=/usr/bin/file | |
4484 | case $host_cpu in | |
4485 | ia64*) | |
4486 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4487 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4488 | ;; | |
4489 | hppa*64*) | |
4490 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
4491 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4492 | ;; | |
4493 | *) | |
4494 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4495 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4496 | ;; | |
4497 | esac | |
4498 | ;; | |
35fa52c0 | 4499 | |
9c60689e DWT |
4500 | interix[3-9]*) |
4501 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4502 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4503 | ;; | |
35fa52c0 | 4504 | |
9c60689e DWT |
4505 | irix5* | irix6* | nonstopux*) |
4506 | case $LD in | |
4507 | *-32|*"-32 ") libmagic=32-bit;; | |
4508 | *-n32|*"-n32 ") libmagic=N32;; | |
4509 | *-64|*"-64 ") libmagic=64-bit;; | |
4510 | *) libmagic=never-match;; | |
4511 | esac | |
4512 | lt_cv_deplibs_check_method=pass_all | |
4513 | ;; | |
35fa52c0 | 4514 | |
9c60689e | 4515 | # This must be Linux ELF. |
51ac63c5 | 4516 | linux* | k*bsd*-gnu) |
9c60689e DWT |
4517 | lt_cv_deplibs_check_method=pass_all |
4518 | ;; | |
35fa52c0 | 4519 | |
51ac63c5 | 4520 | netbsd*) |
9c60689e DWT |
4521 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
4522 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4523 | else | |
4524 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4525 | fi | |
4526 | ;; | |
35fa52c0 | 4527 | |
9c60689e DWT |
4528 | newos6*) |
4529 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4530 | lt_cv_file_magic_cmd=/usr/bin/file | |
4531 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4532 | ;; | |
35fa52c0 | 4533 | |
9c60689e DWT |
4534 | *nto* | *qnx*) |
4535 | lt_cv_deplibs_check_method=pass_all | |
4536 | ;; | |
35fa52c0 | 4537 | |
9c60689e DWT |
4538 | openbsd*) |
4539 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4540 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4541 | else | |
4542 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4543 | fi | |
4544 | ;; | |
4545 | ||
4546 | osf3* | osf4* | osf5*) | |
4547 | lt_cv_deplibs_check_method=pass_all | |
4548 | ;; | |
4549 | ||
4550 | rdos*) | |
4551 | lt_cv_deplibs_check_method=pass_all | |
4552 | ;; | |
4553 | ||
4554 | solaris*) | |
4555 | lt_cv_deplibs_check_method=pass_all | |
4556 | ;; | |
4557 | ||
4558 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4559 | lt_cv_deplibs_check_method=pass_all | |
4560 | ;; | |
4561 | ||
4562 | sysv4 | sysv4.3*) | |
4563 | case $host_vendor in | |
4564 | motorola) | |
4565 | 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]' | |
4566 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4567 | ;; | |
4568 | ncr) | |
4569 | lt_cv_deplibs_check_method=pass_all | |
4570 | ;; | |
4571 | sequent) | |
4572 | lt_cv_file_magic_cmd='/bin/file' | |
4573 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4574 | ;; | |
4575 | sni) | |
4576 | lt_cv_file_magic_cmd='/bin/file' | |
4577 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4578 | lt_cv_file_magic_test_file=/lib/libc.so | |
4579 | ;; | |
4580 | siemens) | |
4581 | lt_cv_deplibs_check_method=pass_all | |
4582 | ;; | |
4583 | pc) | |
4584 | lt_cv_deplibs_check_method=pass_all | |
4585 | ;; | |
4586 | esac | |
4587 | ;; | |
4588 | ||
4589 | tpf*) | |
4590 | lt_cv_deplibs_check_method=pass_all | |
4591 | ;; | |
4592 | esac | |
35fa52c0 DWT |
4593 | |
4594 | fi | |
9c60689e DWT |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4596 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4597 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4598 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4599 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dbadc56a | 4600 | |
35fa52c0 | 4601 | |
35fa52c0 | 4602 | |
35fa52c0 | 4603 | |
35fa52c0 | 4604 | |
35fa52c0 | 4605 | |
35fa52c0 | 4606 | |
35fa52c0 | 4607 | |
35fa52c0 | 4608 | |
35fa52c0 | 4609 | |
35fa52c0 | 4610 | |
9c60689e DWT |
4611 | |
4612 | if test -n "$ac_tool_prefix"; then | |
4613 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4614 | set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then : | |
4618 | $as_echo_n "(cached) " >&6 | |
4619 | else | |
4620 | if test -n "$AR"; then | |
4621 | ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar" | |
4631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4632 | break 2 | |
4633 | fi | |
4634 | done | |
35fa52c0 | 4635 | done |
9c60689e DWT |
4636 | IFS=$as_save_IFS |
4637 | ||
4638 | fi | |
4639 | fi | |
4640 | AR=$ac_cv_prog_AR | |
4641 | if test -n "$AR"; then | |
4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4643 | $as_echo "$AR" >&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_AR"; then | |
4652 | ac_ct_AR=$AR | |
4653 | # Extract the first word of "ar", so it can be a program name with args. | |
4654 | set dummy ar; 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_AR+set}" = set; then : | |
4658 | $as_echo_n "(cached) " >&6 | |
4659 | else | |
4660 | if test -n "$ac_ct_AR"; then | |
4661 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar" | |
4671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4672 | break 2 | |
35fa52c0 | 4673 | fi |
9c60689e DWT |
4674 | done |
4675 | done | |
4676 | IFS=$as_save_IFS | |
4677 | ||
4678 | fi | |
4679 | fi | |
4680 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4681 | if test -n "$ac_ct_AR"; then | |
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4683 | $as_echo "$ac_ct_AR" >&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_AR" = x; then | |
4690 | AR="false" | |
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 | AR=$ac_ct_AR | |
4699 | fi | |
4700 | else | |
4701 | AR="$ac_cv_prog_AR" | |
4702 | fi | |
4703 | ||
4704 | test -z "$AR" && AR=ar | |
4705 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4706 | ||
4707 | ||
4708 | ||
4709 | ||
4710 | ||
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | ||
4716 | ||
4717 | if test -n "$ac_tool_prefix"; then | |
4718 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4719 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4721 | $as_echo_n "checking for $ac_word... " >&6; } | |
4722 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4723 | $as_echo_n "(cached) " >&6 | |
4724 | else | |
4725 | if test -n "$STRIP"; then | |
4726 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4727 | else | |
4728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4729 | for as_dir in $PATH | |
4730 | do | |
4731 | IFS=$as_save_IFS | |
4732 | test -z "$as_dir" && as_dir=. | |
4733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4735 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4737 | break 2 | |
35fa52c0 | 4738 | fi |
9c60689e DWT |
4739 | done |
4740 | done | |
4741 | IFS=$as_save_IFS | |
4742 | ||
4743 | fi | |
4744 | fi | |
4745 | STRIP=$ac_cv_prog_STRIP | |
4746 | if test -n "$STRIP"; then | |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4748 | $as_echo "$STRIP" >&6; } | |
4749 | else | |
4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4751 | $as_echo "no" >&6; } | |
4752 | fi | |
4753 | ||
4754 | ||
4755 | fi | |
4756 | if test -z "$ac_cv_prog_STRIP"; then | |
4757 | ac_ct_STRIP=$STRIP | |
4758 | # Extract the first word of "strip", so it can be a program name with args. | |
4759 | set dummy strip; ac_word=$2 | |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4761 | $as_echo_n "checking for $ac_word... " >&6; } | |
4762 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4763 | $as_echo_n "(cached) " >&6 | |
4764 | else | |
4765 | if test -n "$ac_ct_STRIP"; then | |
4766 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4767 | else | |
4768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4769 | for as_dir in $PATH | |
4770 | do | |
4771 | IFS=$as_save_IFS | |
4772 | test -z "$as_dir" && as_dir=. | |
4773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4775 | ac_cv_prog_ac_ct_STRIP="strip" | |
4776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4777 | break 2 | |
4778 | fi | |
4779 | done | |
4780 | done | |
4781 | IFS=$as_save_IFS | |
4782 | ||
4783 | fi | |
4784 | fi | |
4785 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4786 | if test -n "$ac_ct_STRIP"; then | |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4788 | $as_echo "$ac_ct_STRIP" >&6; } | |
4789 | else | |
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4791 | $as_echo "no" >&6; } | |
4792 | fi | |
4793 | ||
4794 | if test "x$ac_ct_STRIP" = x; then | |
4795 | STRIP=":" | |
4796 | else | |
4797 | case $cross_compiling:$ac_tool_warned in | |
4798 | yes:) | |
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4800 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4801 | ac_tool_warned=yes ;; | |
4802 | esac | |
4803 | STRIP=$ac_ct_STRIP | |
4804 | fi | |
4805 | else | |
4806 | STRIP="$ac_cv_prog_STRIP" | |
4807 | fi | |
4808 | ||
4809 | test -z "$STRIP" && STRIP=: | |
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | if test -n "$ac_tool_prefix"; then | |
4817 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4818 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4820 | $as_echo_n "checking for $ac_word... " >&6; } | |
4821 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4822 | $as_echo_n "(cached) " >&6 | |
4823 | else | |
4824 | if test -n "$RANLIB"; then | |
4825 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4826 | else | |
4827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4828 | for as_dir in $PATH | |
4829 | do | |
4830 | IFS=$as_save_IFS | |
4831 | test -z "$as_dir" && as_dir=. | |
4832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4834 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4836 | break 2 | |
4837 | fi | |
4838 | done | |
4839 | done | |
4840 | IFS=$as_save_IFS | |
4841 | ||
4842 | fi | |
4843 | fi | |
4844 | RANLIB=$ac_cv_prog_RANLIB | |
4845 | if test -n "$RANLIB"; then | |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4847 | $as_echo "$RANLIB" >&6; } | |
4848 | else | |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4850 | $as_echo "no" >&6; } | |
4851 | fi | |
4852 | ||
4853 | ||
4854 | fi | |
4855 | if test -z "$ac_cv_prog_RANLIB"; then | |
4856 | ac_ct_RANLIB=$RANLIB | |
4857 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4858 | set dummy ranlib; ac_word=$2 | |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4860 | $as_echo_n "checking for $ac_word... " >&6; } | |
4861 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4862 | $as_echo_n "(cached) " >&6 | |
4863 | else | |
4864 | if test -n "$ac_ct_RANLIB"; then | |
4865 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4866 | else | |
4867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4868 | for as_dir in $PATH | |
4869 | do | |
4870 | IFS=$as_save_IFS | |
4871 | test -z "$as_dir" && as_dir=. | |
4872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4874 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4876 | break 2 | |
4877 | fi | |
4878 | done | |
4879 | done | |
4880 | IFS=$as_save_IFS | |
4881 | ||
4882 | fi | |
4883 | fi | |
4884 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4885 | if test -n "$ac_ct_RANLIB"; then | |
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4887 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4888 | else | |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4890 | $as_echo "no" >&6; } | |
4891 | fi | |
4892 | ||
4893 | if test "x$ac_ct_RANLIB" = x; then | |
4894 | RANLIB=":" | |
4895 | else | |
4896 | case $cross_compiling:$ac_tool_warned in | |
4897 | yes:) | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4899 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4900 | ac_tool_warned=yes ;; | |
4901 | esac | |
4902 | RANLIB=$ac_ct_RANLIB | |
4903 | fi | |
4904 | else | |
4905 | RANLIB="$ac_cv_prog_RANLIB" | |
4906 | fi | |
4907 | ||
4908 | test -z "$RANLIB" && RANLIB=: | |
4909 | ||
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | # Determine commands to create old-style static archives. | |
4916 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4917 | old_postinstall_cmds='chmod 644 $oldlib' | |
4918 | old_postuninstall_cmds= | |
4919 | ||
4920 | if test -n "$RANLIB"; then | |
4921 | case $host_os in | |
4922 | openbsd*) | |
4923 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4924 | ;; | |
4925 | *) | |
4926 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4927 | ;; | |
4928 | esac | |
4929 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4930 | fi | |
4931 | ||
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | # If no C compiler was specified, use CC. | |
4966 | LTCC=${LTCC-"$CC"} | |
4967 | ||
4968 | # If no C compiler flags were specified, use CFLAGS. | |
4969 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4970 | ||
4971 | # Allow CC to be a program name with arguments. | |
4972 | compiler=$CC | |
4973 | ||
4974 | ||
4975 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
4977 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
4978 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
4979 | $as_echo_n "(cached) " >&6 | |
4980 | else | |
4981 | ||
4982 | # These are sane defaults that work on at least a few old systems. | |
4983 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4984 | ||
4985 | # Character class describing NM global symbol codes. | |
4986 | symcode='[BCDEGRST]' | |
4987 | ||
4988 | # Regexp to match symbols that can be accessed directly from C. | |
4989 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
4990 | ||
4991 | # Define system-specific variables. | |
4992 | case $host_os in | |
4993 | aix*) | |
4994 | symcode='[BCDT]' | |
4995 | ;; | |
4996 | cygwin* | mingw* | pw32* | cegcc*) | |
4997 | symcode='[ABCDGISTW]' | |
4998 | ;; | |
4999 | hpux*) | |
5000 | if test "$host_cpu" = ia64; then | |
5001 | symcode='[ABCDEGRST]' | |
5002 | fi | |
5003 | ;; | |
5004 | irix* | nonstopux*) | |
5005 | symcode='[BCDEGRST]' | |
5006 | ;; | |
5007 | osf*) | |
5008 | symcode='[BCDEGQRST]' | |
5009 | ;; | |
5010 | solaris*) | |
5011 | symcode='[BDRT]' | |
5012 | ;; | |
5013 | sco3.2v5*) | |
5014 | symcode='[DT]' | |
5015 | ;; | |
5016 | sysv4.2uw2*) | |
5017 | symcode='[DT]' | |
5018 | ;; | |
5019 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5020 | symcode='[ABDT]' | |
5021 | ;; | |
5022 | sysv4) | |
5023 | symcode='[DFNSTU]' | |
5024 | ;; | |
5025 | esac | |
5026 | ||
5027 | # If we're using GNU nm, then use its standard symbol codes. | |
5028 | case `$NM -V 2>&1` in | |
5029 | *GNU* | *'with BFD'*) | |
5030 | symcode='[ABCDGIRSTW]' ;; | |
5031 | esac | |
5032 | ||
5033 | # Transform an extracted symbol line into a proper C declaration. | |
5034 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5035 | # so use this general approach. | |
5036 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5037 | ||
5038 | # Transform an extracted symbol line into symbol name and symbol address | |
5039 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5040 | 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'" | |
5041 | ||
5042 | # Handle CRLF in mingw tool chain | |
5043 | opt_cr= | |
5044 | case $build_os in | |
5045 | mingw*) | |
5046 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5047 | ;; | |
5048 | esac | |
5049 | ||
5050 | # Try without a prefix underscore, then with it. | |
5051 | for ac_symprfx in "" "_"; do | |
5052 | ||
5053 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5054 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5055 | ||
5056 | # Write the raw and C identifiers. | |
5057 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5058 | # Fake it for dumpbin and say T for any non-static function | |
5059 | # and D for any global variable. | |
5060 | # Also find C++ and __fastcall symbols from MSVC++, | |
5061 | # which start with @ or ?. | |
5062 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5063 | " {last_section=section; section=\$ 3};"\ | |
5064 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5065 | " \$ 0!~/External *\|/{next};"\ | |
5066 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5067 | " {if(hide[section]) next};"\ | |
5068 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5069 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5070 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5071 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5072 | " ' prfx=^$ac_symprfx" | |
5073 | else | |
5074 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5075 | fi | |
5076 | ||
5077 | # Check to see that the pipe works correctly. | |
5078 | pipe_works=no | |
5079 | ||
5080 | rm -f conftest* | |
5081 | cat > conftest.$ac_ext <<_LT_EOF | |
5082 | #ifdef __cplusplus | |
5083 | extern "C" { | |
5084 | #endif | |
5085 | char nm_test_var; | |
5086 | void nm_test_func(void); | |
5087 | void nm_test_func(void){} | |
5088 | #ifdef __cplusplus | |
5089 | } | |
5090 | #endif | |
5091 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5092 | _LT_EOF | |
5093 | ||
5094 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5095 | (eval $ac_compile) 2>&5 | |
5096 | ac_status=$? | |
5097 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5098 | test $ac_status = 0; }; then | |
5099 | # Now try to grab the symbols. | |
5100 | nlist=conftest.nm | |
5101 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5102 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5103 | ac_status=$? | |
5104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5105 | test $ac_status = 0; } && test -s "$nlist"; then | |
5106 | # Try sorting and uniquifying the output. | |
5107 | if sort "$nlist" | uniq > "$nlist"T; then | |
5108 | mv -f "$nlist"T "$nlist" | |
5109 | else | |
5110 | rm -f "$nlist"T | |
5111 | fi | |
5112 | ||
5113 | # Make sure that we snagged all the symbols we need. | |
5114 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5115 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5116 | cat <<_LT_EOF > conftest.$ac_ext | |
5117 | #ifdef __cplusplus | |
5118 | extern "C" { | |
5119 | #endif | |
5120 | ||
5121 | _LT_EOF | |
5122 | # Now generate the symbol file. | |
5123 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5124 | ||
5125 | cat <<_LT_EOF >> conftest.$ac_ext | |
5126 | ||
5127 | /* The mapping between symbol names and symbols. */ | |
5128 | const struct { | |
5129 | const char *name; | |
5130 | void *address; | |
5131 | } | |
5132 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5133 | { | |
5134 | { "@PROGRAM@", (void *) 0 }, | |
5135 | _LT_EOF | |
5136 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5137 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5138 | {0, (void *) 0} | |
5139 | }; | |
5140 | ||
5141 | /* This works around a problem in FreeBSD linker */ | |
5142 | #ifdef FREEBSD_WORKAROUND | |
5143 | static const void *lt_preloaded_setup() { | |
5144 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5145 | } | |
5146 | #endif | |
5147 | ||
5148 | #ifdef __cplusplus | |
5149 | } | |
5150 | #endif | |
5151 | _LT_EOF | |
5152 | # Now try linking the two files. | |
5153 | mv conftest.$ac_objext conftstm.$ac_objext | |
5154 | lt_save_LIBS="$LIBS" | |
5155 | lt_save_CFLAGS="$CFLAGS" | |
5156 | LIBS="conftstm.$ac_objext" | |
5157 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5158 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5159 | (eval $ac_link) 2>&5 | |
5160 | ac_status=$? | |
5161 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5162 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5163 | pipe_works=yes | |
5164 | fi | |
5165 | LIBS="$lt_save_LIBS" | |
5166 | CFLAGS="$lt_save_CFLAGS" | |
5167 | else | |
5168 | echo "cannot find nm_test_func in $nlist" >&5 | |
5169 | fi | |
5170 | else | |
5171 | echo "cannot find nm_test_var in $nlist" >&5 | |
5172 | fi | |
5173 | else | |
5174 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5175 | fi | |
5176 | else | |
5177 | echo "$progname: failed program was:" >&5 | |
5178 | cat conftest.$ac_ext >&5 | |
5179 | fi | |
5180 | rm -rf conftest* conftst* | |
5181 | ||
5182 | # Do not use the global_symbol_pipe unless it works. | |
5183 | if test "$pipe_works" = yes; then | |
5184 | break | |
5185 | else | |
5186 | lt_cv_sys_global_symbol_pipe= | |
5187 | fi | |
5188 | done | |
5189 | ||
5190 | fi | |
5191 | ||
5192 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5193 | lt_cv_sys_global_symbol_to_cdecl= | |
5194 | fi | |
5195 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5197 | $as_echo "failed" >&6; } | |
5198 | else | |
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5200 | $as_echo "ok" >&6; } | |
5201 | fi | |
5202 | ||
5203 | ||
5204 | ||
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | # Check whether --enable-libtool-lock was given. | |
5226 | if test "${enable_libtool_lock+set}" = set; then : | |
5227 | enableval=$enable_libtool_lock; | |
5228 | fi | |
5229 | ||
5230 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5231 | ||
5232 | # Some flags need to be propagated to the compiler or linker for good | |
5233 | # libtool support. | |
5234 | case $host in | |
5235 | ia64-*-hpux*) | |
5236 | # Find out which ABI we are using. | |
5237 | echo 'int i;' > conftest.$ac_ext | |
5238 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5239 | (eval $ac_compile) 2>&5 | |
5240 | ac_status=$? | |
5241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5242 | test $ac_status = 0; }; then | |
5243 | case `/usr/bin/file conftest.$ac_objext` in | |
5244 | *ELF-32*) | |
5245 | HPUX_IA64_MODE="32" | |
5246 | ;; | |
5247 | *ELF-64*) | |
5248 | HPUX_IA64_MODE="64" | |
5249 | ;; | |
5250 | esac | |
5251 | fi | |
5252 | rm -rf conftest* | |
5253 | ;; | |
5254 | *-*-irix6*) | |
5255 | # Find out which ABI we are using. | |
b65019fe | 5256 | echo '#line 5256 "configure"' > conftest.$ac_ext |
9c60689e DWT |
5257 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5258 | (eval $ac_compile) 2>&5 | |
5259 | ac_status=$? | |
5260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5261 | test $ac_status = 0; }; then | |
5262 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5263 | case `/usr/bin/file conftest.$ac_objext` in | |
5264 | *32-bit*) | |
5265 | LD="${LD-ld} -melf32bsmip" | |
5266 | ;; | |
5267 | *N32*) | |
5268 | LD="${LD-ld} -melf32bmipn32" | |
5269 | ;; | |
5270 | *64-bit*) | |
5271 | LD="${LD-ld} -melf64bmip" | |
5272 | ;; | |
5273 | esac | |
5274 | else | |
5275 | case `/usr/bin/file conftest.$ac_objext` in | |
5276 | *32-bit*) | |
5277 | LD="${LD-ld} -32" | |
5278 | ;; | |
5279 | *N32*) | |
5280 | LD="${LD-ld} -n32" | |
5281 | ;; | |
5282 | *64-bit*) | |
5283 | LD="${LD-ld} -64" | |
5284 | ;; | |
5285 | esac | |
5286 | fi | |
5287 | fi | |
5288 | rm -rf conftest* | |
5289 | ;; | |
5290 | ||
5291 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5292 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5293 | # Find out which ABI we are using. | |
5294 | echo 'int i;' > conftest.$ac_ext | |
5295 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5296 | (eval $ac_compile) 2>&5 | |
5297 | ac_status=$? | |
5298 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5299 | test $ac_status = 0; }; then | |
5300 | case `/usr/bin/file conftest.o` in | |
5301 | *32-bit*) | |
5302 | case $host in | |
5303 | x86_64-*kfreebsd*-gnu) | |
5304 | LD="${LD-ld} -m elf_i386_fbsd" | |
5305 | ;; | |
5306 | x86_64-*linux*) | |
5307 | LD="${LD-ld} -m elf_i386" | |
5308 | ;; | |
5309 | ppc64-*linux*|powerpc64-*linux*) | |
5310 | LD="${LD-ld} -m elf32ppclinux" | |
5311 | ;; | |
5312 | s390x-*linux*) | |
5313 | LD="${LD-ld} -m elf_s390" | |
5314 | ;; | |
5315 | sparc64-*linux*) | |
5316 | LD="${LD-ld} -m elf32_sparc" | |
5317 | ;; | |
5318 | esac | |
5319 | ;; | |
5320 | *64-bit*) | |
5321 | case $host in | |
5322 | x86_64-*kfreebsd*-gnu) | |
5323 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5324 | ;; | |
5325 | x86_64-*linux*) | |
5326 | LD="${LD-ld} -m elf_x86_64" | |
5327 | ;; | |
5328 | ppc*-*linux*|powerpc*-*linux*) | |
5329 | LD="${LD-ld} -m elf64ppc" | |
5330 | ;; | |
5331 | s390*-*linux*|s390*-*tpf*) | |
5332 | LD="${LD-ld} -m elf64_s390" | |
5333 | ;; | |
5334 | sparc*-*linux*) | |
5335 | LD="${LD-ld} -m elf64_sparc" | |
5336 | ;; | |
5337 | esac | |
5338 | ;; | |
5339 | esac | |
5340 | fi | |
5341 | rm -rf conftest* | |
5342 | ;; | |
5343 | ||
5344 | *-*-sco3.2v5*) | |
5345 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5346 | SAVE_CFLAGS="$CFLAGS" | |
5347 | CFLAGS="$CFLAGS -belf" | |
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5349 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5350 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5351 | $as_echo_n "(cached) " >&6 | |
5352 | else | |
5353 | ac_ext=c | |
5354 | ac_cpp='$CPP $CPPFLAGS' | |
5355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5358 | ||
5359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5360 | /* end confdefs.h. */ | |
5361 | ||
5362 | int | |
5363 | main () | |
5364 | { | |
5365 | ||
5366 | ; | |
5367 | return 0; | |
5368 | } | |
5369 | _ACEOF | |
5370 | if ac_fn_c_try_link "$LINENO"; then : | |
5371 | lt_cv_cc_needs_belf=yes | |
5372 | else | |
5373 | lt_cv_cc_needs_belf=no | |
5374 | fi | |
5375 | rm -f core conftest.err conftest.$ac_objext \ | |
5376 | conftest$ac_exeext conftest.$ac_ext | |
5377 | ac_ext=c | |
5378 | ac_cpp='$CPP $CPPFLAGS' | |
5379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5382 | ||
5383 | fi | |
5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5385 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5386 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5387 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5388 | CFLAGS="$SAVE_CFLAGS" | |
5389 | fi | |
5390 | ;; | |
5391 | sparc*-*solaris*) | |
5392 | # Find out which ABI we are using. | |
5393 | echo 'int i;' > conftest.$ac_ext | |
5394 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5395 | (eval $ac_compile) 2>&5 | |
5396 | ac_status=$? | |
5397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5398 | test $ac_status = 0; }; then | |
5399 | case `/usr/bin/file conftest.o` in | |
5400 | *64-bit*) | |
5401 | case $lt_cv_prog_gnu_ld in | |
5402 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5403 | *) | |
5404 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5405 | LD="${LD-ld} -64" | |
5406 | fi | |
5407 | ;; | |
5408 | esac | |
5409 | ;; | |
5410 | esac | |
5411 | fi | |
5412 | rm -rf conftest* | |
5413 | ;; | |
5414 | esac | |
5415 | ||
5416 | need_locks="$enable_libtool_lock" | |
5417 | ||
5418 | ||
5419 | case $host_os in | |
5420 | rhapsody* | darwin*) | |
5421 | if test -n "$ac_tool_prefix"; then | |
5422 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5423 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5425 | $as_echo_n "checking for $ac_word... " >&6; } | |
5426 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5427 | $as_echo_n "(cached) " >&6 | |
5428 | else | |
5429 | if test -n "$DSYMUTIL"; then | |
5430 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5431 | else | |
5432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5433 | for as_dir in $PATH | |
5434 | do | |
5435 | IFS=$as_save_IFS | |
5436 | test -z "$as_dir" && as_dir=. | |
5437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5439 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5441 | break 2 | |
5442 | fi | |
5443 | done | |
5444 | done | |
5445 | IFS=$as_save_IFS | |
5446 | ||
5447 | fi | |
5448 | fi | |
5449 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5450 | if test -n "$DSYMUTIL"; then | |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5452 | $as_echo "$DSYMUTIL" >&6; } | |
5453 | else | |
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5455 | $as_echo "no" >&6; } | |
5456 | fi | |
5457 | ||
5458 | ||
5459 | fi | |
5460 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5461 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5462 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5463 | set dummy dsymutil; ac_word=$2 | |
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5465 | $as_echo_n "checking for $ac_word... " >&6; } | |
5466 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5467 | $as_echo_n "(cached) " >&6 | |
5468 | else | |
5469 | if test -n "$ac_ct_DSYMUTIL"; then | |
5470 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5471 | else | |
5472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5473 | for as_dir in $PATH | |
5474 | do | |
5475 | IFS=$as_save_IFS | |
5476 | test -z "$as_dir" && as_dir=. | |
5477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5479 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5481 | break 2 | |
5482 | fi | |
5483 | done | |
5484 | done | |
5485 | IFS=$as_save_IFS | |
5486 | ||
5487 | fi | |
5488 | fi | |
5489 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5490 | if test -n "$ac_ct_DSYMUTIL"; then | |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5492 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5493 | else | |
5494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5495 | $as_echo "no" >&6; } | |
5496 | fi | |
5497 | ||
5498 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5499 | DSYMUTIL=":" | |
5500 | else | |
5501 | case $cross_compiling:$ac_tool_warned in | |
5502 | yes:) | |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5504 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5505 | ac_tool_warned=yes ;; | |
5506 | esac | |
5507 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5508 | fi | |
5509 | else | |
5510 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5511 | fi | |
5512 | ||
5513 | if test -n "$ac_tool_prefix"; then | |
5514 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5515 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5517 | $as_echo_n "checking for $ac_word... " >&6; } | |
5518 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5519 | $as_echo_n "(cached) " >&6 | |
5520 | else | |
5521 | if test -n "$NMEDIT"; then | |
5522 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5523 | else | |
5524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5525 | for as_dir in $PATH | |
5526 | do | |
5527 | IFS=$as_save_IFS | |
5528 | test -z "$as_dir" && as_dir=. | |
5529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5530 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5531 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5533 | break 2 | |
5534 | fi | |
5535 | done | |
5536 | done | |
5537 | IFS=$as_save_IFS | |
5538 | ||
5539 | fi | |
5540 | fi | |
5541 | NMEDIT=$ac_cv_prog_NMEDIT | |
5542 | if test -n "$NMEDIT"; then | |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5544 | $as_echo "$NMEDIT" >&6; } | |
5545 | else | |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5547 | $as_echo "no" >&6; } | |
5548 | fi | |
5549 | ||
5550 | ||
5551 | fi | |
5552 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5553 | ac_ct_NMEDIT=$NMEDIT | |
5554 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5555 | set dummy nmedit; ac_word=$2 | |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5557 | $as_echo_n "checking for $ac_word... " >&6; } | |
5558 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5559 | $as_echo_n "(cached) " >&6 | |
5560 | else | |
5561 | if test -n "$ac_ct_NMEDIT"; then | |
5562 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5563 | else | |
5564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5565 | for as_dir in $PATH | |
5566 | do | |
5567 | IFS=$as_save_IFS | |
5568 | test -z "$as_dir" && as_dir=. | |
5569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5571 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5573 | break 2 | |
5574 | fi | |
5575 | done | |
5576 | done | |
5577 | IFS=$as_save_IFS | |
5578 | ||
5579 | fi | |
5580 | fi | |
5581 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5582 | if test -n "$ac_ct_NMEDIT"; then | |
5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5584 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5585 | else | |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5587 | $as_echo "no" >&6; } | |
5588 | fi | |
5589 | ||
5590 | if test "x$ac_ct_NMEDIT" = x; then | |
5591 | NMEDIT=":" | |
5592 | else | |
5593 | case $cross_compiling:$ac_tool_warned in | |
5594 | yes:) | |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5596 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5597 | ac_tool_warned=yes ;; | |
5598 | esac | |
5599 | NMEDIT=$ac_ct_NMEDIT | |
5600 | fi | |
5601 | else | |
5602 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5603 | fi | |
5604 | ||
5605 | if test -n "$ac_tool_prefix"; then | |
5606 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5607 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5609 | $as_echo_n "checking for $ac_word... " >&6; } | |
5610 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5611 | $as_echo_n "(cached) " >&6 | |
5612 | else | |
5613 | if test -n "$LIPO"; then | |
5614 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5615 | else | |
5616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5617 | for as_dir in $PATH | |
5618 | do | |
5619 | IFS=$as_save_IFS | |
5620 | test -z "$as_dir" && as_dir=. | |
5621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5623 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5625 | break 2 | |
5626 | fi | |
5627 | done | |
5628 | done | |
5629 | IFS=$as_save_IFS | |
5630 | ||
5631 | fi | |
5632 | fi | |
5633 | LIPO=$ac_cv_prog_LIPO | |
5634 | if test -n "$LIPO"; then | |
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5636 | $as_echo "$LIPO" >&6; } | |
5637 | else | |
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5639 | $as_echo "no" >&6; } | |
5640 | fi | |
5641 | ||
5642 | ||
5643 | fi | |
5644 | if test -z "$ac_cv_prog_LIPO"; then | |
5645 | ac_ct_LIPO=$LIPO | |
5646 | # Extract the first word of "lipo", so it can be a program name with args. | |
5647 | set dummy lipo; ac_word=$2 | |
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5649 | $as_echo_n "checking for $ac_word... " >&6; } | |
5650 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5651 | $as_echo_n "(cached) " >&6 | |
5652 | else | |
5653 | if test -n "$ac_ct_LIPO"; then | |
5654 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5655 | else | |
5656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5657 | for as_dir in $PATH | |
5658 | do | |
5659 | IFS=$as_save_IFS | |
5660 | test -z "$as_dir" && as_dir=. | |
5661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5662 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5663 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5665 | break 2 | |
5666 | fi | |
5667 | done | |
5668 | done | |
5669 | IFS=$as_save_IFS | |
5670 | ||
5671 | fi | |
5672 | fi | |
5673 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5674 | if test -n "$ac_ct_LIPO"; then | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5676 | $as_echo "$ac_ct_LIPO" >&6; } | |
5677 | else | |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5679 | $as_echo "no" >&6; } | |
5680 | fi | |
5681 | ||
5682 | if test "x$ac_ct_LIPO" = x; then | |
5683 | LIPO=":" | |
5684 | else | |
5685 | case $cross_compiling:$ac_tool_warned in | |
5686 | yes:) | |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5688 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5689 | ac_tool_warned=yes ;; | |
5690 | esac | |
5691 | LIPO=$ac_ct_LIPO | |
5692 | fi | |
5693 | else | |
5694 | LIPO="$ac_cv_prog_LIPO" | |
5695 | fi | |
5696 | ||
5697 | if test -n "$ac_tool_prefix"; then | |
5698 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5699 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5701 | $as_echo_n "checking for $ac_word... " >&6; } | |
5702 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5703 | $as_echo_n "(cached) " >&6 | |
5704 | else | |
5705 | if test -n "$OTOOL"; then | |
5706 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5707 | else | |
5708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5709 | for as_dir in $PATH | |
5710 | do | |
5711 | IFS=$as_save_IFS | |
5712 | test -z "$as_dir" && as_dir=. | |
5713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5715 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5717 | break 2 | |
5718 | fi | |
5719 | done | |
5720 | done | |
5721 | IFS=$as_save_IFS | |
5722 | ||
5723 | fi | |
5724 | fi | |
5725 | OTOOL=$ac_cv_prog_OTOOL | |
5726 | if test -n "$OTOOL"; then | |
5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5728 | $as_echo "$OTOOL" >&6; } | |
5729 | else | |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5731 | $as_echo "no" >&6; } | |
5732 | fi | |
5733 | ||
5734 | ||
5735 | fi | |
5736 | if test -z "$ac_cv_prog_OTOOL"; then | |
5737 | ac_ct_OTOOL=$OTOOL | |
5738 | # Extract the first word of "otool", so it can be a program name with args. | |
5739 | set dummy otool; ac_word=$2 | |
5740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5741 | $as_echo_n "checking for $ac_word... " >&6; } | |
5742 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5743 | $as_echo_n "(cached) " >&6 | |
5744 | else | |
5745 | if test -n "$ac_ct_OTOOL"; then | |
5746 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5747 | else | |
5748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5749 | for as_dir in $PATH | |
5750 | do | |
5751 | IFS=$as_save_IFS | |
5752 | test -z "$as_dir" && as_dir=. | |
5753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5755 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5757 | break 2 | |
5758 | fi | |
5759 | done | |
5760 | done | |
5761 | IFS=$as_save_IFS | |
5762 | ||
5763 | fi | |
5764 | fi | |
5765 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5766 | if test -n "$ac_ct_OTOOL"; then | |
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5768 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5769 | else | |
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5771 | $as_echo "no" >&6; } | |
5772 | fi | |
5773 | ||
5774 | if test "x$ac_ct_OTOOL" = x; then | |
5775 | OTOOL=":" | |
5776 | else | |
5777 | case $cross_compiling:$ac_tool_warned in | |
5778 | yes:) | |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5780 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5781 | ac_tool_warned=yes ;; | |
5782 | esac | |
5783 | OTOOL=$ac_ct_OTOOL | |
5784 | fi | |
5785 | else | |
5786 | OTOOL="$ac_cv_prog_OTOOL" | |
5787 | fi | |
5788 | ||
5789 | if test -n "$ac_tool_prefix"; then | |
5790 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5791 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5793 | $as_echo_n "checking for $ac_word... " >&6; } | |
5794 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5795 | $as_echo_n "(cached) " >&6 | |
5796 | else | |
5797 | if test -n "$OTOOL64"; then | |
5798 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5799 | else | |
5800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5801 | for as_dir in $PATH | |
5802 | do | |
5803 | IFS=$as_save_IFS | |
5804 | test -z "$as_dir" && as_dir=. | |
5805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5807 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5809 | break 2 | |
5810 | fi | |
5811 | done | |
5812 | done | |
5813 | IFS=$as_save_IFS | |
5814 | ||
5815 | fi | |
5816 | fi | |
5817 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5818 | if test -n "$OTOOL64"; then | |
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5820 | $as_echo "$OTOOL64" >&6; } | |
5821 | else | |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5823 | $as_echo "no" >&6; } | |
5824 | fi | |
5825 | ||
5826 | ||
5827 | fi | |
5828 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5829 | ac_ct_OTOOL64=$OTOOL64 | |
5830 | # Extract the first word of "otool64", so it can be a program name with args. | |
5831 | set dummy otool64; ac_word=$2 | |
5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5833 | $as_echo_n "checking for $ac_word... " >&6; } | |
5834 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5835 | $as_echo_n "(cached) " >&6 | |
5836 | else | |
5837 | if test -n "$ac_ct_OTOOL64"; then | |
5838 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5839 | else | |
5840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5841 | for as_dir in $PATH | |
5842 | do | |
5843 | IFS=$as_save_IFS | |
5844 | test -z "$as_dir" && as_dir=. | |
5845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5847 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5849 | break 2 | |
5850 | fi | |
5851 | done | |
5852 | done | |
5853 | IFS=$as_save_IFS | |
5854 | ||
5855 | fi | |
5856 | fi | |
5857 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5858 | if test -n "$ac_ct_OTOOL64"; then | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5860 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5861 | else | |
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5863 | $as_echo "no" >&6; } | |
5864 | fi | |
5865 | ||
5866 | if test "x$ac_ct_OTOOL64" = x; then | |
5867 | OTOOL64=":" | |
5868 | else | |
5869 | case $cross_compiling:$ac_tool_warned in | |
5870 | yes:) | |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5872 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5873 | ac_tool_warned=yes ;; | |
5874 | esac | |
5875 | OTOOL64=$ac_ct_OTOOL64 | |
5876 | fi | |
5877 | else | |
5878 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5879 | fi | |
5880 | ||
5881 | ||
5882 | ||
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5908 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5909 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5910 | $as_echo_n "(cached) " >&6 | |
5911 | else | |
5912 | lt_cv_apple_cc_single_mod=no | |
5913 | if test -z "${LT_MULTI_MODULE}"; then | |
5914 | # By default we will add the -single_module flag. You can override | |
5915 | # by either setting the environment variable LT_MULTI_MODULE | |
5916 | # non-empty at configure time, or by adding -multi_module to the | |
5917 | # link flags. | |
5918 | rm -rf libconftest.dylib* | |
5919 | echo "int foo(void){return 1;}" > conftest.c | |
5920 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5921 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5922 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5923 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5924 | _lt_result=$? | |
5925 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5926 | lt_cv_apple_cc_single_mod=yes | |
5927 | else | |
5928 | cat conftest.err >&5 | |
5929 | fi | |
5930 | rm -rf libconftest.dylib* | |
5931 | rm -f conftest.* | |
5932 | fi | |
5933 | fi | |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5935 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
5937 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
5938 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
5939 | $as_echo_n "(cached) " >&6 | |
5940 | else | |
5941 | lt_cv_ld_exported_symbols_list=no | |
5942 | save_LDFLAGS=$LDFLAGS | |
5943 | echo "_main" > conftest.sym | |
5944 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5946 | /* end confdefs.h. */ | |
5947 | ||
5948 | int | |
5949 | main () | |
5950 | { | |
5951 | ||
5952 | ; | |
5953 | return 0; | |
5954 | } | |
5955 | _ACEOF | |
5956 | if ac_fn_c_try_link "$LINENO"; then : | |
5957 | lt_cv_ld_exported_symbols_list=yes | |
5958 | else | |
5959 | lt_cv_ld_exported_symbols_list=no | |
5960 | fi | |
5961 | rm -f core conftest.err conftest.$ac_objext \ | |
5962 | conftest$ac_exeext conftest.$ac_ext | |
5963 | LDFLAGS="$save_LDFLAGS" | |
5964 | ||
5965 | fi | |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
5967 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
5968 | case $host_os in | |
5969 | rhapsody* | darwin1.[012]) | |
5970 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
5971 | darwin1.*) | |
5972 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5973 | darwin*) # darwin 5.x on | |
5974 | # if running on 10.5 or later, the deployment target defaults | |
5975 | # to the OS version, if on x86, and 10.4, the deployment | |
5976 | # target defaults to 10.4. Don't you love it? | |
5977 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
5978 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
5979 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5980 | 10.[012]*) | |
5981 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5982 | 10.*) | |
5983 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5984 | esac | |
5985 | ;; | |
5986 | esac | |
5987 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
5988 | _lt_dar_single_mod='$single_module' | |
5989 | fi | |
5990 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
5991 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
5992 | else | |
5993 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5994 | fi | |
5995 | if test "$DSYMUTIL" != ":"; then | |
5996 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
5997 | else | |
5998 | _lt_dsymutil= | |
5999 | fi | |
6000 | ;; | |
6001 | esac | |
6002 | ||
6003 | ac_ext=c | |
6004 | ac_cpp='$CPP $CPPFLAGS' | |
6005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6009 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6010 | # On Suns, sometimes $CPP names a directory. | |
6011 | if test -n "$CPP" && test -d "$CPP"; then | |
6012 | CPP= | |
6013 | fi | |
6014 | if test -z "$CPP"; then | |
6015 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6016 | $as_echo_n "(cached) " >&6 | |
6017 | else | |
6018 | # Double quotes because CPP needs to be expanded | |
6019 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6020 | do | |
6021 | ac_preproc_ok=false | |
6022 | for ac_c_preproc_warn_flag in '' yes | |
6023 | do | |
6024 | # Use a header file that comes with gcc, so configuring glibc | |
6025 | # with a fresh cross-compiler works. | |
6026 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6027 | # <limits.h> exists even on freestanding compilers. | |
6028 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6029 | # not just through cpp. "Syntax error" is here to catch this case. | |
6030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6031 | /* end confdefs.h. */ | |
6032 | #ifdef __STDC__ | |
6033 | # include <limits.h> | |
6034 | #else | |
6035 | # include <assert.h> | |
6036 | #endif | |
6037 | Syntax error | |
6038 | _ACEOF | |
6039 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6040 | ||
6041 | else | |
6042 | # Broken: fails on valid input. | |
6043 | continue | |
6044 | fi | |
6045 | rm -f conftest.err conftest.$ac_ext | |
6046 | ||
6047 | # OK, works on sane cases. Now check whether nonexistent headers | |
6048 | # can be detected and how. | |
6049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6050 | /* end confdefs.h. */ | |
6051 | #include <ac_nonexistent.h> | |
6052 | _ACEOF | |
6053 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6054 | # Broken: success on invalid input. | |
6055 | continue | |
6056 | else | |
6057 | # Passes both tests. | |
6058 | ac_preproc_ok=: | |
6059 | break | |
6060 | fi | |
6061 | rm -f conftest.err conftest.$ac_ext | |
6062 | ||
6063 | done | |
6064 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6065 | rm -f conftest.err conftest.$ac_ext | |
6066 | if $ac_preproc_ok; then : | |
6067 | break | |
6068 | fi | |
6069 | ||
6070 | done | |
6071 | ac_cv_prog_CPP=$CPP | |
6072 | ||
6073 | fi | |
6074 | CPP=$ac_cv_prog_CPP | |
6075 | else | |
6076 | ac_cv_prog_CPP=$CPP | |
6077 | fi | |
6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6079 | $as_echo "$CPP" >&6; } | |
6080 | ac_preproc_ok=false | |
6081 | for ac_c_preproc_warn_flag in '' yes | |
6082 | do | |
6083 | # Use a header file that comes with gcc, so configuring glibc | |
6084 | # with a fresh cross-compiler works. | |
6085 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6086 | # <limits.h> exists even on freestanding compilers. | |
6087 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6088 | # not just through cpp. "Syntax error" is here to catch this case. | |
6089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6090 | /* end confdefs.h. */ | |
6091 | #ifdef __STDC__ | |
6092 | # include <limits.h> | |
6093 | #else | |
6094 | # include <assert.h> | |
6095 | #endif | |
6096 | Syntax error | |
6097 | _ACEOF | |
6098 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6099 | ||
6100 | else | |
6101 | # Broken: fails on valid input. | |
6102 | continue | |
6103 | fi | |
6104 | rm -f conftest.err conftest.$ac_ext | |
6105 | ||
6106 | # OK, works on sane cases. Now check whether nonexistent headers | |
6107 | # can be detected and how. | |
6108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6109 | /* end confdefs.h. */ | |
6110 | #include <ac_nonexistent.h> | |
6111 | _ACEOF | |
6112 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6113 | # Broken: success on invalid input. | |
6114 | continue | |
6115 | else | |
6116 | # Passes both tests. | |
6117 | ac_preproc_ok=: | |
6118 | break | |
6119 | fi | |
6120 | rm -f conftest.err conftest.$ac_ext | |
6121 | ||
6122 | done | |
6123 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6124 | rm -f conftest.err conftest.$ac_ext | |
6125 | if $ac_preproc_ok; then : | |
6126 | ||
6127 | else | |
6128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6129 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6130 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6131 | See \`config.log' for more details." "$LINENO" 5; } | |
6132 | fi | |
6133 | ||
6134 | ac_ext=c | |
6135 | ac_cpp='$CPP $CPPFLAGS' | |
6136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6139 | ||
6140 | ||
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6142 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6143 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6144 | $as_echo_n "(cached) " >&6 | |
6145 | else | |
6146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6147 | /* end confdefs.h. */ | |
6148 | #include <stdlib.h> | |
6149 | #include <stdarg.h> | |
6150 | #include <string.h> | |
6151 | #include <float.h> | |
6152 | ||
6153 | int | |
6154 | main () | |
6155 | { | |
6156 | ||
6157 | ; | |
6158 | return 0; | |
6159 | } | |
6160 | _ACEOF | |
6161 | if ac_fn_c_try_compile "$LINENO"; then : | |
6162 | ac_cv_header_stdc=yes | |
6163 | else | |
6164 | ac_cv_header_stdc=no | |
6165 | fi | |
6166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6167 | ||
6168 | if test $ac_cv_header_stdc = yes; then | |
6169 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6171 | /* end confdefs.h. */ | |
6172 | #include <string.h> | |
6173 | ||
6174 | _ACEOF | |
6175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6176 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6177 | ||
6178 | else | |
6179 | ac_cv_header_stdc=no | |
6180 | fi | |
6181 | rm -f conftest* | |
6182 | ||
6183 | fi | |
6184 | ||
6185 | if test $ac_cv_header_stdc = yes; then | |
6186 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6188 | /* end confdefs.h. */ | |
6189 | #include <stdlib.h> | |
6190 | ||
6191 | _ACEOF | |
6192 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6193 | $EGREP "free" >/dev/null 2>&1; then : | |
6194 | ||
6195 | else | |
6196 | ac_cv_header_stdc=no | |
6197 | fi | |
6198 | rm -f conftest* | |
6199 | ||
6200 | fi | |
6201 | ||
6202 | if test $ac_cv_header_stdc = yes; then | |
6203 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6204 | if test "$cross_compiling" = yes; then : | |
6205 | : | |
6206 | else | |
6207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6208 | /* end confdefs.h. */ | |
6209 | #include <ctype.h> | |
6210 | #include <stdlib.h> | |
6211 | #if ((' ' & 0x0FF) == 0x020) | |
6212 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6213 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6214 | #else | |
6215 | # define ISLOWER(c) \ | |
6216 | (('a' <= (c) && (c) <= 'i') \ | |
6217 | || ('j' <= (c) && (c) <= 'r') \ | |
6218 | || ('s' <= (c) && (c) <= 'z')) | |
6219 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6220 | #endif | |
6221 | ||
6222 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6223 | int | |
6224 | main () | |
6225 | { | |
6226 | int i; | |
6227 | for (i = 0; i < 256; i++) | |
6228 | if (XOR (islower (i), ISLOWER (i)) | |
6229 | || toupper (i) != TOUPPER (i)) | |
6230 | return 2; | |
6231 | return 0; | |
6232 | } | |
6233 | _ACEOF | |
6234 | if ac_fn_c_try_run "$LINENO"; then : | |
6235 | ||
6236 | else | |
6237 | ac_cv_header_stdc=no | |
6238 | fi | |
6239 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6240 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6241 | fi | |
6242 | ||
6243 | fi | |
6244 | fi | |
6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6246 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6247 | if test $ac_cv_header_stdc = yes; then | |
6248 | ||
6249 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6250 | ||
6251 | fi | |
6252 | ||
6253 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6254 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6255 | inttypes.h stdint.h unistd.h | |
6256 | do : | |
6257 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6258 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6259 | " | |
6260 | eval as_val=\$$as_ac_Header | |
6261 | if test "x$as_val" = x""yes; then : | |
6262 | cat >>confdefs.h <<_ACEOF | |
6263 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6264 | _ACEOF | |
6265 | ||
6266 | fi | |
6267 | ||
6268 | done | |
6269 | ||
6270 | ||
6271 | for ac_header in dlfcn.h | |
6272 | do : | |
6273 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6274 | " | |
6275 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6276 | cat >>confdefs.h <<_ACEOF | |
6277 | #define HAVE_DLFCN_H 1 | |
6278 | _ACEOF | |
6279 | ||
6280 | fi | |
6281 | ||
6282 | done | |
6283 | ||
6284 | ||
6285 | ||
6286 | # Set options | |
549f29b5 DWT |
6287 | # Check whether --enable-static was given. |
6288 | if test "${enable_static+set}" = set; then : | |
6289 | enableval=$enable_static; p=${PACKAGE-default} | |
9c60689e | 6290 | case $enableval in |
549f29b5 DWT |
6291 | yes) enable_static=yes ;; |
6292 | no) enable_static=no ;; | |
9c60689e | 6293 | *) |
549f29b5 | 6294 | enable_static=no |
9c60689e DWT |
6295 | # Look at the argument we got. We use all the common list separators. |
6296 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6297 | for pkg in $enableval; do | |
6298 | IFS="$lt_save_ifs" | |
6299 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6300 | enable_static=yes |
9c60689e DWT |
6301 | fi |
6302 | done | |
6303 | IFS="$lt_save_ifs" | |
6304 | ;; | |
6305 | esac | |
6306 | else | |
549f29b5 | 6307 | enable_static=no |
9c60689e DWT |
6308 | fi |
6309 | ||
6310 | ||
6311 | ||
6312 | ||
6313 | ||
6314 | ||
6315 | ||
6316 | ||
6317 | ||
549f29b5 DWT |
6318 | |
6319 | enable_dlopen=no | |
6320 | ||
6321 | ||
6322 | enable_win32_dll=no | |
6323 | ||
6324 | ||
6325 | # Check whether --enable-shared was given. | |
6326 | if test "${enable_shared+set}" = set; then : | |
6327 | enableval=$enable_shared; p=${PACKAGE-default} | |
9c60689e | 6328 | case $enableval in |
549f29b5 DWT |
6329 | yes) enable_shared=yes ;; |
6330 | no) enable_shared=no ;; | |
9c60689e | 6331 | *) |
549f29b5 | 6332 | enable_shared=no |
9c60689e DWT |
6333 | # Look at the argument we got. We use all the common list separators. |
6334 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6335 | for pkg in $enableval; do | |
6336 | IFS="$lt_save_ifs" | |
6337 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6338 | enable_shared=yes |
9c60689e DWT |
6339 | fi |
6340 | done | |
6341 | IFS="$lt_save_ifs" | |
6342 | ;; | |
6343 | esac | |
6344 | else | |
549f29b5 | 6345 | enable_shared=yes |
9c60689e DWT |
6346 | fi |
6347 | ||
6348 | ||
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | ||
6356 | ||
549f29b5 | 6357 | |
9c60689e DWT |
6358 | # Check whether --with-pic was given. |
6359 | if test "${with_pic+set}" = set; then : | |
6360 | withval=$with_pic; pic_mode="$withval" | |
6361 | else | |
6362 | pic_mode=default | |
6363 | fi | |
6364 | ||
6365 | ||
6366 | test -z "$pic_mode" && pic_mode=default | |
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | # Check whether --enable-fast-install was given. | |
6375 | if test "${enable_fast_install+set}" = set; then : | |
6376 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6377 | case $enableval in | |
6378 | yes) enable_fast_install=yes ;; | |
6379 | no) enable_fast_install=no ;; | |
6380 | *) | |
6381 | enable_fast_install=no | |
6382 | # Look at the argument we got. We use all the common list separators. | |
6383 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6384 | for pkg in $enableval; do | |
6385 | IFS="$lt_save_ifs" | |
6386 | if test "X$pkg" = "X$p"; then | |
6387 | enable_fast_install=yes | |
6388 | fi | |
6389 | done | |
6390 | IFS="$lt_save_ifs" | |
6391 | ;; | |
6392 | esac | |
6393 | else | |
6394 | enable_fast_install=yes | |
6395 | fi | |
6396 | ||
6397 | ||
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | # This can be used to rebuild libtool when needed | |
6408 | LIBTOOL_DEPS="$ltmain" | |
6409 | ||
6410 | # Always use our own libtool. | |
6411 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | test -z "$LN_S" && LN_S="ln -s" | |
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
6450 | ||
6451 | ||
6452 | if test -n "${ZSH_VERSION+set}" ; then | |
6453 | setopt NO_GLOB_SUBST | |
6454 | fi | |
6455 | ||
6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6457 | $as_echo_n "checking for objdir... " >&6; } | |
6458 | if test "${lt_cv_objdir+set}" = set; then : | |
6459 | $as_echo_n "(cached) " >&6 | |
6460 | else | |
6461 | rm -f .libs 2>/dev/null | |
6462 | mkdir .libs 2>/dev/null | |
6463 | if test -d .libs; then | |
6464 | lt_cv_objdir=.libs | |
6465 | else | |
6466 | # MS-DOS does not allow filenames that begin with a dot. | |
6467 | lt_cv_objdir=_libs | |
6468 | fi | |
6469 | rmdir .libs 2>/dev/null | |
6470 | fi | |
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6472 | $as_echo "$lt_cv_objdir" >&6; } | |
6473 | objdir=$lt_cv_objdir | |
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | cat >>confdefs.h <<_ACEOF | |
6480 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6481 | _ACEOF | |
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | case $host_os in | |
6500 | aix3*) | |
6501 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6502 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6503 | # vanish in a puff of smoke. | |
6504 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6505 | COLLECT_NAMES= | |
6506 | export COLLECT_NAMES | |
6507 | fi | |
6508 | ;; | |
6509 | esac | |
6510 | ||
6511 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6512 | # metacharacters that are still active within double-quoted strings. | |
6513 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6514 | ||
6515 | # Same as above, but do not quote variable references. | |
6516 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6517 | ||
6518 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6519 | # double_quote_subst'ed string. | |
6520 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6521 | ||
6522 | # Sed substitution to delay expansion of an escaped single quote. | |
6523 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6524 | ||
6525 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6526 | no_glob_subst='s/\*/\\\*/g' | |
6527 | ||
6528 | # Global variables: | |
6529 | ofile=libtool | |
6530 | can_build_shared=yes | |
6531 | ||
6532 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6533 | # which needs '.lib'). | |
6534 | libext=a | |
6535 | ||
6536 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6537 | ||
6538 | old_CC="$CC" | |
6539 | old_CFLAGS="$CFLAGS" | |
6540 | ||
6541 | # Set sane defaults for various variables | |
6542 | test -z "$CC" && CC=cc | |
6543 | test -z "$LTCC" && LTCC=$CC | |
6544 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6545 | test -z "$LD" && LD=ld | |
6546 | test -z "$ac_objext" && ac_objext=o | |
6547 | ||
6548 | for cc_temp in $compiler""; do | |
6549 | case $cc_temp in | |
6550 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6551 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6552 | \-*) ;; | |
6553 | *) break;; | |
6554 | esac | |
6555 | done | |
6556 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6557 | ||
6558 | ||
6559 | # Only perform the check for file, if the check method requires it | |
6560 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6561 | case $deplibs_check_method in | |
6562 | file_magic*) | |
6563 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6565 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6566 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6567 | $as_echo_n "(cached) " >&6 | |
6568 | else | |
6569 | case $MAGIC_CMD in | |
6570 | [\\/*] | ?:[\\/]*) | |
6571 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6572 | ;; | |
6573 | *) | |
6574 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6575 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6576 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6577 | for ac_dir in $ac_dummy; do | |
6578 | IFS="$lt_save_ifs" | |
6579 | test -z "$ac_dir" && ac_dir=. | |
6580 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6581 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6582 | if test -n "$file_magic_test_file"; then | |
6583 | case $deplibs_check_method in | |
6584 | "file_magic "*) | |
6585 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6586 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6587 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6588 | $EGREP "$file_magic_regex" > /dev/null; then | |
6589 | : | |
6590 | else | |
6591 | cat <<_LT_EOF 1>&2 | |
6592 | ||
6593 | *** Warning: the command libtool uses to detect shared libraries, | |
6594 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6595 | *** The result is that libtool may fail to recognize shared libraries | |
6596 | *** as such. This will affect the creation of libtool libraries that | |
6597 | *** depend on shared libraries, but programs linked with such libtool | |
6598 | *** libraries will work regardless of this problem. Nevertheless, you | |
6599 | *** may want to report the problem to your system manager and/or to | |
6600 | *** bug-libtool@gnu.org | |
6601 | ||
6602 | _LT_EOF | |
6603 | fi ;; | |
6604 | esac | |
6605 | fi | |
6606 | break | |
6607 | fi | |
6608 | done | |
6609 | IFS="$lt_save_ifs" | |
6610 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6611 | ;; | |
6612 | esac | |
6613 | fi | |
6614 | ||
6615 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6616 | if test -n "$MAGIC_CMD"; then | |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6618 | $as_echo "$MAGIC_CMD" >&6; } | |
6619 | else | |
6620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6621 | $as_echo "no" >&6; } | |
6622 | fi | |
6623 | ||
6624 | ||
6625 | ||
6626 | ||
6627 | ||
6628 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6629 | if test -n "$ac_tool_prefix"; then | |
6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6631 | $as_echo_n "checking for file... " >&6; } | |
6632 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6633 | $as_echo_n "(cached) " >&6 | |
6634 | else | |
6635 | case $MAGIC_CMD in | |
6636 | [\\/*] | ?:[\\/]*) | |
6637 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6638 | ;; | |
6639 | *) | |
6640 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6641 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6642 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6643 | for ac_dir in $ac_dummy; do | |
6644 | IFS="$lt_save_ifs" | |
6645 | test -z "$ac_dir" && ac_dir=. | |
6646 | if test -f $ac_dir/file; then | |
6647 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6648 | if test -n "$file_magic_test_file"; then | |
6649 | case $deplibs_check_method in | |
6650 | "file_magic "*) | |
6651 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6652 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6653 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6654 | $EGREP "$file_magic_regex" > /dev/null; then | |
6655 | : | |
6656 | else | |
6657 | cat <<_LT_EOF 1>&2 | |
6658 | ||
6659 | *** Warning: the command libtool uses to detect shared libraries, | |
6660 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6661 | *** The result is that libtool may fail to recognize shared libraries | |
6662 | *** as such. This will affect the creation of libtool libraries that | |
6663 | *** depend on shared libraries, but programs linked with such libtool | |
6664 | *** libraries will work regardless of this problem. Nevertheless, you | |
6665 | *** may want to report the problem to your system manager and/or to | |
6666 | *** bug-libtool@gnu.org | |
6667 | ||
6668 | _LT_EOF | |
6669 | fi ;; | |
6670 | esac | |
6671 | fi | |
6672 | break | |
6673 | fi | |
6674 | done | |
6675 | IFS="$lt_save_ifs" | |
6676 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6677 | ;; | |
6678 | esac | |
6679 | fi | |
6680 | ||
6681 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6682 | if test -n "$MAGIC_CMD"; then | |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6684 | $as_echo "$MAGIC_CMD" >&6; } | |
6685 | else | |
6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6687 | $as_echo "no" >&6; } | |
6688 | fi | |
6689 | ||
6690 | ||
6691 | else | |
6692 | MAGIC_CMD=: | |
6693 | fi | |
6694 | fi | |
6695 | ||
6696 | fi | |
6697 | ;; | |
6698 | esac | |
6699 | ||
6700 | # Use C for the default configuration in the libtool script | |
6701 | ||
6702 | lt_save_CC="$CC" | |
6703 | ac_ext=c | |
6704 | ac_cpp='$CPP $CPPFLAGS' | |
6705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6708 | ||
6709 | ||
6710 | # Source file extension for C test sources. | |
6711 | ac_ext=c | |
6712 | ||
6713 | # Object file extension for compiled C test sources. | |
6714 | objext=o | |
6715 | objext=$objext | |
6716 | ||
6717 | # Code to be used in simple compile tests | |
6718 | lt_simple_compile_test_code="int some_variable = 0;" | |
6719 | ||
6720 | # Code to be used in simple link tests | |
6721 | lt_simple_link_test_code='int main(){return(0);}' | |
6722 | ||
6723 | ||
6724 | ||
6725 | ||
6726 | ||
6727 | ||
6728 | ||
6729 | # If no C compiler was specified, use CC. | |
6730 | LTCC=${LTCC-"$CC"} | |
6731 | ||
6732 | # If no C compiler flags were specified, use CFLAGS. | |
6733 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6734 | ||
6735 | # Allow CC to be a program name with arguments. | |
6736 | compiler=$CC | |
6737 | ||
6738 | # Save the default compiler, since it gets overwritten when the other | |
6739 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6740 | compiler_DEFAULT=$CC | |
6741 | ||
6742 | # save warnings/boilerplate of simple test code | |
6743 | ac_outfile=conftest.$ac_objext | |
6744 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6745 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6746 | _lt_compiler_boilerplate=`cat conftest.err` | |
6747 | $RM conftest* | |
6748 | ||
6749 | ac_outfile=conftest.$ac_objext | |
6750 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6751 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6752 | _lt_linker_boilerplate=`cat conftest.err` | |
6753 | $RM -r conftest* | |
6754 | ||
6755 | ||
6756 | if test -n "$compiler"; then | |
6757 | ||
6758 | lt_prog_compiler_no_builtin_flag= | |
6759 | ||
6760 | if test "$GCC" = yes; then | |
6761 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6762 | ||
6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6764 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6765 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6766 | $as_echo_n "(cached) " >&6 | |
6767 | else | |
6768 | lt_cv_prog_compiler_rtti_exceptions=no | |
6769 | ac_outfile=conftest.$ac_objext | |
6770 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6771 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6772 | # Insert the option either (1) after the last *FLAGS variable, or | |
6773 | # (2) before a word containing "conftest.", or (3) at the end. | |
6774 | # Note that $ac_compile itself does not contain backslashes and begins | |
6775 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6776 | # The option is referenced via a variable to avoid confusing sed. | |
6777 | lt_compile=`echo "$ac_compile" | $SED \ | |
6778 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6779 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6780 | -e 's:$: $lt_compiler_flag:'` | |
b65019fe | 6781 | (eval echo "\"\$as_me:6781: $lt_compile\"" >&5) |
9c60689e DWT |
6782 | (eval "$lt_compile" 2>conftest.err) |
6783 | ac_status=$? | |
6784 | cat conftest.err >&5 | |
b65019fe | 6785 | echo "$as_me:6785: \$? = $ac_status" >&5 |
9c60689e DWT |
6786 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6787 | # The compiler can only warn and ignore the option if not recognized | |
6788 | # So say no if there are warnings other than the usual output. | |
6789 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6790 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6791 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6792 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6793 | fi | |
6794 | fi | |
6795 | $RM conftest* | |
6796 | ||
6797 | fi | |
6798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6799 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6800 | ||
6801 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6802 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6803 | else | |
6804 | : | |
6805 | fi | |
6806 | ||
6807 | fi | |
6808 | ||
6809 | ||
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | lt_prog_compiler_wl= | |
6815 | lt_prog_compiler_pic= | |
6816 | lt_prog_compiler_static= | |
6817 | ||
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6819 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6820 | ||
6821 | if test "$GCC" = yes; then | |
6822 | lt_prog_compiler_wl='-Wl,' | |
6823 | lt_prog_compiler_static='-static' | |
6824 | ||
6825 | case $host_os in | |
6826 | aix*) | |
6827 | # All AIX code is PIC. | |
6828 | if test "$host_cpu" = ia64; then | |
6829 | # AIX 5 now supports IA64 processor | |
6830 | lt_prog_compiler_static='-Bstatic' | |
6831 | fi | |
6832 | ;; | |
6833 | ||
6834 | amigaos*) | |
6835 | case $host_cpu in | |
6836 | powerpc) | |
6837 | # see comment about AmigaOS4 .so support | |
6838 | lt_prog_compiler_pic='-fPIC' | |
6839 | ;; | |
6840 | m68k) | |
6841 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6842 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6843 | # like `-m68040'. | |
6844 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6845 | ;; | |
6846 | esac | |
6847 | ;; | |
6848 | ||
6849 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6850 | # PIC is the default for these OSes. | |
6851 | ;; | |
6852 | ||
6853 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6854 | # This hack is so that the source file can tell whether it is being | |
6855 | # built for inclusion in a dll (and should export symbols for example). | |
6856 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6857 | # (--disable-auto-import) libraries | |
6858 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6859 | ;; | |
6860 | ||
6861 | darwin* | rhapsody*) | |
6862 | # PIC is the default on this platform | |
6863 | # Common symbols not allowed in MH_DYLIB files | |
6864 | lt_prog_compiler_pic='-fno-common' | |
6865 | ;; | |
6866 | ||
6867 | hpux*) | |
6868 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6869 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6870 | # sets the default TLS model and affects inlining. | |
6871 | case $host_cpu in | |
6872 | hppa*64*) | |
6873 | # +Z the default | |
6874 | ;; | |
6875 | *) | |
6876 | lt_prog_compiler_pic='-fPIC' | |
6877 | ;; | |
6878 | esac | |
6879 | ;; | |
6880 | ||
6881 | interix[3-9]*) | |
6882 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6883 | # Instead, we relocate shared libraries at runtime. | |
6884 | ;; | |
6885 | ||
6886 | msdosdjgpp*) | |
6887 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6888 | # on systems that don't support them. | |
6889 | lt_prog_compiler_can_build_shared=no | |
6890 | enable_shared=no | |
6891 | ;; | |
6892 | ||
6893 | *nto* | *qnx*) | |
6894 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6895 | # it will coredump. | |
6896 | lt_prog_compiler_pic='-fPIC -shared' | |
6897 | ;; | |
6898 | ||
6899 | sysv4*MP*) | |
6900 | if test -d /usr/nec; then | |
6901 | lt_prog_compiler_pic=-Kconform_pic | |
6902 | fi | |
6903 | ;; | |
6904 | ||
6905 | *) | |
6906 | lt_prog_compiler_pic='-fPIC' | |
6907 | ;; | |
6908 | esac | |
6909 | else | |
6910 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6911 | case $host_os in | |
6912 | aix*) | |
6913 | lt_prog_compiler_wl='-Wl,' | |
6914 | if test "$host_cpu" = ia64; then | |
6915 | # AIX 5 now supports IA64 processor | |
6916 | lt_prog_compiler_static='-Bstatic' | |
6917 | else | |
6918 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6919 | fi | |
6920 | ;; | |
6921 | ||
6922 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6923 | # This hack is so that the source file can tell whether it is being | |
6924 | # built for inclusion in a dll (and should export symbols for example). | |
6925 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6926 | ;; | |
6927 | ||
6928 | hpux9* | hpux10* | hpux11*) | |
6929 | lt_prog_compiler_wl='-Wl,' | |
6930 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6931 | # not for PA HP-UX. | |
6932 | case $host_cpu in | |
6933 | hppa*64*|ia64*) | |
6934 | # +Z the default | |
6935 | ;; | |
6936 | *) | |
6937 | lt_prog_compiler_pic='+Z' | |
6938 | ;; | |
6939 | esac | |
6940 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6941 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6942 | ;; | |
6943 | ||
6944 | irix5* | irix6* | nonstopux*) | |
6945 | lt_prog_compiler_wl='-Wl,' | |
6946 | # PIC (with -KPIC) is the default. | |
6947 | lt_prog_compiler_static='-non_shared' | |
6948 | ;; | |
6949 | ||
51ac63c5 | 6950 | linux* | k*bsd*-gnu) |
9c60689e DWT |
6951 | case $cc_basename in |
6952 | # old Intel for x86_64 which still supported -KPIC. | |
6953 | ecc*) | |
6954 | lt_prog_compiler_wl='-Wl,' | |
6955 | lt_prog_compiler_pic='-KPIC' | |
6956 | lt_prog_compiler_static='-static' | |
6957 | ;; | |
6958 | # icc used to be incompatible with GCC. | |
6959 | # ICC 10 doesn't accept -KPIC any more. | |
6960 | icc* | ifort*) | |
6961 | lt_prog_compiler_wl='-Wl,' | |
6962 | lt_prog_compiler_pic='-fPIC' | |
6963 | lt_prog_compiler_static='-static' | |
6964 | ;; | |
6965 | # Lahey Fortran 8.1. | |
6966 | lf95*) | |
6967 | lt_prog_compiler_wl='-Wl,' | |
6968 | lt_prog_compiler_pic='--shared' | |
6969 | lt_prog_compiler_static='--static' | |
6970 | ;; | |
6971 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6972 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6973 | # which looks to be a dead project) | |
6974 | lt_prog_compiler_wl='-Wl,' | |
6975 | lt_prog_compiler_pic='-fpic' | |
6976 | lt_prog_compiler_static='-Bstatic' | |
6977 | ;; | |
6978 | ccc*) | |
6979 | lt_prog_compiler_wl='-Wl,' | |
6980 | # All Alpha code is PIC. | |
6981 | lt_prog_compiler_static='-non_shared' | |
6982 | ;; | |
6983 | xl*) | |
6984 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
6985 | lt_prog_compiler_wl='-Wl,' | |
6986 | lt_prog_compiler_pic='-qpic' | |
6987 | lt_prog_compiler_static='-qstaticlink' | |
6988 | ;; | |
6989 | *) | |
6990 | case `$CC -V 2>&1 | sed 5q` in | |
6991 | *Sun\ C*) | |
6992 | # Sun C 5.9 | |
6993 | lt_prog_compiler_pic='-KPIC' | |
6994 | lt_prog_compiler_static='-Bstatic' | |
6995 | lt_prog_compiler_wl='-Wl,' | |
6996 | ;; | |
6997 | *Sun\ F*) | |
6998 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
6999 | lt_prog_compiler_pic='-KPIC' | |
7000 | lt_prog_compiler_static='-Bstatic' | |
7001 | lt_prog_compiler_wl='' | |
7002 | ;; | |
7003 | esac | |
7004 | ;; | |
7005 | esac | |
7006 | ;; | |
7007 | ||
7008 | newsos6) | |
7009 | lt_prog_compiler_pic='-KPIC' | |
7010 | lt_prog_compiler_static='-Bstatic' | |
7011 | ;; | |
7012 | ||
7013 | *nto* | *qnx*) | |
7014 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7015 | # it will coredump. | |
7016 | lt_prog_compiler_pic='-fPIC -shared' | |
7017 | ;; | |
7018 | ||
7019 | osf3* | osf4* | osf5*) | |
7020 | lt_prog_compiler_wl='-Wl,' | |
7021 | # All OSF/1 code is PIC. | |
7022 | lt_prog_compiler_static='-non_shared' | |
7023 | ;; | |
7024 | ||
7025 | rdos*) | |
7026 | lt_prog_compiler_static='-non_shared' | |
7027 | ;; | |
7028 | ||
7029 | solaris*) | |
7030 | lt_prog_compiler_pic='-KPIC' | |
7031 | lt_prog_compiler_static='-Bstatic' | |
7032 | case $cc_basename in | |
7033 | f77* | f90* | f95*) | |
7034 | lt_prog_compiler_wl='-Qoption ld ';; | |
7035 | *) | |
7036 | lt_prog_compiler_wl='-Wl,';; | |
7037 | esac | |
7038 | ;; | |
7039 | ||
7040 | sunos4*) | |
7041 | lt_prog_compiler_wl='-Qoption ld ' | |
7042 | lt_prog_compiler_pic='-PIC' | |
7043 | lt_prog_compiler_static='-Bstatic' | |
7044 | ;; | |
7045 | ||
7046 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7047 | lt_prog_compiler_wl='-Wl,' | |
7048 | lt_prog_compiler_pic='-KPIC' | |
7049 | lt_prog_compiler_static='-Bstatic' | |
7050 | ;; | |
7051 | ||
7052 | sysv4*MP*) | |
7053 | if test -d /usr/nec ;then | |
7054 | lt_prog_compiler_pic='-Kconform_pic' | |
7055 | lt_prog_compiler_static='-Bstatic' | |
7056 | fi | |
7057 | ;; | |
7058 | ||
7059 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7060 | lt_prog_compiler_wl='-Wl,' | |
7061 | lt_prog_compiler_pic='-KPIC' | |
7062 | lt_prog_compiler_static='-Bstatic' | |
7063 | ;; | |
7064 | ||
7065 | unicos*) | |
7066 | lt_prog_compiler_wl='-Wl,' | |
7067 | lt_prog_compiler_can_build_shared=no | |
7068 | ;; | |
7069 | ||
7070 | uts4*) | |
7071 | lt_prog_compiler_pic='-pic' | |
7072 | lt_prog_compiler_static='-Bstatic' | |
7073 | ;; | |
7074 | ||
7075 | *) | |
7076 | lt_prog_compiler_can_build_shared=no | |
7077 | ;; | |
7078 | esac | |
7079 | fi | |
7080 | ||
7081 | case $host_os in | |
7082 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7083 | *djgpp*) | |
7084 | lt_prog_compiler_pic= | |
7085 | ;; | |
7086 | *) | |
7087 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7088 | ;; | |
7089 | esac | |
7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7091 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7092 | ||
7093 | ||
7094 | ||
7095 | ||
7096 | ||
7097 | ||
7098 | # | |
7099 | # Check to make sure the PIC flag actually works. | |
7100 | # | |
7101 | if test -n "$lt_prog_compiler_pic"; then | |
7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7103 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7104 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7105 | $as_echo_n "(cached) " >&6 | |
7106 | else | |
7107 | lt_cv_prog_compiler_pic_works=no | |
7108 | ac_outfile=conftest.$ac_objext | |
7109 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7110 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7111 | # Insert the option either (1) after the last *FLAGS variable, or | |
7112 | # (2) before a word containing "conftest.", or (3) at the end. | |
7113 | # Note that $ac_compile itself does not contain backslashes and begins | |
7114 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7115 | # The option is referenced via a variable to avoid confusing sed. | |
7116 | lt_compile=`echo "$ac_compile" | $SED \ | |
7117 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7118 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7119 | -e 's:$: $lt_compiler_flag:'` | |
b65019fe | 7120 | (eval echo "\"\$as_me:7120: $lt_compile\"" >&5) |
9c60689e DWT |
7121 | (eval "$lt_compile" 2>conftest.err) |
7122 | ac_status=$? | |
7123 | cat conftest.err >&5 | |
b65019fe | 7124 | echo "$as_me:7124: \$? = $ac_status" >&5 |
9c60689e DWT |
7125 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7126 | # The compiler can only warn and ignore the option if not recognized | |
7127 | # So say no if there are warnings other than the usual output. | |
7128 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7129 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7130 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7131 | lt_cv_prog_compiler_pic_works=yes | |
7132 | fi | |
7133 | fi | |
7134 | $RM conftest* | |
7135 | ||
7136 | fi | |
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7138 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7139 | ||
7140 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7141 | case $lt_prog_compiler_pic in | |
7142 | "" | " "*) ;; | |
7143 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7144 | esac | |
7145 | else | |
7146 | lt_prog_compiler_pic= | |
7147 | lt_prog_compiler_can_build_shared=no | |
7148 | fi | |
7149 | ||
7150 | fi | |
7151 | ||
7152 | ||
7153 | ||
7154 | ||
7155 | ||
7156 | ||
7157 | # | |
7158 | # Check to make sure the static flag actually works. | |
7159 | # | |
7160 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7162 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7163 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7164 | $as_echo_n "(cached) " >&6 | |
7165 | else | |
7166 | lt_cv_prog_compiler_static_works=no | |
7167 | save_LDFLAGS="$LDFLAGS" | |
7168 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7169 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7170 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7171 | # The linker can only warn and ignore the option if not recognized | |
7172 | # So say no if there are warnings | |
7173 | if test -s conftest.err; then | |
7174 | # Append any errors to the config.log. | |
7175 | cat conftest.err 1>&5 | |
7176 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7177 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7178 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7179 | lt_cv_prog_compiler_static_works=yes | |
7180 | fi | |
7181 | else | |
7182 | lt_cv_prog_compiler_static_works=yes | |
7183 | fi | |
7184 | fi | |
7185 | $RM -r conftest* | |
7186 | LDFLAGS="$save_LDFLAGS" | |
7187 | ||
7188 | fi | |
7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7190 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7191 | ||
7192 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7193 | : | |
7194 | else | |
7195 | lt_prog_compiler_static= | |
7196 | fi | |
7197 | ||
7198 | ||
7199 | ||
7200 | ||
7201 | ||
7202 | ||
7203 | ||
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7205 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7206 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7207 | $as_echo_n "(cached) " >&6 | |
7208 | else | |
7209 | lt_cv_prog_compiler_c_o=no | |
7210 | $RM -r conftest 2>/dev/null | |
7211 | mkdir conftest | |
7212 | cd conftest | |
7213 | mkdir out | |
7214 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7215 | ||
7216 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7217 | # Insert the option either (1) after the last *FLAGS variable, or | |
7218 | # (2) before a word containing "conftest.", or (3) at the end. | |
7219 | # Note that $ac_compile itself does not contain backslashes and begins | |
7220 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7221 | lt_compile=`echo "$ac_compile" | $SED \ | |
7222 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7223 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7224 | -e 's:$: $lt_compiler_flag:'` | |
b65019fe | 7225 | (eval echo "\"\$as_me:7225: $lt_compile\"" >&5) |
9c60689e DWT |
7226 | (eval "$lt_compile" 2>out/conftest.err) |
7227 | ac_status=$? | |
7228 | cat out/conftest.err >&5 | |
b65019fe | 7229 | echo "$as_me:7229: \$? = $ac_status" >&5 |
9c60689e DWT |
7230 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7231 | then | |
7232 | # The compiler can only warn and ignore the option if not recognized | |
7233 | # So say no if there are warnings | |
7234 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7235 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7236 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7237 | lt_cv_prog_compiler_c_o=yes | |
7238 | fi | |
7239 | fi | |
7240 | chmod u+w . 2>&5 | |
7241 | $RM conftest* | |
7242 | # SGI C++ compiler will create directory out/ii_files/ for | |
7243 | # template instantiation | |
7244 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7245 | $RM out/* && rmdir out | |
7246 | cd .. | |
7247 | $RM -r conftest | |
7248 | $RM conftest* | |
7249 | ||
7250 | fi | |
7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7252 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7253 | ||
7254 | ||
7255 | ||
7256 | ||
7257 | ||
7258 | ||
7259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7260 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7261 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7262 | $as_echo_n "(cached) " >&6 | |
7263 | else | |
7264 | lt_cv_prog_compiler_c_o=no | |
7265 | $RM -r conftest 2>/dev/null | |
7266 | mkdir conftest | |
7267 | cd conftest | |
7268 | mkdir out | |
7269 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7270 | ||
7271 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7272 | # Insert the option either (1) after the last *FLAGS variable, or | |
7273 | # (2) before a word containing "conftest.", or (3) at the end. | |
7274 | # Note that $ac_compile itself does not contain backslashes and begins | |
7275 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7276 | lt_compile=`echo "$ac_compile" | $SED \ | |
7277 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7278 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7279 | -e 's:$: $lt_compiler_flag:'` | |
b65019fe | 7280 | (eval echo "\"\$as_me:7280: $lt_compile\"" >&5) |
9c60689e DWT |
7281 | (eval "$lt_compile" 2>out/conftest.err) |
7282 | ac_status=$? | |
7283 | cat out/conftest.err >&5 | |
b65019fe | 7284 | echo "$as_me:7284: \$? = $ac_status" >&5 |
9c60689e DWT |
7285 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7286 | then | |
7287 | # The compiler can only warn and ignore the option if not recognized | |
7288 | # So say no if there are warnings | |
7289 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7290 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7291 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7292 | lt_cv_prog_compiler_c_o=yes | |
7293 | fi | |
7294 | fi | |
7295 | chmod u+w . 2>&5 | |
7296 | $RM conftest* | |
7297 | # SGI C++ compiler will create directory out/ii_files/ for | |
7298 | # template instantiation | |
7299 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7300 | $RM out/* && rmdir out | |
7301 | cd .. | |
7302 | $RM -r conftest | |
7303 | $RM conftest* | |
7304 | ||
7305 | fi | |
7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7307 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7308 | ||
7309 | ||
7310 | ||
7311 | ||
7312 | hard_links="nottested" | |
7313 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7314 | # do not overwrite the value of need_locks provided by the user | |
7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7316 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7317 | hard_links=yes | |
7318 | $RM conftest* | |
7319 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7320 | touch conftest.a | |
7321 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7322 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7324 | $as_echo "$hard_links" >&6; } | |
7325 | if test "$hard_links" = no; then | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7327 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7328 | need_locks=warn | |
7329 | fi | |
7330 | else | |
7331 | need_locks=no | |
7332 | fi | |
7333 | ||
7334 | ||
7335 | ||
7336 | ||
7337 | ||
7338 | ||
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7340 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7341 | ||
7342 | runpath_var= | |
7343 | allow_undefined_flag= | |
7344 | always_export_symbols=no | |
7345 | archive_cmds= | |
7346 | archive_expsym_cmds= | |
7347 | compiler_needs_object=no | |
7348 | enable_shared_with_static_runtimes=no | |
7349 | export_dynamic_flag_spec= | |
7350 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7351 | hardcode_automatic=no | |
7352 | hardcode_direct=no | |
7353 | hardcode_direct_absolute=no | |
7354 | hardcode_libdir_flag_spec= | |
7355 | hardcode_libdir_flag_spec_ld= | |
7356 | hardcode_libdir_separator= | |
7357 | hardcode_minus_L=no | |
7358 | hardcode_shlibpath_var=unsupported | |
7359 | inherit_rpath=no | |
7360 | link_all_deplibs=unknown | |
7361 | module_cmds= | |
7362 | module_expsym_cmds= | |
7363 | old_archive_from_new_cmds= | |
7364 | old_archive_from_expsyms_cmds= | |
7365 | thread_safe_flag_spec= | |
7366 | whole_archive_flag_spec= | |
7367 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7368 | # included in the symbol list | |
7369 | include_expsyms= | |
7370 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7371 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7372 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7373 | # as well as any symbol that contains `d'. | |
7374 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7375 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7376 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7377 | # the symbol is explicitly referenced. Since portable code cannot | |
7378 | # rely on this symbol name, it's probably fine to never include it in | |
7379 | # preloaded symbol tables. | |
7380 | # Exclude shared library initialization/finalization symbols. | |
7381 | extract_expsyms_cmds= | |
7382 | ||
7383 | case $host_os in | |
7384 | cygwin* | mingw* | pw32* | cegcc*) | |
7385 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7386 | # When not using gcc, we currently assume that we are using | |
7387 | # Microsoft Visual C++. | |
7388 | if test "$GCC" != yes; then | |
7389 | with_gnu_ld=no | |
7390 | fi | |
7391 | ;; | |
7392 | interix*) | |
7393 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7394 | with_gnu_ld=yes | |
7395 | ;; | |
7396 | openbsd*) | |
7397 | with_gnu_ld=no | |
7398 | ;; | |
9c60689e DWT |
7399 | esac |
7400 | ||
7401 | ld_shlibs=yes | |
7402 | if test "$with_gnu_ld" = yes; then | |
7403 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7404 | wlarc='${wl}' | |
7405 | ||
7406 | # Set some defaults for GNU ld with shared library support. These | |
7407 | # are reset later if shared libraries are not supported. Putting them | |
7408 | # here allows them to be overridden if necessary. | |
7409 | runpath_var=LD_RUN_PATH | |
7410 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7411 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7412 | # ancient GNU ld didn't support --whole-archive et. al. | |
7413 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7414 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7415 | else | |
7416 | whole_archive_flag_spec= | |
7417 | fi | |
7418 | supports_anon_versioning=no | |
7419 | case `$LD -v 2>&1` in | |
9c60689e DWT |
7420 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7421 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7422 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7423 | *\ 2.11.*) ;; # other 2.11 versions | |
7424 | *) supports_anon_versioning=yes ;; | |
7425 | esac | |
7426 | ||
7427 | # See if GNU ld supports shared libraries. | |
7428 | case $host_os in | |
7429 | aix[3-9]*) | |
7430 | # On AIX/PPC, the GNU linker is very broken | |
7431 | if test "$host_cpu" != ia64; then | |
7432 | ld_shlibs=no | |
7433 | cat <<_LT_EOF 1>&2 | |
7434 | ||
7435 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7436 | *** to be unable to reliably create shared libraries on AIX. | |
7437 | *** Therefore, libtool is disabling shared libraries support. If you | |
7438 | *** really care for shared libraries, you may want to modify your PATH | |
7439 | *** so that a non-GNU linker is found, and then restart. | |
7440 | ||
7441 | _LT_EOF | |
7442 | fi | |
7443 | ;; | |
7444 | ||
7445 | amigaos*) | |
7446 | case $host_cpu in | |
7447 | powerpc) | |
7448 | # see comment about AmigaOS4 .so support | |
7449 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7450 | archive_expsym_cmds='' | |
7451 | ;; | |
7452 | m68k) | |
7453 | 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)' | |
7454 | hardcode_libdir_flag_spec='-L$libdir' | |
7455 | hardcode_minus_L=yes | |
7456 | ;; | |
7457 | esac | |
7458 | ;; | |
7459 | ||
7460 | beos*) | |
7461 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7462 | allow_undefined_flag=unsupported | |
7463 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7464 | # support --undefined. This deserves some investigation. FIXME | |
7465 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7466 | else | |
7467 | ld_shlibs=no | |
7468 | fi | |
7469 | ;; | |
7470 | ||
7471 | cygwin* | mingw* | pw32* | cegcc*) | |
7472 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7473 | # as there is no search path for DLLs. | |
7474 | hardcode_libdir_flag_spec='-L$libdir' | |
7475 | allow_undefined_flag=unsupported | |
7476 | always_export_symbols=no | |
7477 | enable_shared_with_static_runtimes=yes | |
7478 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7479 | ||
7480 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7481 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7482 | # If the export-symbols file already is a .def file (1st line | |
7483 | # is EXPORTS), use it as is; otherwise, prepend... | |
7484 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7485 | cp $export_symbols $output_objdir/$soname.def; | |
7486 | else | |
7487 | echo EXPORTS > $output_objdir/$soname.def; | |
7488 | cat $export_symbols >> $output_objdir/$soname.def; | |
7489 | fi~ | |
7490 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7491 | else | |
7492 | ld_shlibs=no | |
7493 | fi | |
7494 | ;; | |
7495 | ||
7496 | interix[3-9]*) | |
7497 | hardcode_direct=no | |
7498 | hardcode_shlibpath_var=no | |
7499 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7500 | export_dynamic_flag_spec='${wl}-E' | |
7501 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7502 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7503 | # default) and relocated if they conflict, which is a slow very memory | |
7504 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7505 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7506 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7507 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7508 | 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' | |
7509 | ;; | |
7510 | ||
51ac63c5 | 7511 | gnu* | linux* | tpf* | k*bsd*-gnu) |
9c60689e DWT |
7512 | tmp_diet=no |
7513 | if test "$host_os" = linux-dietlibc; then | |
7514 | case $cc_basename in | |
7515 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7516 | esac | |
7517 | fi | |
7518 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7519 | && test "$tmp_diet" = no | |
7520 | then | |
7521 | tmp_addflag= | |
7522 | tmp_sharedflag='-shared' | |
7523 | case $cc_basename,$host_cpu in | |
7524 | pgcc*) # Portland Group C compiler | |
7525 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7526 | tmp_addflag=' $pic_flag' | |
7527 | ;; | |
7528 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7529 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7530 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7531 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7532 | tmp_addflag=' -i_dynamic' ;; | |
7533 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7534 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7535 | ifc* | ifort*) # Intel Fortran compiler | |
7536 | tmp_addflag=' -nofor_main' ;; | |
7537 | lf95*) # Lahey Fortran 8.1 | |
7538 | whole_archive_flag_spec= | |
7539 | tmp_sharedflag='--shared' ;; | |
7540 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7541 | tmp_sharedflag='-qmkshrobj' | |
7542 | tmp_addflag= ;; | |
7543 | esac | |
7544 | case `$CC -V 2>&1 | sed 5q` in | |
7545 | *Sun\ C*) # Sun C 5.9 | |
7546 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7547 | compiler_needs_object=yes | |
7548 | tmp_sharedflag='-G' ;; | |
7549 | *Sun\ F*) # Sun Fortran 8.3 | |
7550 | tmp_sharedflag='-G' ;; | |
7551 | esac | |
7552 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7553 | ||
7554 | if test "x$supports_anon_versioning" = xyes; then | |
7555 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7556 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7557 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7558 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7559 | fi | |
7560 | ||
7561 | case $cc_basename in | |
7562 | xlf*) | |
7563 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7564 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7565 | hardcode_libdir_flag_spec= | |
7566 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7567 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7568 | if test "x$supports_anon_versioning" = xyes; then | |
7569 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7570 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7571 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7572 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7573 | fi | |
7574 | ;; | |
7575 | esac | |
7576 | else | |
7577 | ld_shlibs=no | |
7578 | fi | |
7579 | ;; | |
7580 | ||
51ac63c5 | 7581 | netbsd*) |
9c60689e DWT |
7582 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
7583 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7584 | wlarc= | |
7585 | else | |
7586 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7587 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7588 | fi | |
7589 | ;; | |
7590 | ||
7591 | solaris*) | |
7592 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7593 | ld_shlibs=no | |
7594 | cat <<_LT_EOF 1>&2 | |
7595 | ||
7596 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7597 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7598 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7599 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7600 | *** your PATH or compiler configuration so that the native linker is | |
7601 | *** used, and then restart. | |
7602 | ||
7603 | _LT_EOF | |
7604 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7605 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7606 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7607 | else | |
7608 | ld_shlibs=no | |
7609 | fi | |
7610 | ;; | |
7611 | ||
7612 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7613 | case `$LD -v 2>&1` in | |
7614 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7615 | ld_shlibs=no | |
7616 | cat <<_LT_EOF 1>&2 | |
7617 | ||
7618 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7619 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7620 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7621 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7622 | *** your PATH or compiler configuration so that the native linker is | |
7623 | *** used, and then restart. | |
7624 | ||
7625 | _LT_EOF | |
7626 | ;; | |
7627 | *) | |
7628 | # For security reasons, it is highly recommended that you always | |
7629 | # use absolute paths for naming shared libraries, and exclude the | |
7630 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7631 | # requires that you compile everything twice, which is a pain. | |
7632 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7633 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7634 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7635 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7636 | else | |
7637 | ld_shlibs=no | |
7638 | fi | |
7639 | ;; | |
7640 | esac | |
7641 | ;; | |
7642 | ||
7643 | sunos4*) | |
7644 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7645 | wlarc= | |
7646 | hardcode_direct=yes | |
7647 | hardcode_shlibpath_var=no | |
7648 | ;; | |
7649 | ||
7650 | *) | |
7651 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7652 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7653 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7654 | else | |
7655 | ld_shlibs=no | |
7656 | fi | |
7657 | ;; | |
7658 | esac | |
7659 | ||
7660 | if test "$ld_shlibs" = no; then | |
7661 | runpath_var= | |
7662 | hardcode_libdir_flag_spec= | |
7663 | export_dynamic_flag_spec= | |
7664 | whole_archive_flag_spec= | |
7665 | fi | |
7666 | else | |
7667 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7668 | case $host_os in | |
7669 | aix3*) | |
7670 | allow_undefined_flag=unsupported | |
7671 | always_export_symbols=yes | |
7672 | 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' | |
7673 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7674 | # are no directories specified by -L. | |
7675 | hardcode_minus_L=yes | |
7676 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7677 | # Neither direct hardcoding nor static linking is supported with a | |
7678 | # broken collect2. | |
7679 | hardcode_direct=unsupported | |
7680 | fi | |
7681 | ;; | |
7682 | ||
7683 | aix[4-9]*) | |
7684 | if test "$host_cpu" = ia64; then | |
7685 | # On IA64, the linker does run time linking by default, so we don't | |
7686 | # have to do anything special. | |
7687 | aix_use_runtimelinking=no | |
7688 | exp_sym_flag='-Bexport' | |
7689 | no_entry_flag="" | |
7690 | else | |
7691 | # If we're using GNU nm, then we don't want the "-C" option. | |
7692 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7693 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7694 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7695 | else | |
7696 | 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' | |
7697 | fi | |
7698 | aix_use_runtimelinking=no | |
7699 | ||
7700 | # Test if we are trying to use run time linking or normal | |
7701 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7702 | # need to do runtime linking. | |
7703 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7704 | for ld_flag in $LDFLAGS; do | |
7705 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7706 | aix_use_runtimelinking=yes | |
7707 | break | |
7708 | fi | |
7709 | done | |
7710 | ;; | |
7711 | esac | |
7712 | ||
7713 | exp_sym_flag='-bexport' | |
7714 | no_entry_flag='-bnoentry' | |
7715 | fi | |
7716 | ||
7717 | # When large executables or shared objects are built, AIX ld can | |
7718 | # have problems creating the table of contents. If linking a library | |
7719 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7720 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7721 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7722 | ||
7723 | archive_cmds='' | |
7724 | hardcode_direct=yes | |
7725 | hardcode_direct_absolute=yes | |
7726 | hardcode_libdir_separator=':' | |
7727 | link_all_deplibs=yes | |
7728 | file_list_spec='${wl}-f,' | |
7729 | ||
7730 | if test "$GCC" = yes; then | |
7731 | case $host_os in aix4.[012]|aix4.[012].*) | |
7732 | # We only want to do this on AIX 4.2 and lower, the check | |
7733 | # below for broken collect2 doesn't work under 4.3+ | |
7734 | collect2name=`${CC} -print-prog-name=collect2` | |
7735 | if test -f "$collect2name" && | |
7736 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7737 | then | |
7738 | # We have reworked collect2 | |
7739 | : | |
7740 | else | |
7741 | # We have old collect2 | |
7742 | hardcode_direct=unsupported | |
7743 | # It fails to find uninstalled libraries when the uninstalled | |
7744 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7745 | # to unsupported forces relinking | |
7746 | hardcode_minus_L=yes | |
7747 | hardcode_libdir_flag_spec='-L$libdir' | |
7748 | hardcode_libdir_separator= | |
7749 | fi | |
7750 | ;; | |
7751 | esac | |
7752 | shared_flag='-shared' | |
7753 | if test "$aix_use_runtimelinking" = yes; then | |
7754 | shared_flag="$shared_flag "'${wl}-G' | |
7755 | fi | |
9c60689e DWT |
7756 | else |
7757 | # not using gcc | |
7758 | if test "$host_cpu" = ia64; then | |
7759 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7760 | # chokes on -Wl,-G. The following line is correct: | |
7761 | shared_flag='-G' | |
7762 | else | |
7763 | if test "$aix_use_runtimelinking" = yes; then | |
7764 | shared_flag='${wl}-G' | |
7765 | else | |
7766 | shared_flag='${wl}-bM:SRE' | |
7767 | fi | |
7768 | fi | |
7769 | fi | |
7770 | ||
7771 | export_dynamic_flag_spec='${wl}-bexpall' | |
7772 | # It seems that -bexpall does not export symbols beginning with | |
7773 | # underscore (_), so it is better to generate a list of symbols to export. | |
7774 | always_export_symbols=yes | |
7775 | if test "$aix_use_runtimelinking" = yes; then | |
7776 | # Warning - without using the other runtime loading flags (-brtl), | |
7777 | # -berok will link without error, but may produce a broken library. | |
7778 | allow_undefined_flag='-berok' | |
7779 | # Determine the default libpath from the value encoded in an | |
7780 | # empty executable. | |
7781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7782 | /* end confdefs.h. */ | |
7783 | ||
7784 | int | |
7785 | main () | |
7786 | { | |
7787 | ||
7788 | ; | |
7789 | return 0; | |
7790 | } | |
7791 | _ACEOF | |
7792 | if ac_fn_c_try_link "$LINENO"; then : | |
7793 | ||
7794 | lt_aix_libpath_sed=' | |
7795 | /Import File Strings/,/^$/ { | |
7796 | /^0/ { | |
7797 | s/^0 *\(.*\)$/\1/ | |
7798 | p | |
7799 | } | |
7800 | }' | |
7801 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7802 | # Check for a 64-bit object if we didn't find anything. | |
7803 | if test -z "$aix_libpath"; then | |
7804 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7805 | fi | |
7806 | fi | |
7807 | rm -f core conftest.err conftest.$ac_objext \ | |
7808 | conftest$ac_exeext conftest.$ac_ext | |
7809 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7810 | ||
7811 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7812 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7813 | else | |
7814 | if test "$host_cpu" = ia64; then | |
7815 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7816 | allow_undefined_flag="-z nodefs" | |
7817 | 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" | |
7818 | else | |
7819 | # Determine the default libpath from the value encoded in an | |
7820 | # empty executable. | |
7821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7822 | /* end confdefs.h. */ | |
7823 | ||
7824 | int | |
7825 | main () | |
7826 | { | |
7827 | ||
7828 | ; | |
7829 | return 0; | |
7830 | } | |
7831 | _ACEOF | |
7832 | if ac_fn_c_try_link "$LINENO"; then : | |
7833 | ||
7834 | lt_aix_libpath_sed=' | |
7835 | /Import File Strings/,/^$/ { | |
7836 | /^0/ { | |
7837 | s/^0 *\(.*\)$/\1/ | |
7838 | p | |
7839 | } | |
7840 | }' | |
7841 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7842 | # Check for a 64-bit object if we didn't find anything. | |
7843 | if test -z "$aix_libpath"; then | |
7844 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7845 | fi | |
7846 | fi | |
7847 | rm -f core conftest.err conftest.$ac_objext \ | |
7848 | conftest$ac_exeext conftest.$ac_ext | |
7849 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7850 | ||
7851 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7852 | # Warning - without using the other run time loading flags, | |
7853 | # -berok will link without error, but may produce a broken library. | |
7854 | no_undefined_flag=' ${wl}-bernotok' | |
7855 | allow_undefined_flag=' ${wl}-berok' | |
7856 | # Exported symbols can be pulled into shared objects from archives | |
7857 | whole_archive_flag_spec='$convenience' | |
7858 | archive_cmds_need_lc=yes | |
7859 | # This is similar to how AIX traditionally builds its shared libraries. | |
7860 | 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' | |
7861 | fi | |
7862 | fi | |
7863 | ;; | |
7864 | ||
7865 | amigaos*) | |
7866 | case $host_cpu in | |
7867 | powerpc) | |
7868 | # see comment about AmigaOS4 .so support | |
7869 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7870 | archive_expsym_cmds='' | |
7871 | ;; | |
7872 | m68k) | |
7873 | 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)' | |
7874 | hardcode_libdir_flag_spec='-L$libdir' | |
7875 | hardcode_minus_L=yes | |
7876 | ;; | |
7877 | esac | |
7878 | ;; | |
7879 | ||
7880 | bsdi[45]*) | |
7881 | export_dynamic_flag_spec=-rdynamic | |
7882 | ;; | |
7883 | ||
7884 | cygwin* | mingw* | pw32* | cegcc*) | |
7885 | # When not using gcc, we currently assume that we are using | |
7886 | # Microsoft Visual C++. | |
7887 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7888 | # no search path for DLLs. | |
7889 | hardcode_libdir_flag_spec=' ' | |
7890 | allow_undefined_flag=unsupported | |
7891 | # Tell ltmain to make .lib files, not .a files. | |
7892 | libext=lib | |
7893 | # Tell ltmain to make .dll files, not .so files. | |
7894 | shrext_cmds=".dll" | |
7895 | # FIXME: Setting linknames here is a bad hack. | |
7896 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7897 | # The linker will automatically build a .lib file if we build a DLL. | |
7898 | old_archive_from_new_cmds='true' | |
7899 | # FIXME: Should let the user specify the lib program. | |
7900 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7901 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7902 | enable_shared_with_static_runtimes=yes | |
7903 | ;; | |
7904 | ||
7905 | darwin* | rhapsody*) | |
7906 | ||
7907 | ||
7908 | archive_cmds_need_lc=no | |
7909 | hardcode_direct=no | |
7910 | hardcode_automatic=yes | |
7911 | hardcode_shlibpath_var=unsupported | |
7912 | whole_archive_flag_spec='' | |
7913 | link_all_deplibs=yes | |
7914 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7915 | case $cc_basename in | |
7916 | ifort*) _lt_dar_can_shared=yes ;; | |
7917 | *) _lt_dar_can_shared=$GCC ;; | |
7918 | esac | |
7919 | if test "$_lt_dar_can_shared" = "yes"; then | |
7920 | output_verbose_link_cmd=echo | |
7921 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7922 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7923 | 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}" | |
7924 | 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}" | |
7925 | ||
7926 | else | |
7927 | ld_shlibs=no | |
7928 | fi | |
7929 | ||
7930 | ;; | |
7931 | ||
7932 | dgux*) | |
7933 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7934 | hardcode_libdir_flag_spec='-L$libdir' | |
7935 | hardcode_shlibpath_var=no | |
7936 | ;; | |
7937 | ||
7938 | freebsd1*) | |
7939 | ld_shlibs=no | |
7940 | ;; | |
7941 | ||
7942 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7943 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7944 | # does not break anything, and helps significantly (at the cost of a little | |
7945 | # extra space). | |
7946 | freebsd2.2*) | |
7947 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7948 | hardcode_libdir_flag_spec='-R$libdir' | |
7949 | hardcode_direct=yes | |
7950 | hardcode_shlibpath_var=no | |
7951 | ;; | |
7952 | ||
7953 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7954 | freebsd2*) | |
7955 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7956 | hardcode_direct=yes | |
7957 | hardcode_minus_L=yes | |
7958 | hardcode_shlibpath_var=no | |
7959 | ;; | |
7960 | ||
7961 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7962 | freebsd* | dragonfly*) | |
7963 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7964 | hardcode_libdir_flag_spec='-R$libdir' | |
7965 | hardcode_direct=yes | |
7966 | hardcode_shlibpath_var=no | |
7967 | ;; | |
7968 | ||
7969 | hpux9*) | |
7970 | if test "$GCC" = yes; then | |
7971 | 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' | |
7972 | else | |
7973 | 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' | |
7974 | fi | |
7975 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7976 | hardcode_libdir_separator=: | |
7977 | hardcode_direct=yes | |
7978 | ||
7979 | # hardcode_minus_L: Not really in the search PATH, | |
7980 | # but as the default location of the library. | |
7981 | hardcode_minus_L=yes | |
7982 | export_dynamic_flag_spec='${wl}-E' | |
7983 | ;; | |
7984 | ||
7985 | hpux10*) | |
7986 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7987 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7988 | else | |
7989 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7990 | fi | |
7991 | if test "$with_gnu_ld" = no; then | |
7992 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7993 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
7994 | hardcode_libdir_separator=: | |
7995 | hardcode_direct=yes | |
7996 | hardcode_direct_absolute=yes | |
7997 | export_dynamic_flag_spec='${wl}-E' | |
7998 | # hardcode_minus_L: Not really in the search PATH, | |
7999 | # but as the default location of the library. | |
8000 | hardcode_minus_L=yes | |
8001 | fi | |
8002 | ;; | |
8003 | ||
8004 | hpux11*) | |
8005 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8006 | case $host_cpu in | |
8007 | hppa*64*) | |
8008 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8009 | ;; | |
8010 | ia64*) | |
8011 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8012 | ;; | |
8013 | *) | |
8014 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8015 | ;; | |
8016 | esac | |
8017 | else | |
8018 | case $host_cpu in | |
8019 | hppa*64*) | |
8020 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8021 | ;; | |
8022 | ia64*) | |
8023 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8024 | ;; | |
8025 | *) | |
8026 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8027 | ;; | |
8028 | esac | |
8029 | fi | |
8030 | if test "$with_gnu_ld" = no; then | |
8031 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8032 | hardcode_libdir_separator=: | |
8033 | ||
8034 | case $host_cpu in | |
8035 | hppa*64*|ia64*) | |
8036 | hardcode_direct=no | |
8037 | hardcode_shlibpath_var=no | |
8038 | ;; | |
8039 | *) | |
8040 | hardcode_direct=yes | |
8041 | hardcode_direct_absolute=yes | |
8042 | export_dynamic_flag_spec='${wl}-E' | |
8043 | ||
8044 | # hardcode_minus_L: Not really in the search PATH, | |
8045 | # but as the default location of the library. | |
8046 | hardcode_minus_L=yes | |
8047 | ;; | |
8048 | esac | |
8049 | fi | |
8050 | ;; | |
8051 | ||
8052 | irix5* | irix6* | nonstopux*) | |
8053 | if test "$GCC" = yes; then | |
8054 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8055 | # Try to use the -exported_symbol ld option, if it does not | |
8056 | # work, assume that -exports_file does not work either and | |
8057 | # implicitly export all symbols. | |
8058 | save_LDFLAGS="$LDFLAGS" | |
8059 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8061 | /* end confdefs.h. */ | |
8062 | int foo(void) {} | |
8063 | _ACEOF | |
8064 | if ac_fn_c_try_link "$LINENO"; then : | |
8065 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8066 | ||
8067 | fi | |
8068 | rm -f core conftest.err conftest.$ac_objext \ | |
8069 | conftest$ac_exeext conftest.$ac_ext | |
8070 | LDFLAGS="$save_LDFLAGS" | |
8071 | else | |
8072 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8073 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8074 | fi | |
8075 | archive_cmds_need_lc='no' | |
8076 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8077 | hardcode_libdir_separator=: | |
8078 | inherit_rpath=yes | |
8079 | link_all_deplibs=yes | |
8080 | ;; | |
8081 | ||
51ac63c5 | 8082 | netbsd*) |
9c60689e DWT |
8083 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8084 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8085 | else | |
8086 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8087 | fi | |
8088 | hardcode_libdir_flag_spec='-R$libdir' | |
8089 | hardcode_direct=yes | |
8090 | hardcode_shlibpath_var=no | |
8091 | ;; | |
8092 | ||
8093 | newsos6) | |
8094 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8095 | hardcode_direct=yes | |
8096 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8097 | hardcode_libdir_separator=: | |
8098 | hardcode_shlibpath_var=no | |
8099 | ;; | |
8100 | ||
8101 | *nto* | *qnx*) | |
8102 | ;; | |
8103 | ||
8104 | openbsd*) | |
8105 | if test -f /usr/libexec/ld.so; then | |
8106 | hardcode_direct=yes | |
8107 | hardcode_shlibpath_var=no | |
8108 | hardcode_direct_absolute=yes | |
8109 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8110 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8111 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8112 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8113 | export_dynamic_flag_spec='${wl}-E' | |
8114 | else | |
8115 | case $host_os in | |
8116 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8117 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8118 | hardcode_libdir_flag_spec='-R$libdir' | |
8119 | ;; | |
8120 | *) | |
8121 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8122 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8123 | ;; | |
8124 | esac | |
8125 | fi | |
8126 | else | |
8127 | ld_shlibs=no | |
8128 | fi | |
8129 | ;; | |
8130 | ||
8131 | os2*) | |
8132 | hardcode_libdir_flag_spec='-L$libdir' | |
8133 | hardcode_minus_L=yes | |
8134 | allow_undefined_flag=unsupported | |
8135 | 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' | |
8136 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8137 | ;; | |
8138 | ||
8139 | osf3*) | |
8140 | if test "$GCC" = yes; then | |
8141 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8142 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8143 | else | |
8144 | allow_undefined_flag=' -expect_unresolved \*' | |
8145 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8146 | fi | |
8147 | archive_cmds_need_lc='no' | |
8148 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8149 | hardcode_libdir_separator=: | |
8150 | ;; | |
8151 | ||
8152 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8153 | if test "$GCC" = yes; then | |
8154 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8155 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8156 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8157 | else | |
8158 | allow_undefined_flag=' -expect_unresolved \*' | |
8159 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8160 | 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~ | |
8161 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8162 | ||
8163 | # Both c and cxx compiler support -rpath directly | |
8164 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8165 | fi | |
8166 | archive_cmds_need_lc='no' | |
8167 | hardcode_libdir_separator=: | |
8168 | ;; | |
8169 | ||
8170 | solaris*) | |
8171 | no_undefined_flag=' -z defs' | |
8172 | if test "$GCC" = yes; then | |
8173 | wlarc='${wl}' | |
8174 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8175 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8176 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8177 | else | |
8178 | case `$CC -V 2>&1` in | |
8179 | *"Compilers 5.0"*) | |
8180 | wlarc='' | |
8181 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8182 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8183 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8184 | ;; | |
8185 | *) | |
8186 | wlarc='${wl}' | |
8187 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8188 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8189 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8190 | ;; | |
8191 | esac | |
8192 | fi | |
8193 | hardcode_libdir_flag_spec='-R$libdir' | |
8194 | hardcode_shlibpath_var=no | |
8195 | case $host_os in | |
8196 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8197 | *) | |
8198 | # The compiler driver will combine and reorder linker options, | |
8199 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8200 | # but is careful enough not to reorder. | |
8201 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8202 | if test "$GCC" = yes; then | |
8203 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8204 | else | |
8205 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8206 | fi | |
8207 | ;; | |
8208 | esac | |
8209 | link_all_deplibs=yes | |
8210 | ;; | |
8211 | ||
8212 | sunos4*) | |
8213 | if test "x$host_vendor" = xsequent; then | |
8214 | # Use $CC to link under sequent, because it throws in some extra .o | |
8215 | # files that make .init and .fini sections work. | |
8216 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8217 | else | |
8218 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8219 | fi | |
8220 | hardcode_libdir_flag_spec='-L$libdir' | |
8221 | hardcode_direct=yes | |
8222 | hardcode_minus_L=yes | |
8223 | hardcode_shlibpath_var=no | |
8224 | ;; | |
8225 | ||
8226 | sysv4) | |
8227 | case $host_vendor in | |
8228 | sni) | |
8229 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8230 | hardcode_direct=yes # is this really true??? | |
8231 | ;; | |
8232 | siemens) | |
8233 | ## LD is ld it makes a PLAMLIB | |
8234 | ## CC just makes a GrossModule. | |
8235 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8236 | reload_cmds='$CC -r -o $output$reload_objs' | |
8237 | hardcode_direct=no | |
8238 | ;; | |
8239 | motorola) | |
8240 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8241 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8242 | ;; | |
8243 | esac | |
8244 | runpath_var='LD_RUN_PATH' | |
8245 | hardcode_shlibpath_var=no | |
8246 | ;; | |
8247 | ||
8248 | sysv4.3*) | |
8249 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8250 | hardcode_shlibpath_var=no | |
8251 | export_dynamic_flag_spec='-Bexport' | |
8252 | ;; | |
8253 | ||
8254 | sysv4*MP*) | |
8255 | if test -d /usr/nec; then | |
8256 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8257 | hardcode_shlibpath_var=no | |
8258 | runpath_var=LD_RUN_PATH | |
8259 | hardcode_runpath_var=yes | |
8260 | ld_shlibs=yes | |
8261 | fi | |
8262 | ;; | |
8263 | ||
8264 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8265 | no_undefined_flag='${wl}-z,text' | |
8266 | archive_cmds_need_lc=no | |
8267 | hardcode_shlibpath_var=no | |
8268 | runpath_var='LD_RUN_PATH' | |
8269 | ||
8270 | if test "$GCC" = yes; then | |
8271 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8272 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8273 | else | |
8274 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8275 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8276 | fi | |
8277 | ;; | |
8278 | ||
8279 | sysv5* | sco3.2v5* | sco5v6*) | |
8280 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8281 | # link with -lc, and that would cause any symbols used from libc to | |
8282 | # always be unresolved, which means just about no library would | |
8283 | # ever link correctly. If we're not using GNU ld we use -z text | |
8284 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8285 | # as -z defs. | |
8286 | no_undefined_flag='${wl}-z,text' | |
8287 | allow_undefined_flag='${wl}-z,nodefs' | |
8288 | archive_cmds_need_lc=no | |
8289 | hardcode_shlibpath_var=no | |
8290 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8291 | hardcode_libdir_separator=':' | |
8292 | link_all_deplibs=yes | |
8293 | export_dynamic_flag_spec='${wl}-Bexport' | |
8294 | runpath_var='LD_RUN_PATH' | |
8295 | ||
8296 | if test "$GCC" = yes; then | |
8297 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8298 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8299 | else | |
8300 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8301 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8302 | fi | |
8303 | ;; | |
8304 | ||
8305 | uts4*) | |
8306 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8307 | hardcode_libdir_flag_spec='-L$libdir' | |
8308 | hardcode_shlibpath_var=no | |
8309 | ;; | |
8310 | ||
8311 | *) | |
8312 | ld_shlibs=no | |
8313 | ;; | |
8314 | esac | |
8315 | ||
8316 | if test x$host_vendor = xsni; then | |
8317 | case $host in | |
8318 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8319 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8320 | ;; | |
8321 | esac | |
8322 | fi | |
8323 | fi | |
8324 | ||
8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8326 | $as_echo "$ld_shlibs" >&6; } | |
8327 | test "$ld_shlibs" = no && can_build_shared=no | |
8328 | ||
8329 | with_gnu_ld=$with_gnu_ld | |
8330 | ||
8331 | ||
8332 | ||
8333 | ||
8334 | ||
8335 | ||
8336 | ||
8337 | ||
8338 | ||
8339 | ||
8340 | ||
8341 | ||
8342 | ||
8343 | ||
8344 | ||
8345 | # | |
8346 | # Do we need to explicitly link libc? | |
8347 | # | |
8348 | case "x$archive_cmds_need_lc" in | |
8349 | x|xyes) | |
8350 | # Assume -lc should be added | |
8351 | archive_cmds_need_lc=yes | |
8352 | ||
8353 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8354 | case $archive_cmds in | |
8355 | *'~'*) | |
8356 | # FIXME: we may have to deal with multi-command sequences. | |
8357 | ;; | |
8358 | '$CC '*) | |
8359 | # Test whether the compiler implicitly links with -lc since on some | |
8360 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8361 | # to ld, don't add -lc before -lgcc. | |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8363 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8364 | $RM conftest* | |
8365 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8366 | ||
8367 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8368 | (eval $ac_compile) 2>&5 | |
8369 | ac_status=$? | |
8370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8371 | test $ac_status = 0; } 2>conftest.err; then | |
8372 | soname=conftest | |
8373 | lib=conftest | |
8374 | libobjs=conftest.$ac_objext | |
8375 | deplibs= | |
8376 | wl=$lt_prog_compiler_wl | |
8377 | pic_flag=$lt_prog_compiler_pic | |
8378 | compiler_flags=-v | |
8379 | linker_flags=-v | |
8380 | verstring= | |
8381 | output_objdir=. | |
8382 | libname=conftest | |
8383 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8384 | allow_undefined_flag= | |
8385 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8386 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8387 | ac_status=$? | |
8388 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8389 | test $ac_status = 0; } | |
8390 | then | |
8391 | archive_cmds_need_lc=no | |
8392 | else | |
8393 | archive_cmds_need_lc=yes | |
8394 | fi | |
8395 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8396 | else | |
8397 | cat conftest.err 1>&5 | |
8398 | fi | |
8399 | $RM conftest* | |
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8401 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8402 | ;; | |
8403 | esac | |
8404 | fi | |
8405 | ;; | |
8406 | esac | |
8407 | ||
8408 | ||
8409 | ||
8410 | ||
8411 | ||
8412 | ||
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
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 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
8494 | ||
8495 | ||
8496 | ||
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | ||
8541 | ||
8542 | ||
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8565 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8566 | ||
8567 | if test "$GCC" = yes; then | |
8568 | case $host_os in | |
8569 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8570 | *) lt_awk_arg="/^libraries:/" ;; | |
8571 | esac | |
8572 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8573 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8574 | # if the path contains ";" then we assume it to be the separator | |
8575 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8576 | # assumed that no part of a normal pathname contains ";" but that should | |
8577 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8578 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8579 | else | |
8580 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8581 | fi | |
8582 | # Ok, now we have the path, separated by spaces, we can step through it | |
8583 | # and add multilib dir if necessary. | |
8584 | lt_tmp_lt_search_path_spec= | |
8585 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8586 | for lt_sys_path in $lt_search_path_spec; do | |
8587 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8588 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8589 | else | |
8590 | test -d "$lt_sys_path" && \ | |
8591 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8592 | fi | |
8593 | done | |
8594 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8595 | BEGIN {RS=" "; FS="/|\n";} { | |
8596 | lt_foo=""; | |
8597 | lt_count=0; | |
8598 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8599 | if ($lt_i != "" && $lt_i != ".") { | |
8600 | if ($lt_i == "..") { | |
8601 | lt_count++; | |
8602 | } else { | |
8603 | if (lt_count == 0) { | |
8604 | lt_foo="/" $lt_i lt_foo; | |
8605 | } else { | |
8606 | lt_count--; | |
8607 | } | |
8608 | } | |
8609 | } | |
8610 | } | |
8611 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8612 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8613 | }'` | |
8614 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8615 | else | |
8616 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8617 | fi | |
8618 | library_names_spec= | |
8619 | libname_spec='lib$name' | |
8620 | soname_spec= | |
8621 | shrext_cmds=".so" | |
8622 | postinstall_cmds= | |
8623 | postuninstall_cmds= | |
8624 | finish_cmds= | |
8625 | finish_eval= | |
8626 | shlibpath_var= | |
8627 | shlibpath_overrides_runpath=unknown | |
8628 | version_type=none | |
8629 | dynamic_linker="$host_os ld.so" | |
8630 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8631 | need_lib_prefix=unknown | |
8632 | hardcode_into_libs=no | |
8633 | ||
8634 | # when you set need_version to no, make sure it does not cause -set_version | |
8635 | # flags to be left without arguments | |
8636 | need_version=unknown | |
8637 | ||
8638 | case $host_os in | |
8639 | aix3*) | |
8640 | version_type=linux | |
8641 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8642 | shlibpath_var=LIBPATH | |
8643 | ||
8644 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8645 | soname_spec='${libname}${release}${shared_ext}$major' | |
8646 | ;; | |
8647 | ||
8648 | aix[4-9]*) | |
8649 | version_type=linux | |
8650 | need_lib_prefix=no | |
8651 | need_version=no | |
8652 | hardcode_into_libs=yes | |
8653 | if test "$host_cpu" = ia64; then | |
8654 | # AIX 5 supports IA64 | |
8655 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8656 | shlibpath_var=LD_LIBRARY_PATH | |
8657 | else | |
8658 | # With GCC up to 2.95.x, collect2 would create an import file | |
8659 | # for dependence libraries. The import file would start with | |
8660 | # the line `#! .'. This would cause the generated library to | |
8661 | # depend on `.', always an invalid library. This was fixed in | |
8662 | # development snapshots of GCC prior to 3.0. | |
8663 | case $host_os in | |
8664 | aix4 | aix4.[01] | aix4.[01].*) | |
8665 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8666 | echo ' yes ' | |
8667 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8668 | : | |
8669 | else | |
8670 | can_build_shared=no | |
8671 | fi | |
8672 | ;; | |
8673 | esac | |
8674 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8675 | # soname into executable. Probably we can add versioning support to | |
8676 | # collect2, so additional links can be useful in future. | |
8677 | if test "$aix_use_runtimelinking" = yes; then | |
8678 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8679 | # instead of lib<name>.a to let people know that these are not | |
8680 | # typical AIX shared libraries. | |
8681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8682 | else | |
8683 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8684 | # and later when we are not doing run time linking. | |
8685 | library_names_spec='${libname}${release}.a $libname.a' | |
8686 | soname_spec='${libname}${release}${shared_ext}$major' | |
8687 | fi | |
8688 | shlibpath_var=LIBPATH | |
8689 | fi | |
8690 | ;; | |
8691 | ||
8692 | amigaos*) | |
8693 | case $host_cpu in | |
8694 | powerpc) | |
8695 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8696 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8698 | ;; | |
8699 | m68k) | |
8700 | library_names_spec='$libname.ixlibrary $libname.a' | |
8701 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8702 | 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' | |
8703 | ;; | |
8704 | esac | |
8705 | ;; | |
8706 | ||
8707 | beos*) | |
8708 | library_names_spec='${libname}${shared_ext}' | |
8709 | dynamic_linker="$host_os ld.so" | |
8710 | shlibpath_var=LIBRARY_PATH | |
8711 | ;; | |
8712 | ||
8713 | bsdi[45]*) | |
8714 | version_type=linux | |
8715 | need_version=no | |
8716 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8717 | soname_spec='${libname}${release}${shared_ext}$major' | |
8718 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8719 | shlibpath_var=LD_LIBRARY_PATH | |
8720 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8721 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8722 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8723 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8724 | # libtool to hard-code these into programs | |
8725 | ;; | |
8726 | ||
8727 | cygwin* | mingw* | pw32* | cegcc*) | |
8728 | version_type=windows | |
8729 | shrext_cmds=".dll" | |
8730 | need_version=no | |
8731 | need_lib_prefix=no | |
8732 | ||
8733 | case $GCC,$host_os in | |
8734 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8735 | library_names_spec='$libname.dll.a' | |
8736 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8737 | postinstall_cmds='base_file=`basename \${file}`~ | |
8738 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8739 | dldir=$destdir/`dirname \$dlpath`~ | |
8740 | test -d \$dldir || mkdir -p \$dldir~ | |
8741 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8742 | chmod a+x \$dldir/$dlname~ | |
8743 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8744 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8745 | fi' | |
8746 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8747 | dlpath=$dir/\$dldll~ | |
8748 | $RM \$dlpath' | |
8749 | shlibpath_overrides_runpath=yes | |
8750 | ||
8751 | case $host_os in | |
8752 | cygwin*) | |
8753 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8754 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8755 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8756 | ;; | |
8757 | mingw* | cegcc*) | |
8758 | # MinGW DLLs use traditional 'lib' prefix | |
8759 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8760 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8761 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8762 | # It is most probably a Windows format PATH printed by | |
8763 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8764 | # path with ; separators, and with drive letters. We can handle the | |
8765 | # drive letters (cygwin fileutils understands them), so leave them, | |
8766 | # especially as we might pass files found there to a mingw objdump, | |
8767 | # which wouldn't understand a cygwinified path. Ahh. | |
8768 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8769 | else | |
8770 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8771 | fi | |
8772 | ;; | |
8773 | pw32*) | |
8774 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8775 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8776 | ;; | |
8777 | esac | |
8778 | ;; | |
8779 | ||
8780 | *) | |
8781 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8782 | ;; | |
8783 | esac | |
8784 | dynamic_linker='Win32 ld.exe' | |
8785 | # FIXME: first we should search . and the directory the executable is in | |
8786 | shlibpath_var=PATH | |
8787 | ;; | |
8788 | ||
8789 | darwin* | rhapsody*) | |
8790 | dynamic_linker="$host_os dyld" | |
8791 | version_type=darwin | |
8792 | need_lib_prefix=no | |
8793 | need_version=no | |
8794 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8795 | soname_spec='${libname}${release}${major}$shared_ext' | |
8796 | shlibpath_overrides_runpath=yes | |
8797 | shlibpath_var=DYLD_LIBRARY_PATH | |
8798 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8799 | ||
8800 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8801 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8802 | ;; | |
8803 | ||
8804 | dgux*) | |
8805 | version_type=linux | |
8806 | need_lib_prefix=no | |
8807 | need_version=no | |
8808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8809 | soname_spec='${libname}${release}${shared_ext}$major' | |
8810 | shlibpath_var=LD_LIBRARY_PATH | |
8811 | ;; | |
8812 | ||
8813 | freebsd1*) | |
8814 | dynamic_linker=no | |
8815 | ;; | |
8816 | ||
8817 | freebsd* | dragonfly*) | |
8818 | # DragonFly does not have aout. When/if they implement a new | |
8819 | # versioning mechanism, adjust this. | |
8820 | if test -x /usr/bin/objformat; then | |
8821 | objformat=`/usr/bin/objformat` | |
8822 | else | |
8823 | case $host_os in | |
8824 | freebsd[123]*) objformat=aout ;; | |
8825 | *) objformat=elf ;; | |
8826 | esac | |
8827 | fi | |
8828 | version_type=freebsd-$objformat | |
8829 | case $version_type in | |
8830 | freebsd-elf*) | |
8831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8832 | need_version=no | |
8833 | need_lib_prefix=no | |
8834 | ;; | |
8835 | freebsd-*) | |
8836 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8837 | need_version=yes | |
8838 | ;; | |
8839 | esac | |
8840 | shlibpath_var=LD_LIBRARY_PATH | |
8841 | case $host_os in | |
8842 | freebsd2*) | |
8843 | shlibpath_overrides_runpath=yes | |
8844 | ;; | |
8845 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8846 | shlibpath_overrides_runpath=yes | |
8847 | hardcode_into_libs=yes | |
8848 | ;; | |
8849 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8850 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8851 | shlibpath_overrides_runpath=no | |
8852 | hardcode_into_libs=yes | |
8853 | ;; | |
8854 | *) # from 4.6 on, and DragonFly | |
8855 | shlibpath_overrides_runpath=yes | |
8856 | hardcode_into_libs=yes | |
8857 | ;; | |
8858 | esac | |
8859 | ;; | |
8860 | ||
8861 | gnu*) | |
8862 | version_type=linux | |
8863 | need_lib_prefix=no | |
8864 | need_version=no | |
8865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8866 | soname_spec='${libname}${release}${shared_ext}$major' | |
8867 | shlibpath_var=LD_LIBRARY_PATH | |
8868 | hardcode_into_libs=yes | |
8869 | ;; | |
8870 | ||
8871 | hpux9* | hpux10* | hpux11*) | |
8872 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8873 | # link against other versions. | |
8874 | version_type=sunos | |
8875 | need_lib_prefix=no | |
8876 | need_version=no | |
8877 | case $host_cpu in | |
8878 | ia64*) | |
8879 | shrext_cmds='.so' | |
8880 | hardcode_into_libs=yes | |
8881 | dynamic_linker="$host_os dld.so" | |
8882 | shlibpath_var=LD_LIBRARY_PATH | |
8883 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8885 | soname_spec='${libname}${release}${shared_ext}$major' | |
8886 | if test "X$HPUX_IA64_MODE" = X32; then | |
8887 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8888 | else | |
8889 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8890 | fi | |
8891 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8892 | ;; | |
8893 | hppa*64*) | |
8894 | shrext_cmds='.sl' | |
8895 | hardcode_into_libs=yes | |
8896 | dynamic_linker="$host_os dld.sl" | |
8897 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8898 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8900 | soname_spec='${libname}${release}${shared_ext}$major' | |
8901 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8902 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8903 | ;; | |
8904 | *) | |
8905 | shrext_cmds='.sl' | |
8906 | dynamic_linker="$host_os dld.sl" | |
8907 | shlibpath_var=SHLIB_PATH | |
8908 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8909 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8910 | soname_spec='${libname}${release}${shared_ext}$major' | |
8911 | ;; | |
8912 | esac | |
8913 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8914 | postinstall_cmds='chmod 555 $lib' | |
8915 | ;; | |
8916 | ||
8917 | interix[3-9]*) | |
8918 | version_type=linux | |
8919 | need_lib_prefix=no | |
8920 | need_version=no | |
8921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8922 | soname_spec='${libname}${release}${shared_ext}$major' | |
8923 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8924 | shlibpath_var=LD_LIBRARY_PATH | |
8925 | shlibpath_overrides_runpath=no | |
8926 | hardcode_into_libs=yes | |
8927 | ;; | |
8928 | ||
8929 | irix5* | irix6* | nonstopux*) | |
8930 | case $host_os in | |
8931 | nonstopux*) version_type=nonstopux ;; | |
8932 | *) | |
8933 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8934 | version_type=linux | |
8935 | else | |
8936 | version_type=irix | |
8937 | fi ;; | |
8938 | esac | |
8939 | need_lib_prefix=no | |
8940 | need_version=no | |
8941 | soname_spec='${libname}${release}${shared_ext}$major' | |
8942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8943 | case $host_os in | |
8944 | irix5* | nonstopux*) | |
8945 | libsuff= shlibsuff= | |
8946 | ;; | |
8947 | *) | |
8948 | case $LD in # libtool.m4 will add one of these switches to LD | |
8949 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8950 | libsuff= shlibsuff= libmagic=32-bit;; | |
8951 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8952 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8953 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8954 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8955 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8956 | esac | |
8957 | ;; | |
8958 | esac | |
8959 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8960 | shlibpath_overrides_runpath=no | |
8961 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8962 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8963 | hardcode_into_libs=yes | |
8964 | ;; | |
8965 | ||
8966 | # No shared lib support for Linux oldld, aout, or coff. | |
8967 | linux*oldld* | linux*aout* | linux*coff*) | |
8968 | dynamic_linker=no | |
8969 | ;; | |
8970 | ||
8971 | # This must be Linux ELF. | |
51ac63c5 | 8972 | linux* | k*bsd*-gnu) |
9c60689e DWT |
8973 | version_type=linux |
8974 | need_lib_prefix=no | |
8975 | need_version=no | |
8976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8977 | soname_spec='${libname}${release}${shared_ext}$major' | |
8978 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8979 | shlibpath_var=LD_LIBRARY_PATH | |
8980 | shlibpath_overrides_runpath=no | |
8981 | # Some binutils ld are patched to set DT_RUNPATH | |
8982 | save_LDFLAGS=$LDFLAGS | |
8983 | save_libdir=$libdir | |
8984 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
8985 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
8986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8987 | /* end confdefs.h. */ | |
8988 | ||
8989 | int | |
8990 | main () | |
8991 | { | |
8992 | ||
8993 | ; | |
8994 | return 0; | |
8995 | } | |
8996 | _ACEOF | |
8997 | if ac_fn_c_try_link "$LINENO"; then : | |
8998 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
8999 | shlibpath_overrides_runpath=yes | |
9000 | fi | |
9001 | fi | |
9002 | rm -f core conftest.err conftest.$ac_objext \ | |
9003 | conftest$ac_exeext conftest.$ac_ext | |
9004 | LDFLAGS=$save_LDFLAGS | |
9005 | libdir=$save_libdir | |
9006 | ||
9007 | # This implies no fast_install, which is unacceptable. | |
9008 | # Some rework will be needed to allow for fast_install | |
9009 | # before this can be enabled. | |
9010 | hardcode_into_libs=yes | |
9011 | ||
9012 | # Append ld.so.conf contents to the search path | |
9013 | if test -f /etc/ld.so.conf; then | |
9014 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9015 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9016 | fi | |
9017 | ||
9018 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9019 | # powerpc, because MkLinux only supported shared libraries with the | |
9020 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9021 | # most powerpc-linux boxes support dynamic linking these days and | |
9022 | # people can always --disable-shared, the test was removed, and we | |
9023 | # assume the GNU/Linux dynamic linker is in use. | |
9024 | dynamic_linker='GNU/Linux ld.so' | |
9025 | ;; | |
9026 | ||
9c60689e DWT |
9027 | netbsd*) |
9028 | version_type=sunos | |
9029 | need_lib_prefix=no | |
9030 | need_version=no | |
9031 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9033 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9034 | dynamic_linker='NetBSD (a.out) ld.so' | |
9035 | else | |
9036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9037 | soname_spec='${libname}${release}${shared_ext}$major' | |
9038 | dynamic_linker='NetBSD ld.elf_so' | |
9039 | fi | |
9040 | shlibpath_var=LD_LIBRARY_PATH | |
9041 | shlibpath_overrides_runpath=yes | |
9042 | hardcode_into_libs=yes | |
9043 | ;; | |
9044 | ||
9045 | newsos6) | |
9046 | version_type=linux | |
9047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9048 | shlibpath_var=LD_LIBRARY_PATH | |
9049 | shlibpath_overrides_runpath=yes | |
9050 | ;; | |
9051 | ||
9052 | *nto* | *qnx*) | |
9053 | version_type=qnx | |
9054 | need_lib_prefix=no | |
9055 | need_version=no | |
9056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9057 | soname_spec='${libname}${release}${shared_ext}$major' | |
9058 | shlibpath_var=LD_LIBRARY_PATH | |
9059 | shlibpath_overrides_runpath=no | |
9060 | hardcode_into_libs=yes | |
9061 | dynamic_linker='ldqnx.so' | |
9062 | ;; | |
9063 | ||
9064 | openbsd*) | |
9065 | version_type=sunos | |
9066 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9067 | need_lib_prefix=no | |
9068 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9069 | case $host_os in | |
9070 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9071 | *) need_version=no ;; | |
9072 | esac | |
9073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9074 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9075 | shlibpath_var=LD_LIBRARY_PATH | |
9076 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9077 | case $host_os in | |
9078 | openbsd2.[89] | openbsd2.[89].*) | |
9079 | shlibpath_overrides_runpath=no | |
9080 | ;; | |
9081 | *) | |
9082 | shlibpath_overrides_runpath=yes | |
9083 | ;; | |
9084 | esac | |
9085 | else | |
9086 | shlibpath_overrides_runpath=yes | |
9087 | fi | |
9088 | ;; | |
9089 | ||
9090 | os2*) | |
9091 | libname_spec='$name' | |
9092 | shrext_cmds=".dll" | |
9093 | need_lib_prefix=no | |
9094 | library_names_spec='$libname${shared_ext} $libname.a' | |
9095 | dynamic_linker='OS/2 ld.exe' | |
9096 | shlibpath_var=LIBPATH | |
9097 | ;; | |
9098 | ||
9099 | osf3* | osf4* | osf5*) | |
9100 | version_type=osf | |
9101 | need_lib_prefix=no | |
9102 | need_version=no | |
9103 | soname_spec='${libname}${release}${shared_ext}$major' | |
9104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9105 | shlibpath_var=LD_LIBRARY_PATH | |
9106 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9107 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9108 | ;; | |
9109 | ||
9110 | rdos*) | |
9111 | dynamic_linker=no | |
9112 | ;; | |
9113 | ||
9114 | solaris*) | |
9115 | version_type=linux | |
9116 | need_lib_prefix=no | |
9117 | need_version=no | |
9118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9119 | soname_spec='${libname}${release}${shared_ext}$major' | |
9120 | shlibpath_var=LD_LIBRARY_PATH | |
9121 | shlibpath_overrides_runpath=yes | |
9122 | hardcode_into_libs=yes | |
9123 | # ldd complains unless libraries are executable | |
9124 | postinstall_cmds='chmod +x $lib' | |
9125 | ;; | |
9126 | ||
9127 | sunos4*) | |
9128 | version_type=sunos | |
9129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9130 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9131 | shlibpath_var=LD_LIBRARY_PATH | |
9132 | shlibpath_overrides_runpath=yes | |
9133 | if test "$with_gnu_ld" = yes; then | |
9134 | need_lib_prefix=no | |
9135 | fi | |
9136 | need_version=yes | |
9137 | ;; | |
9138 | ||
9139 | sysv4 | sysv4.3*) | |
9140 | version_type=linux | |
9141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9142 | soname_spec='${libname}${release}${shared_ext}$major' | |
9143 | shlibpath_var=LD_LIBRARY_PATH | |
9144 | case $host_vendor in | |
9145 | sni) | |
9146 | shlibpath_overrides_runpath=no | |
9147 | need_lib_prefix=no | |
9148 | runpath_var=LD_RUN_PATH | |
9149 | ;; | |
9150 | siemens) | |
9151 | need_lib_prefix=no | |
9152 | ;; | |
9153 | motorola) | |
9154 | need_lib_prefix=no | |
9155 | need_version=no | |
9156 | shlibpath_overrides_runpath=no | |
9157 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9158 | ;; | |
9159 | esac | |
9160 | ;; | |
9161 | ||
9162 | sysv4*MP*) | |
9163 | if test -d /usr/nec ;then | |
9164 | version_type=linux | |
9165 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9166 | soname_spec='$libname${shared_ext}.$major' | |
9167 | shlibpath_var=LD_LIBRARY_PATH | |
9168 | fi | |
9169 | ;; | |
9170 | ||
9171 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9172 | version_type=freebsd-elf | |
9173 | need_lib_prefix=no | |
9174 | need_version=no | |
9175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9176 | soname_spec='${libname}${release}${shared_ext}$major' | |
9177 | shlibpath_var=LD_LIBRARY_PATH | |
9178 | shlibpath_overrides_runpath=yes | |
9179 | hardcode_into_libs=yes | |
9180 | if test "$with_gnu_ld" = yes; then | |
9181 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9182 | else | |
9183 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9184 | case $host_os in | |
9185 | sco3.2v5*) | |
9186 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9187 | ;; | |
9188 | esac | |
9189 | fi | |
9190 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9191 | ;; | |
9192 | ||
9193 | tpf*) | |
9194 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9195 | version_type=linux | |
9196 | need_lib_prefix=no | |
9197 | need_version=no | |
9198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9199 | shlibpath_var=LD_LIBRARY_PATH | |
9200 | shlibpath_overrides_runpath=no | |
9201 | hardcode_into_libs=yes | |
9202 | ;; | |
9203 | ||
9204 | uts4*) | |
9205 | version_type=linux | |
9206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9207 | soname_spec='${libname}${release}${shared_ext}$major' | |
9208 | shlibpath_var=LD_LIBRARY_PATH | |
9209 | ;; | |
9210 | ||
9211 | *) | |
9212 | dynamic_linker=no | |
9213 | ;; | |
9214 | esac | |
9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9216 | $as_echo "$dynamic_linker" >&6; } | |
9217 | test "$dynamic_linker" = no && can_build_shared=no | |
9218 | ||
9219 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9220 | if test "$GCC" = yes; then | |
9221 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9222 | fi | |
9223 | ||
9224 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9225 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9226 | fi | |
9227 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9228 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9229 | fi | |
9230 | ||
9231 | ||
9232 | ||
9233 | ||
9234 | ||
9235 | ||
9236 | ||
9237 | ||
9238 | ||
9239 | ||
9240 | ||
9241 | ||
9242 | ||
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | ||
9248 | ||
9249 | ||
9250 | ||
9251 | ||
9252 | ||
9253 | ||
9254 | ||
9255 | ||
9256 | ||
9257 | ||
9258 | ||
9259 | ||
9260 | ||
9261 | ||
9262 | ||
9263 | ||
9264 | ||
9265 | ||
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | ||
9299 | ||
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9318 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9319 | hardcode_action= | |
9320 | if test -n "$hardcode_libdir_flag_spec" || | |
9321 | test -n "$runpath_var" || | |
9322 | test "X$hardcode_automatic" = "Xyes" ; then | |
9323 | ||
9324 | # We can hardcode non-existent directories. | |
9325 | if test "$hardcode_direct" != no && | |
9326 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9327 | # have to relink, otherwise we might link with an installed library | |
9328 | # when we should be linking with a yet-to-be-installed one | |
9329 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9330 | test "$hardcode_minus_L" != no; then | |
9331 | # Linking always hardcodes the temporary library directory. | |
9332 | hardcode_action=relink | |
9333 | else | |
9334 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9335 | hardcode_action=immediate | |
9336 | fi | |
9337 | else | |
9338 | # We cannot hardcode anything, or else we can only hardcode existing | |
9339 | # directories. | |
9340 | hardcode_action=unsupported | |
9341 | fi | |
9342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9343 | $as_echo "$hardcode_action" >&6; } | |
9344 | ||
9345 | if test "$hardcode_action" = relink || | |
9346 | test "$inherit_rpath" = yes; then | |
9347 | # Fast installation is not supported | |
9348 | enable_fast_install=no | |
9349 | elif test "$shlibpath_overrides_runpath" = yes || | |
9350 | test "$enable_shared" = no; then | |
9351 | # Fast installation is not necessary | |
9352 | enable_fast_install=needless | |
9353 | fi | |
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | if test "x$enable_dlopen" != xyes; then | |
9361 | enable_dlopen=unknown | |
9362 | enable_dlopen_self=unknown | |
9363 | enable_dlopen_self_static=unknown | |
9364 | else | |
9365 | lt_cv_dlopen=no | |
9366 | lt_cv_dlopen_libs= | |
9367 | ||
9368 | case $host_os in | |
9369 | beos*) | |
9370 | lt_cv_dlopen="load_add_on" | |
9371 | lt_cv_dlopen_libs= | |
9372 | lt_cv_dlopen_self=yes | |
9373 | ;; | |
9374 | ||
9375 | mingw* | pw32* | cegcc*) | |
9376 | lt_cv_dlopen="LoadLibrary" | |
9377 | lt_cv_dlopen_libs= | |
9378 | ;; | |
9379 | ||
9380 | cygwin*) | |
9381 | lt_cv_dlopen="dlopen" | |
9382 | lt_cv_dlopen_libs= | |
9383 | ;; | |
9384 | ||
9385 | darwin*) | |
9386 | # if libdl is installed we need to link against it | |
9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9388 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9389 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9390 | $as_echo_n "(cached) " >&6 | |
9391 | else | |
9392 | ac_check_lib_save_LIBS=$LIBS | |
9393 | LIBS="-ldl $LIBS" | |
9394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9395 | /* end confdefs.h. */ | |
9396 | ||
9397 | /* Override any GCC internal prototype to avoid an error. | |
9398 | Use char because int might match the return type of a GCC | |
9399 | builtin and then its argument prototype would still apply. */ | |
9400 | #ifdef __cplusplus | |
9401 | extern "C" | |
9402 | #endif | |
9403 | char dlopen (); | |
9404 | int | |
9405 | main () | |
9406 | { | |
9407 | return dlopen (); | |
9408 | ; | |
9409 | return 0; | |
9410 | } | |
9411 | _ACEOF | |
9412 | if ac_fn_c_try_link "$LINENO"; then : | |
9413 | ac_cv_lib_dl_dlopen=yes | |
9414 | else | |
9415 | ac_cv_lib_dl_dlopen=no | |
9416 | fi | |
9417 | rm -f core conftest.err conftest.$ac_objext \ | |
9418 | conftest$ac_exeext conftest.$ac_ext | |
9419 | LIBS=$ac_check_lib_save_LIBS | |
9420 | fi | |
9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9422 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9423 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9424 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9425 | else | |
9426 | ||
9427 | lt_cv_dlopen="dyld" | |
9428 | lt_cv_dlopen_libs= | |
9429 | lt_cv_dlopen_self=yes | |
9430 | ||
9431 | fi | |
9432 | ||
9433 | ;; | |
9434 | ||
9435 | *) | |
9436 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9437 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9438 | lt_cv_dlopen="shl_load" | |
9439 | else | |
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9441 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9442 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9443 | $as_echo_n "(cached) " >&6 | |
9444 | else | |
9445 | ac_check_lib_save_LIBS=$LIBS | |
9446 | LIBS="-ldld $LIBS" | |
9447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9448 | /* end confdefs.h. */ | |
9449 | ||
9450 | /* Override any GCC internal prototype to avoid an error. | |
9451 | Use char because int might match the return type of a GCC | |
9452 | builtin and then its argument prototype would still apply. */ | |
9453 | #ifdef __cplusplus | |
9454 | extern "C" | |
9455 | #endif | |
9456 | char shl_load (); | |
9457 | int | |
9458 | main () | |
9459 | { | |
9460 | return shl_load (); | |
9461 | ; | |
9462 | return 0; | |
9463 | } | |
9464 | _ACEOF | |
9465 | if ac_fn_c_try_link "$LINENO"; then : | |
9466 | ac_cv_lib_dld_shl_load=yes | |
9467 | else | |
9468 | ac_cv_lib_dld_shl_load=no | |
9469 | fi | |
9470 | rm -f core conftest.err conftest.$ac_objext \ | |
9471 | conftest$ac_exeext conftest.$ac_ext | |
9472 | LIBS=$ac_check_lib_save_LIBS | |
9473 | fi | |
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9475 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9476 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9477 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9478 | else | |
9479 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9480 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9481 | lt_cv_dlopen="dlopen" | |
9482 | else | |
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9484 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9485 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9486 | $as_echo_n "(cached) " >&6 | |
9487 | else | |
9488 | ac_check_lib_save_LIBS=$LIBS | |
9489 | LIBS="-ldl $LIBS" | |
9490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9491 | /* end confdefs.h. */ | |
9492 | ||
9493 | /* Override any GCC internal prototype to avoid an error. | |
9494 | Use char because int might match the return type of a GCC | |
9495 | builtin and then its argument prototype would still apply. */ | |
9496 | #ifdef __cplusplus | |
9497 | extern "C" | |
9498 | #endif | |
9499 | char dlopen (); | |
9500 | int | |
9501 | main () | |
9502 | { | |
9503 | return dlopen (); | |
9504 | ; | |
9505 | return 0; | |
9506 | } | |
9507 | _ACEOF | |
9508 | if ac_fn_c_try_link "$LINENO"; then : | |
9509 | ac_cv_lib_dl_dlopen=yes | |
9510 | else | |
9511 | ac_cv_lib_dl_dlopen=no | |
9512 | fi | |
9513 | rm -f core conftest.err conftest.$ac_objext \ | |
9514 | conftest$ac_exeext conftest.$ac_ext | |
9515 | LIBS=$ac_check_lib_save_LIBS | |
9516 | fi | |
9517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9518 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9519 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9520 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9521 | else | |
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9523 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9524 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9525 | $as_echo_n "(cached) " >&6 | |
9526 | else | |
9527 | ac_check_lib_save_LIBS=$LIBS | |
9528 | LIBS="-lsvld $LIBS" | |
9529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9530 | /* end confdefs.h. */ | |
9531 | ||
9532 | /* Override any GCC internal prototype to avoid an error. | |
9533 | Use char because int might match the return type of a GCC | |
9534 | builtin and then its argument prototype would still apply. */ | |
9535 | #ifdef __cplusplus | |
9536 | extern "C" | |
9537 | #endif | |
9538 | char dlopen (); | |
9539 | int | |
9540 | main () | |
9541 | { | |
9542 | return dlopen (); | |
9543 | ; | |
9544 | return 0; | |
9545 | } | |
9546 | _ACEOF | |
9547 | if ac_fn_c_try_link "$LINENO"; then : | |
9548 | ac_cv_lib_svld_dlopen=yes | |
9549 | else | |
9550 | ac_cv_lib_svld_dlopen=no | |
9551 | fi | |
9552 | rm -f core conftest.err conftest.$ac_objext \ | |
9553 | conftest$ac_exeext conftest.$ac_ext | |
9554 | LIBS=$ac_check_lib_save_LIBS | |
9555 | fi | |
9556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9557 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9558 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9559 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9560 | else | |
9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9562 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9563 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9564 | $as_echo_n "(cached) " >&6 | |
9565 | else | |
9566 | ac_check_lib_save_LIBS=$LIBS | |
9567 | LIBS="-ldld $LIBS" | |
9568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9569 | /* end confdefs.h. */ | |
9570 | ||
9571 | /* Override any GCC internal prototype to avoid an error. | |
9572 | Use char because int might match the return type of a GCC | |
9573 | builtin and then its argument prototype would still apply. */ | |
9574 | #ifdef __cplusplus | |
9575 | extern "C" | |
9576 | #endif | |
9577 | char dld_link (); | |
9578 | int | |
9579 | main () | |
9580 | { | |
9581 | return dld_link (); | |
9582 | ; | |
9583 | return 0; | |
9584 | } | |
9585 | _ACEOF | |
9586 | if ac_fn_c_try_link "$LINENO"; then : | |
9587 | ac_cv_lib_dld_dld_link=yes | |
9588 | else | |
9589 | ac_cv_lib_dld_dld_link=no | |
9590 | fi | |
9591 | rm -f core conftest.err conftest.$ac_objext \ | |
9592 | conftest$ac_exeext conftest.$ac_ext | |
9593 | LIBS=$ac_check_lib_save_LIBS | |
9594 | fi | |
9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9596 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9597 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9598 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9599 | fi | |
9600 | ||
9601 | ||
9602 | fi | |
9603 | ||
9604 | ||
9605 | fi | |
9606 | ||
9607 | ||
9608 | fi | |
9609 | ||
9610 | ||
9611 | fi | |
9612 | ||
9613 | ||
9614 | fi | |
9615 | ||
9616 | ;; | |
9617 | esac | |
9618 | ||
9619 | if test "x$lt_cv_dlopen" != xno; then | |
9620 | enable_dlopen=yes | |
9621 | else | |
9622 | enable_dlopen=no | |
9623 | fi | |
9624 | ||
9625 | case $lt_cv_dlopen in | |
9626 | dlopen) | |
9627 | save_CPPFLAGS="$CPPFLAGS" | |
9628 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9629 | ||
9630 | save_LDFLAGS="$LDFLAGS" | |
9631 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9632 | ||
9633 | save_LIBS="$LIBS" | |
9634 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9635 | ||
9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9637 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9638 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9639 | $as_echo_n "(cached) " >&6 | |
9640 | else | |
9641 | if test "$cross_compiling" = yes; then : | |
9642 | lt_cv_dlopen_self=cross | |
9643 | else | |
9644 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9645 | lt_status=$lt_dlunknown | |
9646 | cat > conftest.$ac_ext <<_LT_EOF | |
51ac63c5 | 9647 | #line 9647 "configure" |
9c60689e DWT |
9648 | #include "confdefs.h" |
9649 | ||
9650 | #if HAVE_DLFCN_H | |
9651 | #include <dlfcn.h> | |
9652 | #endif | |
9653 | ||
9654 | #include <stdio.h> | |
9655 | ||
9656 | #ifdef RTLD_GLOBAL | |
9657 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9658 | #else | |
9659 | # ifdef DL_GLOBAL | |
9660 | # define LT_DLGLOBAL DL_GLOBAL | |
9661 | # else | |
9662 | # define LT_DLGLOBAL 0 | |
9663 | # endif | |
9664 | #endif | |
9665 | ||
9666 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9667 | find out it does not work in some platform. */ | |
9668 | #ifndef LT_DLLAZY_OR_NOW | |
9669 | # ifdef RTLD_LAZY | |
9670 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9671 | # else | |
9672 | # ifdef DL_LAZY | |
9673 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9674 | # else | |
9675 | # ifdef RTLD_NOW | |
9676 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9677 | # else | |
9678 | # ifdef DL_NOW | |
9679 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9680 | # else | |
9681 | # define LT_DLLAZY_OR_NOW 0 | |
9682 | # endif | |
9683 | # endif | |
9684 | # endif | |
9685 | # endif | |
9686 | #endif | |
9687 | ||
9688 | void fnord() { int i=42;} | |
9689 | int main () | |
9690 | { | |
9691 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9692 | int status = $lt_dlunknown; | |
9693 | ||
9694 | if (self) | |
9695 | { | |
9696 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9697 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9698 | /* dlclose (self); */ | |
9699 | } | |
9700 | else | |
9701 | puts (dlerror ()); | |
9702 | ||
9703 | return status; | |
9704 | } | |
9705 | _LT_EOF | |
9706 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9707 | (eval $ac_link) 2>&5 | |
9708 | ac_status=$? | |
9709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9710 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9711 | (./conftest; exit; ) >&5 2>/dev/null | |
9712 | lt_status=$? | |
9713 | case x$lt_status in | |
9714 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9715 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9716 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9717 | esac | |
9718 | else : | |
9719 | # compilation failed | |
9720 | lt_cv_dlopen_self=no | |
9721 | fi | |
9722 | fi | |
9723 | rm -fr conftest* | |
9724 | ||
9725 | ||
9726 | fi | |
9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9728 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9729 | ||
9730 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9731 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9733 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9734 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9735 | $as_echo_n "(cached) " >&6 | |
9736 | else | |
9737 | if test "$cross_compiling" = yes; then : | |
9738 | lt_cv_dlopen_self_static=cross | |
9739 | else | |
9740 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9741 | lt_status=$lt_dlunknown | |
9742 | cat > conftest.$ac_ext <<_LT_EOF | |
51ac63c5 | 9743 | #line 9743 "configure" |
9c60689e DWT |
9744 | #include "confdefs.h" |
9745 | ||
9746 | #if HAVE_DLFCN_H | |
9747 | #include <dlfcn.h> | |
9748 | #endif | |
9749 | ||
9750 | #include <stdio.h> | |
9751 | ||
9752 | #ifdef RTLD_GLOBAL | |
9753 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9754 | #else | |
9755 | # ifdef DL_GLOBAL | |
9756 | # define LT_DLGLOBAL DL_GLOBAL | |
9757 | # else | |
9758 | # define LT_DLGLOBAL 0 | |
9759 | # endif | |
9760 | #endif | |
9761 | ||
9762 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9763 | find out it does not work in some platform. */ | |
9764 | #ifndef LT_DLLAZY_OR_NOW | |
9765 | # ifdef RTLD_LAZY | |
9766 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9767 | # else | |
9768 | # ifdef DL_LAZY | |
9769 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9770 | # else | |
9771 | # ifdef RTLD_NOW | |
9772 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9773 | # else | |
9774 | # ifdef DL_NOW | |
9775 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9776 | # else | |
9777 | # define LT_DLLAZY_OR_NOW 0 | |
9778 | # endif | |
9779 | # endif | |
9780 | # endif | |
9781 | # endif | |
9782 | #endif | |
9783 | ||
9784 | void fnord() { int i=42;} | |
9785 | int main () | |
9786 | { | |
9787 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9788 | int status = $lt_dlunknown; | |
9789 | ||
9790 | if (self) | |
9791 | { | |
9792 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9793 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9794 | /* dlclose (self); */ | |
9795 | } | |
9796 | else | |
9797 | puts (dlerror ()); | |
9798 | ||
9799 | return status; | |
9800 | } | |
9801 | _LT_EOF | |
9802 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9803 | (eval $ac_link) 2>&5 | |
9804 | ac_status=$? | |
9805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9806 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9807 | (./conftest; exit; ) >&5 2>/dev/null | |
9808 | lt_status=$? | |
9809 | case x$lt_status in | |
9810 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9811 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9812 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9813 | esac | |
9814 | else : | |
9815 | # compilation failed | |
9816 | lt_cv_dlopen_self_static=no | |
9817 | fi | |
9818 | fi | |
9819 | rm -fr conftest* | |
9820 | ||
9821 | ||
9822 | fi | |
9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9824 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9825 | fi | |
9826 | ||
9827 | CPPFLAGS="$save_CPPFLAGS" | |
9828 | LDFLAGS="$save_LDFLAGS" | |
9829 | LIBS="$save_LIBS" | |
9830 | ;; | |
9831 | esac | |
9832 | ||
9833 | case $lt_cv_dlopen_self in | |
9834 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9835 | *) enable_dlopen_self=unknown ;; | |
9836 | esac | |
9837 | ||
9838 | case $lt_cv_dlopen_self_static in | |
9839 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9840 | *) enable_dlopen_self_static=unknown ;; | |
9841 | esac | |
9842 | fi | |
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | striplib= | |
9861 | old_striplib= | |
9862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9863 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9864 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9865 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9866 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9868 | $as_echo "yes" >&6; } | |
9869 | else | |
9870 | # FIXME - insert some real tests, host_os isn't really good enough | |
9871 | case $host_os in | |
9872 | darwin*) | |
9873 | if test -n "$STRIP" ; then | |
9874 | striplib="$STRIP -x" | |
9875 | old_striplib="$STRIP -S" | |
9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9877 | $as_echo "yes" >&6; } | |
9878 | else | |
9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9880 | $as_echo "no" >&6; } | |
9881 | fi | |
9882 | ;; | |
9883 | *) | |
9884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9885 | $as_echo "no" >&6; } | |
9886 | ;; | |
9887 | esac | |
9888 | fi | |
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | # Report which library types will actually be built | |
9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9903 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9905 | $as_echo "$can_build_shared" >&6; } | |
9906 | ||
9907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9908 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9909 | test "$can_build_shared" = "no" && enable_shared=no | |
9910 | ||
9911 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9912 | # are all built from PIC. | |
9913 | case $host_os in | |
9914 | aix3*) | |
9915 | test "$enable_shared" = yes && enable_static=no | |
9916 | if test -n "$RANLIB"; then | |
9917 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9918 | postinstall_cmds='$RANLIB $lib' | |
9919 | fi | |
9920 | ;; | |
9921 | ||
9922 | aix[4-9]*) | |
9923 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9924 | test "$enable_shared" = yes && enable_static=no | |
9925 | fi | |
9926 | ;; | |
9927 | esac | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
9929 | $as_echo "$enable_shared" >&6; } | |
9930 | ||
9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
9932 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
9933 | # Make sure either enable_shared or enable_static is yes. | |
9934 | test "$enable_shared" = yes || enable_static=yes | |
9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
9936 | $as_echo "$enable_static" >&6; } | |
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | fi | |
9942 | ac_ext=c | |
9943 | ac_cpp='$CPP $CPPFLAGS' | |
9944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9947 | ||
9948 | CC="$lt_save_CC" | |
9949 | ||
9950 | ||
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ac_config_commands="$ac_config_commands libtool" | |
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | # Only expand once: | |
9968 | ||
9969 | ||
3fd51f51 DWT |
9970 | |
9971 | ||
9972 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9973 | if test -n "$ac_tool_prefix"; then | |
9974 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9975 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9977 | $as_echo_n "checking for $ac_word... " >&6; } | |
9978 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
9979 | $as_echo_n "(cached) " >&6 | |
9980 | else | |
9981 | case $PKG_CONFIG in | |
9982 | [\\/]* | ?:[\\/]*) | |
9983 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9984 | ;; | |
9985 | *) | |
9986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9987 | for as_dir in $PATH | |
9988 | do | |
9989 | IFS=$as_save_IFS | |
9990 | test -z "$as_dir" && as_dir=. | |
9991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9993 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9995 | break 2 | |
9996 | fi | |
9997 | done | |
9998 | done | |
9999 | IFS=$as_save_IFS | |
10000 | ||
10001 | ;; | |
10002 | esac | |
10003 | fi | |
10004 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10005 | if test -n "$PKG_CONFIG"; then | |
10006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10007 | $as_echo "$PKG_CONFIG" >&6; } | |
10008 | else | |
10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10010 | $as_echo "no" >&6; } | |
10011 | fi | |
10012 | ||
10013 | ||
10014 | fi | |
10015 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10016 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10017 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10018 | set dummy pkg-config; ac_word=$2 | |
10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10020 | $as_echo_n "checking for $ac_word... " >&6; } | |
10021 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
10022 | $as_echo_n "(cached) " >&6 | |
10023 | else | |
10024 | case $ac_pt_PKG_CONFIG in | |
10025 | [\\/]* | ?:[\\/]*) | |
10026 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10027 | ;; | |
10028 | *) | |
10029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10030 | for as_dir in $PATH | |
10031 | do | |
10032 | IFS=$as_save_IFS | |
10033 | test -z "$as_dir" && as_dir=. | |
10034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10036 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10038 | break 2 | |
10039 | fi | |
10040 | done | |
10041 | done | |
10042 | IFS=$as_save_IFS | |
10043 | ||
10044 | ;; | |
10045 | esac | |
10046 | fi | |
10047 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10048 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10050 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10051 | else | |
10052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10053 | $as_echo "no" >&6; } | |
10054 | fi | |
10055 | ||
10056 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10057 | PKG_CONFIG="" | |
10058 | else | |
10059 | case $cross_compiling:$ac_tool_warned in | |
10060 | yes:) | |
10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10062 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10063 | ac_tool_warned=yes ;; | |
10064 | esac | |
10065 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10066 | fi | |
10067 | else | |
10068 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10069 | fi | |
10070 | ||
10071 | fi | |
10072 | if test -n "$PKG_CONFIG"; then | |
10073 | _pkg_min_version=0.22 | |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10075 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10076 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10078 | $as_echo "yes" >&6; } | |
10079 | else | |
10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10081 | $as_echo "no" >&6; } | |
10082 | PKG_CONFIG="" | |
10083 | fi | |
10084 | ||
632b71ea DWT |
10085 | fi |
10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 | |
10087 | $as_echo_n "checking for GNU make... " >&6; } | |
10088 | if test "${_cv_gnu_make_command+set}" = set; then : | |
10089 | $as_echo_n "(cached) " >&6 | |
10090 | else | |
10091 | _cv_gnu_make_command='' ; | |
10092 | for a in "$MAKE" make gmake gnumake ; do | |
10093 | if test -z "$a" ; then continue ; fi ; | |
10094 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
10095 | _cv_gnu_make_command=$a ; | |
10096 | break; | |
10097 | fi | |
10098 | done ; | |
10099 | ||
10100 | fi | |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
10102 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
10103 | if test "x$_cv_gnu_make_command" != "x" ; then | |
10104 | ifGNUmake='' ; | |
10105 | else | |
10106 | ifGNUmake='#' ; | |
10107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
10108 | $as_echo "\"Not found\"" >&6; }; | |
10109 | fi | |
10110 | ||
10111 | ||
790e5246 DWT |
10112 | GMAKE=$_cv_gnu_make_command |
10113 | ||
10114 | if test "x$GMAKE" = x; then : | |
632b71ea | 10115 | as_fn_error "You need GNU make" "$LINENO" 5 |
3fd51f51 | 10116 | fi |
e9c9a47c DWT |
10117 | for ac_prog in bash |
10118 | do | |
10119 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10120 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10122 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 10123 | if test "${ac_cv_path__BASH+set}" = set; then : |
9c60689e DWT |
10124 | $as_echo_n "(cached) " >&6 |
10125 | else | |
e9c9a47c DWT |
10126 | case $_BASH in |
10127 | [\\/]* | ?:[\\/]*) | |
10128 | ac_cv_path__BASH="$_BASH" # Let the user override the test with a path. | |
10129 | ;; | |
10130 | *) | |
10131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10132 | for as_dir in $PATH |
10133 | do | |
10134 | IFS=$as_save_IFS | |
10135 | test -z "$as_dir" && as_dir=. | |
10136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10137 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 10138 | ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext" |
9c60689e DWT |
10139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10140 | break 2 | |
10141 | fi | |
10142 | done | |
10143 | done | |
10144 | IFS=$as_save_IFS | |
10145 | ||
e9c9a47c DWT |
10146 | ;; |
10147 | esac | |
9c60689e | 10148 | fi |
e9c9a47c DWT |
10149 | _BASH=$ac_cv_path__BASH |
10150 | if test -n "$_BASH"; then | |
10151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
10152 | $as_echo "$_BASH" >&6; } | |
9c60689e DWT |
10153 | else |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10155 | $as_echo "no" >&6; } | |
10156 | fi | |
10157 | ||
10158 | ||
e9c9a47c DWT |
10159 | test -n "$_BASH" && break |
10160 | done | |
10161 | ||
10162 | if test "x$_BASH" = x; then : | |
10163 | as_fn_error "You need GNU bash" "$LINENO" 5 | |
9c60689e | 10164 | fi |
e9c9a47c | 10165 | for ac_prog in time |
9c60689e DWT |
10166 | do |
10167 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10168 | set dummy $ac_prog; ac_word=$2 | |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10170 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 10171 | if test "${ac_cv_path_TIME+set}" = set; then : |
9c60689e DWT |
10172 | $as_echo_n "(cached) " >&6 |
10173 | else | |
e9c9a47c DWT |
10174 | case $TIME in |
10175 | [\\/]* | ?:[\\/]*) | |
10176 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
10177 | ;; | |
10178 | *) | |
10179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10180 | for as_dir in $PATH |
10181 | do | |
10182 | IFS=$as_save_IFS | |
10183 | test -z "$as_dir" && as_dir=. | |
10184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 10186 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
9c60689e DWT |
10187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10188 | break 2 | |
10189 | fi | |
10190 | done | |
10191 | done | |
10192 | IFS=$as_save_IFS | |
10193 | ||
e9c9a47c DWT |
10194 | ;; |
10195 | esac | |
9c60689e | 10196 | fi |
e9c9a47c DWT |
10197 | TIME=$ac_cv_path_TIME |
10198 | if test -n "$TIME"; then | |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
10200 | $as_echo "$TIME" >&6; } | |
9c60689e DWT |
10201 | else |
10202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10203 | $as_echo "no" >&6; } | |
10204 | fi | |
10205 | ||
10206 | ||
e9c9a47c | 10207 | test -n "$TIME" && break |
9c60689e DWT |
10208 | done |
10209 | ||
e9c9a47c DWT |
10210 | |
10211 | ||
10212 | ||
10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
10214 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
10215 | if test -z "$BISON"; then | |
10216 | ac_path_BISON_found=false | |
10217 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10219 | for as_dir in $PATH | |
10220 | do | |
10221 | IFS=$as_save_IFS | |
10222 | test -z "$as_dir" && as_dir=. | |
10223 | for ac_prog in bison; do | |
10224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10225 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
10226 | { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue | |
10227 | as_awk_strverscmp=' | |
10228 | # Use only awk features that work with 7th edition Unix awk (1978). | |
10229 | # My, what an old awk you have, Mr. Solaris! | |
10230 | END { | |
10231 | while (length(v1) && length(v2)) { | |
10232 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
10233 | # Normally this is a single character, but if v1 and v2 contain digits, | |
10234 | # compare them as integers and fractions as strverscmp does. | |
10235 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
10236 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
10237 | # and advance v1 and v2 past the leading digit strings. | |
10238 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
10239 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
10240 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
10241 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
10242 | if (d1 ~ /^0/) { | |
10243 | if (d2 ~ /^0/) { | |
10244 | # Compare two fractions. | |
10245 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
10246 | d1 = substr(d1, 2); len1-- | |
10247 | d2 = substr(d2, 2); len2-- | |
10248 | } | |
10249 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
10250 | # The two components differ in length, and the common prefix | |
10251 | # contains only leading zeros. Consider the longer to be less. | |
10252 | d1 = -len1 | |
10253 | d2 = -len2 | |
10254 | } else { | |
10255 | # Otherwise, compare as strings. | |
10256 | d1 = "x" d1 | |
10257 | d2 = "x" d2 | |
10258 | } | |
10259 | } else { | |
10260 | # A fraction is less than an integer. | |
10261 | exit 1 | |
10262 | } | |
10263 | } else { | |
10264 | if (d2 ~ /^0/) { | |
10265 | # An integer is greater than a fraction. | |
10266 | exit 2 | |
10267 | } else { | |
10268 | # Compare two integers. | |
10269 | d1 += 0 | |
10270 | d2 += 0 | |
10271 | } | |
10272 | } | |
10273 | } else { | |
10274 | # The normal case, without worrying about digits. | |
10275 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
10276 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
10277 | } | |
10278 | if (d1 < d2) exit 1 | |
10279 | if (d1 > d2) exit 2 | |
10280 | } | |
10281 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
10282 | # which mishandles some comparisons of empty strings to integers. | |
10283 | if (length(v2)) exit 1 | |
10284 | if (length(v1)) exit 2 | |
10285 | } | |
10286 | ' | |
10287 | as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
10288 | as_arg_v2=2.3 | |
10289 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10290 | case $? in #( | |
10291 | 1) : | |
10292 | ;; #( | |
10293 | 0) : | |
10294 | ac_cv_path_BISON=$ac_path_BISON | |
10295 | ;; #( | |
10296 | 2) : | |
10297 | ac_cv_path_BISON=$ac_path_BISON | |
10298 | ;; #( | |
10299 | *) : | |
10300 | ;; | |
9c60689e | 10301 | esac |
e9c9a47c DWT |
10302 | |
10303 | $ac_path_BISON_found && break 3 | |
10304 | done | |
10305 | done | |
10306 | done | |
10307 | IFS=$as_save_IFS | |
10308 | if test -z "$ac_cv_path_BISON"; then | |
b5bd4353 DWT |
10309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10310 | $as_echo "no" >&6; } | |
e9c9a47c | 10311 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 |
9c60689e | 10312 | |
9c60689e | 10313 | fi |
e9c9a47c DWT |
10314 | else |
10315 | ac_cv_path_BISON=$BISON | |
9c60689e | 10316 | fi |
9c60689e | 10317 | |
e9c9a47c | 10318 | BISON=$ac_cv_path_BISON |
9c60689e | 10319 | |
e9c9a47c DWT |
10320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10321 | $as_echo "$BISON" >&6; } | |
9c60689e | 10322 | |
9c60689e | 10323 | |
9c60689e | 10324 | |
e9c9a47c DWT |
10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 |
10326 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
10327 | if test -z "$FLEX"; then | |
10328 | ac_path_FLEX_found=false | |
10329 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10331 | for as_dir in $PATH |
10332 | do | |
10333 | IFS=$as_save_IFS | |
10334 | test -z "$as_dir" && as_dir=. | |
e9c9a47c | 10335 | for ac_prog in flex; do |
9c60689e | 10336 | for ac_exec_ext in '' $ac_executable_extensions; do |
e9c9a47c DWT |
10337 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
10338 | { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue | |
10339 | as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
10340 | as_arg_v2=2.5.33 | |
10341 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10342 | case $? in #( | |
10343 | 1) : | |
10344 | ;; #( | |
10345 | 0) : | |
10346 | ac_cv_path_FLEX=$ac_path_FLEX | |
10347 | ;; #( | |
10348 | 2) : | |
10349 | ac_cv_path_FLEX=$ac_path_FLEX | |
10350 | ;; #( | |
10351 | *) : | |
10352 | ;; | |
10353 | esac | |
10354 | ||
10355 | $ac_path_FLEX_found && break 3 | |
10356 | done | |
10357 | done | |
9c60689e DWT |
10358 | done |
10359 | IFS=$as_save_IFS | |
e9c9a47c | 10360 | if test -z "$ac_cv_path_FLEX"; then |
b5bd4353 DWT |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10362 | $as_echo "no" >&6; } | |
e9c9a47c | 10363 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 |
9c60689e | 10364 | |
e9c9a47c | 10365 | fi |
9c60689e | 10366 | else |
e9c9a47c | 10367 | ac_cv_path_FLEX=$FLEX |
9c60689e DWT |
10368 | fi |
10369 | ||
e9c9a47c | 10370 | FLEX=$ac_cv_path_FLEX |
9c60689e | 10371 | |
e9c9a47c DWT |
10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10373 | $as_echo "$FLEX" >&6; } | |
10374 | ||
10375 | ||
10376 | ||
10377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
10378 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
10379 | if test -z "$GPERF"; then | |
10380 | ac_path_GPERF_found=false | |
10381 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10383 | for as_dir in $PATH |
10384 | do | |
10385 | IFS=$as_save_IFS | |
10386 | test -z "$as_dir" && as_dir=. | |
e9c9a47c | 10387 | for ac_prog in gperf; do |
9c60689e | 10388 | for ac_exec_ext in '' $ac_executable_extensions; do |
e9c9a47c DWT |
10389 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" |
10390 | { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue | |
10391 | as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
10392 | as_arg_v2=3.0.3 | |
10393 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10394 | case $? in #( | |
10395 | 1) : | |
10396 | ;; #( | |
10397 | 0) : | |
10398 | ac_cv_path_GPERF=$ac_path_GPERF | |
10399 | ;; #( | |
10400 | 2) : | |
10401 | ac_cv_path_GPERF=$ac_path_GPERF | |
10402 | ;; #( | |
10403 | *) : | |
10404 | ;; | |
10405 | esac | |
10406 | ||
10407 | $ac_path_GPERF_found && break 3 | |
10408 | done | |
10409 | done | |
9c60689e DWT |
10410 | done |
10411 | IFS=$as_save_IFS | |
e9c9a47c | 10412 | if test -z "$ac_cv_path_GPERF"; then |
b5bd4353 DWT |
10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10414 | $as_echo "no" >&6; } | |
e9c9a47c | 10415 | as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5 |
9c60689e | 10416 | |
e9c9a47c | 10417 | fi |
9c60689e | 10418 | else |
e9c9a47c | 10419 | ac_cv_path_GPERF=$GPERF |
9c60689e DWT |
10420 | fi |
10421 | ||
e9c9a47c | 10422 | GPERF=$ac_cv_path_GPERF |
9c60689e | 10423 | |
e9c9a47c DWT |
10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
10425 | $as_echo "$GPERF" >&6; } | |
3fd51f51 | 10426 | |
e9c9a47c DWT |
10427 | # Find a good install program. We prefer a C program (faster), |
10428 | # so one script is as good as another. But avoid the broken or | |
10429 | # incompatible versions: | |
10430 | # SysV /etc/install, /usr/sbin/install | |
10431 | # SunOS /usr/etc/install | |
10432 | # IRIX /sbin/install | |
10433 | # AIX /bin/install | |
10434 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
10435 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
10436 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
10437 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
10438 | # OS/2's system install, which has a completely different semantic | |
10439 | # ./install, which can be erroneously created by make from ./install.sh. | |
10440 | # Reject install programs that cannot install multiple files. | |
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
10442 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
10443 | if test -z "$INSTALL"; then | |
10444 | if test "${ac_cv_path_install+set}" = set; then : | |
10445 | $as_echo_n "(cached) " >&6 | |
10446 | else | |
10447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10448 | for as_dir in $PATH | |
10449 | do | |
10450 | IFS=$as_save_IFS | |
10451 | test -z "$as_dir" && as_dir=. | |
10452 | # Account for people who put trailing slashes in PATH elements. | |
10453 | case $as_dir/ in #(( | |
10454 | ./ | .// | /[cC]/* | \ | |
10455 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
10456 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
10457 | /usr/ucb/* ) ;; | |
10458 | *) | |
10459 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
10460 | # Don't use installbsd from OSF since it installs stuff as root | |
10461 | # by default. | |
10462 | for ac_prog in ginstall scoinst install; do | |
10463 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10464 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
10465 | if test $ac_prog = install && | |
10466 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10467 | # AIX install. It has an incompatible calling convention. | |
10468 | : | |
10469 | elif test $ac_prog = install && | |
10470 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10471 | # program-specific install script used by HP pwplus--don't use. | |
10472 | : | |
10473 | else | |
10474 | rm -rf conftest.one conftest.two conftest.dir | |
10475 | echo one > conftest.one | |
10476 | echo two > conftest.two | |
10477 | mkdir conftest.dir | |
10478 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
10479 | test -s conftest.one && test -s conftest.two && | |
10480 | test -s conftest.dir/conftest.one && | |
10481 | test -s conftest.dir/conftest.two | |
10482 | then | |
10483 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
10484 | break 3 | |
10485 | fi | |
10486 | fi | |
10487 | fi | |
10488 | done | |
10489 | done | |
10490 | ;; | |
10491 | esac | |
10492 | ||
10493 | done | |
10494 | IFS=$as_save_IFS | |
10495 | ||
10496 | rm -rf conftest.one conftest.two conftest.dir | |
10497 | ||
10498 | fi | |
10499 | if test "${ac_cv_path_install+set}" = set; then | |
10500 | INSTALL=$ac_cv_path_install | |
10501 | else | |
10502 | # As a last resort, use the slow shell script. Don't cache a | |
10503 | # value for INSTALL within a source directory, because that will | |
10504 | # break other packages using the cache if that directory is | |
10505 | # removed, or if the value is a relative name. | |
10506 | INSTALL=$ac_install_sh | |
10507 | fi | |
10508 | fi | |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
10510 | $as_echo "$INSTALL" >&6; } | |
10511 | ||
10512 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
10513 | # It thinks the first close brace ends the variable substitution. | |
10514 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
10515 | ||
10516 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
10517 | ||
10518 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
10519 | ||
b5bd4353 DWT |
10520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5 |
10521 | $as_echo_n "checking for GNU tar >=1.19... " >&6; } | |
e9c9a47c DWT |
10522 | if test -z "$GNUTAR"; then |
10523 | ac_path_GNUTAR_found=false | |
10524 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10526 | for as_dir in $PATH | |
10527 | do | |
10528 | IFS=$as_save_IFS | |
10529 | test -z "$as_dir" && as_dir=. | |
10530 | for ac_prog in tar gtar gnutar; do | |
10531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10532 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
10533 | { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue | |
10534 | ||
10535 | if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then : | |
10536 | ||
b5bd4353 DWT |
10537 | as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` |
10538 | as_arg_v2=1.19 | |
10539 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10540 | case $? in #( | |
10541 | 1) : | |
10542 | ;; #( | |
10543 | 0) : | |
10544 | ||
10545 | ac_cv_path_GNUTAR=$ac_path_GNUTAR | |
10546 | ;; #( | |
10547 | 2) : | |
10548 | ||
10549 | ac_cv_path_GNUTAR=$ac_path_GNUTAR | |
10550 | ;; #( | |
10551 | *) : | |
10552 | ;; | |
10553 | esac | |
e9c9a47c DWT |
10554 | |
10555 | fi | |
10556 | ||
10557 | $ac_path_GNUTAR_found && break 3 | |
10558 | done | |
10559 | done | |
10560 | done | |
10561 | IFS=$as_save_IFS | |
10562 | if test -z "$ac_cv_path_GNUTAR"; then | |
10563 | : | |
10564 | fi | |
10565 | else | |
10566 | ac_cv_path_GNUTAR=$GNUTAR | |
10567 | fi | |
10568 | ||
10569 | if test "x$ac_cv_path_GNUTAR" != x; then : | |
10570 | ||
10571 | GNUTAR=$ac_cv_path_GNUTAR | |
10572 | ||
10573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 | |
10574 | $as_echo "$GNUTAR" >&6; } | |
10575 | ||
10576 | else | |
10577 | ||
10578 | GNUTAR=: | |
10579 | ||
b5bd4353 DWT |
10580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10581 | $as_echo "no" >&6; } | |
e9c9a47c DWT |
10582 | |
10583 | fi | |
b65019fe DWT |
10584 | for ac_prog in svn |
10585 | do | |
10586 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10587 | set dummy $ac_prog; ac_word=$2 | |
10588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10589 | $as_echo_n "checking for $ac_word... " >&6; } | |
10590 | if test "${ac_cv_prog_SVN+set}" = set; then : | |
10591 | $as_echo_n "(cached) " >&6 | |
10592 | else | |
10593 | if test -n "$SVN"; then | |
10594 | ac_cv_prog_SVN="$SVN" # Let the user override the test. | |
10595 | else | |
10596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10597 | for as_dir in $PATH | |
10598 | do | |
10599 | IFS=$as_save_IFS | |
10600 | test -z "$as_dir" && as_dir=. | |
10601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10603 | ac_cv_prog_SVN="$ac_prog" | |
10604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10605 | break 2 | |
10606 | fi | |
10607 | done | |
10608 | done | |
10609 | IFS=$as_save_IFS | |
10610 | ||
10611 | fi | |
10612 | fi | |
10613 | SVN=$ac_cv_prog_SVN | |
10614 | if test -n "$SVN"; then | |
10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5 | |
10616 | $as_echo "$SVN" >&6; } | |
10617 | else | |
10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10619 | $as_echo "no" >&6; } | |
10620 | fi | |
10621 | ||
10622 | ||
10623 | test -n "$SVN" && break | |
10624 | done | |
10625 | ||
10626 | for ac_prog in svnversion | |
10627 | do | |
10628 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10629 | set dummy $ac_prog; ac_word=$2 | |
10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10631 | $as_echo_n "checking for $ac_word... " >&6; } | |
10632 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then : | |
10633 | $as_echo_n "(cached) " >&6 | |
10634 | else | |
10635 | if test -n "$SVNVERSION"; then | |
10636 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | |
10637 | else | |
10638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10639 | for as_dir in $PATH | |
10640 | do | |
10641 | IFS=$as_save_IFS | |
10642 | test -z "$as_dir" && as_dir=. | |
10643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10645 | ac_cv_prog_SVNVERSION="$ac_prog" | |
10646 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10647 | break 2 | |
10648 | fi | |
10649 | done | |
10650 | done | |
10651 | IFS=$as_save_IFS | |
10652 | ||
10653 | fi | |
10654 | fi | |
10655 | SVNVERSION=$ac_cv_prog_SVNVERSION | |
10656 | if test -n "$SVNVERSION"; then | |
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | |
10658 | $as_echo "$SVNVERSION" >&6; } | |
10659 | else | |
10660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10661 | $as_echo "no" >&6; } | |
10662 | fi | |
10663 | ||
10664 | ||
10665 | test -n "$SVNVERSION" && break | |
10666 | done | |
10667 | ||
e9c9a47c DWT |
10668 | ac_ext=cpp |
10669 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10670 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10671 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10672 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10673 | if test -z "$CXX"; then | |
10674 | if test -n "$CCC"; then | |
10675 | CXX=$CCC | |
10676 | else | |
10677 | if test -n "$ac_tool_prefix"; then | |
10678 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10679 | do | |
10680 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10681 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10683 | $as_echo_n "checking for $ac_word... " >&6; } | |
10684 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10685 | $as_echo_n "(cached) " >&6 | |
10686 | else | |
10687 | if test -n "$CXX"; then | |
10688 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10689 | else | |
10690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10691 | for as_dir in $PATH | |
10692 | do | |
10693 | IFS=$as_save_IFS | |
10694 | test -z "$as_dir" && as_dir=. | |
10695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10697 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10699 | break 2 | |
10700 | fi | |
10701 | done | |
10702 | done | |
10703 | IFS=$as_save_IFS | |
10704 | ||
10705 | fi | |
10706 | fi | |
10707 | CXX=$ac_cv_prog_CXX | |
10708 | if test -n "$CXX"; then | |
10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10710 | $as_echo "$CXX" >&6; } | |
10711 | else | |
10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10713 | $as_echo "no" >&6; } | |
10714 | fi | |
10715 | ||
10716 | ||
10717 | test -n "$CXX" && break | |
10718 | done | |
10719 | fi | |
10720 | if test -z "$CXX"; then | |
10721 | ac_ct_CXX=$CXX | |
10722 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10723 | do | |
10724 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10725 | set dummy $ac_prog; ac_word=$2 | |
10726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10727 | $as_echo_n "checking for $ac_word... " >&6; } | |
10728 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10729 | $as_echo_n "(cached) " >&6 | |
10730 | else | |
10731 | if test -n "$ac_ct_CXX"; then | |
10732 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10733 | else | |
10734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10735 | for as_dir in $PATH | |
10736 | do | |
10737 | IFS=$as_save_IFS | |
10738 | test -z "$as_dir" && as_dir=. | |
10739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10741 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10743 | break 2 | |
10744 | fi | |
10745 | done | |
10746 | done | |
10747 | IFS=$as_save_IFS | |
10748 | ||
10749 | fi | |
10750 | fi | |
10751 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10752 | if test -n "$ac_ct_CXX"; then | |
10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10754 | $as_echo "$ac_ct_CXX" >&6; } | |
10755 | else | |
10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10757 | $as_echo "no" >&6; } | |
10758 | fi | |
10759 | ||
10760 | ||
10761 | test -n "$ac_ct_CXX" && break | |
10762 | done | |
10763 | ||
10764 | if test "x$ac_ct_CXX" = x; then | |
10765 | CXX="g++" | |
10766 | else | |
10767 | case $cross_compiling:$ac_tool_warned in | |
10768 | yes:) | |
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10771 | ac_tool_warned=yes ;; | |
10772 | esac | |
10773 | CXX=$ac_ct_CXX | |
10774 | fi | |
10775 | fi | |
10776 | ||
10777 | fi | |
10778 | fi | |
10779 | # Provide some information about the compiler. | |
10780 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10781 | set X $ac_compile | |
10782 | ac_compiler=$2 | |
10783 | for ac_option in --version -v -V -qversion; do | |
10784 | { { ac_try="$ac_compiler $ac_option >&5" | |
10785 | case "(($ac_try" in | |
10786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10787 | *) ac_try_echo=$ac_try;; | |
10788 | esac | |
47aaa820 DWT |
10789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
10790 | $as_echo "$ac_try_echo"; } >&5 | |
10791 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10792 | ac_status=$? | |
10793 | if test -s conftest.err; then | |
10794 | sed '10a\ | |
10795 | ... rest of stderr output deleted ... | |
10796 | 10q' conftest.err >conftest.er1 | |
10797 | cat conftest.er1 >&5 | |
3530897b | 10798 | fi |
47aaa820 DWT |
10799 | rm -f conftest.er1 conftest.err |
10800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10801 | test $ac_status = 0; } | |
3530897b | 10802 | done |
3530897b | 10803 | |
47aaa820 DWT |
10804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
10805 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10806 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10807 | $as_echo_n "(cached) " >&6 | |
10808 | else | |
10809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10810 | /* end confdefs.h. */ | |
10811 | ||
10812 | int | |
10813 | main () | |
10814 | { | |
10815 | #ifndef __GNUC__ | |
10816 | choke me | |
10817 | #endif | |
10818 | ||
10819 | ; | |
10820 | return 0; | |
10821 | } | |
10822 | _ACEOF | |
10823 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10824 | ac_compiler_gnu=yes | |
10825 | else | |
10826 | ac_compiler_gnu=no | |
3530897b | 10827 | fi |
47aaa820 DWT |
10828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10829 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10830 | ||
3530897b | 10831 | fi |
47aaa820 DWT |
10832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
10833 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10834 | if test $ac_compiler_gnu = yes; then | |
10835 | GXX=yes | |
3530897b | 10836 | else |
47aaa820 | 10837 | GXX= |
3530897b | 10838 | fi |
47aaa820 DWT |
10839 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10840 | ac_save_CXXFLAGS=$CXXFLAGS | |
10841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10842 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10843 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10844 | $as_echo_n "(cached) " >&6 | |
10845 | else | |
10846 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10847 | ac_cxx_werror_flag=yes | |
10848 | ac_cv_prog_cxx_g=no | |
10849 | CXXFLAGS="-g" | |
10850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10851 | /* end confdefs.h. */ | |
3530897b | 10852 | |
47aaa820 DWT |
10853 | int |
10854 | main () | |
10855 | { | |
3530897b | 10856 | |
47aaa820 DWT |
10857 | ; |
10858 | return 0; | |
10859 | } | |
10860 | _ACEOF | |
10861 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10862 | ac_cv_prog_cxx_g=yes | |
10863 | else | |
10864 | CXXFLAGS="" | |
10865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10866 | /* end confdefs.h. */ | |
9c60689e | 10867 | |
47aaa820 DWT |
10868 | int |
10869 | main () | |
10870 | { | |
9c60689e | 10871 | |
47aaa820 DWT |
10872 | ; |
10873 | return 0; | |
10874 | } | |
10875 | _ACEOF | |
10876 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e | 10877 | |
47aaa820 DWT |
10878 | else |
10879 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10880 | CXXFLAGS="-g" | |
10881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10882 | /* end confdefs.h. */ | |
9c60689e | 10883 | |
47aaa820 DWT |
10884 | int |
10885 | main () | |
10886 | { | |
9c60689e | 10887 | |
47aaa820 DWT |
10888 | ; |
10889 | return 0; | |
10890 | } | |
10891 | _ACEOF | |
10892 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10893 | ac_cv_prog_cxx_g=yes | |
10894 | fi | |
10895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10896 | fi | |
10897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10898 | fi | |
10899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10900 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10901 | fi | |
10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10903 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10904 | if test "$ac_test_CXXFLAGS" = set; then | |
10905 | CXXFLAGS=$ac_save_CXXFLAGS | |
10906 | elif test $ac_cv_prog_cxx_g = yes; then | |
10907 | if test "$GXX" = yes; then | |
10908 | CXXFLAGS="-g -O2" | |
10909 | else | |
10910 | CXXFLAGS="-g" | |
10911 | fi | |
10912 | else | |
10913 | if test "$GXX" = yes; then | |
10914 | CXXFLAGS="-O2" | |
10915 | else | |
10916 | CXXFLAGS= | |
10917 | fi | |
10918 | fi | |
10919 | ac_ext=c | |
10920 | ac_cpp='$CPP $CPPFLAGS' | |
10921 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10922 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10923 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10924 | |
e9c9a47c DWT |
10925 | |
10926 | ac_ext=cpp | |
47aaa820 DWT |
10927 | ac_cpp='$CXXCPP $CPPFLAGS' |
10928 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10929 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10930 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
e9c9a47c DWT |
10931 | if test -z "$CXX"; then |
10932 | if test -n "$CCC"; then | |
10933 | CXX=$CCC | |
10934 | else | |
10935 | if test -n "$ac_tool_prefix"; then | |
10936 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10937 | do | |
10938 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10939 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10941 | $as_echo_n "checking for $ac_word... " >&6; } | |
10942 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10943 | $as_echo_n "(cached) " >&6 | |
10944 | else | |
10945 | if test -n "$CXX"; then | |
10946 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10947 | else | |
10948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10949 | for as_dir in $PATH | |
47aaa820 | 10950 | do |
e9c9a47c DWT |
10951 | IFS=$as_save_IFS |
10952 | test -z "$as_dir" && as_dir=. | |
10953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10955 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10957 | break 2 | |
10958 | fi | |
10959 | done | |
10960 | done | |
10961 | IFS=$as_save_IFS | |
9c60689e | 10962 | |
9c60689e | 10963 | fi |
47aaa820 | 10964 | fi |
e9c9a47c DWT |
10965 | CXX=$ac_cv_prog_CXX |
10966 | if test -n "$CXX"; then | |
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10968 | $as_echo "$CXX" >&6; } | |
10969 | else | |
10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10971 | $as_echo "no" >&6; } | |
47aaa820 | 10972 | fi |
9c60689e | 10973 | |
9c60689e | 10974 | |
e9c9a47c DWT |
10975 | test -n "$CXX" && break |
10976 | done | |
47aaa820 | 10977 | fi |
e9c9a47c DWT |
10978 | if test -z "$CXX"; then |
10979 | ac_ct_CXX=$CXX | |
10980 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10981 | do | |
10982 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10983 | set dummy $ac_prog; ac_word=$2 | |
10984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10985 | $as_echo_n "checking for $ac_word... " >&6; } | |
10986 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10987 | $as_echo_n "(cached) " >&6 | |
9c60689e | 10988 | else |
e9c9a47c DWT |
10989 | if test -n "$ac_ct_CXX"; then |
10990 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10991 | else | |
10992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10993 | for as_dir in $PATH | |
47aaa820 | 10994 | do |
e9c9a47c DWT |
10995 | IFS=$as_save_IFS |
10996 | test -z "$as_dir" && as_dir=. | |
10997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10999 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11001 | break 2 | |
11002 | fi | |
11003 | done | |
11004 | done | |
11005 | IFS=$as_save_IFS | |
9c60689e | 11006 | |
e9c9a47c DWT |
11007 | fi |
11008 | fi | |
11009 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11010 | if test -n "$ac_ct_CXX"; then | |
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
11012 | $as_echo "$ac_ct_CXX" >&6; } | |
47aaa820 | 11013 | else |
e9c9a47c DWT |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11015 | $as_echo "no" >&6; } | |
9c60689e | 11016 | fi |
9c60689e | 11017 | |
e9c9a47c DWT |
11018 | |
11019 | test -n "$ac_ct_CXX" && break | |
11020 | done | |
11021 | ||
11022 | if test "x$ac_ct_CXX" = x; then | |
11023 | CXX="g++" | |
11024 | else | |
11025 | case $cross_compiling:$ac_tool_warned in | |
11026 | yes:) | |
11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11028 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11029 | ac_tool_warned=yes ;; | |
11030 | esac | |
11031 | CXX=$ac_ct_CXX | |
11032 | fi | |
9c60689e DWT |
11033 | fi |
11034 | ||
e9c9a47c DWT |
11035 | fi |
11036 | fi | |
11037 | # Provide some information about the compiler. | |
11038 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
11039 | set X $ac_compile | |
11040 | ac_compiler=$2 | |
11041 | for ac_option in --version -v -V -qversion; do | |
11042 | { { ac_try="$ac_compiler $ac_option >&5" | |
11043 | case "(($ac_try" in | |
11044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11045 | *) ac_try_echo=$ac_try;; | |
11046 | esac | |
11047 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11048 | $as_echo "$ac_try_echo"; } >&5 | |
11049 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
11050 | ac_status=$? | |
11051 | if test -s conftest.err; then | |
11052 | sed '10a\ | |
11053 | ... rest of stderr output deleted ... | |
11054 | 10q' conftest.err >conftest.er1 | |
11055 | cat conftest.er1 >&5 | |
11056 | fi | |
11057 | rm -f conftest.er1 conftest.err | |
11058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11059 | test $ac_status = 0; } | |
9c60689e DWT |
11060 | done |
11061 | ||
e9c9a47c DWT |
11062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
11063 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
11064 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
11065 | $as_echo_n "(cached) " >&6 | |
9c60689e | 11066 | else |
e9c9a47c DWT |
11067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11068 | /* end confdefs.h. */ | |
9c60689e | 11069 | |
e9c9a47c DWT |
11070 | int |
11071 | main () | |
11072 | { | |
11073 | #ifndef __GNUC__ | |
11074 | choke me | |
11075 | #endif | |
9c60689e | 11076 | |
e9c9a47c DWT |
11077 | ; |
11078 | return 0; | |
11079 | } | |
11080 | _ACEOF | |
11081 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11082 | ac_compiler_gnu=yes | |
47aaa820 | 11083 | else |
e9c9a47c | 11084 | ac_compiler_gnu=no |
47aaa820 | 11085 | fi |
e9c9a47c DWT |
11086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11087 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11088 | ||
11089 | fi | |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11091 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
11092 | if test $ac_compiler_gnu = yes; then | |
11093 | GXX=yes | |
11094 | else | |
11095 | GXX= | |
11096 | fi | |
11097 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11098 | ac_save_CXXFLAGS=$CXXFLAGS | |
11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
11100 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
11101 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
11102 | $as_echo_n "(cached) " >&6 | |
11103 | else | |
11104 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
11105 | ac_cxx_werror_flag=yes | |
11106 | ac_cv_prog_cxx_g=no | |
11107 | CXXFLAGS="-g" | |
11108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11109 | /* end confdefs.h. */ | |
11110 | ||
11111 | int | |
11112 | main () | |
11113 | { | |
11114 | ||
11115 | ; | |
11116 | return 0; | |
11117 | } | |
11118 | _ACEOF | |
11119 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11120 | ac_cv_prog_cxx_g=yes | |
11121 | else | |
11122 | CXXFLAGS="" | |
11123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11124 | /* end confdefs.h. */ | |
11125 | ||
11126 | int | |
11127 | main () | |
11128 | { | |
11129 | ||
11130 | ; | |
11131 | return 0; | |
11132 | } | |
11133 | _ACEOF | |
11134 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11135 | ||
11136 | else | |
11137 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11138 | CXXFLAGS="-g" | |
11139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11140 | /* end confdefs.h. */ | |
11141 | ||
11142 | int | |
11143 | main () | |
11144 | { | |
11145 | ||
11146 | ; | |
11147 | return 0; | |
11148 | } | |
11149 | _ACEOF | |
11150 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11151 | ac_cv_prog_cxx_g=yes | |
11152 | fi | |
11153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11154 | fi | |
11155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11156 | fi | |
11157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11158 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11159 | fi | |
11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
11161 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
11162 | if test "$ac_test_CXXFLAGS" = set; then | |
11163 | CXXFLAGS=$ac_save_CXXFLAGS | |
11164 | elif test $ac_cv_prog_cxx_g = yes; then | |
11165 | if test "$GXX" = yes; then | |
11166 | CXXFLAGS="-g -O2" | |
11167 | else | |
11168 | CXXFLAGS="-g" | |
11169 | fi | |
11170 | else | |
11171 | if test "$GXX" = yes; then | |
11172 | CXXFLAGS="-O2" | |
11173 | else | |
11174 | CXXFLAGS= | |
11175 | fi | |
11176 | fi | |
11177 | ac_ext=c | |
11178 | ac_cpp='$CPP $CPPFLAGS' | |
11179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11182 | ||
11183 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
11184 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
11185 | (test "X$CXX" != "Xg++"))) ; then | |
11186 | ac_ext=cpp | |
11187 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11188 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11189 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11190 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
11192 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
11193 | if test -z "$CXXCPP"; then | |
11194 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
11195 | $as_echo_n "(cached) " >&6 | |
11196 | else | |
11197 | # Double quotes because CXXCPP needs to be expanded | |
11198 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
11199 | do | |
11200 | ac_preproc_ok=false | |
11201 | for ac_cxx_preproc_warn_flag in '' yes | |
11202 | do | |
11203 | # Use a header file that comes with gcc, so configuring glibc | |
11204 | # with a fresh cross-compiler works. | |
11205 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11206 | # <limits.h> exists even on freestanding compilers. | |
11207 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11208 | # not just through cpp. "Syntax error" is here to catch this case. | |
11209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11210 | /* end confdefs.h. */ | |
11211 | #ifdef __STDC__ | |
11212 | # include <limits.h> | |
11213 | #else | |
11214 | # include <assert.h> | |
11215 | #endif | |
11216 | Syntax error | |
11217 | _ACEOF | |
11218 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11219 | ||
11220 | else | |
11221 | # Broken: fails on valid input. | |
11222 | continue | |
11223 | fi | |
11224 | rm -f conftest.err conftest.$ac_ext | |
11225 | ||
11226 | # OK, works on sane cases. Now check whether nonexistent headers | |
11227 | # can be detected and how. | |
11228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11229 | /* end confdefs.h. */ | |
11230 | #include <ac_nonexistent.h> | |
11231 | _ACEOF | |
11232 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11233 | # Broken: success on invalid input. | |
11234 | continue | |
11235 | else | |
11236 | # Passes both tests. | |
11237 | ac_preproc_ok=: | |
11238 | break | |
11239 | fi | |
11240 | rm -f conftest.err conftest.$ac_ext | |
11241 | ||
11242 | done | |
11243 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11244 | rm -f conftest.err conftest.$ac_ext | |
11245 | if $ac_preproc_ok; then : | |
11246 | break | |
11247 | fi | |
11248 | ||
11249 | done | |
11250 | ac_cv_prog_CXXCPP=$CXXCPP | |
11251 | ||
11252 | fi | |
11253 | CXXCPP=$ac_cv_prog_CXXCPP | |
11254 | else | |
11255 | ac_cv_prog_CXXCPP=$CXXCPP | |
11256 | fi | |
11257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
11258 | $as_echo "$CXXCPP" >&6; } | |
11259 | ac_preproc_ok=false | |
11260 | for ac_cxx_preproc_warn_flag in '' yes | |
11261 | do | |
11262 | # Use a header file that comes with gcc, so configuring glibc | |
11263 | # with a fresh cross-compiler works. | |
11264 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11265 | # <limits.h> exists even on freestanding compilers. | |
11266 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11267 | # not just through cpp. "Syntax error" is here to catch this case. | |
11268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11269 | /* end confdefs.h. */ | |
11270 | #ifdef __STDC__ | |
11271 | # include <limits.h> | |
11272 | #else | |
11273 | # include <assert.h> | |
11274 | #endif | |
11275 | Syntax error | |
11276 | _ACEOF | |
11277 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11278 | ||
11279 | else | |
11280 | # Broken: fails on valid input. | |
11281 | continue | |
11282 | fi | |
11283 | rm -f conftest.err conftest.$ac_ext | |
11284 | ||
11285 | # OK, works on sane cases. Now check whether nonexistent headers | |
11286 | # can be detected and how. | |
11287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11288 | /* end confdefs.h. */ | |
11289 | #include <ac_nonexistent.h> | |
11290 | _ACEOF | |
11291 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11292 | # Broken: success on invalid input. | |
11293 | continue | |
11294 | else | |
11295 | # Passes both tests. | |
11296 | ac_preproc_ok=: | |
11297 | break | |
11298 | fi | |
11299 | rm -f conftest.err conftest.$ac_ext | |
11300 | ||
11301 | done | |
11302 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11303 | rm -f conftest.err conftest.$ac_ext | |
11304 | if $ac_preproc_ok; then : | |
11305 | ||
11306 | else | |
11307 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11309 | _lt_caught_CXX_error=yes; } | |
11310 | fi | |
11311 | ||
11312 | ac_ext=c | |
11313 | ac_cpp='$CPP $CPPFLAGS' | |
11314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11317 | ||
11318 | else | |
11319 | _lt_caught_CXX_error=yes | |
11320 | fi | |
11321 | ||
9c60689e | 11322 | |
9c60689e | 11323 | |
9c60689e | 11324 | |
9c60689e DWT |
11325 | ac_ext=cpp |
11326 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11327 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11328 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11329 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 11330 | |
47aaa820 DWT |
11331 | archive_cmds_need_lc_CXX=no |
11332 | allow_undefined_flag_CXX= | |
11333 | always_export_symbols_CXX=no | |
11334 | archive_expsym_cmds_CXX= | |
11335 | compiler_needs_object_CXX=no | |
11336 | export_dynamic_flag_spec_CXX= | |
11337 | hardcode_direct_CXX=no | |
11338 | hardcode_direct_absolute_CXX=no | |
11339 | hardcode_libdir_flag_spec_CXX= | |
11340 | hardcode_libdir_flag_spec_ld_CXX= | |
11341 | hardcode_libdir_separator_CXX= | |
11342 | hardcode_minus_L_CXX=no | |
11343 | hardcode_shlibpath_var_CXX=unsupported | |
11344 | hardcode_automatic_CXX=no | |
11345 | inherit_rpath_CXX=no | |
11346 | module_cmds_CXX= | |
11347 | module_expsym_cmds_CXX= | |
11348 | link_all_deplibs_CXX=unknown | |
11349 | old_archive_cmds_CXX=$old_archive_cmds | |
11350 | no_undefined_flag_CXX= | |
11351 | whole_archive_flag_spec_CXX= | |
11352 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 11353 | |
47aaa820 DWT |
11354 | # Source file extension for C++ test sources. |
11355 | ac_ext=cpp | |
9c60689e | 11356 | |
47aaa820 DWT |
11357 | # Object file extension for compiled C++ test sources. |
11358 | objext=o | |
11359 | objext_CXX=$objext | |
9c60689e | 11360 | |
47aaa820 DWT |
11361 | # No sense in running all these tests if we already determined that |
11362 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
11363 | # are currently assumed to apply to all compilers on this platform, | |
11364 | # and will be corrupted by setting them based on a non-working compiler. | |
11365 | if test "$_lt_caught_CXX_error" != yes; then | |
11366 | # Code to be used in simple compile tests | |
11367 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 11368 | |
47aaa820 DWT |
11369 | # Code to be used in simple link tests |
11370 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 11371 | |
47aaa820 | 11372 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 11373 | |
9c60689e | 11374 | |
9c60689e | 11375 | |
9c60689e | 11376 | |
9c60689e | 11377 | |
9c60689e | 11378 | |
47aaa820 DWT |
11379 | # If no C compiler was specified, use CC. |
11380 | LTCC=${LTCC-"$CC"} | |
9c60689e | 11381 | |
47aaa820 DWT |
11382 | # If no C compiler flags were specified, use CFLAGS. |
11383 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 11384 | |
47aaa820 DWT |
11385 | # Allow CC to be a program name with arguments. |
11386 | compiler=$CC | |
9c60689e | 11387 | |
9c60689e | 11388 | |
47aaa820 DWT |
11389 | # save warnings/boilerplate of simple test code |
11390 | ac_outfile=conftest.$ac_objext | |
11391 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11392 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11393 | _lt_compiler_boilerplate=`cat conftest.err` | |
11394 | $RM conftest* | |
9c60689e | 11395 | |
47aaa820 DWT |
11396 | ac_outfile=conftest.$ac_objext |
11397 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11398 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11399 | _lt_linker_boilerplate=`cat conftest.err` | |
11400 | $RM -r conftest* | |
9c60689e | 11401 | |
9c60689e | 11402 | |
47aaa820 DWT |
11403 | # Allow CC to be a program name with arguments. |
11404 | lt_save_CC=$CC | |
11405 | lt_save_LD=$LD | |
11406 | lt_save_GCC=$GCC | |
11407 | GCC=$GXX | |
11408 | lt_save_with_gnu_ld=$with_gnu_ld | |
11409 | lt_save_path_LD=$lt_cv_path_LD | |
11410 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
11411 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 11412 | else |
47aaa820 | 11413 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 11414 | fi |
47aaa820 DWT |
11415 | if test -n "${lt_cv_path_LDCXX+set}"; then |
11416 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 11417 | else |
47aaa820 | 11418 | $as_unset lt_cv_path_LD |
9c60689e | 11419 | fi |
47aaa820 DWT |
11420 | test -z "${LDCXX+set}" || LD=$LDCXX |
11421 | CC=${CXX-"c++"} | |
11422 | compiler=$CC | |
11423 | compiler_CXX=$CC | |
11424 | for cc_temp in $compiler""; do | |
11425 | case $cc_temp in | |
11426 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11427 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11428 | \-*) ;; | |
11429 | *) break;; | |
11430 | esac | |
11431 | done | |
11432 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9c60689e DWT |
11433 | |
11434 | ||
47aaa820 DWT |
11435 | if test -n "$compiler"; then |
11436 | # We don't want -fno-exception when compiling C++ code, so set the | |
11437 | # no_builtin_flag separately | |
11438 | if test "$GXX" = yes; then | |
11439 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
11440 | else | |
11441 | lt_prog_compiler_no_builtin_flag_CXX= | |
11442 | fi | |
9c60689e | 11443 | |
47aaa820 DWT |
11444 | if test "$GXX" = yes; then |
11445 | # Set up default GNU C++ configuration | |
11446 | ||
11447 | ||
11448 | ||
11449 | # Check whether --with-gnu-ld was given. | |
11450 | if test "${with_gnu_ld+set}" = set; then : | |
11451 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 11452 | else |
47aaa820 | 11453 | with_gnu_ld=no |
9c60689e DWT |
11454 | fi |
11455 | ||
47aaa820 DWT |
11456 | ac_prog=ld |
11457 | if test "$GCC" = yes; then | |
11458 | # Check if gcc -print-prog-name=ld gives a path. | |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
11460 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
11461 | case $host in | |
11462 | *-*-mingw*) | |
11463 | # gcc leaves a trailing carriage return which upsets mingw | |
11464 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
11465 | *) | |
11466 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
11467 | esac | |
11468 | case $ac_prog in | |
11469 | # Accept absolute paths. | |
11470 | [\\/]* | ?:[\\/]*) | |
11471 | re_direlt='/[^/][^/]*/\.\./' | |
11472 | # Canonicalize the pathname of ld | |
11473 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
11474 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
11475 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
11476 | done | |
11477 | test -z "$LD" && LD="$ac_prog" | |
11478 | ;; | |
11479 | "") | |
11480 | # If it fails, then pretend we aren't using GCC. | |
11481 | ac_prog=ld | |
11482 | ;; | |
11483 | *) | |
11484 | # If it is relative, then search for the first ld in PATH. | |
11485 | with_gnu_ld=unknown | |
11486 | ;; | |
11487 | esac | |
11488 | elif test "$with_gnu_ld" = yes; then | |
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
11490 | $as_echo_n "checking for GNU ld... " >&6; } | |
11491 | else | |
11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
11493 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 11494 | fi |
47aaa820 | 11495 | if test "${lt_cv_path_LD+set}" = set; then : |
9c60689e DWT |
11496 | $as_echo_n "(cached) " >&6 |
11497 | else | |
47aaa820 DWT |
11498 | if test -z "$LD"; then |
11499 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11500 | for ac_dir in $PATH; do | |
11501 | IFS="$lt_save_ifs" | |
11502 | test -z "$ac_dir" && ac_dir=. | |
11503 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11504 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
11505 | # Check to see if the program is GNU ld. I'd rather use --version, | |
11506 | # but apparently some variants of GNU ld only accept -v. | |
11507 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
11508 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11509 | *GNU* | *'with BFD'*) | |
11510 | test "$with_gnu_ld" != no && break | |
11511 | ;; | |
11512 | *) | |
11513 | test "$with_gnu_ld" != yes && break | |
11514 | ;; | |
11515 | esac | |
11516 | fi | |
9c60689e | 11517 | done |
47aaa820 DWT |
11518 | IFS="$lt_save_ifs" |
11519 | else | |
11520 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
11521 | fi |
11522 | fi | |
47aaa820 DWT |
11523 | |
11524 | LD="$lt_cv_path_LD" | |
11525 | if test -n "$LD"; then | |
11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
11527 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
11528 | else |
11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11530 | $as_echo "no" >&6; } | |
11531 | fi | |
47aaa820 DWT |
11532 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
11534 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
11535 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
11536 | $as_echo_n "(cached) " >&6 | |
11537 | else | |
11538 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11539 | case `$LD -v 2>&1 </dev/null` in | |
11540 | *GNU* | *'with BFD'*) | |
11541 | lt_cv_prog_gnu_ld=yes | |
11542 | ;; | |
11543 | *) | |
11544 | lt_cv_prog_gnu_ld=no | |
11545 | ;; | |
11546 | esac | |
11547 | fi | |
11548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
11549 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
11550 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
11551 | |
11552 | ||
9c60689e | 11553 | |
9c60689e | 11554 | |
9c60689e | 11555 | |
9c60689e | 11556 | |
9c60689e | 11557 | |
47aaa820 DWT |
11558 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11559 | # archiving commands below assume that GNU ld is being used. | |
11560 | if test "$with_gnu_ld" = yes; then | |
11561 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11562 | 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' | |
9c60689e | 11563 | |
47aaa820 DWT |
11564 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11565 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11566 | |
47aaa820 DWT |
11567 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11568 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11569 | # investigate it a little bit more. (MM) | |
11570 | wlarc='${wl}' | |
9c60689e | 11571 | |
47aaa820 DWT |
11572 | # ancient GNU ld didn't support --whole-archive et. al. |
11573 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11574 | $GREP 'no-whole-archive' > /dev/null; then | |
11575 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11576 | else | |
11577 | whole_archive_flag_spec_CXX= | |
11578 | fi | |
11579 | else | |
11580 | with_gnu_ld=no | |
11581 | wlarc= | |
11582 | ||
11583 | # A generic and very simple default shared library creation | |
11584 | # command for GNU C++ for the case where it uses the native | |
11585 | # linker, instead of GNU ld. If possible, this setting should | |
11586 | # overridden to take advantage of the native linker features on | |
11587 | # the platform it is being used on. | |
11588 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11589 | fi | |
11590 | ||
11591 | # Commands to make compiler produce verbose output that lists | |
11592 | # what "hidden" libraries, object files and flags are used when | |
11593 | # linking a shared library. | |
11594 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11595 | ||
11596 | else | |
11597 | GXX=no | |
11598 | with_gnu_ld=no | |
11599 | wlarc= | |
11600 | fi | |
11601 | ||
11602 | # PORTME: fill in a description of your system's C++ link characteristics | |
11603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11604 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11605 | ld_shlibs_CXX=yes | |
11606 | case $host_os in | |
11607 | aix3*) | |
11608 | # FIXME: insert proper C++ library support | |
11609 | ld_shlibs_CXX=no | |
11610 | ;; | |
11611 | aix[4-9]*) | |
11612 | if test "$host_cpu" = ia64; then | |
11613 | # On IA64, the linker does run time linking by default, so we don't | |
11614 | # have to do anything special. | |
11615 | aix_use_runtimelinking=no | |
11616 | exp_sym_flag='-Bexport' | |
11617 | no_entry_flag="" | |
11618 | else | |
11619 | aix_use_runtimelinking=no | |
11620 | ||
11621 | # Test if we are trying to use run time linking or normal | |
11622 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11623 | # need to do runtime linking. | |
11624 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11625 | for ld_flag in $LDFLAGS; do | |
11626 | case $ld_flag in | |
11627 | *-brtl*) | |
11628 | aix_use_runtimelinking=yes | |
11629 | break | |
11630 | ;; | |
11631 | esac | |
11632 | done | |
11633 | ;; | |
11634 | esac | |
11635 | ||
11636 | exp_sym_flag='-bexport' | |
11637 | no_entry_flag='-bnoentry' | |
11638 | fi | |
11639 | ||
11640 | # When large executables or shared objects are built, AIX ld can | |
11641 | # have problems creating the table of contents. If linking a library | |
11642 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11643 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11644 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11645 | ||
11646 | archive_cmds_CXX='' | |
11647 | hardcode_direct_CXX=yes | |
11648 | hardcode_direct_absolute_CXX=yes | |
11649 | hardcode_libdir_separator_CXX=':' | |
11650 | link_all_deplibs_CXX=yes | |
11651 | file_list_spec_CXX='${wl}-f,' | |
11652 | ||
11653 | if test "$GXX" = yes; then | |
11654 | case $host_os in aix4.[012]|aix4.[012].*) | |
11655 | # We only want to do this on AIX 4.2 and lower, the check | |
11656 | # below for broken collect2 doesn't work under 4.3+ | |
11657 | collect2name=`${CC} -print-prog-name=collect2` | |
11658 | if test -f "$collect2name" && | |
11659 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11660 | then | |
11661 | # We have reworked collect2 | |
11662 | : | |
11663 | else | |
11664 | # We have old collect2 | |
11665 | hardcode_direct_CXX=unsupported | |
11666 | # It fails to find uninstalled libraries when the uninstalled | |
11667 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11668 | # to unsupported forces relinking | |
11669 | hardcode_minus_L_CXX=yes | |
11670 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11671 | hardcode_libdir_separator_CXX= | |
11672 | fi | |
11673 | esac | |
11674 | shared_flag='-shared' | |
11675 | if test "$aix_use_runtimelinking" = yes; then | |
11676 | shared_flag="$shared_flag "'${wl}-G' | |
11677 | fi | |
11678 | else | |
11679 | # not using gcc | |
11680 | if test "$host_cpu" = ia64; then | |
11681 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11682 | # chokes on -Wl,-G. The following line is correct: | |
11683 | shared_flag='-G' | |
11684 | else | |
11685 | if test "$aix_use_runtimelinking" = yes; then | |
11686 | shared_flag='${wl}-G' | |
11687 | else | |
11688 | shared_flag='${wl}-bM:SRE' | |
11689 | fi | |
11690 | fi | |
11691 | fi | |
11692 | ||
11693 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11694 | # It seems that -bexpall does not export symbols beginning with | |
11695 | # underscore (_), so it is better to generate a list of symbols to | |
11696 | # export. | |
11697 | always_export_symbols_CXX=yes | |
11698 | if test "$aix_use_runtimelinking" = yes; then | |
11699 | # Warning - without using the other runtime loading flags (-brtl), | |
11700 | # -berok will link without error, but may produce a broken library. | |
11701 | allow_undefined_flag_CXX='-berok' | |
11702 | # Determine the default libpath from the value encoded in an empty | |
11703 | # executable. | |
11704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11705 | /* end confdefs.h. */ |
11706 | ||
11707 | int | |
11708 | main () | |
11709 | { | |
11710 | ||
11711 | ; | |
11712 | return 0; | |
11713 | } | |
11714 | _ACEOF | |
47aaa820 | 11715 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11716 | |
47aaa820 DWT |
11717 | lt_aix_libpath_sed=' |
11718 | /Import File Strings/,/^$/ { | |
11719 | /^0/ { | |
11720 | s/^0 *\(.*\)$/\1/ | |
11721 | p | |
11722 | } | |
11723 | }' | |
11724 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11725 | # Check for a 64-bit object if we didn't find anything. | |
11726 | if test -z "$aix_libpath"; then | |
11727 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11728 | fi | |
11729 | fi | |
11730 | rm -f core conftest.err conftest.$ac_objext \ | |
11731 | conftest$ac_exeext conftest.$ac_ext | |
11732 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11733 | ||
11734 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11735 | ||
11736 | 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11737 | else | |
11738 | if test "$host_cpu" = ia64; then | |
11739 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11740 | allow_undefined_flag_CXX="-z nodefs" | |
11741 | 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" | |
11742 | else | |
11743 | # Determine the default libpath from the value encoded in an | |
11744 | # empty executable. | |
11745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11746 | /* end confdefs.h. */ |
11747 | ||
11748 | int | |
11749 | main () | |
11750 | { | |
11751 | ||
11752 | ; | |
11753 | return 0; | |
11754 | } | |
11755 | _ACEOF | |
47aaa820 | 11756 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11757 | |
47aaa820 DWT |
11758 | lt_aix_libpath_sed=' |
11759 | /Import File Strings/,/^$/ { | |
11760 | /^0/ { | |
11761 | s/^0 *\(.*\)$/\1/ | |
11762 | p | |
11763 | } | |
11764 | }' | |
11765 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11766 | # Check for a 64-bit object if we didn't find anything. | |
11767 | if test -z "$aix_libpath"; then | |
11768 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9c60689e | 11769 | fi |
9c60689e | 11770 | fi |
47aaa820 DWT |
11771 | rm -f core conftest.err conftest.$ac_objext \ |
11772 | conftest$ac_exeext conftest.$ac_ext | |
11773 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9c60689e | 11774 | |
47aaa820 DWT |
11775 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11776 | # Warning - without using the other run time loading flags, | |
11777 | # -berok will link without error, but may produce a broken library. | |
11778 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11779 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11780 | # Exported symbols can be pulled into shared objects from archives | |
11781 | whole_archive_flag_spec_CXX='$convenience' | |
11782 | archive_cmds_need_lc_CXX=yes | |
11783 | # This is similar to how AIX traditionally builds its shared | |
11784 | # libraries. | |
11785 | 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' | |
11786 | fi | |
11787 | fi | |
11788 | ;; | |
9c60689e | 11789 | |
47aaa820 DWT |
11790 | beos*) |
11791 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11792 | allow_undefined_flag_CXX=unsupported | |
11793 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11794 | # support --undefined. This deserves some investigation. FIXME | |
11795 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11796 | else | |
11797 | ld_shlibs_CXX=no | |
11798 | fi | |
11799 | ;; | |
9c60689e | 11800 | |
47aaa820 DWT |
11801 | chorus*) |
11802 | case $cc_basename in | |
11803 | *) | |
11804 | # FIXME: insert proper C++ library support | |
11805 | ld_shlibs_CXX=no | |
11806 | ;; | |
11807 | esac | |
11808 | ;; | |
9c60689e | 11809 | |
47aaa820 DWT |
11810 | cygwin* | mingw* | pw32* | cegcc*) |
11811 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11812 | # as there is no search path for DLLs. | |
11813 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11814 | allow_undefined_flag_CXX=unsupported | |
11815 | always_export_symbols_CXX=no | |
11816 | enable_shared_with_static_runtimes_CXX=yes | |
9c60689e | 11817 | |
47aaa820 DWT |
11818 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
11819 | 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' | |
11820 | # If the export-symbols file already is a .def file (1st line | |
11821 | # is EXPORTS), use it as is; otherwise, prepend... | |
11822 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11823 | cp $export_symbols $output_objdir/$soname.def; | |
11824 | else | |
11825 | echo EXPORTS > $output_objdir/$soname.def; | |
11826 | cat $export_symbols >> $output_objdir/$soname.def; | |
11827 | fi~ | |
11828 | $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' | |
11829 | else | |
11830 | ld_shlibs_CXX=no | |
11831 | fi | |
11832 | ;; | |
11833 | darwin* | rhapsody*) | |
9c60689e | 11834 | |
9c60689e | 11835 | |
47aaa820 DWT |
11836 | archive_cmds_need_lc_CXX=no |
11837 | hardcode_direct_CXX=no | |
11838 | hardcode_automatic_CXX=yes | |
11839 | hardcode_shlibpath_var_CXX=unsupported | |
11840 | whole_archive_flag_spec_CXX='' | |
11841 | link_all_deplibs_CXX=yes | |
11842 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11843 | case $cc_basename in | |
11844 | ifort*) _lt_dar_can_shared=yes ;; | |
11845 | *) _lt_dar_can_shared=$GCC ;; | |
11846 | esac | |
11847 | if test "$_lt_dar_can_shared" = "yes"; then | |
11848 | output_verbose_link_cmd=echo | |
11849 | 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}" | |
11850 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11851 | 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}" | |
11852 | 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}" | |
11853 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11854 | 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}" | |
11855 | 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}" | |
11856 | fi | |
9c60689e | 11857 | |
47aaa820 DWT |
11858 | else |
11859 | ld_shlibs_CXX=no | |
11860 | fi | |
9c60689e | 11861 | |
47aaa820 | 11862 | ;; |
9c60689e | 11863 | |
47aaa820 DWT |
11864 | dgux*) |
11865 | case $cc_basename in | |
11866 | ec++*) | |
11867 | # FIXME: insert proper C++ library support | |
11868 | ld_shlibs_CXX=no | |
11869 | ;; | |
11870 | ghcx*) | |
11871 | # Green Hills C++ Compiler | |
11872 | # FIXME: insert proper C++ library support | |
11873 | ld_shlibs_CXX=no | |
11874 | ;; | |
11875 | *) | |
11876 | # FIXME: insert proper C++ library support | |
11877 | ld_shlibs_CXX=no | |
11878 | ;; | |
11879 | esac | |
11880 | ;; | |
9c60689e | 11881 | |
47aaa820 DWT |
11882 | freebsd[12]*) |
11883 | # C++ shared libraries reported to be fairly broken before | |
11884 | # switch to ELF | |
11885 | ld_shlibs_CXX=no | |
11886 | ;; | |
9c60689e | 11887 | |
47aaa820 DWT |
11888 | freebsd-elf*) |
11889 | archive_cmds_need_lc_CXX=no | |
11890 | ;; | |
9c60689e | 11891 | |
47aaa820 DWT |
11892 | freebsd* | dragonfly*) |
11893 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11894 | # conventions | |
11895 | ld_shlibs_CXX=yes | |
11896 | ;; | |
9c60689e | 11897 | |
47aaa820 DWT |
11898 | gnu*) |
11899 | ;; | |
9c60689e | 11900 | |
47aaa820 DWT |
11901 | hpux9*) |
11902 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11903 | hardcode_libdir_separator_CXX=: | |
11904 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11905 | hardcode_direct_CXX=yes | |
11906 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11907 | # but as the default | |
11908 | # location of the library. | |
9c60689e | 11909 | |
47aaa820 DWT |
11910 | case $cc_basename in |
11911 | CC*) | |
11912 | # FIXME: insert proper C++ library support | |
11913 | ld_shlibs_CXX=no | |
11914 | ;; | |
11915 | aCC*) | |
11916 | 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' | |
11917 | # Commands to make compiler produce verbose output that lists | |
11918 | # what "hidden" libraries, object files and flags are used when | |
11919 | # linking a shared library. | |
11920 | # | |
11921 | # There doesn't appear to be a way to prevent this compiler from | |
11922 | # explicitly linking system object files so we need to strip them | |
11923 | # from the output so that they don't get included in the library | |
11924 | # dependencies. | |
11925 | 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; $ECHO "X$list" | $Xsed' | |
11926 | ;; | |
11927 | *) | |
11928 | if test "$GXX" = yes; then | |
11929 | 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' | |
11930 | else | |
11931 | # FIXME: insert proper C++ library support | |
11932 | ld_shlibs_CXX=no | |
11933 | fi | |
11934 | ;; | |
11935 | esac | |
11936 | ;; | |
9c60689e | 11937 | |
47aaa820 DWT |
11938 | hpux10*|hpux11*) |
11939 | if test $with_gnu_ld = no; then | |
11940 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11941 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11942 | |
47aaa820 DWT |
11943 | case $host_cpu in |
11944 | hppa*64*|ia64*) | |
11945 | ;; | |
11946 | *) | |
11947 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11948 | ;; | |
11949 | esac | |
11950 | fi | |
11951 | case $host_cpu in | |
11952 | hppa*64*|ia64*) | |
11953 | hardcode_direct_CXX=no | |
11954 | hardcode_shlibpath_var_CXX=no | |
11955 | ;; | |
11956 | *) | |
11957 | hardcode_direct_CXX=yes | |
11958 | hardcode_direct_absolute_CXX=yes | |
11959 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11960 | # but as the default | |
11961 | # location of the library. | |
11962 | ;; | |
11963 | esac | |
9c60689e | 11964 | |
47aaa820 DWT |
11965 | case $cc_basename in |
11966 | CC*) | |
11967 | # FIXME: insert proper C++ library support | |
11968 | ld_shlibs_CXX=no | |
11969 | ;; | |
11970 | aCC*) | |
11971 | case $host_cpu in | |
11972 | hppa*64*) | |
11973 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11974 | ;; | |
11975 | ia64*) | |
11976 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11977 | ;; | |
11978 | *) | |
11979 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11980 | ;; | |
11981 | esac | |
11982 | # Commands to make compiler produce verbose output that lists | |
11983 | # what "hidden" libraries, object files and flags are used when | |
11984 | # linking a shared library. | |
11985 | # | |
11986 | # There doesn't appear to be a way to prevent this compiler from | |
11987 | # explicitly linking system object files so we need to strip them | |
11988 | # from the output so that they don't get included in the library | |
11989 | # dependencies. | |
11990 | 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; $ECHO "X$list" | $Xsed' | |
11991 | ;; | |
11992 | *) | |
11993 | if test "$GXX" = yes; then | |
11994 | if test $with_gnu_ld = no; then | |
11995 | case $host_cpu in | |
11996 | hppa*64*) | |
11997 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11998 | ;; | |
11999 | ia64*) | |
12000 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12001 | ;; | |
12002 | *) | |
12003 | 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' | |
12004 | ;; | |
12005 | esac | |
12006 | fi | |
12007 | else | |
12008 | # FIXME: insert proper C++ library support | |
12009 | ld_shlibs_CXX=no | |
12010 | fi | |
12011 | ;; | |
12012 | esac | |
12013 | ;; | |
9c60689e | 12014 | |
47aaa820 DWT |
12015 | interix[3-9]*) |
12016 | hardcode_direct_CXX=no | |
12017 | hardcode_shlibpath_var_CXX=no | |
12018 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12019 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12020 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12021 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12022 | # default) and relocated if they conflict, which is a slow very memory | |
12023 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12024 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12025 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12026 | 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' | |
12027 | 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' | |
12028 | ;; | |
12029 | irix5* | irix6*) | |
12030 | case $cc_basename in | |
12031 | CC*) | |
12032 | # SGI C++ | |
12033 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9c60689e | 12034 | |
47aaa820 DWT |
12035 | # Archives containing C++ object files must be created using |
12036 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12037 | # necessary to make sure instantiated templates are included | |
12038 | # in the archive. | |
12039 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12040 | ;; | |
12041 | *) | |
12042 | if test "$GXX" = yes; then | |
12043 | if test "$with_gnu_ld" = no; then | |
12044 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12045 | else | |
12046 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
12047 | fi | |
12048 | fi | |
12049 | link_all_deplibs_CXX=yes | |
12050 | ;; | |
12051 | esac | |
12052 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12053 | hardcode_libdir_separator_CXX=: | |
12054 | inherit_rpath_CXX=yes | |
12055 | ;; | |
9c60689e | 12056 | |
51ac63c5 | 12057 | linux* | k*bsd*-gnu) |
47aaa820 DWT |
12058 | case $cc_basename in |
12059 | KCC*) | |
12060 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 12061 | |
47aaa820 DWT |
12062 | # KCC will only create a shared library if the output file |
12063 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12064 | # to its proper name (with version) after linking. | |
12065 | 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' | |
12066 | 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' | |
12067 | # Commands to make compiler produce verbose output that lists | |
12068 | # what "hidden" libraries, object files and flags are used when | |
12069 | # linking a shared library. | |
12070 | # | |
12071 | # There doesn't appear to be a way to prevent this compiler from | |
12072 | # explicitly linking system object files so we need to strip them | |
12073 | # from the output so that they don't get included in the library | |
12074 | # dependencies. | |
12075 | 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; $ECHO "X$list" | $Xsed' | |
9c60689e | 12076 | |
47aaa820 DWT |
12077 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12078 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 12079 | |
47aaa820 DWT |
12080 | # Archives containing C++ object files must be created using |
12081 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12082 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12083 | ;; | |
12084 | icpc* | ecpc* ) | |
12085 | # Intel C++ | |
12086 | with_gnu_ld=yes | |
12087 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12088 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12089 | # earlier do not add the objects themselves. | |
12090 | case `$CC -V 2>&1` in | |
12091 | *"Version 7."*) | |
12092 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12093 | 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' | |
12094 | ;; | |
12095 | *) # Version 8.0 or newer | |
12096 | tmp_idyn= | |
12097 | case $host_cpu in | |
12098 | ia64*) tmp_idyn=' -i_dynamic';; | |
12099 | esac | |
12100 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12101 | 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' | |
12102 | ;; | |
12103 | esac | |
12104 | archive_cmds_need_lc_CXX=no | |
12105 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12106 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12107 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12108 | ;; | |
12109 | pgCC* | pgcpp*) | |
12110 | # Portland Group C++ compiler | |
12111 | case `$CC -V` in | |
12112 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
12113 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12114 | rm -rf $tpldir~ | |
12115 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12116 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12117 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12118 | rm -rf $tpldir~ | |
12119 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12120 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12121 | $RANLIB $oldlib' | |
12122 | archive_cmds_CXX='tpldir=Template.dir~ | |
12123 | rm -rf $tpldir~ | |
12124 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12125 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12126 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12127 | rm -rf $tpldir~ | |
12128 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12129 | $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' | |
12130 | ;; | |
12131 | *) # Version 6 will use weak symbols | |
12132 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12133 | 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' | |
12134 | ;; | |
12135 | esac | |
9c60689e | 12136 | |
47aaa820 DWT |
12137 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
12138 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12139 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12140 | ;; | |
12141 | cxx*) | |
12142 | # Compaq C++ | |
12143 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12144 | 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' | |
9c60689e | 12145 | |
47aaa820 DWT |
12146 | runpath_var=LD_RUN_PATH |
12147 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12148 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12149 | |
47aaa820 DWT |
12150 | # Commands to make compiler produce verbose output that lists |
12151 | # what "hidden" libraries, object files and flags are used when | |
12152 | # linking a shared library. | |
12153 | # | |
12154 | # There doesn't appear to be a way to prevent this compiler from | |
12155 | # explicitly linking system object files so we need to strip them | |
12156 | # from the output so that they don't get included in the library | |
12157 | # dependencies. | |
12158 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12159 | ;; | |
12160 | xl*) | |
12161 | # IBM XL 8.0 on PPC, with GNU ld | |
12162 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12163 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12164 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12165 | if test "x$supports_anon_versioning" = xyes; then | |
12166 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
12167 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12168 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12169 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12170 | fi | |
12171 | ;; | |
12172 | *) | |
12173 | case `$CC -V 2>&1 | sed 5q` in | |
12174 | *Sun\ C*) | |
12175 | # Sun C++ 5.9 | |
12176 | no_undefined_flag_CXX=' -zdefs' | |
12177 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12178 | 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' | |
12179 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12180 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12181 | compiler_needs_object_CXX=yes | |
9c60689e | 12182 | |
47aaa820 DWT |
12183 | # Not sure whether something based on |
12184 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12185 | # would be better. | |
12186 | output_verbose_link_cmd='echo' | |
9c60689e | 12187 | |
47aaa820 DWT |
12188 | # Archives containing C++ object files must be created using |
12189 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12190 | # necessary to make sure instantiated templates are included | |
12191 | # in the archive. | |
12192 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12193 | ;; | |
12194 | esac | |
12195 | ;; | |
12196 | esac | |
12197 | ;; | |
9c60689e | 12198 | |
47aaa820 DWT |
12199 | lynxos*) |
12200 | # FIXME: insert proper C++ library support | |
12201 | ld_shlibs_CXX=no | |
12202 | ;; | |
9c60689e | 12203 | |
47aaa820 DWT |
12204 | m88k*) |
12205 | # FIXME: insert proper C++ library support | |
12206 | ld_shlibs_CXX=no | |
12207 | ;; | |
9c60689e | 12208 | |
47aaa820 DWT |
12209 | mvs*) |
12210 | case $cc_basename in | |
12211 | cxx*) | |
12212 | # FIXME: insert proper C++ library support | |
12213 | ld_shlibs_CXX=no | |
12214 | ;; | |
12215 | *) | |
12216 | # FIXME: insert proper C++ library support | |
12217 | ld_shlibs_CXX=no | |
12218 | ;; | |
12219 | esac | |
12220 | ;; | |
9c60689e | 12221 | |
47aaa820 DWT |
12222 | netbsd*) |
12223 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12224 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
12225 | wlarc= | |
12226 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12227 | hardcode_direct_CXX=yes | |
12228 | hardcode_shlibpath_var_CXX=no | |
12229 | fi | |
12230 | # Workaround some broken pre-1.5 toolchains | |
12231 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 12232 | ;; |
47aaa820 DWT |
12233 | |
12234 | *nto* | *qnx*) | |
12235 | ld_shlibs_CXX=yes | |
9c60689e | 12236 | ;; |
9c60689e | 12237 | |
47aaa820 DWT |
12238 | openbsd2*) |
12239 | # C++ shared libraries are fairly broken | |
12240 | ld_shlibs_CXX=no | |
12241 | ;; | |
9c60689e | 12242 | |
47aaa820 DWT |
12243 | openbsd*) |
12244 | if test -f /usr/libexec/ld.so; then | |
12245 | hardcode_direct_CXX=yes | |
12246 | hardcode_shlibpath_var_CXX=no | |
12247 | hardcode_direct_absolute_CXX=yes | |
12248 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12249 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12250 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12251 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
12252 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12253 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12254 | fi | |
12255 | output_verbose_link_cmd=echo | |
12256 | else | |
12257 | ld_shlibs_CXX=no | |
12258 | fi | |
12259 | ;; | |
9c60689e | 12260 | |
47aaa820 DWT |
12261 | osf3* | osf4* | osf5*) |
12262 | case $cc_basename in | |
12263 | KCC*) | |
12264 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 12265 | |
47aaa820 DWT |
12266 | # KCC will only create a shared library if the output file |
12267 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12268 | # to its proper name (with version) after linking. | |
12269 | 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' | |
9c60689e | 12270 | |
47aaa820 DWT |
12271 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12272 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12273 | |
47aaa820 DWT |
12274 | # Archives containing C++ object files must be created using |
12275 | # the KAI C++ compiler. | |
12276 | case $host in | |
12277 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
12278 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
12279 | esac | |
12280 | ;; | |
12281 | RCC*) | |
12282 | # Rational C++ 2.4.1 | |
12283 | # FIXME: insert proper C++ library support | |
12284 | ld_shlibs_CXX=no | |
12285 | ;; | |
12286 | cxx*) | |
12287 | case $host in | |
12288 | osf3*) | |
12289 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12290 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12291 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12292 | ;; | |
12293 | *) | |
12294 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
12295 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12296 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
12297 | echo "-hidden">> $lib.exp~ | |
12298 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
12299 | $RM $lib.exp' | |
12300 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12301 | ;; | |
12302 | esac | |
9c60689e | 12303 | |
47aaa820 | 12304 | hardcode_libdir_separator_CXX=: |
9c60689e | 12305 | |
47aaa820 DWT |
12306 | # Commands to make compiler produce verbose output that lists |
12307 | # what "hidden" libraries, object files and flags are used when | |
12308 | # linking a shared library. | |
12309 | # | |
12310 | # There doesn't appear to be a way to prevent this compiler from | |
12311 | # explicitly linking system object files so we need to strip them | |
12312 | # from the output so that they don't get included in the library | |
12313 | # dependencies. | |
12314 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12315 | ;; | |
12316 | *) | |
12317 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12318 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12319 | case $host in | |
12320 | osf3*) | |
12321 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12322 | ;; | |
12323 | *) | |
12324 | 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
12325 | ;; | |
12326 | esac | |
9c60689e | 12327 | |
47aaa820 DWT |
12328 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12329 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12330 | |
47aaa820 DWT |
12331 | # Commands to make compiler produce verbose output that lists |
12332 | # what "hidden" libraries, object files and flags are used when | |
12333 | # linking a shared library. | |
12334 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
9c60689e | 12335 | |
47aaa820 DWT |
12336 | else |
12337 | # FIXME: insert proper C++ library support | |
12338 | ld_shlibs_CXX=no | |
12339 | fi | |
12340 | ;; | |
12341 | esac | |
12342 | ;; | |
9c60689e | 12343 | |
47aaa820 | 12344 | psos*) |
9c60689e DWT |
12345 | # FIXME: insert proper C++ library support |
12346 | ld_shlibs_CXX=no | |
12347 | ;; | |
9c60689e | 12348 | |
47aaa820 DWT |
12349 | sunos4*) |
12350 | case $cc_basename in | |
12351 | CC*) | |
12352 | # Sun C++ 4.x | |
12353 | # FIXME: insert proper C++ library support | |
12354 | ld_shlibs_CXX=no | |
9c60689e | 12355 | ;; |
47aaa820 DWT |
12356 | lcc*) |
12357 | # Lucid | |
12358 | # FIXME: insert proper C++ library support | |
12359 | ld_shlibs_CXX=no | |
12360 | ;; | |
12361 | *) | |
12362 | # FIXME: insert proper C++ library support | |
12363 | ld_shlibs_CXX=no | |
12364 | ;; | |
12365 | esac | |
12366 | ;; | |
9c60689e | 12367 | |
47aaa820 DWT |
12368 | solaris*) |
12369 | case $cc_basename in | |
12370 | CC*) | |
12371 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12372 | archive_cmds_need_lc_CXX=yes | |
12373 | no_undefined_flag_CXX=' -zdefs' | |
12374 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12375 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12376 | $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' | |
9c60689e | 12377 | |
47aaa820 DWT |
12378 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12379 | hardcode_shlibpath_var_CXX=no | |
12380 | case $host_os in | |
12381 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12382 | *) | |
12383 | # The compiler driver will combine and reorder linker options, | |
12384 | # but understands `-z linker_flag'. | |
12385 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12386 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
12387 | ;; | |
12388 | esac | |
12389 | link_all_deplibs_CXX=yes | |
9c60689e | 12390 | |
47aaa820 | 12391 | output_verbose_link_cmd='echo' |
9c60689e | 12392 | |
47aaa820 DWT |
12393 | # Archives containing C++ object files must be created using |
12394 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12395 | # necessary to make sure instantiated templates are included | |
12396 | # in the archive. | |
12397 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12398 | ;; | |
12399 | gcx*) | |
12400 | # Green Hills C++ Compiler | |
12401 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 12402 | |
47aaa820 DWT |
12403 | # The C++ compiler must be used to create the archive. |
12404 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
12405 | ;; | |
12406 | *) | |
12407 | # GNU C++ compiler with Solaris linker | |
12408 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12409 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
12410 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
12411 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12412 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12413 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 12414 | |
47aaa820 DWT |
12415 | # Commands to make compiler produce verbose output that lists |
12416 | # what "hidden" libraries, object files and flags are used when | |
12417 | # linking a shared library. | |
12418 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12419 | else | |
12420 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
12421 | # platform. | |
12422 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12423 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12424 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 12425 | |
47aaa820 DWT |
12426 | # Commands to make compiler produce verbose output that lists |
12427 | # what "hidden" libraries, object files and flags are used when | |
12428 | # linking a shared library. | |
12429 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12430 | fi | |
9c60689e | 12431 | |
47aaa820 DWT |
12432 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
12433 | case $host_os in | |
12434 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12435 | *) | |
12436 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12437 | ;; | |
12438 | esac | |
12439 | fi | |
12440 | ;; | |
12441 | esac | |
12442 | ;; | |
9c60689e | 12443 | |
47aaa820 DWT |
12444 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
12445 | no_undefined_flag_CXX='${wl}-z,text' | |
12446 | archive_cmds_need_lc_CXX=no | |
12447 | hardcode_shlibpath_var_CXX=no | |
12448 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12449 | |
47aaa820 DWT |
12450 | case $cc_basename in |
12451 | CC*) | |
12452 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12453 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12454 | ;; | |
12455 | *) | |
12456 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12457 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12458 | ;; | |
12459 | esac | |
12460 | ;; | |
9c60689e | 12461 | |
47aaa820 DWT |
12462 | sysv5* | sco3.2v5* | sco5v6*) |
12463 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12464 | # link with -lc, and that would cause any symbols used from libc to | |
12465 | # always be unresolved, which means just about no library would | |
12466 | # ever link correctly. If we're not using GNU ld we use -z text | |
12467 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12468 | # as -z defs. | |
12469 | no_undefined_flag_CXX='${wl}-z,text' | |
12470 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
12471 | archive_cmds_need_lc_CXX=no | |
12472 | hardcode_shlibpath_var_CXX=no | |
12473 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
12474 | hardcode_libdir_separator_CXX=':' | |
12475 | link_all_deplibs_CXX=yes | |
12476 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12477 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12478 | |
47aaa820 DWT |
12479 | case $cc_basename in |
12480 | CC*) | |
12481 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12482 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12483 | ;; | |
12484 | *) | |
12485 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12486 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12487 | ;; | |
12488 | esac | |
12489 | ;; | |
9c60689e | 12490 | |
47aaa820 | 12491 | tandem*) |
9c60689e | 12492 | case $cc_basename in |
47aaa820 DWT |
12493 | NCC*) |
12494 | # NonStop-UX NCC 3.20 | |
12495 | # FIXME: insert proper C++ library support | |
12496 | ld_shlibs_CXX=no | |
12497 | ;; | |
9c60689e | 12498 | *) |
47aaa820 DWT |
12499 | # FIXME: insert proper C++ library support |
12500 | ld_shlibs_CXX=no | |
12501 | ;; | |
9c60689e DWT |
12502 | esac |
12503 | ;; | |
12504 | ||
47aaa820 DWT |
12505 | vxworks*) |
12506 | # FIXME: insert proper C++ library support | |
12507 | ld_shlibs_CXX=no | |
12508 | ;; | |
9c60689e | 12509 | |
47aaa820 DWT |
12510 | *) |
12511 | # FIXME: insert proper C++ library support | |
12512 | ld_shlibs_CXX=no | |
9c60689e | 12513 | ;; |
47aaa820 | 12514 | esac |
9c60689e | 12515 | |
47aaa820 DWT |
12516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
12517 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12518 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 12519 | |
47aaa820 DWT |
12520 | GCC_CXX="$GXX" |
12521 | LD_CXX="$LD" | |
9c60689e | 12522 | |
47aaa820 DWT |
12523 | ## CAVEAT EMPTOR: |
12524 | ## There is no encapsulation within the following macros, do not change | |
12525 | ## the running order or otherwise move them around unless you know exactly | |
12526 | ## what you are doing... | |
12527 | # Dependencies to place before and after the object being linked: | |
12528 | predep_objects_CXX= | |
12529 | postdep_objects_CXX= | |
12530 | predeps_CXX= | |
12531 | postdeps_CXX= | |
12532 | compiler_lib_search_path_CXX= | |
9c60689e | 12533 | |
47aaa820 DWT |
12534 | cat > conftest.$ac_ext <<_LT_EOF |
12535 | class Foo | |
12536 | { | |
12537 | public: | |
12538 | Foo (void) { a = 0; } | |
12539 | private: | |
12540 | int a; | |
12541 | }; | |
12542 | _LT_EOF | |
9c60689e | 12543 | |
47aaa820 DWT |
12544 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12545 | (eval $ac_compile) 2>&5 | |
12546 | ac_status=$? | |
12547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12548 | test $ac_status = 0; }; then | |
12549 | # Parse the compiler output and extract the necessary | |
12550 | # objects, libraries and library flags. | |
9c60689e | 12551 | |
47aaa820 DWT |
12552 | # Sentinel used to keep track of whether or not we are before |
12553 | # the conftest object file. | |
12554 | pre_test_object_deps_done=no | |
9c60689e | 12555 | |
47aaa820 DWT |
12556 | for p in `eval "$output_verbose_link_cmd"`; do |
12557 | case $p in | |
9c60689e | 12558 | |
47aaa820 DWT |
12559 | -L* | -R* | -l*) |
12560 | # Some compilers place space between "-{L,R}" and the path. | |
12561 | # Remove the space. | |
12562 | if test $p = "-L" || | |
12563 | test $p = "-R"; then | |
12564 | prev=$p | |
12565 | continue | |
12566 | else | |
12567 | prev= | |
12568 | fi | |
9c60689e | 12569 | |
47aaa820 DWT |
12570 | if test "$pre_test_object_deps_done" = no; then |
12571 | case $p in | |
12572 | -L* | -R*) | |
12573 | # Internal compiler library paths should come after those | |
12574 | # provided the user. The postdeps already come after the | |
12575 | # user supplied libs so there is no need to process them. | |
12576 | if test -z "$compiler_lib_search_path_CXX"; then | |
12577 | compiler_lib_search_path_CXX="${prev}${p}" | |
12578 | else | |
12579 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12580 | fi | |
12581 | ;; | |
12582 | # The "-l" case would never come before the object being | |
12583 | # linked, so don't bother handling this case. | |
12584 | esac | |
12585 | else | |
12586 | if test -z "$postdeps_CXX"; then | |
12587 | postdeps_CXX="${prev}${p}" | |
12588 | else | |
12589 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12590 | fi | |
12591 | fi | |
12592 | ;; | |
9c60689e | 12593 | |
47aaa820 DWT |
12594 | *.$objext) |
12595 | # This assumes that the test object file only shows up | |
12596 | # once in the compiler output. | |
12597 | if test "$p" = "conftest.$objext"; then | |
12598 | pre_test_object_deps_done=yes | |
12599 | continue | |
12600 | fi | |
9c60689e | 12601 | |
47aaa820 DWT |
12602 | if test "$pre_test_object_deps_done" = no; then |
12603 | if test -z "$predep_objects_CXX"; then | |
12604 | predep_objects_CXX="$p" | |
12605 | else | |
12606 | predep_objects_CXX="$predep_objects_CXX $p" | |
12607 | fi | |
12608 | else | |
12609 | if test -z "$postdep_objects_CXX"; then | |
12610 | postdep_objects_CXX="$p" | |
12611 | else | |
12612 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12613 | fi | |
12614 | fi | |
12615 | ;; | |
9c60689e | 12616 | |
47aaa820 | 12617 | *) ;; # Ignore the rest. |
9c60689e | 12618 | |
47aaa820 DWT |
12619 | esac |
12620 | done | |
9c60689e | 12621 | |
47aaa820 DWT |
12622 | # Clean up. |
12623 | rm -f a.out a.exe | |
12624 | else | |
12625 | echo "libtool.m4: error: problem compiling CXX test program" | |
12626 | fi | |
9c60689e | 12627 | |
47aaa820 | 12628 | $RM -f confest.$objext |
9c60689e | 12629 | |
47aaa820 DWT |
12630 | # PORTME: override above test on systems where it is broken |
12631 | case $host_os in | |
12632 | interix[3-9]*) | |
12633 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12634 | # hack all around it, let's just trust "g++" to DTRT. | |
12635 | predep_objects_CXX= | |
12636 | postdep_objects_CXX= | |
12637 | postdeps_CXX= | |
12638 | ;; | |
9c60689e | 12639 | |
47aaa820 DWT |
12640 | linux*) |
12641 | case `$CC -V 2>&1 | sed 5q` in | |
12642 | *Sun\ C*) | |
12643 | # Sun C++ 5.9 | |
9c60689e | 12644 | |
47aaa820 DWT |
12645 | # The more standards-conforming stlport4 library is |
12646 | # incompatible with the Cstd library. Avoid specifying | |
12647 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12648 | # -library=stlport4 depends on it. | |
12649 | case " $CXX $CXXFLAGS " in | |
12650 | *" -library=stlport4 "*) | |
12651 | solaris_use_stlport4=yes | |
12652 | ;; | |
12653 | esac | |
9c60689e | 12654 | |
47aaa820 DWT |
12655 | if test "$solaris_use_stlport4" != yes; then |
12656 | postdeps_CXX='-library=Cstd -library=Crun' | |
12657 | fi | |
12658 | ;; | |
12659 | esac | |
12660 | ;; | |
9c60689e | 12661 | |
47aaa820 DWT |
12662 | solaris*) |
12663 | case $cc_basename in | |
12664 | CC*) | |
12665 | # The more standards-conforming stlport4 library is | |
12666 | # incompatible with the Cstd library. Avoid specifying | |
12667 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12668 | # -library=stlport4 depends on it. | |
12669 | case " $CXX $CXXFLAGS " in | |
12670 | *" -library=stlport4 "*) | |
12671 | solaris_use_stlport4=yes | |
12672 | ;; | |
12673 | esac | |
9c60689e | 12674 | |
47aaa820 DWT |
12675 | # Adding this requires a known-good setup of shared libraries for |
12676 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12677 | # archive will be linked into the output, leading to subtle bugs. | |
12678 | if test "$solaris_use_stlport4" != yes; then | |
12679 | postdeps_CXX='-library=Cstd -library=Crun' | |
12680 | fi | |
12681 | ;; | |
12682 | esac | |
12683 | ;; | |
12684 | esac | |
9c60689e | 12685 | |
9c60689e | 12686 | |
47aaa820 DWT |
12687 | case " $postdeps_CXX " in |
12688 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12689 | esac | |
12690 | compiler_lib_search_dirs_CXX= | |
12691 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12692 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12693 | fi | |
9c60689e | 12694 | |
9c60689e | 12695 | |
9c60689e | 12696 | |
9c60689e | 12697 | |
9c60689e | 12698 | |
9c60689e | 12699 | |
9c60689e | 12700 | |
9c60689e | 12701 | |
9c60689e | 12702 | |
9c60689e | 12703 | |
9c60689e | 12704 | |
9c60689e | 12705 | |
9c60689e | 12706 | |
9c60689e | 12707 | |
9c60689e | 12708 | |
9c60689e | 12709 | |
9c60689e | 12710 | |
9c60689e | 12711 | |
9c60689e | 12712 | |
9c60689e | 12713 | |
9c60689e | 12714 | |
9c60689e | 12715 | |
9c60689e | 12716 | |
9c60689e | 12717 | |
9c60689e | 12718 | |
9c60689e | 12719 | |
9c60689e | 12720 | |
9c60689e | 12721 | |
9c60689e | 12722 | |
9c60689e | 12723 | |
9c60689e | 12724 | |
47aaa820 DWT |
12725 | lt_prog_compiler_wl_CXX= |
12726 | lt_prog_compiler_pic_CXX= | |
12727 | lt_prog_compiler_static_CXX= | |
9c60689e DWT |
12728 | |
12729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12730 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12731 | ||
12732 | # C++ specific cases for pic, static, wl, etc. | |
12733 | if test "$GXX" = yes; then | |
12734 | lt_prog_compiler_wl_CXX='-Wl,' | |
12735 | lt_prog_compiler_static_CXX='-static' | |
12736 | ||
12737 | case $host_os in | |
12738 | aix*) | |
12739 | # All AIX code is PIC. | |
12740 | if test "$host_cpu" = ia64; then | |
12741 | # AIX 5 now supports IA64 processor | |
12742 | lt_prog_compiler_static_CXX='-Bstatic' | |
12743 | fi | |
12744 | ;; | |
12745 | ||
12746 | amigaos*) | |
12747 | case $host_cpu in | |
12748 | powerpc) | |
12749 | # see comment about AmigaOS4 .so support | |
12750 | lt_prog_compiler_pic_CXX='-fPIC' | |
12751 | ;; | |
12752 | m68k) | |
12753 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12754 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12755 | # like `-m68040'. | |
12756 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12757 | ;; | |
12758 | esac | |
12759 | ;; | |
12760 | ||
12761 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12762 | # PIC is the default for these OSes. | |
12763 | ;; | |
12764 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12765 | # This hack is so that the source file can tell whether it is being | |
12766 | # built for inclusion in a dll (and should export symbols for example). | |
12767 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12768 | # (--disable-auto-import) libraries | |
12769 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12770 | ;; | |
12771 | darwin* | rhapsody*) | |
12772 | # PIC is the default on this platform | |
12773 | # Common symbols not allowed in MH_DYLIB files | |
12774 | lt_prog_compiler_pic_CXX='-fno-common' | |
12775 | ;; | |
12776 | *djgpp*) | |
12777 | # DJGPP does not support shared libraries at all | |
12778 | lt_prog_compiler_pic_CXX= | |
12779 | ;; | |
12780 | interix[3-9]*) | |
12781 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12782 | # Instead, we relocate shared libraries at runtime. | |
12783 | ;; | |
12784 | sysv4*MP*) | |
12785 | if test -d /usr/nec; then | |
12786 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12787 | fi | |
12788 | ;; | |
12789 | hpux*) | |
12790 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12791 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12792 | # sets the default TLS model and affects inlining. | |
12793 | case $host_cpu in | |
12794 | hppa*64*) | |
12795 | ;; | |
12796 | *) | |
12797 | lt_prog_compiler_pic_CXX='-fPIC' | |
12798 | ;; | |
12799 | esac | |
12800 | ;; | |
12801 | *qnx* | *nto*) | |
12802 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12803 | # it will coredump. | |
12804 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12805 | ;; | |
12806 | *) | |
12807 | lt_prog_compiler_pic_CXX='-fPIC' | |
12808 | ;; | |
12809 | esac | |
12810 | else | |
12811 | case $host_os in | |
12812 | aix[4-9]*) | |
12813 | # All AIX code is PIC. | |
12814 | if test "$host_cpu" = ia64; then | |
12815 | # AIX 5 now supports IA64 processor | |
12816 | lt_prog_compiler_static_CXX='-Bstatic' | |
12817 | else | |
12818 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12819 | fi | |
12820 | ;; | |
12821 | chorus*) | |
12822 | case $cc_basename in | |
12823 | cxch68*) | |
12824 | # Green Hills C++ Compiler | |
12825 | # _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" | |
12826 | ;; | |
12827 | esac | |
12828 | ;; | |
12829 | dgux*) | |
12830 | case $cc_basename in | |
12831 | ec++*) | |
12832 | lt_prog_compiler_pic_CXX='-KPIC' | |
12833 | ;; | |
12834 | ghcx*) | |
12835 | # Green Hills C++ Compiler | |
12836 | lt_prog_compiler_pic_CXX='-pic' | |
12837 | ;; | |
12838 | *) | |
12839 | ;; | |
12840 | esac | |
12841 | ;; | |
12842 | freebsd* | dragonfly*) | |
12843 | # FreeBSD uses GNU C++ | |
12844 | ;; | |
12845 | hpux9* | hpux10* | hpux11*) | |
12846 | case $cc_basename in | |
12847 | CC*) | |
12848 | lt_prog_compiler_wl_CXX='-Wl,' | |
12849 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12850 | if test "$host_cpu" != ia64; then | |
12851 | lt_prog_compiler_pic_CXX='+Z' | |
12852 | fi | |
12853 | ;; | |
12854 | aCC*) | |
12855 | lt_prog_compiler_wl_CXX='-Wl,' | |
12856 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12857 | case $host_cpu in | |
12858 | hppa*64*|ia64*) | |
12859 | # +Z the default | |
12860 | ;; | |
12861 | *) | |
12862 | lt_prog_compiler_pic_CXX='+Z' | |
12863 | ;; | |
12864 | esac | |
12865 | ;; | |
12866 | *) | |
12867 | ;; | |
12868 | esac | |
12869 | ;; | |
12870 | interix*) | |
12871 | # This is c89, which is MS Visual C++ (no shared libs) | |
12872 | # Anyone wants to do a port? | |
12873 | ;; | |
12874 | irix5* | irix6* | nonstopux*) | |
12875 | case $cc_basename in | |
12876 | CC*) | |
12877 | lt_prog_compiler_wl_CXX='-Wl,' | |
12878 | lt_prog_compiler_static_CXX='-non_shared' | |
12879 | # CC pic flag -KPIC is the default. | |
12880 | ;; | |
12881 | *) | |
12882 | ;; | |
12883 | esac | |
12884 | ;; | |
51ac63c5 | 12885 | linux* | k*bsd*-gnu) |
9c60689e DWT |
12886 | case $cc_basename in |
12887 | KCC*) | |
12888 | # KAI C++ Compiler | |
12889 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12890 | lt_prog_compiler_pic_CXX='-fPIC' | |
12891 | ;; | |
12892 | ecpc* ) | |
12893 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12894 | lt_prog_compiler_wl_CXX='-Wl,' | |
12895 | lt_prog_compiler_pic_CXX='-KPIC' | |
12896 | lt_prog_compiler_static_CXX='-static' | |
12897 | ;; | |
12898 | icpc* ) | |
12899 | # Intel C++, used to be incompatible with GCC. | |
12900 | # ICC 10 doesn't accept -KPIC any more. | |
12901 | lt_prog_compiler_wl_CXX='-Wl,' | |
12902 | lt_prog_compiler_pic_CXX='-fPIC' | |
12903 | lt_prog_compiler_static_CXX='-static' | |
12904 | ;; | |
12905 | pgCC* | pgcpp*) | |
12906 | # Portland Group C++ compiler | |
12907 | lt_prog_compiler_wl_CXX='-Wl,' | |
12908 | lt_prog_compiler_pic_CXX='-fpic' | |
12909 | lt_prog_compiler_static_CXX='-Bstatic' | |
12910 | ;; | |
12911 | cxx*) | |
12912 | # Compaq C++ | |
12913 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12914 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12915 | lt_prog_compiler_pic_CXX= | |
12916 | lt_prog_compiler_static_CXX='-non_shared' | |
12917 | ;; | |
12918 | xlc* | xlC*) | |
12919 | # IBM XL 8.0 on PPC | |
12920 | lt_prog_compiler_wl_CXX='-Wl,' | |
12921 | lt_prog_compiler_pic_CXX='-qpic' | |
12922 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12923 | ;; | |
12924 | *) | |
12925 | case `$CC -V 2>&1 | sed 5q` in | |
12926 | *Sun\ C*) | |
12927 | # Sun C++ 5.9 | |
12928 | lt_prog_compiler_pic_CXX='-KPIC' | |
12929 | lt_prog_compiler_static_CXX='-Bstatic' | |
12930 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12931 | ;; | |
12932 | esac | |
12933 | ;; | |
12934 | esac | |
12935 | ;; | |
12936 | lynxos*) | |
12937 | ;; | |
12938 | m88k*) | |
12939 | ;; | |
12940 | mvs*) | |
12941 | case $cc_basename in | |
12942 | cxx*) | |
12943 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12944 | ;; | |
12945 | *) | |
12946 | ;; | |
12947 | esac | |
12948 | ;; | |
51ac63c5 | 12949 | netbsd*) |
9c60689e DWT |
12950 | ;; |
12951 | *qnx* | *nto*) | |
12952 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12953 | # it will coredump. | |
12954 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12955 | ;; | |
12956 | osf3* | osf4* | osf5*) | |
12957 | case $cc_basename in | |
12958 | KCC*) | |
12959 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12960 | ;; | |
12961 | RCC*) | |
12962 | # Rational C++ 2.4.1 | |
12963 | lt_prog_compiler_pic_CXX='-pic' | |
12964 | ;; | |
12965 | cxx*) | |
12966 | # Digital/Compaq C++ | |
12967 | lt_prog_compiler_wl_CXX='-Wl,' | |
12968 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12969 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12970 | lt_prog_compiler_pic_CXX= | |
12971 | lt_prog_compiler_static_CXX='-non_shared' | |
12972 | ;; | |
12973 | *) | |
12974 | ;; | |
12975 | esac | |
12976 | ;; | |
12977 | psos*) | |
12978 | ;; | |
12979 | solaris*) | |
12980 | case $cc_basename in | |
12981 | CC*) | |
12982 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12983 | lt_prog_compiler_pic_CXX='-KPIC' | |
12984 | lt_prog_compiler_static_CXX='-Bstatic' | |
12985 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12986 | ;; | |
12987 | gcx*) | |
12988 | # Green Hills C++ Compiler | |
12989 | lt_prog_compiler_pic_CXX='-PIC' | |
12990 | ;; | |
12991 | *) | |
12992 | ;; | |
12993 | esac | |
12994 | ;; | |
12995 | sunos4*) | |
12996 | case $cc_basename in | |
12997 | CC*) | |
12998 | # Sun C++ 4.x | |
12999 | lt_prog_compiler_pic_CXX='-pic' | |
13000 | lt_prog_compiler_static_CXX='-Bstatic' | |
13001 | ;; | |
13002 | lcc*) | |
13003 | # Lucid | |
13004 | lt_prog_compiler_pic_CXX='-pic' | |
13005 | ;; | |
13006 | *) | |
13007 | ;; | |
13008 | esac | |
13009 | ;; | |
13010 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13011 | case $cc_basename in | |
13012 | CC*) | |
13013 | lt_prog_compiler_wl_CXX='-Wl,' | |
13014 | lt_prog_compiler_pic_CXX='-KPIC' | |
13015 | lt_prog_compiler_static_CXX='-Bstatic' | |
13016 | ;; | |
13017 | esac | |
13018 | ;; | |
13019 | tandem*) | |
13020 | case $cc_basename in | |
13021 | NCC*) | |
13022 | # NonStop-UX NCC 3.20 | |
13023 | lt_prog_compiler_pic_CXX='-KPIC' | |
13024 | ;; | |
13025 | *) | |
13026 | ;; | |
13027 | esac | |
13028 | ;; | |
13029 | vxworks*) | |
13030 | ;; | |
13031 | *) | |
13032 | lt_prog_compiler_can_build_shared_CXX=no | |
13033 | ;; | |
13034 | esac | |
13035 | fi | |
13036 | ||
13037 | case $host_os in | |
13038 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13039 | *djgpp*) | |
13040 | lt_prog_compiler_pic_CXX= | |
13041 | ;; | |
13042 | *) | |
13043 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13044 | ;; | |
13045 | esac | |
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
13047 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
13048 | ||
13049 | ||
13050 | ||
13051 | # | |
13052 | # Check to make sure the PIC flag actually works. | |
13053 | # | |
13054 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13056 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
13057 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
13058 | $as_echo_n "(cached) " >&6 | |
13059 | else | |
13060 | lt_cv_prog_compiler_pic_works_CXX=no | |
13061 | ac_outfile=conftest.$ac_objext | |
13062 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13063 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13064 | # Insert the option either (1) after the last *FLAGS variable, or | |
13065 | # (2) before a word containing "conftest.", or (3) at the end. | |
13066 | # Note that $ac_compile itself does not contain backslashes and begins | |
13067 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13068 | # The option is referenced via a variable to avoid confusing sed. | |
13069 | lt_compile=`echo "$ac_compile" | $SED \ | |
13070 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13071 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13072 | -e 's:$: $lt_compiler_flag:'` | |
51ac63c5 | 13073 | (eval echo "\"\$as_me:13073: $lt_compile\"" >&5) |
9c60689e DWT |
13074 | (eval "$lt_compile" 2>conftest.err) |
13075 | ac_status=$? | |
13076 | cat conftest.err >&5 | |
51ac63c5 | 13077 | echo "$as_me:13077: \$? = $ac_status" >&5 |
9c60689e DWT |
13078 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13079 | # The compiler can only warn and ignore the option if not recognized | |
13080 | # So say no if there are warnings other than the usual output. | |
13081 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13082 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13083 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13084 | lt_cv_prog_compiler_pic_works_CXX=yes | |
13085 | fi | |
13086 | fi | |
13087 | $RM conftest* | |
13088 | ||
13089 | fi | |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13091 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13092 | ||
13093 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13094 | case $lt_prog_compiler_pic_CXX in | |
13095 | "" | " "*) ;; | |
13096 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13097 | esac | |
13098 | else | |
13099 | lt_prog_compiler_pic_CXX= | |
13100 | lt_prog_compiler_can_build_shared_CXX=no | |
13101 | fi | |
13102 | ||
13103 | fi | |
13104 | ||
13105 | ||
13106 | ||
47aaa820 DWT |
13107 | # |
13108 | # Check to make sure the static flag actually works. | |
13109 | # | |
13110 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13112 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13113 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
13114 | $as_echo_n "(cached) " >&6 | |
13115 | else | |
13116 | lt_cv_prog_compiler_static_works_CXX=no | |
13117 | save_LDFLAGS="$LDFLAGS" | |
13118 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13119 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13120 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13121 | # The linker can only warn and ignore the option if not recognized | |
13122 | # So say no if there are warnings | |
13123 | if test -s conftest.err; then | |
13124 | # Append any errors to the config.log. | |
13125 | cat conftest.err 1>&5 | |
13126 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13127 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13128 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13129 | lt_cv_prog_compiler_static_works_CXX=yes | |
13130 | fi | |
13131 | else | |
13132 | lt_cv_prog_compiler_static_works_CXX=yes | |
13133 | fi | |
13134 | fi | |
13135 | $RM -r conftest* | |
13136 | LDFLAGS="$save_LDFLAGS" | |
13137 | ||
13138 | fi | |
13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
13140 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
13141 | ||
13142 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
13143 | : | |
13144 | else | |
13145 | lt_prog_compiler_static_CXX= | |
13146 | fi | |
13147 | ||
13148 | ||
13149 | ||
13150 | ||
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13152 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13153 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13154 | $as_echo_n "(cached) " >&6 | |
13155 | else | |
13156 | lt_cv_prog_compiler_c_o_CXX=no | |
13157 | $RM -r conftest 2>/dev/null | |
13158 | mkdir conftest | |
13159 | cd conftest | |
13160 | mkdir out | |
13161 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13162 | ||
13163 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13164 | # Insert the option either (1) after the last *FLAGS variable, or | |
13165 | # (2) before a word containing "conftest.", or (3) at the end. | |
13166 | # Note that $ac_compile itself does not contain backslashes and begins | |
13167 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13168 | lt_compile=`echo "$ac_compile" | $SED \ | |
13169 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13170 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13171 | -e 's:$: $lt_compiler_flag:'` | |
51ac63c5 | 13172 | (eval echo "\"\$as_me:13172: $lt_compile\"" >&5) |
47aaa820 DWT |
13173 | (eval "$lt_compile" 2>out/conftest.err) |
13174 | ac_status=$? | |
13175 | cat out/conftest.err >&5 | |
51ac63c5 | 13176 | echo "$as_me:13176: \$? = $ac_status" >&5 |
47aaa820 DWT |
13177 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13178 | then | |
13179 | # The compiler can only warn and ignore the option if not recognized | |
13180 | # So say no if there are warnings | |
13181 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13182 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13183 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13184 | lt_cv_prog_compiler_c_o_CXX=yes | |
13185 | fi | |
13186 | fi | |
13187 | chmod u+w . 2>&5 | |
13188 | $RM conftest* | |
13189 | # SGI C++ compiler will create directory out/ii_files/ for | |
13190 | # template instantiation | |
13191 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13192 | $RM out/* && rmdir out | |
13193 | cd .. | |
13194 | $RM -r conftest | |
13195 | $RM conftest* | |
13196 | ||
13197 | fi | |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13199 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13200 | ||
13201 | ||
13202 | ||
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13204 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13205 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13206 | $as_echo_n "(cached) " >&6 | |
13207 | else | |
13208 | lt_cv_prog_compiler_c_o_CXX=no | |
13209 | $RM -r conftest 2>/dev/null | |
13210 | mkdir conftest | |
13211 | cd conftest | |
13212 | mkdir out | |
13213 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13214 | ||
13215 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13216 | # Insert the option either (1) after the last *FLAGS variable, or | |
13217 | # (2) before a word containing "conftest.", or (3) at the end. | |
13218 | # Note that $ac_compile itself does not contain backslashes and begins | |
13219 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13220 | lt_compile=`echo "$ac_compile" | $SED \ | |
13221 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13222 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13223 | -e 's:$: $lt_compiler_flag:'` | |
51ac63c5 | 13224 | (eval echo "\"\$as_me:13224: $lt_compile\"" >&5) |
47aaa820 DWT |
13225 | (eval "$lt_compile" 2>out/conftest.err) |
13226 | ac_status=$? | |
13227 | cat out/conftest.err >&5 | |
51ac63c5 | 13228 | echo "$as_me:13228: \$? = $ac_status" >&5 |
47aaa820 DWT |
13229 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13230 | then | |
13231 | # The compiler can only warn and ignore the option if not recognized | |
13232 | # So say no if there are warnings | |
13233 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13234 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13235 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13236 | lt_cv_prog_compiler_c_o_CXX=yes | |
13237 | fi | |
13238 | fi | |
13239 | chmod u+w . 2>&5 | |
13240 | $RM conftest* | |
13241 | # SGI C++ compiler will create directory out/ii_files/ for | |
13242 | # template instantiation | |
13243 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13244 | $RM out/* && rmdir out | |
13245 | cd .. | |
13246 | $RM -r conftest | |
13247 | $RM conftest* | |
13248 | ||
13249 | fi | |
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13251 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13252 | ||
13253 | ||
13254 | ||
13255 | ||
13256 | hard_links="nottested" | |
13257 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13258 | # do not overwrite the value of need_locks provided by the user | |
13259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
13260 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
13261 | hard_links=yes | |
13262 | $RM conftest* | |
13263 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13264 | touch conftest.a | |
13265 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13266 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
13268 | $as_echo "$hard_links" >&6; } | |
13269 | if test "$hard_links" = no; then | |
13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13271 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13272 | need_locks=warn | |
13273 | fi | |
13274 | else | |
13275 | need_locks=no | |
13276 | fi | |
13277 | ||
13278 | ||
13279 | ||
13280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13281 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13282 | ||
13283 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13284 | case $host_os in | |
13285 | aix[4-9]*) | |
13286 | # If we're using GNU nm, then we don't want the "-C" option. | |
13287 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13288 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13289 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13290 | else | |
13291 | 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' | |
13292 | fi | |
13293 | ;; | |
13294 | pw32*) | |
13295 | export_symbols_cmds_CXX="$ltdll_cmds" | |
13296 | ;; | |
13297 | cygwin* | mingw* | cegcc*) | |
13298 | 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' | |
13299 | ;; | |
47aaa820 DWT |
13300 | *) |
13301 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13302 | ;; | |
13303 | esac | |
13304 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
13305 | ||
13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13307 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13308 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13309 | ||
13310 | with_gnu_ld_CXX=$with_gnu_ld | |
13311 | ||
13312 | ||
13313 | ||
13314 | ||
13315 | ||
13316 | ||
13317 | # | |
13318 | # Do we need to explicitly link libc? | |
13319 | # | |
13320 | case "x$archive_cmds_need_lc_CXX" in | |
13321 | x|xyes) | |
13322 | # Assume -lc should be added | |
13323 | archive_cmds_need_lc_CXX=yes | |
13324 | ||
13325 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13326 | case $archive_cmds_CXX in | |
13327 | *'~'*) | |
13328 | # FIXME: we may have to deal with multi-command sequences. | |
13329 | ;; | |
13330 | '$CC '*) | |
13331 | # Test whether the compiler implicitly links with -lc since on some | |
13332 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13333 | # to ld, don't add -lc before -lgcc. | |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13335 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13336 | $RM conftest* | |
13337 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13338 | ||
13339 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13340 | (eval $ac_compile) 2>&5 | |
13341 | ac_status=$? | |
13342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13343 | test $ac_status = 0; } 2>conftest.err; then | |
13344 | soname=conftest | |
13345 | lib=conftest | |
13346 | libobjs=conftest.$ac_objext | |
13347 | deplibs= | |
13348 | wl=$lt_prog_compiler_wl_CXX | |
13349 | pic_flag=$lt_prog_compiler_pic_CXX | |
13350 | compiler_flags=-v | |
13351 | linker_flags=-v | |
13352 | verstring= | |
13353 | output_objdir=. | |
13354 | libname=conftest | |
13355 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
13356 | allow_undefined_flag_CXX= | |
13357 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13358 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13359 | ac_status=$? | |
13360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13361 | test $ac_status = 0; } | |
13362 | then | |
13363 | archive_cmds_need_lc_CXX=no | |
13364 | else | |
13365 | archive_cmds_need_lc_CXX=yes | |
13366 | fi | |
13367 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
13368 | else | |
13369 | cat conftest.err 1>&5 | |
13370 | fi | |
13371 | $RM conftest* | |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
13373 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
13374 | ;; | |
13375 | esac | |
13376 | fi | |
13377 | ;; | |
13378 | esac | |
13379 | ||
13380 | ||
13381 | ||
13382 | ||
13383 | ||
13384 | ||
13385 | ||
13386 | ||
13387 | ||
13388 | ||
13389 | ||
13390 | ||
13391 | ||
13392 | ||
13393 | ||
13394 | ||
13395 | ||
13396 | ||
13397 | ||
13398 | ||
13399 | ||
13400 | ||
13401 | ||
13402 | ||
13403 | ||
13404 | ||
13405 | ||
13406 | ||
13407 | ||
13408 | ||
13409 | ||
13410 | ||
13411 | ||
13412 | ||
13413 | ||
13414 | ||
13415 | ||
13416 | ||
13417 | ||
13418 | ||
13419 | ||
13420 | ||
13421 | ||
13422 | ||
13423 | ||
13424 | ||
13425 | ||
13426 | ||
13427 | ||
13428 | ||
13429 | ||
13430 | ||
13431 | ||
13432 | ||
13433 | ||
13434 | ||
13435 | ||
13436 | ||
13437 | ||
13438 | ||
13439 | ||
13440 | ||
13441 | ||
13442 | ||
13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
13444 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
13445 | ||
13446 | library_names_spec= | |
13447 | libname_spec='lib$name' | |
13448 | soname_spec= | |
13449 | shrext_cmds=".so" | |
13450 | postinstall_cmds= | |
13451 | postuninstall_cmds= | |
13452 | finish_cmds= | |
13453 | finish_eval= | |
13454 | shlibpath_var= | |
13455 | shlibpath_overrides_runpath=unknown | |
13456 | version_type=none | |
13457 | dynamic_linker="$host_os ld.so" | |
13458 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13459 | need_lib_prefix=unknown | |
13460 | hardcode_into_libs=no | |
13461 | ||
13462 | # when you set need_version to no, make sure it does not cause -set_version | |
13463 | # flags to be left without arguments | |
13464 | need_version=unknown | |
13465 | ||
13466 | case $host_os in | |
13467 | aix3*) | |
13468 | version_type=linux | |
13469 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13470 | shlibpath_var=LIBPATH | |
13471 | ||
13472 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13473 | soname_spec='${libname}${release}${shared_ext}$major' | |
13474 | ;; | |
13475 | ||
13476 | aix[4-9]*) | |
13477 | version_type=linux | |
13478 | need_lib_prefix=no | |
13479 | need_version=no | |
13480 | hardcode_into_libs=yes | |
13481 | if test "$host_cpu" = ia64; then | |
13482 | # AIX 5 supports IA64 | |
13483 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13484 | shlibpath_var=LD_LIBRARY_PATH | |
13485 | else | |
13486 | # With GCC up to 2.95.x, collect2 would create an import file | |
13487 | # for dependence libraries. The import file would start with | |
13488 | # the line `#! .'. This would cause the generated library to | |
13489 | # depend on `.', always an invalid library. This was fixed in | |
13490 | # development snapshots of GCC prior to 3.0. | |
13491 | case $host_os in | |
13492 | aix4 | aix4.[01] | aix4.[01].*) | |
13493 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13494 | echo ' yes ' | |
13495 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13496 | : | |
13497 | else | |
13498 | can_build_shared=no | |
13499 | fi | |
13500 | ;; | |
13501 | esac | |
13502 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13503 | # soname into executable. Probably we can add versioning support to | |
13504 | # collect2, so additional links can be useful in future. | |
13505 | if test "$aix_use_runtimelinking" = yes; then | |
13506 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13507 | # instead of lib<name>.a to let people know that these are not | |
13508 | # typical AIX shared libraries. | |
13509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13510 | else | |
13511 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13512 | # and later when we are not doing run time linking. | |
13513 | library_names_spec='${libname}${release}.a $libname.a' | |
13514 | soname_spec='${libname}${release}${shared_ext}$major' | |
13515 | fi | |
13516 | shlibpath_var=LIBPATH | |
13517 | fi | |
13518 | ;; | |
13519 | ||
13520 | amigaos*) | |
13521 | case $host_cpu in | |
13522 | powerpc) | |
13523 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13524 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13526 | ;; | |
13527 | m68k) | |
13528 | library_names_spec='$libname.ixlibrary $libname.a' | |
13529 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13530 | 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' | |
13531 | ;; | |
13532 | esac | |
13533 | ;; | |
13534 | ||
13535 | beos*) | |
13536 | library_names_spec='${libname}${shared_ext}' | |
13537 | dynamic_linker="$host_os ld.so" | |
13538 | shlibpath_var=LIBRARY_PATH | |
13539 | ;; | |
13540 | ||
13541 | bsdi[45]*) | |
13542 | version_type=linux | |
13543 | need_version=no | |
13544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13545 | soname_spec='${libname}${release}${shared_ext}$major' | |
13546 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13547 | shlibpath_var=LD_LIBRARY_PATH | |
13548 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13549 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13550 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13551 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13552 | # libtool to hard-code these into programs | |
13553 | ;; | |
9c60689e | 13554 | |
47aaa820 DWT |
13555 | cygwin* | mingw* | pw32* | cegcc*) |
13556 | version_type=windows | |
13557 | shrext_cmds=".dll" | |
13558 | need_version=no | |
13559 | need_lib_prefix=no | |
9c60689e | 13560 | |
47aaa820 DWT |
13561 | case $GCC,$host_os in |
13562 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13563 | library_names_spec='$libname.dll.a' | |
13564 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13565 | postinstall_cmds='base_file=`basename \${file}`~ | |
13566 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13567 | dldir=$destdir/`dirname \$dlpath`~ | |
13568 | test -d \$dldir || mkdir -p \$dldir~ | |
13569 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13570 | chmod a+x \$dldir/$dlname~ | |
13571 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13572 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13573 | fi' | |
13574 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13575 | dlpath=$dir/\$dldll~ | |
13576 | $RM \$dlpath' | |
13577 | shlibpath_overrides_runpath=yes | |
9c60689e | 13578 | |
47aaa820 DWT |
13579 | case $host_os in |
13580 | cygwin*) | |
13581 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13582 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13583 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13584 | ;; | |
13585 | mingw* | cegcc*) | |
13586 | # MinGW DLLs use traditional 'lib' prefix | |
13587 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13588 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13589 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13590 | # It is most probably a Windows format PATH printed by | |
13591 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13592 | # path with ; separators, and with drive letters. We can handle the | |
13593 | # drive letters (cygwin fileutils understands them), so leave them, | |
13594 | # especially as we might pass files found there to a mingw objdump, | |
13595 | # which wouldn't understand a cygwinified path. Ahh. | |
13596 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13597 | else | |
13598 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13599 | fi | |
13600 | ;; | |
13601 | pw32*) | |
13602 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13603 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13604 | ;; | |
13605 | esac | |
13606 | ;; | |
9c60689e | 13607 | |
47aaa820 DWT |
13608 | *) |
13609 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13610 | ;; | |
13611 | esac | |
13612 | dynamic_linker='Win32 ld.exe' | |
13613 | # FIXME: first we should search . and the directory the executable is in | |
13614 | shlibpath_var=PATH | |
13615 | ;; | |
9c60689e | 13616 | |
47aaa820 DWT |
13617 | darwin* | rhapsody*) |
13618 | dynamic_linker="$host_os dyld" | |
13619 | version_type=darwin | |
13620 | need_lib_prefix=no | |
13621 | need_version=no | |
13622 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13623 | soname_spec='${libname}${release}${major}$shared_ext' | |
13624 | shlibpath_overrides_runpath=yes | |
13625 | shlibpath_var=DYLD_LIBRARY_PATH | |
13626 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13627 | |
47aaa820 DWT |
13628 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13629 | ;; | |
9c60689e | 13630 | |
47aaa820 DWT |
13631 | dgux*) |
13632 | version_type=linux | |
13633 | need_lib_prefix=no | |
13634 | need_version=no | |
13635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13636 | soname_spec='${libname}${release}${shared_ext}$major' | |
13637 | shlibpath_var=LD_LIBRARY_PATH | |
13638 | ;; | |
9c60689e | 13639 | |
47aaa820 DWT |
13640 | freebsd1*) |
13641 | dynamic_linker=no | |
13642 | ;; | |
9c60689e | 13643 | |
47aaa820 DWT |
13644 | freebsd* | dragonfly*) |
13645 | # DragonFly does not have aout. When/if they implement a new | |
13646 | # versioning mechanism, adjust this. | |
13647 | if test -x /usr/bin/objformat; then | |
13648 | objformat=`/usr/bin/objformat` | |
13649 | else | |
13650 | case $host_os in | |
13651 | freebsd[123]*) objformat=aout ;; | |
13652 | *) objformat=elf ;; | |
13653 | esac | |
13654 | fi | |
13655 | version_type=freebsd-$objformat | |
13656 | case $version_type in | |
13657 | freebsd-elf*) | |
13658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13659 | need_version=no | |
13660 | need_lib_prefix=no | |
13661 | ;; | |
13662 | freebsd-*) | |
13663 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13664 | need_version=yes | |
13665 | ;; | |
13666 | esac | |
13667 | shlibpath_var=LD_LIBRARY_PATH | |
13668 | case $host_os in | |
13669 | freebsd2*) | |
13670 | shlibpath_overrides_runpath=yes | |
13671 | ;; | |
13672 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13673 | shlibpath_overrides_runpath=yes | |
13674 | hardcode_into_libs=yes | |
13675 | ;; | |
13676 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13677 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13678 | shlibpath_overrides_runpath=no | |
13679 | hardcode_into_libs=yes | |
13680 | ;; | |
13681 | *) # from 4.6 on, and DragonFly | |
13682 | shlibpath_overrides_runpath=yes | |
13683 | hardcode_into_libs=yes | |
13684 | ;; | |
13685 | esac | |
13686 | ;; | |
9c60689e | 13687 | |
47aaa820 DWT |
13688 | gnu*) |
13689 | version_type=linux | |
13690 | need_lib_prefix=no | |
13691 | need_version=no | |
13692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13693 | soname_spec='${libname}${release}${shared_ext}$major' | |
13694 | shlibpath_var=LD_LIBRARY_PATH | |
13695 | hardcode_into_libs=yes | |
13696 | ;; | |
9c60689e | 13697 | |
47aaa820 DWT |
13698 | hpux9* | hpux10* | hpux11*) |
13699 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13700 | # link against other versions. | |
13701 | version_type=sunos | |
13702 | need_lib_prefix=no | |
13703 | need_version=no | |
13704 | case $host_cpu in | |
13705 | ia64*) | |
13706 | shrext_cmds='.so' | |
13707 | hardcode_into_libs=yes | |
13708 | dynamic_linker="$host_os dld.so" | |
13709 | shlibpath_var=LD_LIBRARY_PATH | |
13710 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13712 | soname_spec='${libname}${release}${shared_ext}$major' | |
13713 | if test "X$HPUX_IA64_MODE" = X32; then | |
13714 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13715 | else | |
13716 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13717 | fi | |
13718 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13719 | ;; | |
13720 | hppa*64*) | |
13721 | shrext_cmds='.sl' | |
13722 | hardcode_into_libs=yes | |
13723 | dynamic_linker="$host_os dld.sl" | |
13724 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13725 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13726 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13727 | soname_spec='${libname}${release}${shared_ext}$major' | |
13728 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13729 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13730 | ;; | |
13731 | *) | |
13732 | shrext_cmds='.sl' | |
13733 | dynamic_linker="$host_os dld.sl" | |
13734 | shlibpath_var=SHLIB_PATH | |
13735 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13737 | soname_spec='${libname}${release}${shared_ext}$major' | |
13738 | ;; | |
13739 | esac | |
13740 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13741 | postinstall_cmds='chmod 555 $lib' | |
13742 | ;; | |
9c60689e | 13743 | |
47aaa820 DWT |
13744 | interix[3-9]*) |
13745 | version_type=linux | |
13746 | need_lib_prefix=no | |
13747 | need_version=no | |
13748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13749 | soname_spec='${libname}${release}${shared_ext}$major' | |
13750 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13751 | shlibpath_var=LD_LIBRARY_PATH | |
13752 | shlibpath_overrides_runpath=no | |
13753 | hardcode_into_libs=yes | |
13754 | ;; | |
9c60689e | 13755 | |
47aaa820 DWT |
13756 | irix5* | irix6* | nonstopux*) |
13757 | case $host_os in | |
13758 | nonstopux*) version_type=nonstopux ;; | |
13759 | *) | |
13760 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13761 | version_type=linux | |
13762 | else | |
13763 | version_type=irix | |
13764 | fi ;; | |
13765 | esac | |
13766 | need_lib_prefix=no | |
13767 | need_version=no | |
13768 | soname_spec='${libname}${release}${shared_ext}$major' | |
13769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13770 | case $host_os in | |
13771 | irix5* | nonstopux*) | |
13772 | libsuff= shlibsuff= | |
13773 | ;; | |
13774 | *) | |
13775 | case $LD in # libtool.m4 will add one of these switches to LD | |
13776 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13777 | libsuff= shlibsuff= libmagic=32-bit;; | |
13778 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13779 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13780 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13781 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13782 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13783 | esac | |
13784 | ;; | |
13785 | esac | |
13786 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13787 | shlibpath_overrides_runpath=no | |
13788 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13789 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13790 | hardcode_into_libs=yes | |
13791 | ;; | |
9c60689e | 13792 | |
47aaa820 DWT |
13793 | # No shared lib support for Linux oldld, aout, or coff. |
13794 | linux*oldld* | linux*aout* | linux*coff*) | |
13795 | dynamic_linker=no | |
13796 | ;; | |
9c60689e | 13797 | |
47aaa820 | 13798 | # This must be Linux ELF. |
51ac63c5 | 13799 | linux* | k*bsd*-gnu) |
47aaa820 DWT |
13800 | version_type=linux |
13801 | need_lib_prefix=no | |
13802 | need_version=no | |
13803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13804 | soname_spec='${libname}${release}${shared_ext}$major' | |
13805 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13806 | shlibpath_var=LD_LIBRARY_PATH | |
13807 | shlibpath_overrides_runpath=no | |
13808 | # Some binutils ld are patched to set DT_RUNPATH | |
13809 | save_LDFLAGS=$LDFLAGS | |
13810 | save_libdir=$libdir | |
13811 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13812 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13814 | /* end confdefs.h. */ | |
9c60689e | 13815 | |
47aaa820 DWT |
13816 | int |
13817 | main () | |
13818 | { | |
9c60689e | 13819 | |
47aaa820 DWT |
13820 | ; |
13821 | return 0; | |
13822 | } | |
13823 | _ACEOF | |
13824 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13825 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13826 | shlibpath_overrides_runpath=yes | |
9c60689e | 13827 | fi |
47aaa820 DWT |
13828 | fi |
13829 | rm -f core conftest.err conftest.$ac_objext \ | |
13830 | conftest$ac_exeext conftest.$ac_ext | |
13831 | LDFLAGS=$save_LDFLAGS | |
13832 | libdir=$save_libdir | |
9c60689e | 13833 | |
47aaa820 DWT |
13834 | # This implies no fast_install, which is unacceptable. |
13835 | # Some rework will be needed to allow for fast_install | |
13836 | # before this can be enabled. | |
13837 | hardcode_into_libs=yes | |
9c60689e | 13838 | |
47aaa820 DWT |
13839 | # Append ld.so.conf contents to the search path |
13840 | if test -f /etc/ld.so.conf; then | |
13841 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
13842 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13843 | fi | |
9c60689e | 13844 | |
47aaa820 DWT |
13845 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13846 | # powerpc, because MkLinux only supported shared libraries with the | |
13847 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13848 | # most powerpc-linux boxes support dynamic linking these days and | |
13849 | # people can always --disable-shared, the test was removed, and we | |
13850 | # assume the GNU/Linux dynamic linker is in use. | |
13851 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 13852 | ;; |
47aaa820 | 13853 | |
47aaa820 DWT |
13854 | netbsd*) |
13855 | version_type=sunos | |
13856 | need_lib_prefix=no | |
13857 | need_version=no | |
13858 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13860 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13861 | dynamic_linker='NetBSD (a.out) ld.so' | |
13862 | else | |
13863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13864 | soname_spec='${libname}${release}${shared_ext}$major' | |
13865 | dynamic_linker='NetBSD ld.elf_so' | |
13866 | fi | |
13867 | shlibpath_var=LD_LIBRARY_PATH | |
13868 | shlibpath_overrides_runpath=yes | |
13869 | hardcode_into_libs=yes | |
9c60689e | 13870 | ;; |
9c60689e | 13871 | |
47aaa820 DWT |
13872 | newsos6) |
13873 | version_type=linux | |
13874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13875 | shlibpath_var=LD_LIBRARY_PATH | |
13876 | shlibpath_overrides_runpath=yes | |
13877 | ;; | |
9c60689e | 13878 | |
47aaa820 DWT |
13879 | *nto* | *qnx*) |
13880 | version_type=qnx | |
13881 | need_lib_prefix=no | |
13882 | need_version=no | |
13883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13884 | soname_spec='${libname}${release}${shared_ext}$major' | |
13885 | shlibpath_var=LD_LIBRARY_PATH | |
13886 | shlibpath_overrides_runpath=no | |
13887 | hardcode_into_libs=yes | |
13888 | dynamic_linker='ldqnx.so' | |
13889 | ;; | |
9c60689e | 13890 | |
47aaa820 DWT |
13891 | openbsd*) |
13892 | version_type=sunos | |
13893 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13894 | need_lib_prefix=no | |
13895 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13896 | case $host_os in | |
13897 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13898 | *) need_version=no ;; | |
13899 | esac | |
13900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13901 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13902 | shlibpath_var=LD_LIBRARY_PATH | |
13903 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13904 | case $host_os in | |
13905 | openbsd2.[89] | openbsd2.[89].*) | |
13906 | shlibpath_overrides_runpath=no | |
13907 | ;; | |
13908 | *) | |
13909 | shlibpath_overrides_runpath=yes | |
13910 | ;; | |
13911 | esac | |
13912 | else | |
13913 | shlibpath_overrides_runpath=yes | |
13914 | fi | |
13915 | ;; | |
9c60689e | 13916 | |
47aaa820 DWT |
13917 | os2*) |
13918 | libname_spec='$name' | |
13919 | shrext_cmds=".dll" | |
13920 | need_lib_prefix=no | |
13921 | library_names_spec='$libname${shared_ext} $libname.a' | |
13922 | dynamic_linker='OS/2 ld.exe' | |
13923 | shlibpath_var=LIBPATH | |
13924 | ;; | |
9c60689e | 13925 | |
47aaa820 DWT |
13926 | osf3* | osf4* | osf5*) |
13927 | version_type=osf | |
13928 | need_lib_prefix=no | |
13929 | need_version=no | |
13930 | soname_spec='${libname}${release}${shared_ext}$major' | |
13931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13932 | shlibpath_var=LD_LIBRARY_PATH | |
13933 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13934 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13935 | ;; | |
9c60689e | 13936 | |
47aaa820 DWT |
13937 | rdos*) |
13938 | dynamic_linker=no | |
13939 | ;; | |
9c60689e | 13940 | |
47aaa820 DWT |
13941 | solaris*) |
13942 | version_type=linux | |
13943 | need_lib_prefix=no | |
13944 | need_version=no | |
13945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13946 | soname_spec='${libname}${release}${shared_ext}$major' | |
13947 | shlibpath_var=LD_LIBRARY_PATH | |
13948 | shlibpath_overrides_runpath=yes | |
13949 | hardcode_into_libs=yes | |
13950 | # ldd complains unless libraries are executable | |
13951 | postinstall_cmds='chmod +x $lib' | |
13952 | ;; | |
9c60689e | 13953 | |
47aaa820 DWT |
13954 | sunos4*) |
13955 | version_type=sunos | |
13956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13957 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13958 | shlibpath_var=LD_LIBRARY_PATH | |
13959 | shlibpath_overrides_runpath=yes | |
13960 | if test "$with_gnu_ld" = yes; then | |
13961 | need_lib_prefix=no | |
13962 | fi | |
13963 | need_version=yes | |
13964 | ;; | |
9c60689e | 13965 | |
47aaa820 DWT |
13966 | sysv4 | sysv4.3*) |
13967 | version_type=linux | |
13968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13969 | soname_spec='${libname}${release}${shared_ext}$major' | |
13970 | shlibpath_var=LD_LIBRARY_PATH | |
13971 | case $host_vendor in | |
13972 | sni) | |
13973 | shlibpath_overrides_runpath=no | |
13974 | need_lib_prefix=no | |
13975 | runpath_var=LD_RUN_PATH | |
9c60689e | 13976 | ;; |
47aaa820 DWT |
13977 | siemens) |
13978 | need_lib_prefix=no | |
9c60689e | 13979 | ;; |
47aaa820 DWT |
13980 | motorola) |
13981 | need_lib_prefix=no | |
13982 | need_version=no | |
13983 | shlibpath_overrides_runpath=no | |
13984 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13985 | ;; | |
13986 | esac | |
9c60689e | 13987 | ;; |
9c60689e | 13988 | |
47aaa820 DWT |
13989 | sysv4*MP*) |
13990 | if test -d /usr/nec ;then | |
13991 | version_type=linux | |
13992 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13993 | soname_spec='$libname${shared_ext}.$major' | |
13994 | shlibpath_var=LD_LIBRARY_PATH | |
13995 | fi | |
13996 | ;; | |
9c60689e | 13997 | |
47aaa820 DWT |
13998 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13999 | version_type=freebsd-elf | |
14000 | need_lib_prefix=no | |
14001 | need_version=no | |
14002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14003 | soname_spec='${libname}${release}${shared_ext}$major' | |
14004 | shlibpath_var=LD_LIBRARY_PATH | |
14005 | shlibpath_overrides_runpath=yes | |
14006 | hardcode_into_libs=yes | |
14007 | if test "$with_gnu_ld" = yes; then | |
14008 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14009 | else | |
14010 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14011 | case $host_os in | |
14012 | sco3.2v5*) | |
14013 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14014 | ;; | |
14015 | esac | |
14016 | fi | |
14017 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14018 | ;; | |
9c60689e | 14019 | |
47aaa820 DWT |
14020 | tpf*) |
14021 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14022 | version_type=linux | |
14023 | need_lib_prefix=no | |
14024 | need_version=no | |
14025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14026 | shlibpath_var=LD_LIBRARY_PATH | |
14027 | shlibpath_overrides_runpath=no | |
14028 | hardcode_into_libs=yes | |
14029 | ;; | |
9c60689e | 14030 | |
47aaa820 DWT |
14031 | uts4*) |
14032 | version_type=linux | |
14033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14034 | soname_spec='${libname}${release}${shared_ext}$major' | |
14035 | shlibpath_var=LD_LIBRARY_PATH | |
14036 | ;; | |
9c60689e | 14037 | |
47aaa820 DWT |
14038 | *) |
14039 | dynamic_linker=no | |
e9c9a47c DWT |
14040 | ;; |
14041 | esac | |
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14043 | $as_echo "$dynamic_linker" >&6; } | |
14044 | test "$dynamic_linker" = no && can_build_shared=no | |
14045 | ||
14046 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14047 | if test "$GCC" = yes; then | |
14048 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 14049 | fi |
9c60689e | 14050 | |
e9c9a47c DWT |
14051 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14052 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 14053 | fi |
e9c9a47c DWT |
14054 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
14055 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 14056 | fi |
9c60689e | 14057 | |
9c60689e | 14058 | |
9c60689e | 14059 | |
9c60689e | 14060 | |
47aaa820 | 14061 | |
47aaa820 | 14062 | |
47aaa820 | 14063 | |
9c60689e | 14064 | |
9c60689e | 14065 | |
47aaa820 | 14066 | |
47aaa820 | 14067 | |
47aaa820 | 14068 | |
47aaa820 | 14069 | |
47aaa820 | 14070 | |
47aaa820 | 14071 | |
47aaa820 | 14072 | |
47aaa820 | 14073 | |
9c60689e | 14074 | |
9c60689e | 14075 | |
9c60689e | 14076 | |
9c60689e | 14077 | |
9c60689e | 14078 | |
e9c9a47c DWT |
14079 | |
14080 | ||
14081 | ||
14082 | ||
14083 | ||
14084 | ||
14085 | ||
14086 | ||
14087 | ||
14088 | ||
14089 | ||
14090 | ||
14091 | ||
14092 | ||
14093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
14094 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14095 | hardcode_action_CXX= | |
14096 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14097 | test -n "$runpath_var_CXX" || | |
14098 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14099 | ||
14100 | # We can hardcode non-existent directories. | |
14101 | if test "$hardcode_direct_CXX" != no && | |
14102 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14103 | # have to relink, otherwise we might link with an installed library | |
14104 | # when we should be linking with a yet-to-be-installed one | |
14105 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14106 | test "$hardcode_minus_L_CXX" != no; then | |
14107 | # Linking always hardcodes the temporary library directory. | |
14108 | hardcode_action_CXX=relink | |
14109 | else | |
14110 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14111 | hardcode_action_CXX=immediate | |
14112 | fi | |
14113 | else | |
14114 | # We cannot hardcode anything, or else we can only hardcode existing | |
14115 | # directories. | |
14116 | hardcode_action_CXX=unsupported | |
14117 | fi | |
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
14119 | $as_echo "$hardcode_action_CXX" >&6; } | |
14120 | ||
14121 | if test "$hardcode_action_CXX" = relink || | |
14122 | test "$inherit_rpath_CXX" = yes; then | |
14123 | # Fast installation is not supported | |
14124 | enable_fast_install=no | |
14125 | elif test "$shlibpath_overrides_runpath" = yes || | |
14126 | test "$enable_shared" = no; then | |
14127 | # Fast installation is not necessary | |
14128 | enable_fast_install=needless | |
47aaa820 | 14129 | fi |
9c60689e | 14130 | |
47aaa820 | 14131 | |
47aaa820 | 14132 | |
e9c9a47c DWT |
14133 | |
14134 | ||
14135 | ||
14136 | ||
14137 | fi # test -n "$compiler" | |
14138 | ||
14139 | CC=$lt_save_CC | |
14140 | LDCXX=$LD | |
14141 | LD=$lt_save_LD | |
14142 | GCC=$lt_save_GCC | |
14143 | with_gnu_ld=$lt_save_with_gnu_ld | |
14144 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
14145 | lt_cv_path_LD=$lt_save_path_LD | |
14146 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
14147 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
14148 | fi # test "$_lt_caught_CXX_error" != yes | |
14149 | ||
14150 | ac_ext=c | |
14151 | ac_cpp='$CPP $CPPFLAGS' | |
14152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14155 | ||
14156 | ||
14157 | ac_ext=mm | |
14158 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
14159 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14160 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14161 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
14162 | if test -n "$ac_tool_prefix"; then | |
14163 | for ac_prog in g++ objc++ objcxx c++ CXX | |
14164 | do | |
14165 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
14166 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
632b71ea DWT |
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14168 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 14169 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : |
632b71ea DWT |
14170 | $as_echo_n "(cached) " >&6 |
14171 | else | |
e9c9a47c DWT |
14172 | if test -n "$OBJCXX"; then |
14173 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
632b71ea DWT |
14174 | else |
14175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14176 | for as_dir in $PATH | |
14177 | do | |
14178 | IFS=$as_save_IFS | |
14179 | test -z "$as_dir" && as_dir=. | |
14180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 14182 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
632b71ea DWT |
14183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14184 | break 2 | |
14185 | fi | |
14186 | done | |
14187 | done | |
14188 | IFS=$as_save_IFS | |
14189 | ||
14190 | fi | |
14191 | fi | |
e9c9a47c DWT |
14192 | OBJCXX=$ac_cv_prog_OBJCXX |
14193 | if test -n "$OBJCXX"; then | |
14194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
14195 | $as_echo "$OBJCXX" >&6; } | |
632b71ea DWT |
14196 | else |
14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14198 | $as_echo "no" >&6; } | |
14199 | fi | |
14200 | ||
14201 | ||
e9c9a47c DWT |
14202 | test -n "$OBJCXX" && break |
14203 | done | |
632b71ea | 14204 | fi |
e9c9a47c DWT |
14205 | if test -z "$OBJCXX"; then |
14206 | ac_ct_OBJCXX=$OBJCXX | |
14207 | for ac_prog in g++ objc++ objcxx c++ CXX | |
47aaa820 DWT |
14208 | do |
14209 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14210 | set dummy $ac_prog; ac_word=$2 | |
14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14212 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 14213 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : |
47aaa820 DWT |
14214 | $as_echo_n "(cached) " >&6 |
14215 | else | |
e9c9a47c DWT |
14216 | if test -n "$ac_ct_OBJCXX"; then |
14217 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
47aaa820 DWT |
14218 | else |
14219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14220 | for as_dir in $PATH | |
14221 | do | |
14222 | IFS=$as_save_IFS | |
14223 | test -z "$as_dir" && as_dir=. | |
14224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 14226 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
47aaa820 DWT |
14227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14228 | break 2 | |
14229 | fi | |
14230 | done | |
14231 | done | |
14232 | IFS=$as_save_IFS | |
9c60689e | 14233 | |
9c60689e | 14234 | fi |
9c60689e | 14235 | fi |
e9c9a47c DWT |
14236 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
14237 | if test -n "$ac_ct_OBJCXX"; then | |
14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
14239 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
47aaa820 DWT |
14240 | else |
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14242 | $as_echo "no" >&6; } | |
9c60689e DWT |
14243 | fi |
14244 | ||
14245 | ||
e9c9a47c | 14246 | test -n "$ac_ct_OBJCXX" && break |
47aaa820 | 14247 | done |
e9c9a47c DWT |
14248 | |
14249 | if test "x$ac_ct_OBJCXX" = x; then | |
14250 | OBJCXX="g++" | |
14251 | else | |
14252 | case $cross_compiling:$ac_tool_warned in | |
14253 | yes:) | |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14255 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14256 | ac_tool_warned=yes ;; | |
14257 | esac | |
14258 | OBJCXX=$ac_ct_OBJCXX | |
14259 | fi | |
14260 | fi | |
14261 | ||
14262 | # Provide some information about the compiler. | |
14263 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
14264 | set X $ac_compile | |
14265 | ac_compiler=$2 | |
14266 | for ac_option in --version -v -V -qversion; do | |
14267 | { { ac_try="$ac_compiler $ac_option >&5" | |
632b71ea DWT |
14268 | case "(($ac_try" in |
14269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14270 | *) ac_try_echo=$ac_try;; | |
14271 | esac | |
14272 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
14273 | $as_echo "$ac_try_echo"; } >&5 | |
e9c9a47c | 14274 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
632b71ea | 14275 | ac_status=$? |
e9c9a47c DWT |
14276 | if test -s conftest.err; then |
14277 | sed '10a\ | |
14278 | ... rest of stderr output deleted ... | |
14279 | 10q' conftest.err >conftest.er1 | |
14280 | cat conftest.er1 >&5 | |
14281 | fi | |
14282 | rm -f conftest.er1 conftest.err | |
632b71ea DWT |
14283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14284 | test $ac_status = 0; } | |
e9c9a47c | 14285 | done |
9c60689e | 14286 | |
e9c9a47c DWT |
14287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
14288 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
14289 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
632b71ea DWT |
14290 | $as_echo_n "(cached) " >&6 |
14291 | else | |
e9c9a47c | 14292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
632b71ea | 14293 | /* end confdefs.h. */ |
e9c9a47c DWT |
14294 | |
14295 | int | |
14296 | main () | |
14297 | { | |
14298 | #ifndef __GNUC__ | |
14299 | choke me | |
14300 | #endif | |
14301 | ||
14302 | ; | |
14303 | return 0; | |
14304 | } | |
632b71ea | 14305 | _ACEOF |
e9c9a47c DWT |
14306 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
14307 | ac_compiler_gnu=yes | |
14308 | else | |
14309 | ac_compiler_gnu=no | |
632b71ea | 14310 | fi |
e9c9a47c DWT |
14311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14312 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 14313 | |
632b71ea | 14314 | fi |
e9c9a47c DWT |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
14316 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
14317 | if test $ac_compiler_gnu = yes; then | |
14318 | GOBJCXX=yes | |
14319 | else | |
14320 | GOBJCXX= | |
632b71ea | 14321 | fi |
e9c9a47c DWT |
14322 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
14323 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
14325 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
14326 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
632b71ea | 14327 | $as_echo_n "(cached) " >&6 |
47aaa820 | 14328 | else |
e9c9a47c DWT |
14329 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
14330 | ac_objcxx_werror_flag=yes | |
14331 | ac_cv_prog_objcxx_g=no | |
14332 | OBJCXXFLAGS="-g" | |
14333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 14334 | /* end confdefs.h. */ |
9c60689e | 14335 | |
e9c9a47c DWT |
14336 | int |
14337 | main () | |
14338 | { | |
9c60689e | 14339 | |
e9c9a47c DWT |
14340 | ; |
14341 | return 0; | |
14342 | } | |
14343 | _ACEOF | |
14344 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
14345 | ac_cv_prog_objcxx_g=yes | |
632b71ea | 14346 | else |
e9c9a47c DWT |
14347 | OBJCXXFLAGS="" |
14348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14349 | /* end confdefs.h. */ | |
9c60689e | 14350 | |
e9c9a47c DWT |
14351 | int |
14352 | main () | |
14353 | { | |
9c60689e | 14354 | |
e9c9a47c DWT |
14355 | ; |
14356 | return 0; | |
14357 | } | |
14358 | _ACEOF | |
14359 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
9c60689e | 14360 | |
47aaa820 | 14361 | else |
e9c9a47c DWT |
14362 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
14363 | OBJCXXFLAGS="-g" | |
14364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14365 | /* end confdefs.h. */ | |
9c60689e | 14366 | |
e9c9a47c DWT |
14367 | int |
14368 | main () | |
14369 | { | |
9c60689e | 14370 | |
e9c9a47c DWT |
14371 | ; |
14372 | return 0; | |
14373 | } | |
14374 | _ACEOF | |
14375 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
14376 | ac_cv_prog_objcxx_g=yes | |
47aaa820 | 14377 | fi |
e9c9a47c | 14378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 14379 | fi |
e9c9a47c | 14380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 14381 | fi |
e9c9a47c DWT |
14382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14383 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
790e5246 | 14384 | fi |
e9c9a47c DWT |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
14386 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
14387 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
14388 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
14389 | elif test $ac_cv_prog_objcxx_g = yes; then | |
14390 | if test "$GOBJCXX" = yes; then | |
14391 | OBJCXXFLAGS="-g -O2" | |
14392 | else | |
14393 | OBJCXXFLAGS="-g" | |
632b71ea | 14394 | fi |
632b71ea | 14395 | else |
e9c9a47c DWT |
14396 | if test "$GOBJCXX" = yes; then |
14397 | OBJCXXFLAGS="-O2" | |
14398 | else | |
14399 | OBJCXXFLAGS= | |
14400 | fi | |
632b71ea | 14401 | fi |
e9c9a47c DWT |
14402 | ac_ext=c |
14403 | ac_cpp='$CPP $CPPFLAGS' | |
14404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 14407 | |
9c60689e | 14408 | |
e9c9a47c DWT |
14409 | # Check whether --with-frameworks was given. |
14410 | if test "${with_frameworks+set}" = set; then : | |
14411 | withval=$with_frameworks; | |
14412 | for framework in $withval; do | |
9c60689e | 14413 | |
e9c9a47c DWT |
14414 | for element in -F$framework; do |
14415 | haveit= | |
14416 | for x in $CFLAGS; do | |
9c60689e | 14417 | |
e9c9a47c DWT |
14418 | acl_save_prefix="$prefix" |
14419 | prefix="$acl_final_prefix" | |
14420 | acl_save_exec_prefix="$exec_prefix" | |
14421 | exec_prefix="$acl_final_exec_prefix" | |
14422 | eval x=\"$x\" | |
14423 | exec_prefix="$acl_save_exec_prefix" | |
14424 | prefix="$acl_save_prefix" | |
14425 | ||
14426 | if test "X$x" = "X$element"; then | |
14427 | haveit=yes | |
14428 | break | |
14429 | fi | |
14430 | done | |
14431 | if test -z "$haveit"; then | |
14432 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
14433 | fi | |
9c60689e | 14434 | done |
9c60689e | 14435 | |
94690cff | 14436 | |
e9c9a47c DWT |
14437 | for element in -F$framework; do |
14438 | haveit= | |
14439 | for x in $CXXFLAGS; do | |
9c60689e | 14440 | |
e9c9a47c DWT |
14441 | acl_save_prefix="$prefix" |
14442 | prefix="$acl_final_prefix" | |
14443 | acl_save_exec_prefix="$exec_prefix" | |
14444 | exec_prefix="$acl_final_exec_prefix" | |
14445 | eval x=\"$x\" | |
14446 | exec_prefix="$acl_save_exec_prefix" | |
14447 | prefix="$acl_save_prefix" | |
9c60689e | 14448 | |
e9c9a47c DWT |
14449 | if test "X$x" = "X$element"; then |
14450 | haveit=yes | |
14451 | break | |
14452 | fi | |
14453 | done | |
14454 | if test -z "$haveit"; then | |
14455 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
14456 | fi | |
14457 | done | |
9c60689e | 14458 | |
e9c9a47c DWT |
14459 | |
14460 | for element in -F$framework; do | |
14461 | haveit= | |
14462 | for x in $OBJCCXXFLAGS; do | |
14463 | ||
14464 | acl_save_prefix="$prefix" | |
14465 | prefix="$acl_final_prefix" | |
14466 | acl_save_exec_prefix="$exec_prefix" | |
14467 | exec_prefix="$acl_final_exec_prefix" | |
14468 | eval x=\"$x\" | |
14469 | exec_prefix="$acl_save_exec_prefix" | |
14470 | prefix="$acl_save_prefix" | |
14471 | ||
14472 | if test "X$x" = "X$element"; then | |
14473 | haveit=yes | |
14474 | break | |
14475 | fi | |
14476 | done | |
14477 | if test -z "$haveit"; then | |
14478 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" | |
14479 | fi | |
9c60689e | 14480 | done |
632b71ea | 14481 | |
e9c9a47c | 14482 | done |
9c60689e | 14483 | |
e9c9a47c | 14484 | fi |
9c60689e | 14485 | |
e9c9a47c DWT |
14486 | ac_ext=cpp |
14487 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14488 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14489 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14490 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e DWT |
14491 | |
14492 | ||
632b71ea | 14493 | apr_found="no" |
9c60689e | 14494 | |
632b71ea DWT |
14495 | if test "$target_os" = "os2-emx"; then |
14496 | # Scripts don't pass test -x on OS/2 | |
14497 | TEST_X="test -f" | |
14498 | else | |
14499 | TEST_X="test -x" | |
14500 | fi | |
9c60689e | 14501 | |
632b71ea | 14502 | acceptable_majors="1" |
9c60689e | 14503 | |
632b71ea DWT |
14504 | apr_temp_acceptable_apr_config="" |
14505 | for apr_temp_major in $acceptable_majors | |
14506 | do | |
14507 | case $apr_temp_major in | |
14508 | 0) | |
14509 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
14510 | ;; | |
14511 | *) | |
14512 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
14513 | ;; | |
14514 | esac | |
14515 | done | |
9c60689e | 14516 | |
632b71ea DWT |
14517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 |
14518 | $as_echo_n "checking for APR... " >&6; } | |
9c60689e | 14519 | |
632b71ea DWT |
14520 | # Check whether --with-apr was given. |
14521 | if test "${with_apr+set}" = set; then : | |
14522 | withval=$with_apr; | |
14523 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
14524 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
14525 | fi | |
9c60689e | 14526 | |
632b71ea DWT |
14527 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config |
14528 | do | |
14529 | for lookdir in "$withval/bin" "$withval" | |
14530 | do | |
14531 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
14532 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
9c60689e | 14533 | |
632b71ea DWT |
14534 | apr_found="yes" |
14535 | break 2 | |
14536 | fi | |
14537 | done | |
14538 | done | |
9c60689e | 14539 | |
632b71ea DWT |
14540 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then |
14541 | apr_config="$withval" | |
14542 | apr_found="yes" | |
14543 | fi | |
9c60689e | 14544 | |
632b71ea DWT |
14545 | if test "$apr_found" != "yes"; then |
14546 | as_fn_error "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5 | |
14547 | fi | |
9c60689e | 14548 | |
632b71ea | 14549 | else |
9c60689e | 14550 | |
632b71ea DWT |
14551 | if test -n "1" && test "1" = "1"; then |
14552 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14553 | do | |
14554 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
14555 | apr_config="$apr_temp_apr_config_file" | |
9c60689e | 14556 | |
632b71ea DWT |
14557 | apr_found="yes" |
14558 | break | |
14559 | else | |
14560 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
14561 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
14562 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
9c60689e | 14563 | |
632b71ea DWT |
14564 | apr_found="yes" |
14565 | break 2 | |
14566 | fi | |
14567 | done | |
14568 | fi | |
14569 | done | |
14570 | fi | |
14571 | if test "$apr_found" = "no" && test -d ""; then | |
14572 | apr_temp_abs_srcdir="`cd && pwd`" | |
14573 | apr_found="reconfig" | |
14574 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
14575 | case $apr_bundled_major in | |
14576 | "") | |
14577 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
14578 | ;; | |
14579 | 0) | |
14580 | apr_temp_apr_config_file="apr-config" | |
14581 | ;; | |
14582 | *) | |
14583 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
14584 | ;; | |
14585 | esac | |
14586 | if test -n ""; then | |
14587 | apr_config="/$apr_temp_apr_config_file" | |
14588 | else | |
14589 | apr_config="/$apr_temp_apr_config_file" | |
14590 | fi | |
14591 | fi | |
9c60689e | 14592 | |
632b71ea | 14593 | fi |
9c60689e | 14594 | |
9c60689e | 14595 | |
632b71ea DWT |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 |
14597 | $as_echo "$apr_found" >&6; } | |
9c60689e | 14598 | |
632b71ea DWT |
14599 | case $apr_found in #( |
14600 | yes) : | |
9c60689e DWT |
14601 | |
14602 | ||
632b71ea DWT |
14603 | for element in `$apr_config --includes`; do |
14604 | haveit= | |
14605 | for x in $CPPFLAGS; do | |
9c60689e DWT |
14606 | |
14607 | acl_save_prefix="$prefix" | |
14608 | prefix="$acl_final_prefix" | |
14609 | acl_save_exec_prefix="$exec_prefix" | |
14610 | exec_prefix="$acl_final_exec_prefix" | |
632b71ea | 14611 | eval x=\"$x\" |
9c60689e DWT |
14612 | exec_prefix="$acl_save_exec_prefix" |
14613 | prefix="$acl_save_prefix" | |
14614 | ||
632b71ea DWT |
14615 | if test "X$x" = "X$element"; then |
14616 | haveit=yes | |
14617 | break | |
9c60689e | 14618 | fi |
632b71ea DWT |
14619 | done |
14620 | if test -z "$haveit"; then | |
14621 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9c60689e | 14622 | fi |
632b71ea | 14623 | done |
9c60689e | 14624 | |
632b71ea | 14625 | LTLIBAPR=`$apr_config --link-libtool` |
9c60689e | 14626 | |
632b71ea DWT |
14627 | ;; #( |
14628 | *) : | |
14629 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
14630 | esac | |
14631 | ||
14632 | ||
5053a6d1 DWT |
14633 | # Check whether --enable-javascript was given. |
14634 | if test "${enable_javascript+set}" = set; then : | |
14635 | enableval=$enable_javascript; | |
14636 | case $enableval in #( | |
14637 | yes) : | |
9c60689e DWT |
14638 | |
14639 | ||
9c60689e | 14640 | |
5053a6d1 DWT |
14641 | pkg_failed=no |
14642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
14643 | $as_echo_n "checking for WEBKIT... " >&6; } | |
14644 | ||
51ac63c5 DWT |
14645 | if test -n "$WEBKIT_CFLAGS"; then |
14646 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
14647 | elif test -n "$PKG_CONFIG"; then | |
14648 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
14649 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
14650 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
14651 | ac_status=$? | |
14652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14653 | test $ac_status = 0; }; then | |
14654 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
9c60689e | 14655 | else |
5053a6d1 | 14656 | pkg_failed=yes |
9c60689e | 14657 | fi |
51ac63c5 DWT |
14658 | else |
14659 | pkg_failed=untried | |
632b71ea | 14660 | fi |
51ac63c5 DWT |
14661 | if test -n "$WEBKIT_LIBS"; then |
14662 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
14663 | elif test -n "$PKG_CONFIG"; then | |
14664 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
14665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
14666 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
14667 | ac_status=$? | |
14668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14669 | test $ac_status = 0; }; then | |
14670 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
9c60689e | 14671 | else |
5053a6d1 | 14672 | pkg_failed=yes |
9c60689e | 14673 | fi |
51ac63c5 DWT |
14674 | else |
14675 | pkg_failed=untried | |
9c60689e DWT |
14676 | fi |
14677 | ||
14678 | ||
14679 | ||
5053a6d1 | 14680 | if test $pkg_failed = yes; then |
9c60689e | 14681 | |
5053a6d1 DWT |
14682 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
14683 | _pkg_short_errors_supported=yes | |
9c60689e | 14684 | else |
5053a6d1 DWT |
14685 | _pkg_short_errors_supported=no |
14686 | fi | |
14687 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 14688 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1` |
5053a6d1 | 14689 | else |
51ac63c5 | 14690 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1` |
5053a6d1 DWT |
14691 | fi |
14692 | # Put the nasty error message in config.log where it belongs | |
14693 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
632b71ea | 14694 | |
5053a6d1 DWT |
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14696 | $as_echo "no" >&6; } | |
14697 | ||
14698 | ||
14699 | pkg_failed=no | |
14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
14701 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 14702 | |
51ac63c5 DWT |
14703 | if test -n "$WEBKIT_CFLAGS"; then |
14704 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
14705 | elif test -n "$PKG_CONFIG"; then | |
14706 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
14707 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
14708 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
14709 | ac_status=$? | |
14710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14711 | test $ac_status = 0; }; then | |
14712 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
14713 | else | |
14714 | pkg_failed=yes | |
9c60689e | 14715 | fi |
51ac63c5 DWT |
14716 | else |
14717 | pkg_failed=untried | |
5053a6d1 | 14718 | fi |
51ac63c5 DWT |
14719 | if test -n "$WEBKIT_LIBS"; then |
14720 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
14721 | elif test -n "$PKG_CONFIG"; then | |
14722 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
14723 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
14724 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
14725 | ac_status=$? | |
14726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14727 | test $ac_status = 0; }; then | |
14728 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
14729 | else | |
14730 | pkg_failed=yes | |
14731 | fi | |
51ac63c5 DWT |
14732 | else |
14733 | pkg_failed=untried | |
632b71ea DWT |
14734 | fi |
14735 | ||
14736 | ||
14737 | ||
5053a6d1 DWT |
14738 | if test $pkg_failed = yes; then |
14739 | ||
14740 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14741 | _pkg_short_errors_supported=yes | |
14742 | else | |
14743 | _pkg_short_errors_supported=no | |
14744 | fi | |
14745 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 14746 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
5053a6d1 | 14747 | else |
51ac63c5 | 14748 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
5053a6d1 DWT |
14749 | fi |
14750 | # Put the nasty error message in config.log where it belongs | |
14751 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
14752 | ||
14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14754 | $as_echo "no" >&6; } | |
14755 | ||
632b71ea | 14756 | |
5053a6d1 DWT |
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
14758 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
14759 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
14760 | $as_echo_n "(cached) " >&6 | |
14761 | else | |
632b71ea | 14762 | |
5053a6d1 DWT |
14763 | ac_check_framework_save_LIBS=$LIBS |
14764 | LIBS="-framework JavaScriptCore $LIBS" | |
14765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14766 | /* end confdefs.h. */ | |
632b71ea | 14767 | |
5053a6d1 | 14768 | #include <JavaScriptCore/JSBase.h> |
632b71ea | 14769 | |
5053a6d1 DWT |
14770 | int |
14771 | main () | |
14772 | { | |
14773 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
14774 | ; | |
14775 | return 0; | |
14776 | } | |
14777 | _ACEOF | |
14778 | if ac_fn_cxx_try_link "$LINENO"; then : | |
632b71ea | 14779 | |
5053a6d1 | 14780 | ac_cv_framework_JavaScriptCore=yes |
632b71ea | 14781 | |
5053a6d1 DWT |
14782 | else |
14783 | ac_cv_framework_JavaScriptCore=no | |
14784 | fi | |
14785 | rm -f core conftest.err conftest.$ac_objext \ | |
14786 | conftest$ac_exeext conftest.$ac_ext | |
14787 | LIBS=$ac_check_framework_save_LIBS | |
632b71ea | 14788 | |
5053a6d1 DWT |
14789 | fi |
14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
14791 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
14792 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
632b71ea DWT |
14793 | |
14794 | ||
5053a6d1 DWT |
14795 | for element in "-framework JavaScriptCore $LIBS"; do |
14796 | haveit= | |
14797 | for x in $LIBS; do | |
632b71ea DWT |
14798 | |
14799 | acl_save_prefix="$prefix" | |
14800 | prefix="$acl_final_prefix" | |
14801 | acl_save_exec_prefix="$exec_prefix" | |
14802 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 14803 | eval x=\"$x\" |
632b71ea DWT |
14804 | exec_prefix="$acl_save_exec_prefix" |
14805 | prefix="$acl_save_prefix" | |
14806 | ||
5053a6d1 DWT |
14807 | if test "X$x" = "X$element"; then |
14808 | haveit=yes | |
14809 | break | |
14810 | fi | |
14811 | done | |
14812 | if test -z "$haveit"; then | |
14813 | LIBS="${LIBS}${LIBS:+ }$element" | |
14814 | fi | |
14815 | done | |
14816 | ||
14817 | CY_EXECUTE=1 | |
632b71ea | 14818 | |
5053a6d1 DWT |
14819 | fi |
14820 | ||
14821 | elif test $pkg_failed = untried; then | |
14822 | ||
14823 | ||
14824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
14825 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
14826 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
14827 | $as_echo_n "(cached) " >&6 | |
14828 | else | |
14829 | ||
14830 | ac_check_framework_save_LIBS=$LIBS | |
14831 | LIBS="-framework JavaScriptCore $LIBS" | |
14832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14833 | /* end confdefs.h. */ | |
14834 | ||
14835 | #include <JavaScriptCore/JSBase.h> | |
14836 | ||
14837 | int | |
14838 | main () | |
14839 | { | |
14840 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
14841 | ; | |
14842 | return 0; | |
14843 | } | |
14844 | _ACEOF | |
14845 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14846 | ||
14847 | ac_cv_framework_JavaScriptCore=yes | |
14848 | ||
14849 | else | |
14850 | ac_cv_framework_JavaScriptCore=no | |
14851 | fi | |
14852 | rm -f core conftest.err conftest.$ac_objext \ | |
14853 | conftest$ac_exeext conftest.$ac_ext | |
14854 | LIBS=$ac_check_framework_save_LIBS | |
14855 | ||
14856 | fi | |
14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
14858 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
14859 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
14860 | ||
14861 | ||
14862 | for element in "-framework JavaScriptCore $LIBS"; do | |
14863 | haveit= | |
14864 | for x in $LIBS; do | |
632b71ea DWT |
14865 | |
14866 | acl_save_prefix="$prefix" | |
14867 | prefix="$acl_final_prefix" | |
14868 | acl_save_exec_prefix="$exec_prefix" | |
14869 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
14870 | eval x=\"$x\" |
14871 | exec_prefix="$acl_save_exec_prefix" | |
14872 | prefix="$acl_save_prefix" | |
632b71ea | 14873 | |
5053a6d1 DWT |
14874 | if test "X$x" = "X$element"; then |
14875 | haveit=yes | |
14876 | break | |
14877 | fi | |
14878 | done | |
14879 | if test -z "$haveit"; then | |
14880 | LIBS="${LIBS}${LIBS:+ }$element" | |
14881 | fi | |
14882 | done | |
14883 | ||
14884 | CY_EXECUTE=1 | |
14885 | ||
14886 | fi | |
14887 | ||
14888 | else | |
14889 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
14890 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14892 | $as_echo "yes" >&6; } | |
14893 | ||
14894 | CY_EXECUTE=1 | |
14895 | ||
14896 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
14897 | haveit= | |
14898 | for x in $CXXFLAGS; do | |
632b71ea | 14899 | |
5053a6d1 DWT |
14900 | acl_save_prefix="$prefix" |
14901 | prefix="$acl_final_prefix" | |
14902 | acl_save_exec_prefix="$exec_prefix" | |
14903 | exec_prefix="$acl_final_exec_prefix" | |
14904 | eval x=\"$x\" | |
632b71ea DWT |
14905 | exec_prefix="$acl_save_exec_prefix" |
14906 | prefix="$acl_save_prefix" | |
14907 | ||
5053a6d1 DWT |
14908 | if test "X$x" = "X$element"; then |
14909 | haveit=yes | |
14910 | break | |
632b71ea | 14911 | fi |
5053a6d1 DWT |
14912 | done |
14913 | if test -z "$haveit"; then | |
14914 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
632b71ea | 14915 | fi |
5053a6d1 | 14916 | done |
632b71ea | 14917 | |
632b71ea | 14918 | |
5053a6d1 DWT |
14919 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
14920 | haveit= | |
14921 | for x in $LIBS; do | |
632b71ea DWT |
14922 | |
14923 | acl_save_prefix="$prefix" | |
14924 | prefix="$acl_final_prefix" | |
14925 | acl_save_exec_prefix="$exec_prefix" | |
14926 | exec_prefix="$acl_final_exec_prefix" | |
14927 | eval x=\"$x\" | |
14928 | exec_prefix="$acl_save_exec_prefix" | |
14929 | prefix="$acl_save_prefix" | |
14930 | ||
5053a6d1 DWT |
14931 | if test "X$x" = "X$element"; then |
14932 | haveit=yes | |
14933 | break | |
14934 | fi | |
14935 | done | |
14936 | if test -z "$haveit"; then | |
14937 | LIBS="${LIBS}${LIBS:+ }$element" | |
14938 | fi | |
14939 | done | |
632b71ea | 14940 | |
632b71ea | 14941 | |
5053a6d1 | 14942 | fi |
632b71ea | 14943 | |
5053a6d1 | 14944 | elif test $pkg_failed = untried; then |
632b71ea | 14945 | |
632b71ea | 14946 | |
5053a6d1 DWT |
14947 | pkg_failed=no |
14948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
14949 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 14950 | |
51ac63c5 DWT |
14951 | if test -n "$WEBKIT_CFLAGS"; then |
14952 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
14953 | elif test -n "$PKG_CONFIG"; then | |
14954 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
14955 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
14956 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
14957 | ac_status=$? | |
14958 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14959 | test $ac_status = 0; }; then | |
14960 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
14961 | else | |
14962 | pkg_failed=yes | |
14963 | fi | |
51ac63c5 DWT |
14964 | else |
14965 | pkg_failed=untried | |
5053a6d1 | 14966 | fi |
51ac63c5 DWT |
14967 | if test -n "$WEBKIT_LIBS"; then |
14968 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
14969 | elif test -n "$PKG_CONFIG"; then | |
14970 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
14971 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
14972 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
14973 | ac_status=$? | |
14974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14975 | test $ac_status = 0; }; then | |
14976 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
14977 | else | |
14978 | pkg_failed=yes | |
14979 | fi | |
51ac63c5 DWT |
14980 | else |
14981 | pkg_failed=untried | |
5053a6d1 | 14982 | fi |
9c60689e | 14983 | |
9c60689e DWT |
14984 | |
14985 | ||
5053a6d1 DWT |
14986 | if test $pkg_failed = yes; then |
14987 | ||
14988 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14989 | _pkg_short_errors_supported=yes | |
14990 | else | |
14991 | _pkg_short_errors_supported=no | |
14992 | fi | |
14993 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 14994 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
5053a6d1 | 14995 | else |
51ac63c5 | 14996 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
5053a6d1 DWT |
14997 | fi |
14998 | # Put the nasty error message in config.log where it belongs | |
14999 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15000 | ||
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15002 | $as_echo "no" >&6; } | |
9c60689e | 15003 | |
9c60689e | 15004 | |
5053a6d1 DWT |
15005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
15006 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15007 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15008 | $as_echo_n "(cached) " >&6 | |
15009 | else | |
9c60689e | 15010 | |
5053a6d1 DWT |
15011 | ac_check_framework_save_LIBS=$LIBS |
15012 | LIBS="-framework JavaScriptCore $LIBS" | |
15013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15014 | /* end confdefs.h. */ | |
9c60689e | 15015 | |
5053a6d1 | 15016 | #include <JavaScriptCore/JSBase.h> |
9c60689e | 15017 | |
5053a6d1 DWT |
15018 | int |
15019 | main () | |
15020 | { | |
15021 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15022 | ; | |
15023 | return 0; | |
15024 | } | |
15025 | _ACEOF | |
15026 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15027 | ||
15028 | ac_cv_framework_JavaScriptCore=yes | |
15029 | ||
15030 | else | |
15031 | ac_cv_framework_JavaScriptCore=no | |
15032 | fi | |
15033 | rm -f core conftest.err conftest.$ac_objext \ | |
15034 | conftest$ac_exeext conftest.$ac_ext | |
15035 | LIBS=$ac_check_framework_save_LIBS | |
15036 | ||
15037 | fi | |
15038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15039 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15040 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15041 | ||
15042 | ||
15043 | for element in "-framework JavaScriptCore $LIBS"; do | |
632b71ea | 15044 | haveit= |
5053a6d1 | 15045 | for x in $LIBS; do |
9c60689e | 15046 | |
632b71ea DWT |
15047 | acl_save_prefix="$prefix" |
15048 | prefix="$acl_final_prefix" | |
15049 | acl_save_exec_prefix="$exec_prefix" | |
15050 | exec_prefix="$acl_final_exec_prefix" | |
15051 | eval x=\"$x\" | |
15052 | exec_prefix="$acl_save_exec_prefix" | |
15053 | prefix="$acl_save_prefix" | |
15054 | ||
15055 | if test "X$x" = "X$element"; then | |
15056 | haveit=yes | |
15057 | break | |
15058 | fi | |
15059 | done | |
15060 | if test -z "$haveit"; then | |
5053a6d1 | 15061 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
15062 | fi |
15063 | done | |
b128dfee | 15064 | |
5053a6d1 DWT |
15065 | CY_EXECUTE=1 |
15066 | ||
15067 | fi | |
c823f118 | 15068 | |
5053a6d1 DWT |
15069 | elif test $pkg_failed = untried; then |
15070 | ||
15071 | ||
15072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15073 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15074 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
c823f118 DWT |
15075 | $as_echo_n "(cached) " >&6 |
15076 | else | |
15077 | ||
5053a6d1 DWT |
15078 | ac_check_framework_save_LIBS=$LIBS |
15079 | LIBS="-framework JavaScriptCore $LIBS" | |
15080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 15081 | /* end confdefs.h. */ |
5053a6d1 DWT |
15082 | |
15083 | #include <JavaScriptCore/JSBase.h> | |
15084 | ||
632b71ea DWT |
15085 | int |
15086 | main () | |
15087 | { | |
5053a6d1 | 15088 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
632b71ea DWT |
15089 | ; |
15090 | return 0; | |
15091 | } | |
15092 | _ACEOF | |
5053a6d1 DWT |
15093 | if ac_fn_cxx_try_link "$LINENO"; then : |
15094 | ||
15095 | ac_cv_framework_JavaScriptCore=yes | |
15096 | ||
15097 | else | |
15098 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
15099 | fi |
15100 | rm -f core conftest.err conftest.$ac_objext \ | |
15101 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 15102 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 15103 | |
c823f118 | 15104 | fi |
5053a6d1 DWT |
15105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
15106 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15107 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
15108 | |
15109 | ||
5053a6d1 DWT |
15110 | for element in "-framework JavaScriptCore $LIBS"; do |
15111 | haveit= | |
15112 | for x in $LIBS; do | |
15113 | ||
15114 | acl_save_prefix="$prefix" | |
15115 | prefix="$acl_final_prefix" | |
15116 | acl_save_exec_prefix="$exec_prefix" | |
15117 | exec_prefix="$acl_final_exec_prefix" | |
15118 | eval x=\"$x\" | |
15119 | exec_prefix="$acl_save_exec_prefix" | |
15120 | prefix="$acl_save_prefix" | |
15121 | ||
15122 | if test "X$x" = "X$element"; then | |
15123 | haveit=yes | |
15124 | break | |
15125 | fi | |
15126 | done | |
15127 | if test -z "$haveit"; then | |
15128 | LIBS="${LIBS}${LIBS:+ }$element" | |
15129 | fi | |
15130 | done | |
c823f118 | 15131 | |
5053a6d1 | 15132 | CY_EXECUTE=1 |
b128dfee | 15133 | |
632b71ea | 15134 | fi |
c823f118 | 15135 | |
5053a6d1 DWT |
15136 | else |
15137 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15138 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15140 | $as_echo "yes" >&6; } | |
c823f118 | 15141 | |
5053a6d1 | 15142 | CY_EXECUTE=1 |
b128dfee | 15143 | |
5053a6d1 DWT |
15144 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do |
15145 | haveit= | |
15146 | for x in $CXXFLAGS; do | |
b128dfee | 15147 | |
5053a6d1 DWT |
15148 | acl_save_prefix="$prefix" |
15149 | prefix="$acl_final_prefix" | |
15150 | acl_save_exec_prefix="$exec_prefix" | |
15151 | exec_prefix="$acl_final_exec_prefix" | |
15152 | eval x=\"$x\" | |
15153 | exec_prefix="$acl_save_exec_prefix" | |
15154 | prefix="$acl_save_prefix" | |
c823f118 | 15155 | |
5053a6d1 DWT |
15156 | if test "X$x" = "X$element"; then |
15157 | haveit=yes | |
15158 | break | |
15159 | fi | |
15160 | done | |
15161 | if test -z "$haveit"; then | |
15162 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15163 | fi | |
15164 | done | |
c823f118 | 15165 | |
c823f118 | 15166 | |
5053a6d1 DWT |
15167 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
15168 | haveit= | |
15169 | for x in $LIBS; do | |
15170 | ||
15171 | acl_save_prefix="$prefix" | |
15172 | prefix="$acl_final_prefix" | |
15173 | acl_save_exec_prefix="$exec_prefix" | |
15174 | exec_prefix="$acl_final_exec_prefix" | |
15175 | eval x=\"$x\" | |
15176 | exec_prefix="$acl_save_exec_prefix" | |
15177 | prefix="$acl_save_prefix" | |
15178 | ||
15179 | if test "X$x" = "X$element"; then | |
15180 | haveit=yes | |
15181 | break | |
15182 | fi | |
15183 | done | |
15184 | if test -z "$haveit"; then | |
15185 | LIBS="${LIBS}${LIBS:+ }$element" | |
15186 | fi | |
15187 | done | |
c823f118 | 15188 | |
632b71ea | 15189 | |
b128dfee DWT |
15190 | fi |
15191 | ||
5053a6d1 DWT |
15192 | else |
15193 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15194 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15196 | $as_echo "yes" >&6; } | |
b128dfee | 15197 | |
5053a6d1 | 15198 | CY_EXECUTE=1 |
c823f118 | 15199 | |
5053a6d1 DWT |
15200 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do |
15201 | haveit= | |
15202 | for x in $CXXFLAGS; do | |
c823f118 | 15203 | |
5053a6d1 DWT |
15204 | acl_save_prefix="$prefix" |
15205 | prefix="$acl_final_prefix" | |
15206 | acl_save_exec_prefix="$exec_prefix" | |
15207 | exec_prefix="$acl_final_exec_prefix" | |
15208 | eval x=\"$x\" | |
15209 | exec_prefix="$acl_save_exec_prefix" | |
15210 | prefix="$acl_save_prefix" | |
c823f118 | 15211 | |
5053a6d1 DWT |
15212 | if test "X$x" = "X$element"; then |
15213 | haveit=yes | |
15214 | break | |
15215 | fi | |
15216 | done | |
15217 | if test -z "$haveit"; then | |
15218 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15219 | fi | |
15220 | done | |
c823f118 | 15221 | |
b66977f1 | 15222 | |
5053a6d1 DWT |
15223 | for element in `$PKG_CONFIG --libs webkit-1.0`; do |
15224 | haveit= | |
15225 | for x in $LIBS; do | |
15226 | ||
15227 | acl_save_prefix="$prefix" | |
15228 | prefix="$acl_final_prefix" | |
15229 | acl_save_exec_prefix="$exec_prefix" | |
15230 | exec_prefix="$acl_final_exec_prefix" | |
15231 | eval x=\"$x\" | |
15232 | exec_prefix="$acl_save_exec_prefix" | |
15233 | prefix="$acl_save_prefix" | |
15234 | ||
15235 | if test "X$x" = "X$element"; then | |
15236 | haveit=yes | |
15237 | break | |
15238 | fi | |
15239 | done | |
15240 | if test -z "$haveit"; then | |
15241 | LIBS="${LIBS}${LIBS:+ }$element" | |
15242 | fi | |
15243 | done | |
15244 | ||
15245 | ||
15246 | fi | |
15247 | ||
15248 | ;; #( | |
15249 | no) : | |
15250 | ||
15251 | CY_EXECUTE=0 | |
15252 | ||
15253 | ;; #( | |
15254 | JavaScriptCore) : | |
b66977f1 DWT |
15255 | |
15256 | ||
15257 | ||
15258 | pkg_failed=no | |
15259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15260 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15261 | ||
51ac63c5 DWT |
15262 | if test -n "$WEBKIT_CFLAGS"; then |
15263 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15264 | elif test -n "$PKG_CONFIG"; then | |
15265 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15266 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15267 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15268 | ac_status=$? | |
15269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15270 | test $ac_status = 0; }; then | |
15271 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15272 | else | |
15273 | pkg_failed=yes | |
15274 | fi | |
51ac63c5 DWT |
15275 | else |
15276 | pkg_failed=untried | |
b66977f1 | 15277 | fi |
51ac63c5 DWT |
15278 | if test -n "$WEBKIT_LIBS"; then |
15279 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15280 | elif test -n "$PKG_CONFIG"; then | |
15281 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15283 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15284 | ac_status=$? | |
15285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15286 | test $ac_status = 0; }; then | |
15287 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15288 | else | |
15289 | pkg_failed=yes | |
15290 | fi | |
51ac63c5 DWT |
15291 | else |
15292 | pkg_failed=untried | |
b66977f1 DWT |
15293 | fi |
15294 | ||
15295 | ||
15296 | ||
15297 | if test $pkg_failed = yes; then | |
15298 | ||
15299 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15300 | _pkg_short_errors_supported=yes | |
15301 | else | |
15302 | _pkg_short_errors_supported=no | |
15303 | fi | |
15304 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 15305 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1` |
b66977f1 | 15306 | else |
51ac63c5 | 15307 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1` |
b66977f1 DWT |
15308 | fi |
15309 | # Put the nasty error message in config.log where it belongs | |
15310 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15311 | ||
15312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15313 | $as_echo "no" >&6; } | |
15314 | ||
15315 | ||
15316 | pkg_failed=no | |
15317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15318 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15319 | ||
51ac63c5 DWT |
15320 | if test -n "$WEBKIT_CFLAGS"; then |
15321 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15322 | elif test -n "$PKG_CONFIG"; then | |
15323 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15324 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15325 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15326 | ac_status=$? | |
15327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15328 | test $ac_status = 0; }; then | |
15329 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15330 | else | |
15331 | pkg_failed=yes | |
15332 | fi | |
51ac63c5 DWT |
15333 | else |
15334 | pkg_failed=untried | |
b66977f1 | 15335 | fi |
51ac63c5 DWT |
15336 | if test -n "$WEBKIT_LIBS"; then |
15337 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15338 | elif test -n "$PKG_CONFIG"; then | |
15339 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15340 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15341 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15342 | ac_status=$? | |
15343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15344 | test $ac_status = 0; }; then | |
15345 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15346 | else | |
15347 | pkg_failed=yes | |
15348 | fi | |
51ac63c5 DWT |
15349 | else |
15350 | pkg_failed=untried | |
b66977f1 DWT |
15351 | fi |
15352 | ||
15353 | ||
15354 | ||
15355 | if test $pkg_failed = yes; then | |
15356 | ||
15357 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15358 | _pkg_short_errors_supported=yes | |
15359 | else | |
15360 | _pkg_short_errors_supported=no | |
15361 | fi | |
15362 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 15363 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
b66977f1 | 15364 | else |
51ac63c5 | 15365 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
b66977f1 DWT |
15366 | fi |
15367 | # Put the nasty error message in config.log where it belongs | |
15368 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15369 | ||
15370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15371 | $as_echo "no" >&6; } | |
15372 | ||
15373 | ||
15374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15375 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15376 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15377 | $as_echo_n "(cached) " >&6 | |
15378 | else | |
15379 | ||
15380 | ac_check_framework_save_LIBS=$LIBS | |
15381 | LIBS="-framework JavaScriptCore $LIBS" | |
15382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15383 | /* end confdefs.h. */ | |
15384 | ||
15385 | #include <JavaScriptCore/JSBase.h> | |
15386 | ||
15387 | int | |
15388 | main () | |
15389 | { | |
15390 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15391 | ; | |
15392 | return 0; | |
15393 | } | |
15394 | _ACEOF | |
15395 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15396 | ||
15397 | ac_cv_framework_JavaScriptCore=yes | |
15398 | ||
15399 | else | |
15400 | ac_cv_framework_JavaScriptCore=no | |
15401 | fi | |
15402 | rm -f core conftest.err conftest.$ac_objext \ | |
15403 | conftest$ac_exeext conftest.$ac_ext | |
15404 | LIBS=$ac_check_framework_save_LIBS | |
15405 | ||
15406 | fi | |
15407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15408 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15409 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15410 | ||
15411 | ||
15412 | for element in "-framework JavaScriptCore $LIBS"; do | |
15413 | haveit= | |
15414 | for x in $LIBS; do | |
15415 | ||
15416 | acl_save_prefix="$prefix" | |
15417 | prefix="$acl_final_prefix" | |
15418 | acl_save_exec_prefix="$exec_prefix" | |
15419 | exec_prefix="$acl_final_exec_prefix" | |
15420 | eval x=\"$x\" | |
15421 | exec_prefix="$acl_save_exec_prefix" | |
15422 | prefix="$acl_save_prefix" | |
15423 | ||
15424 | if test "X$x" = "X$element"; then | |
15425 | haveit=yes | |
15426 | break | |
15427 | fi | |
15428 | done | |
15429 | if test -z "$haveit"; then | |
15430 | LIBS="${LIBS}${LIBS:+ }$element" | |
15431 | fi | |
15432 | done | |
15433 | ||
15434 | CY_EXECUTE=1 | |
15435 | ||
15436 | fi | |
15437 | ||
15438 | elif test $pkg_failed = untried; then | |
15439 | ||
15440 | ||
15441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15442 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15443 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15444 | $as_echo_n "(cached) " >&6 | |
15445 | else | |
15446 | ||
15447 | ac_check_framework_save_LIBS=$LIBS | |
15448 | LIBS="-framework JavaScriptCore $LIBS" | |
15449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15450 | /* end confdefs.h. */ | |
15451 | ||
15452 | #include <JavaScriptCore/JSBase.h> | |
15453 | ||
15454 | int | |
15455 | main () | |
15456 | { | |
15457 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15458 | ; | |
15459 | return 0; | |
15460 | } | |
15461 | _ACEOF | |
15462 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15463 | ||
15464 | ac_cv_framework_JavaScriptCore=yes | |
15465 | ||
15466 | else | |
15467 | ac_cv_framework_JavaScriptCore=no | |
15468 | fi | |
15469 | rm -f core conftest.err conftest.$ac_objext \ | |
15470 | conftest$ac_exeext conftest.$ac_ext | |
15471 | LIBS=$ac_check_framework_save_LIBS | |
15472 | ||
15473 | fi | |
15474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15475 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15476 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15477 | ||
15478 | ||
15479 | for element in "-framework JavaScriptCore $LIBS"; do | |
15480 | haveit= | |
15481 | for x in $LIBS; do | |
15482 | ||
15483 | acl_save_prefix="$prefix" | |
15484 | prefix="$acl_final_prefix" | |
15485 | acl_save_exec_prefix="$exec_prefix" | |
15486 | exec_prefix="$acl_final_exec_prefix" | |
15487 | eval x=\"$x\" | |
15488 | exec_prefix="$acl_save_exec_prefix" | |
15489 | prefix="$acl_save_prefix" | |
15490 | ||
15491 | if test "X$x" = "X$element"; then | |
15492 | haveit=yes | |
15493 | break | |
15494 | fi | |
15495 | done | |
15496 | if test -z "$haveit"; then | |
15497 | LIBS="${LIBS}${LIBS:+ }$element" | |
15498 | fi | |
15499 | done | |
15500 | ||
15501 | CY_EXECUTE=1 | |
15502 | ||
15503 | fi | |
15504 | ||
15505 | else | |
15506 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15507 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15509 | $as_echo "yes" >&6; } | |
15510 | ||
15511 | CY_EXECUTE=1 | |
15512 | ||
15513 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15514 | haveit= | |
15515 | for x in $CXXFLAGS; do | |
15516 | ||
15517 | acl_save_prefix="$prefix" | |
15518 | prefix="$acl_final_prefix" | |
15519 | acl_save_exec_prefix="$exec_prefix" | |
15520 | exec_prefix="$acl_final_exec_prefix" | |
15521 | eval x=\"$x\" | |
15522 | exec_prefix="$acl_save_exec_prefix" | |
15523 | prefix="$acl_save_prefix" | |
15524 | ||
15525 | if test "X$x" = "X$element"; then | |
15526 | haveit=yes | |
15527 | break | |
15528 | fi | |
15529 | done | |
15530 | if test -z "$haveit"; then | |
15531 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15532 | fi | |
15533 | done | |
15534 | ||
15535 | ||
15536 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15537 | haveit= | |
15538 | for x in $LIBS; do | |
15539 | ||
15540 | acl_save_prefix="$prefix" | |
15541 | prefix="$acl_final_prefix" | |
15542 | acl_save_exec_prefix="$exec_prefix" | |
15543 | exec_prefix="$acl_final_exec_prefix" | |
15544 | eval x=\"$x\" | |
15545 | exec_prefix="$acl_save_exec_prefix" | |
15546 | prefix="$acl_save_prefix" | |
15547 | ||
15548 | if test "X$x" = "X$element"; then | |
15549 | haveit=yes | |
15550 | break | |
15551 | fi | |
15552 | done | |
15553 | if test -z "$haveit"; then | |
15554 | LIBS="${LIBS}${LIBS:+ }$element" | |
15555 | fi | |
15556 | done | |
15557 | ||
15558 | ||
15559 | fi | |
15560 | ||
15561 | elif test $pkg_failed = untried; then | |
15562 | ||
15563 | ||
15564 | pkg_failed=no | |
15565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15566 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15567 | ||
51ac63c5 DWT |
15568 | if test -n "$WEBKIT_CFLAGS"; then |
15569 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15570 | elif test -n "$PKG_CONFIG"; then | |
15571 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15572 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15573 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15574 | ac_status=$? | |
15575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15576 | test $ac_status = 0; }; then | |
15577 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15578 | else | |
15579 | pkg_failed=yes | |
15580 | fi | |
51ac63c5 DWT |
15581 | else |
15582 | pkg_failed=untried | |
b66977f1 | 15583 | fi |
51ac63c5 DWT |
15584 | if test -n "$WEBKIT_LIBS"; then |
15585 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15586 | elif test -n "$PKG_CONFIG"; then | |
15587 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15588 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15589 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15590 | ac_status=$? | |
15591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15592 | test $ac_status = 0; }; then | |
15593 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15594 | else | |
15595 | pkg_failed=yes | |
15596 | fi | |
51ac63c5 DWT |
15597 | else |
15598 | pkg_failed=untried | |
b66977f1 DWT |
15599 | fi |
15600 | ||
15601 | ||
15602 | ||
15603 | if test $pkg_failed = yes; then | |
15604 | ||
15605 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15606 | _pkg_short_errors_supported=yes | |
15607 | else | |
15608 | _pkg_short_errors_supported=no | |
15609 | fi | |
15610 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 15611 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
b66977f1 | 15612 | else |
51ac63c5 | 15613 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
b66977f1 DWT |
15614 | fi |
15615 | # Put the nasty error message in config.log where it belongs | |
15616 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15617 | ||
15618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15619 | $as_echo "no" >&6; } | |
15620 | ||
15621 | ||
15622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15623 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15624 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15625 | $as_echo_n "(cached) " >&6 | |
15626 | else | |
15627 | ||
15628 | ac_check_framework_save_LIBS=$LIBS | |
15629 | LIBS="-framework JavaScriptCore $LIBS" | |
15630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15631 | /* end confdefs.h. */ | |
15632 | ||
15633 | #include <JavaScriptCore/JSBase.h> | |
15634 | ||
15635 | int | |
15636 | main () | |
15637 | { | |
15638 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15639 | ; | |
15640 | return 0; | |
15641 | } | |
15642 | _ACEOF | |
15643 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15644 | ||
15645 | ac_cv_framework_JavaScriptCore=yes | |
15646 | ||
15647 | else | |
15648 | ac_cv_framework_JavaScriptCore=no | |
15649 | fi | |
15650 | rm -f core conftest.err conftest.$ac_objext \ | |
15651 | conftest$ac_exeext conftest.$ac_ext | |
15652 | LIBS=$ac_check_framework_save_LIBS | |
15653 | ||
15654 | fi | |
15655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15656 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15657 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15658 | ||
15659 | ||
15660 | for element in "-framework JavaScriptCore $LIBS"; do | |
15661 | haveit= | |
15662 | for x in $LIBS; do | |
15663 | ||
15664 | acl_save_prefix="$prefix" | |
15665 | prefix="$acl_final_prefix" | |
15666 | acl_save_exec_prefix="$exec_prefix" | |
15667 | exec_prefix="$acl_final_exec_prefix" | |
15668 | eval x=\"$x\" | |
15669 | exec_prefix="$acl_save_exec_prefix" | |
15670 | prefix="$acl_save_prefix" | |
15671 | ||
15672 | if test "X$x" = "X$element"; then | |
15673 | haveit=yes | |
15674 | break | |
15675 | fi | |
15676 | done | |
15677 | if test -z "$haveit"; then | |
15678 | LIBS="${LIBS}${LIBS:+ }$element" | |
15679 | fi | |
15680 | done | |
15681 | ||
15682 | CY_EXECUTE=1 | |
15683 | ||
15684 | fi | |
15685 | ||
15686 | elif test $pkg_failed = untried; then | |
15687 | ||
15688 | ||
15689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15690 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15691 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15692 | $as_echo_n "(cached) " >&6 | |
15693 | else | |
15694 | ||
15695 | ac_check_framework_save_LIBS=$LIBS | |
15696 | LIBS="-framework JavaScriptCore $LIBS" | |
15697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15698 | /* end confdefs.h. */ | |
15699 | ||
15700 | #include <JavaScriptCore/JSBase.h> | |
15701 | ||
15702 | int | |
15703 | main () | |
15704 | { | |
15705 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15706 | ; | |
15707 | return 0; | |
15708 | } | |
15709 | _ACEOF | |
15710 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15711 | ||
15712 | ac_cv_framework_JavaScriptCore=yes | |
15713 | ||
15714 | else | |
15715 | ac_cv_framework_JavaScriptCore=no | |
15716 | fi | |
15717 | rm -f core conftest.err conftest.$ac_objext \ | |
15718 | conftest$ac_exeext conftest.$ac_ext | |
15719 | LIBS=$ac_check_framework_save_LIBS | |
15720 | ||
15721 | fi | |
15722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15723 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15724 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15725 | ||
15726 | ||
15727 | for element in "-framework JavaScriptCore $LIBS"; do | |
15728 | haveit= | |
15729 | for x in $LIBS; do | |
15730 | ||
15731 | acl_save_prefix="$prefix" | |
15732 | prefix="$acl_final_prefix" | |
15733 | acl_save_exec_prefix="$exec_prefix" | |
15734 | exec_prefix="$acl_final_exec_prefix" | |
15735 | eval x=\"$x\" | |
15736 | exec_prefix="$acl_save_exec_prefix" | |
15737 | prefix="$acl_save_prefix" | |
15738 | ||
15739 | if test "X$x" = "X$element"; then | |
15740 | haveit=yes | |
15741 | break | |
15742 | fi | |
15743 | done | |
15744 | if test -z "$haveit"; then | |
15745 | LIBS="${LIBS}${LIBS:+ }$element" | |
15746 | fi | |
15747 | done | |
15748 | ||
15749 | CY_EXECUTE=1 | |
15750 | ||
15751 | fi | |
15752 | ||
15753 | else | |
15754 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15755 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15757 | $as_echo "yes" >&6; } | |
15758 | ||
15759 | CY_EXECUTE=1 | |
15760 | ||
15761 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15762 | haveit= | |
15763 | for x in $CXXFLAGS; do | |
15764 | ||
15765 | acl_save_prefix="$prefix" | |
15766 | prefix="$acl_final_prefix" | |
15767 | acl_save_exec_prefix="$exec_prefix" | |
15768 | exec_prefix="$acl_final_exec_prefix" | |
15769 | eval x=\"$x\" | |
15770 | exec_prefix="$acl_save_exec_prefix" | |
15771 | prefix="$acl_save_prefix" | |
15772 | ||
15773 | if test "X$x" = "X$element"; then | |
15774 | haveit=yes | |
15775 | break | |
15776 | fi | |
15777 | done | |
15778 | if test -z "$haveit"; then | |
15779 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15780 | fi | |
15781 | done | |
15782 | ||
15783 | ||
15784 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15785 | haveit= | |
15786 | for x in $LIBS; do | |
15787 | ||
15788 | acl_save_prefix="$prefix" | |
15789 | prefix="$acl_final_prefix" | |
15790 | acl_save_exec_prefix="$exec_prefix" | |
15791 | exec_prefix="$acl_final_exec_prefix" | |
15792 | eval x=\"$x\" | |
15793 | exec_prefix="$acl_save_exec_prefix" | |
15794 | prefix="$acl_save_prefix" | |
15795 | ||
15796 | if test "X$x" = "X$element"; then | |
15797 | haveit=yes | |
15798 | break | |
15799 | fi | |
15800 | done | |
15801 | if test -z "$haveit"; then | |
15802 | LIBS="${LIBS}${LIBS:+ }$element" | |
15803 | fi | |
15804 | done | |
15805 | ||
15806 | ||
15807 | fi | |
15808 | ||
15809 | else | |
15810 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15811 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15813 | $as_echo "yes" >&6; } | |
15814 | ||
15815 | CY_EXECUTE=1 | |
15816 | ||
15817 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
15818 | haveit= | |
15819 | for x in $CXXFLAGS; do | |
15820 | ||
15821 | acl_save_prefix="$prefix" | |
15822 | prefix="$acl_final_prefix" | |
15823 | acl_save_exec_prefix="$exec_prefix" | |
15824 | exec_prefix="$acl_final_exec_prefix" | |
15825 | eval x=\"$x\" | |
15826 | exec_prefix="$acl_save_exec_prefix" | |
15827 | prefix="$acl_save_prefix" | |
15828 | ||
15829 | if test "X$x" = "X$element"; then | |
15830 | haveit=yes | |
15831 | break | |
15832 | fi | |
15833 | done | |
15834 | if test -z "$haveit"; then | |
15835 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15836 | fi | |
15837 | done | |
15838 | ||
15839 | ||
15840 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
15841 | haveit= | |
15842 | for x in $LIBS; do | |
15843 | ||
15844 | acl_save_prefix="$prefix" | |
15845 | prefix="$acl_final_prefix" | |
15846 | acl_save_exec_prefix="$exec_prefix" | |
15847 | exec_prefix="$acl_final_exec_prefix" | |
15848 | eval x=\"$x\" | |
15849 | exec_prefix="$acl_save_exec_prefix" | |
15850 | prefix="$acl_save_prefix" | |
15851 | ||
15852 | if test "X$x" = "X$element"; then | |
15853 | haveit=yes | |
15854 | break | |
15855 | fi | |
15856 | done | |
15857 | if test -z "$haveit"; then | |
15858 | LIBS="${LIBS}${LIBS:+ }$element" | |
15859 | fi | |
15860 | done | |
15861 | ||
15862 | ||
15863 | fi | |
15864 | ||
b66977f1 | 15865 | ;; #( |
5053a6d1 DWT |
15866 | *) : |
15867 | as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
15868 | esac | |
15869 | ||
15870 | else | |
b66977f1 DWT |
15871 | |
15872 | ||
15873 | ||
15874 | pkg_failed=no | |
15875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15876 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15877 | ||
51ac63c5 DWT |
15878 | if test -n "$WEBKIT_CFLAGS"; then |
15879 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15880 | elif test -n "$PKG_CONFIG"; then | |
15881 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15882 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15883 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15884 | ac_status=$? | |
15885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15886 | test $ac_status = 0; }; then | |
15887 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15888 | else | |
15889 | pkg_failed=yes | |
15890 | fi | |
51ac63c5 DWT |
15891 | else |
15892 | pkg_failed=untried | |
b66977f1 | 15893 | fi |
51ac63c5 DWT |
15894 | if test -n "$WEBKIT_LIBS"; then |
15895 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15896 | elif test -n "$PKG_CONFIG"; then | |
15897 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15898 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15899 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15900 | ac_status=$? | |
15901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15902 | test $ac_status = 0; }; then | |
15903 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15904 | else | |
15905 | pkg_failed=yes | |
15906 | fi | |
51ac63c5 DWT |
15907 | else |
15908 | pkg_failed=untried | |
b66977f1 DWT |
15909 | fi |
15910 | ||
15911 | ||
15912 | ||
15913 | if test $pkg_failed = yes; then | |
15914 | ||
15915 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15916 | _pkg_short_errors_supported=yes | |
15917 | else | |
15918 | _pkg_short_errors_supported=no | |
15919 | fi | |
15920 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 15921 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1` |
b66977f1 | 15922 | else |
51ac63c5 | 15923 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1` |
b66977f1 DWT |
15924 | fi |
15925 | # Put the nasty error message in config.log where it belongs | |
15926 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15927 | ||
15928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15929 | $as_echo "no" >&6; } | |
15930 | ||
15931 | ||
15932 | pkg_failed=no | |
15933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15934 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15935 | ||
51ac63c5 DWT |
15936 | if test -n "$WEBKIT_CFLAGS"; then |
15937 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15938 | elif test -n "$PKG_CONFIG"; then | |
15939 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15941 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15942 | ac_status=$? | |
15943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15944 | test $ac_status = 0; }; then | |
15945 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15946 | else | |
15947 | pkg_failed=yes | |
15948 | fi | |
51ac63c5 DWT |
15949 | else |
15950 | pkg_failed=untried | |
b66977f1 | 15951 | fi |
51ac63c5 DWT |
15952 | if test -n "$WEBKIT_LIBS"; then |
15953 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15954 | elif test -n "$PKG_CONFIG"; then | |
15955 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15956 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15957 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15958 | ac_status=$? | |
15959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15960 | test $ac_status = 0; }; then | |
15961 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15962 | else | |
15963 | pkg_failed=yes | |
15964 | fi | |
51ac63c5 DWT |
15965 | else |
15966 | pkg_failed=untried | |
b66977f1 DWT |
15967 | fi |
15968 | ||
15969 | ||
15970 | ||
15971 | if test $pkg_failed = yes; then | |
15972 | ||
15973 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15974 | _pkg_short_errors_supported=yes | |
15975 | else | |
15976 | _pkg_short_errors_supported=no | |
15977 | fi | |
15978 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 15979 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
b66977f1 | 15980 | else |
51ac63c5 | 15981 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
b66977f1 DWT |
15982 | fi |
15983 | # Put the nasty error message in config.log where it belongs | |
15984 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15985 | ||
15986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15987 | $as_echo "no" >&6; } | |
15988 | ||
15989 | ||
15990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15991 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15992 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15993 | $as_echo_n "(cached) " >&6 | |
15994 | else | |
15995 | ||
15996 | ac_check_framework_save_LIBS=$LIBS | |
15997 | LIBS="-framework JavaScriptCore $LIBS" | |
15998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15999 | /* end confdefs.h. */ | |
16000 | ||
16001 | #include <JavaScriptCore/JSBase.h> | |
16002 | ||
16003 | int | |
16004 | main () | |
16005 | { | |
16006 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16007 | ; | |
16008 | return 0; | |
16009 | } | |
16010 | _ACEOF | |
16011 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16012 | ||
16013 | ac_cv_framework_JavaScriptCore=yes | |
16014 | ||
16015 | else | |
16016 | ac_cv_framework_JavaScriptCore=no | |
16017 | fi | |
16018 | rm -f core conftest.err conftest.$ac_objext \ | |
16019 | conftest$ac_exeext conftest.$ac_ext | |
16020 | LIBS=$ac_check_framework_save_LIBS | |
16021 | ||
16022 | fi | |
16023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16024 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16025 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16026 | ||
16027 | ||
16028 | for element in "-framework JavaScriptCore $LIBS"; do | |
16029 | haveit= | |
16030 | for x in $LIBS; do | |
16031 | ||
16032 | acl_save_prefix="$prefix" | |
16033 | prefix="$acl_final_prefix" | |
16034 | acl_save_exec_prefix="$exec_prefix" | |
16035 | exec_prefix="$acl_final_exec_prefix" | |
16036 | eval x=\"$x\" | |
16037 | exec_prefix="$acl_save_exec_prefix" | |
16038 | prefix="$acl_save_prefix" | |
16039 | ||
16040 | if test "X$x" = "X$element"; then | |
16041 | haveit=yes | |
16042 | break | |
16043 | fi | |
16044 | done | |
16045 | if test -z "$haveit"; then | |
16046 | LIBS="${LIBS}${LIBS:+ }$element" | |
16047 | fi | |
16048 | done | |
16049 | ||
16050 | CY_EXECUTE=1 | |
16051 | ||
16052 | fi | |
16053 | ||
16054 | elif test $pkg_failed = untried; then | |
16055 | ||
16056 | ||
16057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16058 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16059 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16060 | $as_echo_n "(cached) " >&6 | |
16061 | else | |
16062 | ||
16063 | ac_check_framework_save_LIBS=$LIBS | |
16064 | LIBS="-framework JavaScriptCore $LIBS" | |
16065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16066 | /* end confdefs.h. */ | |
16067 | ||
16068 | #include <JavaScriptCore/JSBase.h> | |
16069 | ||
16070 | int | |
16071 | main () | |
16072 | { | |
16073 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16074 | ; | |
16075 | return 0; | |
16076 | } | |
16077 | _ACEOF | |
16078 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16079 | ||
16080 | ac_cv_framework_JavaScriptCore=yes | |
16081 | ||
16082 | else | |
16083 | ac_cv_framework_JavaScriptCore=no | |
16084 | fi | |
16085 | rm -f core conftest.err conftest.$ac_objext \ | |
16086 | conftest$ac_exeext conftest.$ac_ext | |
16087 | LIBS=$ac_check_framework_save_LIBS | |
16088 | ||
16089 | fi | |
16090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16091 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16092 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16093 | ||
16094 | ||
16095 | for element in "-framework JavaScriptCore $LIBS"; do | |
16096 | haveit= | |
16097 | for x in $LIBS; do | |
16098 | ||
16099 | acl_save_prefix="$prefix" | |
16100 | prefix="$acl_final_prefix" | |
16101 | acl_save_exec_prefix="$exec_prefix" | |
16102 | exec_prefix="$acl_final_exec_prefix" | |
16103 | eval x=\"$x\" | |
16104 | exec_prefix="$acl_save_exec_prefix" | |
16105 | prefix="$acl_save_prefix" | |
16106 | ||
16107 | if test "X$x" = "X$element"; then | |
16108 | haveit=yes | |
16109 | break | |
16110 | fi | |
16111 | done | |
16112 | if test -z "$haveit"; then | |
16113 | LIBS="${LIBS}${LIBS:+ }$element" | |
16114 | fi | |
16115 | done | |
16116 | ||
16117 | CY_EXECUTE=1 | |
16118 | ||
16119 | fi | |
16120 | ||
16121 | else | |
16122 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16123 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16125 | $as_echo "yes" >&6; } | |
16126 | ||
16127 | CY_EXECUTE=1 | |
16128 | ||
16129 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16130 | haveit= | |
16131 | for x in $CXXFLAGS; do | |
16132 | ||
16133 | acl_save_prefix="$prefix" | |
16134 | prefix="$acl_final_prefix" | |
16135 | acl_save_exec_prefix="$exec_prefix" | |
16136 | exec_prefix="$acl_final_exec_prefix" | |
16137 | eval x=\"$x\" | |
16138 | exec_prefix="$acl_save_exec_prefix" | |
16139 | prefix="$acl_save_prefix" | |
16140 | ||
16141 | if test "X$x" = "X$element"; then | |
16142 | haveit=yes | |
16143 | break | |
16144 | fi | |
16145 | done | |
16146 | if test -z "$haveit"; then | |
16147 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16148 | fi | |
16149 | done | |
16150 | ||
16151 | ||
16152 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16153 | haveit= | |
16154 | for x in $LIBS; do | |
16155 | ||
16156 | acl_save_prefix="$prefix" | |
16157 | prefix="$acl_final_prefix" | |
16158 | acl_save_exec_prefix="$exec_prefix" | |
16159 | exec_prefix="$acl_final_exec_prefix" | |
16160 | eval x=\"$x\" | |
16161 | exec_prefix="$acl_save_exec_prefix" | |
16162 | prefix="$acl_save_prefix" | |
16163 | ||
16164 | if test "X$x" = "X$element"; then | |
16165 | haveit=yes | |
16166 | break | |
16167 | fi | |
16168 | done | |
16169 | if test -z "$haveit"; then | |
16170 | LIBS="${LIBS}${LIBS:+ }$element" | |
16171 | fi | |
16172 | done | |
16173 | ||
16174 | ||
16175 | fi | |
16176 | ||
16177 | elif test $pkg_failed = untried; then | |
16178 | ||
16179 | ||
16180 | pkg_failed=no | |
16181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16182 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16183 | ||
51ac63c5 DWT |
16184 | if test -n "$WEBKIT_CFLAGS"; then |
16185 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16186 | elif test -n "$PKG_CONFIG"; then | |
16187 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16188 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16189 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16190 | ac_status=$? | |
16191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16192 | test $ac_status = 0; }; then | |
16193 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16194 | else | |
16195 | pkg_failed=yes | |
16196 | fi | |
51ac63c5 DWT |
16197 | else |
16198 | pkg_failed=untried | |
b66977f1 | 16199 | fi |
51ac63c5 DWT |
16200 | if test -n "$WEBKIT_LIBS"; then |
16201 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16202 | elif test -n "$PKG_CONFIG"; then | |
16203 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16204 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16205 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16206 | ac_status=$? | |
16207 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16208 | test $ac_status = 0; }; then | |
16209 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16210 | else | |
16211 | pkg_failed=yes | |
16212 | fi | |
51ac63c5 DWT |
16213 | else |
16214 | pkg_failed=untried | |
b66977f1 DWT |
16215 | fi |
16216 | ||
16217 | ||
16218 | ||
16219 | if test $pkg_failed = yes; then | |
16220 | ||
16221 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16222 | _pkg_short_errors_supported=yes | |
16223 | else | |
16224 | _pkg_short_errors_supported=no | |
16225 | fi | |
16226 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 16227 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1` |
b66977f1 | 16228 | else |
51ac63c5 | 16229 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1` |
b66977f1 DWT |
16230 | fi |
16231 | # Put the nasty error message in config.log where it belongs | |
16232 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16233 | ||
16234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16235 | $as_echo "no" >&6; } | |
16236 | ||
16237 | ||
16238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16239 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16240 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16241 | $as_echo_n "(cached) " >&6 | |
16242 | else | |
16243 | ||
16244 | ac_check_framework_save_LIBS=$LIBS | |
16245 | LIBS="-framework JavaScriptCore $LIBS" | |
16246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16247 | /* end confdefs.h. */ | |
16248 | ||
16249 | #include <JavaScriptCore/JSBase.h> | |
16250 | ||
16251 | int | |
16252 | main () | |
16253 | { | |
16254 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16255 | ; | |
16256 | return 0; | |
16257 | } | |
16258 | _ACEOF | |
16259 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16260 | ||
16261 | ac_cv_framework_JavaScriptCore=yes | |
16262 | ||
16263 | else | |
16264 | ac_cv_framework_JavaScriptCore=no | |
16265 | fi | |
16266 | rm -f core conftest.err conftest.$ac_objext \ | |
16267 | conftest$ac_exeext conftest.$ac_ext | |
16268 | LIBS=$ac_check_framework_save_LIBS | |
16269 | ||
16270 | fi | |
16271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16272 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16273 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16274 | ||
16275 | ||
16276 | for element in "-framework JavaScriptCore $LIBS"; do | |
16277 | haveit= | |
16278 | for x in $LIBS; do | |
16279 | ||
16280 | acl_save_prefix="$prefix" | |
16281 | prefix="$acl_final_prefix" | |
16282 | acl_save_exec_prefix="$exec_prefix" | |
16283 | exec_prefix="$acl_final_exec_prefix" | |
16284 | eval x=\"$x\" | |
16285 | exec_prefix="$acl_save_exec_prefix" | |
16286 | prefix="$acl_save_prefix" | |
16287 | ||
16288 | if test "X$x" = "X$element"; then | |
16289 | haveit=yes | |
16290 | break | |
16291 | fi | |
16292 | done | |
16293 | if test -z "$haveit"; then | |
16294 | LIBS="${LIBS}${LIBS:+ }$element" | |
16295 | fi | |
16296 | done | |
16297 | ||
16298 | CY_EXECUTE=1 | |
16299 | ||
16300 | fi | |
16301 | ||
16302 | elif test $pkg_failed = untried; then | |
16303 | ||
16304 | ||
16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16306 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16307 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16308 | $as_echo_n "(cached) " >&6 | |
16309 | else | |
16310 | ||
16311 | ac_check_framework_save_LIBS=$LIBS | |
16312 | LIBS="-framework JavaScriptCore $LIBS" | |
16313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16314 | /* end confdefs.h. */ | |
16315 | ||
16316 | #include <JavaScriptCore/JSBase.h> | |
16317 | ||
16318 | int | |
16319 | main () | |
16320 | { | |
16321 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16322 | ; | |
16323 | return 0; | |
16324 | } | |
16325 | _ACEOF | |
16326 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16327 | ||
16328 | ac_cv_framework_JavaScriptCore=yes | |
16329 | ||
16330 | else | |
16331 | ac_cv_framework_JavaScriptCore=no | |
16332 | fi | |
16333 | rm -f core conftest.err conftest.$ac_objext \ | |
16334 | conftest$ac_exeext conftest.$ac_ext | |
16335 | LIBS=$ac_check_framework_save_LIBS | |
16336 | ||
16337 | fi | |
16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16339 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16340 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16341 | ||
16342 | ||
16343 | for element in "-framework JavaScriptCore $LIBS"; do | |
16344 | haveit= | |
16345 | for x in $LIBS; do | |
16346 | ||
16347 | acl_save_prefix="$prefix" | |
16348 | prefix="$acl_final_prefix" | |
16349 | acl_save_exec_prefix="$exec_prefix" | |
16350 | exec_prefix="$acl_final_exec_prefix" | |
16351 | eval x=\"$x\" | |
16352 | exec_prefix="$acl_save_exec_prefix" | |
16353 | prefix="$acl_save_prefix" | |
16354 | ||
16355 | if test "X$x" = "X$element"; then | |
16356 | haveit=yes | |
16357 | break | |
16358 | fi | |
16359 | done | |
16360 | if test -z "$haveit"; then | |
16361 | LIBS="${LIBS}${LIBS:+ }$element" | |
16362 | fi | |
16363 | done | |
16364 | ||
16365 | CY_EXECUTE=1 | |
16366 | ||
16367 | fi | |
16368 | ||
16369 | else | |
16370 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16371 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16373 | $as_echo "yes" >&6; } | |
16374 | ||
16375 | CY_EXECUTE=1 | |
16376 | ||
16377 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16378 | haveit= | |
16379 | for x in $CXXFLAGS; do | |
16380 | ||
16381 | acl_save_prefix="$prefix" | |
16382 | prefix="$acl_final_prefix" | |
16383 | acl_save_exec_prefix="$exec_prefix" | |
16384 | exec_prefix="$acl_final_exec_prefix" | |
16385 | eval x=\"$x\" | |
16386 | exec_prefix="$acl_save_exec_prefix" | |
16387 | prefix="$acl_save_prefix" | |
16388 | ||
16389 | if test "X$x" = "X$element"; then | |
16390 | haveit=yes | |
16391 | break | |
16392 | fi | |
16393 | done | |
16394 | if test -z "$haveit"; then | |
16395 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16396 | fi | |
16397 | done | |
16398 | ||
16399 | ||
16400 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16401 | haveit= | |
16402 | for x in $LIBS; do | |
16403 | ||
16404 | acl_save_prefix="$prefix" | |
16405 | prefix="$acl_final_prefix" | |
16406 | acl_save_exec_prefix="$exec_prefix" | |
16407 | exec_prefix="$acl_final_exec_prefix" | |
16408 | eval x=\"$x\" | |
16409 | exec_prefix="$acl_save_exec_prefix" | |
16410 | prefix="$acl_save_prefix" | |
16411 | ||
16412 | if test "X$x" = "X$element"; then | |
16413 | haveit=yes | |
16414 | break | |
16415 | fi | |
16416 | done | |
16417 | if test -z "$haveit"; then | |
16418 | LIBS="${LIBS}${LIBS:+ }$element" | |
16419 | fi | |
16420 | done | |
16421 | ||
16422 | ||
16423 | fi | |
16424 | ||
16425 | else | |
16426 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16427 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16429 | $as_echo "yes" >&6; } | |
16430 | ||
16431 | CY_EXECUTE=1 | |
16432 | ||
16433 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16434 | haveit= | |
16435 | for x in $CXXFLAGS; do | |
16436 | ||
16437 | acl_save_prefix="$prefix" | |
16438 | prefix="$acl_final_prefix" | |
16439 | acl_save_exec_prefix="$exec_prefix" | |
16440 | exec_prefix="$acl_final_exec_prefix" | |
16441 | eval x=\"$x\" | |
16442 | exec_prefix="$acl_save_exec_prefix" | |
16443 | prefix="$acl_save_prefix" | |
16444 | ||
16445 | if test "X$x" = "X$element"; then | |
16446 | haveit=yes | |
16447 | break | |
16448 | fi | |
16449 | done | |
16450 | if test -z "$haveit"; then | |
16451 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16452 | fi | |
16453 | done | |
16454 | ||
16455 | ||
16456 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16457 | haveit= | |
16458 | for x in $LIBS; do | |
16459 | ||
16460 | acl_save_prefix="$prefix" | |
16461 | prefix="$acl_final_prefix" | |
16462 | acl_save_exec_prefix="$exec_prefix" | |
16463 | exec_prefix="$acl_final_exec_prefix" | |
16464 | eval x=\"$x\" | |
16465 | exec_prefix="$acl_save_exec_prefix" | |
16466 | prefix="$acl_save_prefix" | |
16467 | ||
16468 | if test "X$x" = "X$element"; then | |
16469 | haveit=yes | |
16470 | break | |
16471 | fi | |
16472 | done | |
16473 | if test -z "$haveit"; then | |
16474 | LIBS="${LIBS}${LIBS:+ }$element" | |
16475 | fi | |
16476 | done | |
16477 | ||
16478 | ||
16479 | fi | |
5053a6d1 DWT |
16480 | |
16481 | ||
9c60689e DWT |
16482 | fi |
16483 | ||
5053a6d1 | 16484 | |
058f1bc8 | 16485 | |
e5cca37d | 16486 | |
5053a6d1 DWT |
16487 | case $CY_EXECUTE in #( |
16488 | 1) : | |
16489 | ||
9c60689e | 16490 | |
e5cca37d DWT |
16491 | for ac_header in ffi.h ffi/ffi.h |
16492 | do : | |
16493 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16494 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16495 | eval as_val=\$$as_ac_Header | |
16496 | if test "x$as_val" = x""yes; then : | |
16497 | cat >>confdefs.h <<_ACEOF | |
16498 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16499 | _ACEOF | |
16500 | break | |
16501 | fi | |
16502 | ||
16503 | done | |
16504 | ||
16505 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16506 | ||
16507 | ||
9c60689e DWT |
16508 | |
16509 | pkg_failed=no | |
5053a6d1 DWT |
16510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
16511 | $as_echo_n "checking for LIBFFI... " >&6; } | |
9c60689e | 16512 | |
51ac63c5 DWT |
16513 | if test -n "$LIBFFI_CFLAGS"; then |
16514 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
16515 | elif test -n "$PKG_CONFIG"; then | |
16516 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
16517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
16518 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
9c60689e DWT |
16519 | ac_status=$? |
16520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16521 | test $ac_status = 0; }; then | |
5053a6d1 | 16522 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
9c60689e DWT |
16523 | else |
16524 | pkg_failed=yes | |
16525 | fi | |
51ac63c5 DWT |
16526 | else |
16527 | pkg_failed=untried | |
9c60689e | 16528 | fi |
51ac63c5 DWT |
16529 | if test -n "$LIBFFI_LIBS"; then |
16530 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
16531 | elif test -n "$PKG_CONFIG"; then | |
16532 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
16533 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
16534 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
9c60689e DWT |
16535 | ac_status=$? |
16536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16537 | test $ac_status = 0; }; then | |
5053a6d1 | 16538 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
9c60689e DWT |
16539 | else |
16540 | pkg_failed=yes | |
16541 | fi | |
51ac63c5 DWT |
16542 | else |
16543 | pkg_failed=untried | |
9c60689e DWT |
16544 | fi |
16545 | ||
16546 | ||
16547 | ||
16548 | if test $pkg_failed = yes; then | |
16549 | ||
16550 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16551 | _pkg_short_errors_supported=yes | |
16552 | else | |
16553 | _pkg_short_errors_supported=no | |
16554 | fi | |
16555 | if test $_pkg_short_errors_supported = yes; then | |
51ac63c5 | 16556 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
9c60689e | 16557 | else |
51ac63c5 | 16558 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
9c60689e DWT |
16559 | fi |
16560 | # Put the nasty error message in config.log where it belongs | |
5053a6d1 | 16561 | echo "$LIBFFI_PKG_ERRORS" >&5 |
9c60689e DWT |
16562 | |
16563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16564 | $as_echo "no" >&6; } | |
b128dfee | 16565 | |
e5cca37d | 16566 | as_fn_error "You need libffi" "$LINENO" 5 |
5053a6d1 | 16567 | |
e5cca37d DWT |
16568 | elif test $pkg_failed = untried; then |
16569 | ||
16570 | as_fn_error "You need libffi" "$LINENO" 5 | |
16571 | ||
16572 | else | |
16573 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
16574 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16576 | $as_echo "yes" >&6; } | |
16577 | ||
16578 | ||
16579 | for element in `$PKG_CONFIG --cflags libffi`; do | |
16580 | haveit= | |
16581 | for x in $CXXFLAGS; do | |
16582 | ||
16583 | acl_save_prefix="$prefix" | |
16584 | prefix="$acl_final_prefix" | |
16585 | acl_save_exec_prefix="$exec_prefix" | |
16586 | exec_prefix="$acl_final_exec_prefix" | |
16587 | eval x=\"$x\" | |
16588 | exec_prefix="$acl_save_exec_prefix" | |
16589 | prefix="$acl_save_prefix" | |
16590 | ||
16591 | if test "X$x" = "X$element"; then | |
16592 | haveit=yes | |
16593 | break | |
16594 | fi | |
16595 | done | |
16596 | if test -z "$haveit"; then | |
16597 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16598 | fi | |
16599 | done | |
c823f118 | 16600 | |
5053a6d1 | 16601 | |
e5cca37d DWT |
16602 | for element in `$PKG_CONFIG --libs libffi`; do |
16603 | haveit= | |
16604 | for x in $LIBS; do | |
16605 | ||
16606 | acl_save_prefix="$prefix" | |
16607 | prefix="$acl_final_prefix" | |
16608 | acl_save_exec_prefix="$exec_prefix" | |
16609 | exec_prefix="$acl_final_exec_prefix" | |
16610 | eval x=\"$x\" | |
16611 | exec_prefix="$acl_save_exec_prefix" | |
16612 | prefix="$acl_save_prefix" | |
16613 | ||
16614 | if test "X$x" = "X$element"; then | |
16615 | haveit=yes | |
16616 | break | |
16617 | fi | |
16618 | done | |
16619 | if test -z "$haveit"; then | |
16620 | LIBS="${LIBS}${LIBS:+ }$element" | |
16621 | fi | |
16622 | done | |
16623 | ||
5053a6d1 DWT |
16624 | |
16625 | fi | |
e5cca37d DWT |
16626 | |
16627 | ||
16628 | else | |
16629 | ||
5053a6d1 DWT |
16630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 |
16631 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
16632 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
c823f118 DWT |
16633 | $as_echo_n "(cached) " >&6 |
16634 | else | |
5053a6d1 DWT |
16635 | ac_func_search_save_LIBS=$LIBS |
16636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c823f118 DWT |
16637 | /* end confdefs.h. */ |
16638 | ||
5053a6d1 DWT |
16639 | /* Override any GCC internal prototype to avoid an error. |
16640 | Use char because int might match the return type of a GCC | |
16641 | builtin and then its argument prototype would still apply. */ | |
16642 | #ifdef __cplusplus | |
16643 | extern "C" | |
16644 | #endif | |
16645 | char ffi_call (); | |
c823f118 DWT |
16646 | int |
16647 | main () | |
16648 | { | |
5053a6d1 | 16649 | return ffi_call (); |
c823f118 DWT |
16650 | ; |
16651 | return 0; | |
16652 | } | |
b128dfee | 16653 | _ACEOF |
5053a6d1 DWT |
16654 | for ac_lib in '' ffi; do |
16655 | if test -z "$ac_lib"; then | |
16656 | ac_res="none required" | |
16657 | else | |
16658 | ac_res=-l$ac_lib | |
16659 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16660 | fi | |
16661 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16662 | ac_cv_search_ffi_call=$ac_res | |
c823f118 DWT |
16663 | fi |
16664 | rm -f core conftest.err conftest.$ac_objext \ | |
5053a6d1 DWT |
16665 | conftest$ac_exeext |
16666 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
16667 | break | |
b128dfee | 16668 | fi |
5053a6d1 DWT |
16669 | done |
16670 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
b128dfee | 16671 | |
5053a6d1 DWT |
16672 | else |
16673 | ac_cv_search_ffi_call=no | |
16674 | fi | |
16675 | rm conftest.$ac_ext | |
16676 | LIBS=$ac_func_search_save_LIBS | |
16677 | fi | |
16678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
16679 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
16680 | ac_res=$ac_cv_search_ffi_call | |
16681 | if test "$ac_res" != no; then : | |
16682 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b128dfee | 16683 | |
5053a6d1 | 16684 | fi |
c823f118 | 16685 | |
5053a6d1 DWT |
16686 | case $ac_cv_search_ffi_call in #( |
16687 | no) : | |
c823f118 | 16688 | |
c823f118 | 16689 | |
e5cca37d DWT |
16690 | pkg_failed=no |
16691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
16692 | $as_echo_n "checking for LIBFFI... " >&6; } | |
c823f118 | 16693 | |
51ac63c5 DWT |
16694 | if test -n "$LIBFFI_CFLAGS"; then |
16695 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
16696 | elif test -n "$PKG_CONFIG"; then | |
16697 | if test -n "$PKG_CONFIG" && \ | |
e5cca37d DWT |
16698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
16699 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
16700 | ac_status=$? | |
16701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16702 | test $ac_status = 0; }; then | |
16703 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
16704 | else | |
16705 | pkg_failed=yes | |
c823f118 | 16706 | fi |
51ac63c5 DWT |
16707 | else |
16708 | pkg_failed=untried | |
5053a6d1 | 16709 | fi |
51ac63c5 DWT |
16710 | if test -n "$LIBFFI_LIBS"; then |
16711 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
16712 | elif test -n "$PKG_CONFIG"; then | |
16713 | if test -n "$PKG_CONFIG" && \ | |
e5cca37d DWT |
16714 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
16715 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
16716 | ac_status=$? | |
16717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16718 | test $ac_status = 0; }; then | |
16719 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
c823f118 | 16720 | else |
e5cca37d | 16721 | pkg_failed=yes |
632b71ea | 16722 | fi |
51ac63c5 DWT |
16723 | else |
16724 | pkg_failed=untried | |
632b71ea | 16725 | fi |
3fd51f51 | 16726 | |
e5cca37d DWT |
16727 | |
16728 | ||
16729 | if test $pkg_failed = yes; then | |
16730 | ||
16731 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16732 | _pkg_short_errors_supported=yes | |
5053a6d1 | 16733 | else |
e5cca37d | 16734 | _pkg_short_errors_supported=no |
5053a6d1 | 16735 | fi |
e5cca37d | 16736 | if test $_pkg_short_errors_supported = yes; then |
51ac63c5 | 16737 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` |
e5cca37d | 16738 | else |
51ac63c5 | 16739 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` |
e5cca37d DWT |
16740 | fi |
16741 | # Put the nasty error message in config.log where it belongs | |
16742 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
3fd51f51 | 16743 | |
e5cca37d DWT |
16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16745 | $as_echo "no" >&6; } | |
3fd51f51 | 16746 | |
e5cca37d | 16747 | as_fn_error "You need libffi" "$LINENO" 5 |
3fd51f51 | 16748 | |
e5cca37d DWT |
16749 | elif test $pkg_failed = untried; then |
16750 | ||
16751 | as_fn_error "You need libffi" "$LINENO" 5 | |
9c60689e DWT |
16752 | |
16753 | else | |
5053a6d1 DWT |
16754 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
16755 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
9c60689e DWT |
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16757 | $as_echo "yes" >&6; } | |
3fd51f51 | 16758 | |
3fd51f51 | 16759 | |
5053a6d1 | 16760 | for element in `$PKG_CONFIG --cflags libffi`; do |
3fd51f51 DWT |
16761 | haveit= |
16762 | for x in $CXXFLAGS; do | |
16763 | ||
16764 | acl_save_prefix="$prefix" | |
16765 | prefix="$acl_final_prefix" | |
16766 | acl_save_exec_prefix="$exec_prefix" | |
16767 | exec_prefix="$acl_final_exec_prefix" | |
16768 | eval x=\"$x\" | |
16769 | exec_prefix="$acl_save_exec_prefix" | |
16770 | prefix="$acl_save_prefix" | |
16771 | ||
16772 | if test "X$x" = "X$element"; then | |
16773 | haveit=yes | |
16774 | break | |
16775 | fi | |
16776 | done | |
16777 | if test -z "$haveit"; then | |
16778 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16779 | fi | |
16780 | done | |
16781 | ||
16782 | ||
5053a6d1 | 16783 | for element in `$PKG_CONFIG --libs libffi`; do |
3fd51f51 DWT |
16784 | haveit= |
16785 | for x in $LIBS; do | |
16786 | ||
16787 | acl_save_prefix="$prefix" | |
16788 | prefix="$acl_final_prefix" | |
16789 | acl_save_exec_prefix="$exec_prefix" | |
16790 | exec_prefix="$acl_final_exec_prefix" | |
16791 | eval x=\"$x\" | |
16792 | exec_prefix="$acl_save_exec_prefix" | |
16793 | prefix="$acl_save_prefix" | |
16794 | ||
16795 | if test "X$x" = "X$element"; then | |
16796 | haveit=yes | |
16797 | break | |
16798 | fi | |
16799 | done | |
16800 | if test -z "$haveit"; then | |
16801 | LIBS="${LIBS}${LIBS:+ }$element" | |
16802 | fi | |
16803 | done | |
16804 | ||
16805 | ||
e5cca37d DWT |
16806 | fi |
16807 | ;; #( | |
16808 | *) : | |
16809 | ;; | |
16810 | esac | |
16811 | ||
9c60689e | 16812 | fi |
5053a6d1 DWT |
16813 | ac_ext=mm |
16814 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
16815 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16816 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16817 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a667869d | 16818 | |
5053a6d1 DWT |
16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 |
16820 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
16821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16822 | /* end confdefs.h. */ | |
9c60689e | 16823 | |
5053a6d1 | 16824 | // This space intentionally left blank |
a667869d | 16825 | |
5053a6d1 DWT |
16826 | _ACEOF |
16827 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
9c60689e | 16828 | |
5053a6d1 DWT |
16829 | CY_OBJECTIVEC=1 |
16830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16831 | $as_echo "yes" >&6; } | |
632b71ea | 16832 | |
632b71ea | 16833 | else |
5053a6d1 | 16834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
632b71ea | 16835 | $as_echo "no" >&6; } |
5053a6d1 DWT |
16836 | fi |
16837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16838 | if test "x$CY_OBJECTIVEC" = x1; then : | |
9c60689e | 16839 | |
632b71ea | 16840 | |
5053a6d1 DWT |
16841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
16842 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
16843 | if test "${ac_cv_framework_CoreFoundation+set}" = set; then : | |
9c60689e DWT |
16844 | $as_echo_n "(cached) " >&6 |
16845 | else | |
632b71ea DWT |
16846 | |
16847 | ac_check_framework_save_LIBS=$LIBS | |
5053a6d1 | 16848 | LIBS="-framework CoreFoundation $LIBS" |
632b71ea | 16849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
16850 | /* end confdefs.h. */ |
16851 | ||
5053a6d1 | 16852 | #include <CoreFoundation/CFBase.h> |
632b71ea | 16853 | |
9c60689e DWT |
16854 | int |
16855 | main () | |
16856 | { | |
5053a6d1 | 16857 | CFAllocatorGetDefault(); |
9c60689e DWT |
16858 | ; |
16859 | return 0; | |
16860 | } | |
16861 | _ACEOF | |
5053a6d1 | 16862 | if ac_fn_objcxx_try_link "$LINENO"; then : |
632b71ea | 16863 | |
5053a6d1 | 16864 | ac_cv_framework_CoreFoundation=yes |
632b71ea | 16865 | |
9c60689e | 16866 | else |
5053a6d1 | 16867 | ac_cv_framework_CoreFoundation=no |
9c60689e | 16868 | fi |
632b71ea DWT |
16869 | rm -f core conftest.err conftest.$ac_objext \ |
16870 | conftest$ac_exeext conftest.$ac_ext | |
16871 | LIBS=$ac_check_framework_save_LIBS | |
9c60689e DWT |
16872 | |
16873 | fi | |
5053a6d1 DWT |
16874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
16875 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
16876 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
632b71ea DWT |
16877 | |
16878 | ||
5053a6d1 | 16879 | for element in "-framework CoreFoundation $LIBS"; do |
632b71ea DWT |
16880 | haveit= |
16881 | for x in $LIBS; do | |
16882 | ||
16883 | acl_save_prefix="$prefix" | |
16884 | prefix="$acl_final_prefix" | |
16885 | acl_save_exec_prefix="$exec_prefix" | |
16886 | exec_prefix="$acl_final_exec_prefix" | |
16887 | eval x=\"$x\" | |
16888 | exec_prefix="$acl_save_exec_prefix" | |
16889 | prefix="$acl_save_prefix" | |
16890 | ||
16891 | if test "X$x" = "X$element"; then | |
16892 | haveit=yes | |
16893 | break | |
16894 | fi | |
16895 | done | |
16896 | if test -z "$haveit"; then | |
16897 | LIBS="${LIBS}${LIBS:+ }$element" | |
16898 | fi | |
16899 | done | |
16900 | ||
632b71ea | 16901 | |
632b71ea | 16902 | |
632b71ea DWT |
16903 | |
16904 | ||
5053a6d1 DWT |
16905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
16906 | $as_echo_n "checking for framework Foundation... " >&6; } | |
16907 | if test "${ac_cv_framework_Foundation+set}" = set; then : | |
a667869d DWT |
16908 | $as_echo_n "(cached) " >&6 |
16909 | else | |
632b71ea DWT |
16910 | |
16911 | ac_check_framework_save_LIBS=$LIBS | |
5053a6d1 | 16912 | LIBS="-framework Foundation $LIBS" |
632b71ea | 16913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a667869d DWT |
16914 | /* end confdefs.h. */ |
16915 | ||
5053a6d1 | 16916 | #include <Foundation/NSObject.h> |
632b71ea | 16917 | |
a667869d DWT |
16918 | int |
16919 | main () | |
16920 | { | |
5053a6d1 | 16921 | [[NSObject alloc] init]; |
a667869d DWT |
16922 | ; |
16923 | return 0; | |
16924 | } | |
16925 | _ACEOF | |
5053a6d1 | 16926 | if ac_fn_objcxx_try_link "$LINENO"; then : |
632b71ea | 16927 | |
5053a6d1 | 16928 | ac_cv_framework_Foundation=yes |
632b71ea | 16929 | |
a667869d | 16930 | else |
5053a6d1 | 16931 | ac_cv_framework_Foundation=no |
632b71ea DWT |
16932 | fi |
16933 | rm -f core conftest.err conftest.$ac_objext \ | |
16934 | conftest$ac_exeext conftest.$ac_ext | |
16935 | LIBS=$ac_check_framework_save_LIBS | |
a667869d | 16936 | |
632b71ea | 16937 | fi |
5053a6d1 DWT |
16938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 |
16939 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
16940 | if test $ac_cv_framework_Foundation = yes; then : | |
a667869d | 16941 | |
a667869d | 16942 | |
5053a6d1 | 16943 | for element in "-framework Foundation $LIBS"; do |
632b71ea DWT |
16944 | haveit= |
16945 | for x in $LIBS; do | |
a667869d | 16946 | |
632b71ea DWT |
16947 | acl_save_prefix="$prefix" |
16948 | prefix="$acl_final_prefix" | |
16949 | acl_save_exec_prefix="$exec_prefix" | |
16950 | exec_prefix="$acl_final_exec_prefix" | |
16951 | eval x=\"$x\" | |
16952 | exec_prefix="$acl_save_exec_prefix" | |
16953 | prefix="$acl_save_prefix" | |
16954 | ||
16955 | if test "X$x" = "X$element"; then | |
16956 | haveit=yes | |
16957 | break | |
16958 | fi | |
16959 | done | |
16960 | if test -z "$haveit"; then | |
16961 | LIBS="${LIBS}${LIBS:+ }$element" | |
16962 | fi | |
16963 | done | |
16964 | ||
5053a6d1 DWT |
16965 | cat >>confdefs.h <<_ACEOF |
16966 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
16967 | _ACEOF | |
16968 | ||
a667869d | 16969 | |
a667869d | 16970 | fi |
632b71ea | 16971 | |
5053a6d1 DWT |
16972 | |
16973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5 | |
16974 | $as_echo_n "checking for framework WebKit... " >&6; } | |
16975 | if test "${ac_cv_framework_WebKit+set}" = set; then : | |
16976 | $as_echo_n "(cached) " >&6 | |
a667869d | 16977 | else |
632b71ea | 16978 | |
5053a6d1 DWT |
16979 | ac_check_framework_save_LIBS=$LIBS |
16980 | LIBS="-framework WebKit $LIBS" | |
16981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16982 | /* end confdefs.h. */ | |
632b71ea | 16983 | |
5053a6d1 | 16984 | #include <WebKit/WebScriptObject.h> |
632b71ea | 16985 | |
5053a6d1 DWT |
16986 | int |
16987 | main () | |
16988 | { | |
16989 | [[WebScriptObject alloc] init]; | |
16990 | ; | |
16991 | return 0; | |
16992 | } | |
16993 | _ACEOF | |
16994 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
632b71ea | 16995 | |
5053a6d1 | 16996 | ac_cv_framework_WebKit=yes |
632b71ea | 16997 | |
5053a6d1 DWT |
16998 | else |
16999 | ac_cv_framework_WebKit=no | |
17000 | fi | |
17001 | rm -f core conftest.err conftest.$ac_objext \ | |
17002 | conftest$ac_exeext conftest.$ac_ext | |
17003 | LIBS=$ac_check_framework_save_LIBS | |
632b71ea | 17004 | |
5053a6d1 DWT |
17005 | fi |
17006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5 | |
17007 | $as_echo "$ac_cv_framework_WebKit" >&6; } | |
17008 | if test $ac_cv_framework_WebKit = yes; then : | |
17009 | ||
17010 | ||
17011 | for element in "-framework WebKit $LIBS"; do | |
632b71ea DWT |
17012 | haveit= |
17013 | for x in $LIBS; do | |
17014 | ||
17015 | acl_save_prefix="$prefix" | |
17016 | prefix="$acl_final_prefix" | |
17017 | acl_save_exec_prefix="$exec_prefix" | |
17018 | exec_prefix="$acl_final_exec_prefix" | |
17019 | eval x=\"$x\" | |
17020 | exec_prefix="$acl_save_exec_prefix" | |
17021 | prefix="$acl_save_prefix" | |
17022 | ||
17023 | if test "X$x" = "X$element"; then | |
17024 | haveit=yes | |
17025 | break | |
17026 | fi | |
17027 | done | |
17028 | if test -z "$haveit"; then | |
17029 | LIBS="${LIBS}${LIBS:+ }$element" | |
17030 | fi | |
17031 | done | |
17032 | ||
5053a6d1 DWT |
17033 | cat >>confdefs.h <<_ACEOF |
17034 | #define HAVE_FRAMEWORK_WEBKIT 1 | |
17035 | _ACEOF | |
17036 | ||
17037 | ||
17038 | fi | |
17039 | ||
17040 | ||
17041 | else | |
17042 | ||
17043 | ||
17044 | for ac_prog in gnustep-config | |
17045 | do | |
17046 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
17047 | set dummy $ac_prog; ac_word=$2 | |
17048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17049 | $as_echo_n "checking for $ac_word... " >&6; } | |
17050 | if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then : | |
17051 | $as_echo_n "(cached) " >&6 | |
17052 | else | |
17053 | if test -n "$GNUSTEP_CONFIG"; then | |
17054 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
17055 | else | |
17056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17057 | for as_dir in $PATH | |
17058 | do | |
17059 | IFS=$as_save_IFS | |
17060 | test -z "$as_dir" && as_dir=. | |
17061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
17063 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
17064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17065 | break 2 | |
17066 | fi | |
17067 | done | |
17068 | done | |
17069 | IFS=$as_save_IFS | |
17070 | ||
17071 | fi | |
17072 | fi | |
17073 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
17074 | if test -n "$GNUSTEP_CONFIG"; then | |
17075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
17076 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
17077 | else | |
17078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17079 | $as_echo "no" >&6; } | |
17080 | fi | |
17081 | ||
17082 | ||
17083 | test -n "$GNUSTEP_CONFIG" && break | |
17084 | done | |
632b71ea | 17085 | |
5053a6d1 | 17086 | if test "x$GNUSTEP_CONFIG" != x; then : |
a667869d | 17087 | |
632b71ea | 17088 | |
632b71ea | 17089 | |
5053a6d1 | 17090 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
632b71ea | 17091 | haveit= |
5053a6d1 | 17092 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
17093 | |
17094 | acl_save_prefix="$prefix" | |
17095 | prefix="$acl_final_prefix" | |
17096 | acl_save_exec_prefix="$exec_prefix" | |
17097 | exec_prefix="$acl_final_exec_prefix" | |
17098 | eval x=\"$x\" | |
17099 | exec_prefix="$acl_save_exec_prefix" | |
17100 | prefix="$acl_save_prefix" | |
17101 | ||
17102 | if test "X$x" = "X$element"; then | |
17103 | haveit=yes | |
17104 | break | |
17105 | fi | |
17106 | done | |
17107 | if test -z "$haveit"; then | |
5053a6d1 | 17108 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
632b71ea DWT |
17109 | fi |
17110 | done | |
17111 | ||
17112 | ||
5053a6d1 | 17113 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea DWT |
17114 | haveit= |
17115 | for x in $LIBS; do | |
17116 | ||
17117 | acl_save_prefix="$prefix" | |
17118 | prefix="$acl_final_prefix" | |
17119 | acl_save_exec_prefix="$exec_prefix" | |
17120 | exec_prefix="$acl_final_exec_prefix" | |
17121 | eval x=\"$x\" | |
17122 | exec_prefix="$acl_save_exec_prefix" | |
17123 | prefix="$acl_save_prefix" | |
17124 | ||
17125 | if test "X$x" = "X$element"; then | |
17126 | haveit=yes | |
17127 | break | |
17128 | fi | |
17129 | done | |
17130 | if test -z "$haveit"; then | |
17131 | LIBS="${LIBS}${LIBS:+ }$element" | |
17132 | fi | |
17133 | done | |
17134 | ||
17135 | ||
5053a6d1 DWT |
17136 | else |
17137 | CY_OBJECTIVEC=0 | |
a667869d | 17138 | |
5053a6d1 | 17139 | fi |
b66977f1 DWT |
17140 | |
17141 | fi | |
17142 | ||
5053a6d1 DWT |
17143 | fi |
17144 | ac_ext=cpp | |
17145 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17146 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17147 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17148 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
b66977f1 | 17149 | |
5053a6d1 DWT |
17150 | ;; #( |
17151 | *) : | |
17152 | ;; | |
17153 | esac | |
a667869d | 17154 | |
058f1bc8 DWT |
17155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 |
17156 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
17157 | if test "${vl_cv_lib_readline+set}" = set; then : | |
17158 | $as_echo_n "(cached) " >&6 | |
17159 | else | |
a667869d | 17160 | |
058f1bc8 DWT |
17161 | ORIG_LIBS="$LIBS" |
17162 | for readline_lib in readline edit editline; do | |
17163 | for termcap_lib in "" termcap curses ncurses; do | |
17164 | if test -z "$termcap_lib"; then | |
17165 | TRY_LIB="-l$readline_lib" | |
17166 | else | |
17167 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
17168 | fi | |
17169 | LIBS="$ORIG_LIBS $TRY_LIB" | |
17170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17171 | /* end confdefs.h. */ | |
a667869d | 17172 | |
058f1bc8 DWT |
17173 | /* Override any GCC internal prototype to avoid an error. |
17174 | Use char because int might match the return type of a GCC | |
17175 | builtin and then its argument prototype would still apply. */ | |
17176 | #ifdef __cplusplus | |
17177 | extern "C" | |
17178 | #endif | |
17179 | char readline (); | |
17180 | int | |
17181 | main () | |
17182 | { | |
17183 | return readline (); | |
17184 | ; | |
17185 | return 0; | |
17186 | } | |
17187 | _ACEOF | |
17188 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17189 | vl_cv_lib_readline="$TRY_LIB" | |
17190 | fi | |
17191 | rm -f core conftest.err conftest.$ac_objext \ | |
17192 | conftest$ac_exeext conftest.$ac_ext | |
17193 | if test -n "$vl_cv_lib_readline"; then | |
17194 | break | |
17195 | fi | |
17196 | done | |
17197 | if test -n "$vl_cv_lib_readline"; then | |
17198 | break | |
17199 | fi | |
17200 | done | |
17201 | if test -z "$vl_cv_lib_readline"; then | |
17202 | vl_cv_lib_readline="no" | |
17203 | LIBS="$ORIG_LIBS" | |
17204 | fi | |
a667869d | 17205 | |
a667869d | 17206 | fi |
058f1bc8 DWT |
17207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 |
17208 | $as_echo "$vl_cv_lib_readline" >&6; } | |
17209 | ||
17210 | if test "$vl_cv_lib_readline" != "no"; then | |
17211 | ||
17212 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
17213 | ||
17214 | for ac_header in readline.h readline/readline.h | |
17215 | do : | |
17216 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17217 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
17218 | eval as_val=\$$as_ac_Header | |
17219 | if test "x$as_val" = x""yes; then : | |
17220 | cat >>confdefs.h <<_ACEOF | |
17221 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17222 | _ACEOF | |
5053a6d1 | 17223 | |
a667869d | 17224 | fi |
058f1bc8 DWT |
17225 | |
17226 | done | |
17227 | ||
17228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
17229 | $as_echo_n "checking whether readline supports history... " >&6; } | |
17230 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
17231 | $as_echo_n "(cached) " >&6 | |
17232 | else | |
17233 | ||
17234 | vl_cv_lib_readline_history="no" | |
17235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17236 | /* end confdefs.h. */ | |
17237 | ||
17238 | /* Override any GCC internal prototype to avoid an error. | |
17239 | Use char because int might match the return type of a GCC | |
17240 | builtin and then its argument prototype would still apply. */ | |
17241 | #ifdef __cplusplus | |
17242 | extern "C" | |
17243 | #endif | |
17244 | char add_history (); | |
17245 | int | |
17246 | main () | |
17247 | { | |
17248 | return add_history (); | |
17249 | ; | |
17250 | return 0; | |
17251 | } | |
17252 | _ACEOF | |
17253 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17254 | vl_cv_lib_readline_history="yes" | |
17255 | fi | |
17256 | rm -f core conftest.err conftest.$ac_objext \ | |
17257 | conftest$ac_exeext conftest.$ac_ext | |
17258 | ||
17259 | fi | |
17260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
17261 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
17262 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
17263 | ||
17264 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h | |
17265 | ||
17266 | for ac_header in history.h readline/history.h | |
17267 | do : | |
17268 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17269 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
17270 | eval as_val=\$$as_ac_Header | |
17271 | if test "x$as_val" = x""yes; then : | |
17272 | cat >>confdefs.h <<_ACEOF | |
17273 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17274 | _ACEOF | |
17275 | ||
17276 | fi | |
17277 | ||
17278 | done | |
17279 | ||
17280 | fi | |
17281 | fi | |
17282 | ||
17283 | case $vl_cv_lib_readline in #( | |
17284 | no) : | |
17285 | as_fn_error "You need readline" "$LINENO" 5 ;; #( | |
17286 | *) : | |
17287 | ;; | |
17288 | esac | |
17289 | ac_ext=c | |
17290 | ac_cpp='$CPP $CPPFLAGS' | |
17291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17294 | ||
17295 | ||
17296 | if test "X$prefix" = "XNONE"; then | |
17297 | acl_final_prefix="$ac_default_prefix" | |
17298 | else | |
17299 | acl_final_prefix="$prefix" | |
17300 | fi | |
17301 | if test "X$exec_prefix" = "XNONE"; then | |
17302 | acl_final_exec_prefix='${prefix}' | |
17303 | else | |
17304 | acl_final_exec_prefix="$exec_prefix" | |
17305 | fi | |
17306 | acl_save_prefix="$prefix" | |
17307 | prefix="$acl_final_prefix" | |
17308 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
17309 | prefix="$acl_save_prefix" | |
17310 | ||
17311 | ||
17312 | # Check whether --with-gnu-ld was given. | |
17313 | if test "${with_gnu_ld+set}" = set; then : | |
17314 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
17315 | else | |
17316 | with_gnu_ld=no | |
17317 | fi | |
17318 | ||
17319 | # Prepare PATH_SEPARATOR. | |
17320 | # The user is always right. | |
17321 | if test "${PATH_SEPARATOR+set}" != set; then | |
17322 | echo "#! /bin/sh" >conf$$.sh | |
17323 | echo "exit 0" >>conf$$.sh | |
17324 | chmod +x conf$$.sh | |
17325 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
17326 | PATH_SEPARATOR=';' | |
17327 | else | |
17328 | PATH_SEPARATOR=: | |
17329 | fi | |
17330 | rm -f conf$$.sh | |
17331 | fi | |
17332 | ac_prog=ld | |
17333 | if test "$GCC" = yes; then | |
17334 | # Check if gcc -print-prog-name=ld gives a path. | |
17335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
17336 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
17337 | case $host in | |
17338 | *-*-mingw*) | |
17339 | # gcc leaves a trailing carriage return which upsets mingw | |
17340 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
17341 | *) | |
17342 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
17343 | esac | |
17344 | case $ac_prog in | |
17345 | # Accept absolute paths. | |
17346 | [\\/]* | [A-Za-z]:[\\/]*) | |
17347 | re_direlt='/[^/][^/]*/\.\./' | |
17348 | # Canonicalize the path of ld | |
17349 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
17350 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5053a6d1 DWT |
17351 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
17352 | done | |
17353 | test -z "$LD" && LD="$ac_prog" | |
17354 | ;; | |
17355 | "") | |
17356 | # If it fails, then pretend we aren't using GCC. | |
17357 | ac_prog=ld | |
17358 | ;; | |
17359 | *) | |
17360 | # If it is relative, then search for the first ld in PATH. | |
17361 | with_gnu_ld=unknown | |
17362 | ;; | |
17363 | esac | |
17364 | elif test "$with_gnu_ld" = yes; then | |
17365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
17366 | $as_echo_n "checking for GNU ld... " >&6; } | |
a667869d | 17367 | else |
5053a6d1 DWT |
17368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
17369 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a667869d | 17370 | fi |
5053a6d1 DWT |
17371 | if test "${acl_cv_path_LD+set}" = set; then : |
17372 | $as_echo_n "(cached) " >&6 | |
17373 | else | |
17374 | if test -z "$LD"; then | |
17375 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
17376 | for ac_dir in $PATH; do | |
17377 | test -z "$ac_dir" && ac_dir=. | |
17378 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
17379 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
17380 | # Check to see if the program is GNU ld. I'd rather use --version, | |
17381 | # but apparently some GNU ld's only accept -v. | |
17382 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
17383 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
17384 | *GNU* | *'with BFD'*) | |
17385 | test "$with_gnu_ld" != no && break ;; | |
17386 | *) | |
17387 | test "$with_gnu_ld" != yes && break ;; | |
17388 | esac | |
a667869d | 17389 | fi |
5053a6d1 DWT |
17390 | done |
17391 | IFS="$ac_save_ifs" | |
a667869d | 17392 | else |
5053a6d1 | 17393 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
a667869d | 17394 | fi |
a667869d | 17395 | fi |
a667869d | 17396 | |
5053a6d1 DWT |
17397 | LD="$acl_cv_path_LD" |
17398 | if test -n "$LD"; then | |
17399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
17400 | $as_echo "$LD" >&6; } | |
17401 | else | |
17402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
a667869d | 17403 | $as_echo "no" >&6; } |
a667869d | 17404 | fi |
5053a6d1 DWT |
17405 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
17406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
17407 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
17408 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
a667869d DWT |
17409 | $as_echo_n "(cached) " >&6 |
17410 | else | |
5053a6d1 DWT |
17411 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
17412 | case `$LD -v 2>&1 </dev/null` in | |
17413 | *GNU* | *'with BFD'*) | |
17414 | acl_cv_prog_gnu_ld=yes ;; | |
17415 | *) | |
17416 | acl_cv_prog_gnu_ld=no ;; | |
17417 | esac | |
a667869d | 17418 | fi |
5053a6d1 DWT |
17419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
17420 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
17421 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
17422 | ||
17423 | ||
17424 | ||
a667869d | 17425 | |
5053a6d1 DWT |
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
17427 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
17428 | if test "${acl_cv_rpath+set}" = set; then : | |
17429 | $as_echo_n "(cached) " >&6 | |
a667869d | 17430 | else |
5053a6d1 DWT |
17431 | |
17432 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
17433 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
17434 | . ./conftest.sh | |
17435 | rm -f ./conftest.sh | |
17436 | acl_cv_rpath=done | |
17437 | ||
a667869d | 17438 | fi |
5053a6d1 DWT |
17439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
17440 | $as_echo "$acl_cv_rpath" >&6; } | |
17441 | wl="$acl_cv_wl" | |
17442 | acl_libext="$acl_cv_libext" | |
17443 | acl_shlibext="$acl_cv_shlibext" | |
17444 | acl_libname_spec="$acl_cv_libname_spec" | |
17445 | acl_library_names_spec="$acl_cv_library_names_spec" | |
17446 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
17447 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
17448 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
17449 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
17450 | # Check whether --enable-rpath was given. | |
17451 | if test "${enable_rpath+set}" = set; then : | |
17452 | enableval=$enable_rpath; : | |
17453 | else | |
17454 | enable_rpath=yes | |
a667869d | 17455 | fi |
a667869d | 17456 | |
a667869d | 17457 | |
a667869d | 17458 | |
5053a6d1 DWT |
17459 | acl_libdirstem=lib |
17460 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
17461 | if test -n "$searchpath"; then | |
17462 | acl_save_IFS="${IFS= }"; IFS=":" | |
17463 | for searchdir in $searchpath; do | |
17464 | if test -d "$searchdir"; then | |
17465 | case "$searchdir" in | |
17466 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
17467 | *) searchdir=`cd "$searchdir" && pwd` | |
17468 | case "$searchdir" in | |
17469 | */lib64 ) acl_libdirstem=lib64 ;; | |
17470 | esac ;; | |
17471 | esac | |
17472 | fi | |
17473 | done | |
17474 | IFS="$acl_save_IFS" | |
17475 | fi | |
9c60689e | 17476 | |
9c60689e | 17477 | |
9c60689e | 17478 | |
9c60689e | 17479 | |
9c60689e | 17480 | |
9c60689e | 17481 | |
9c60689e | 17482 | |
9c60689e | 17483 | |
9c60689e | 17484 | |
5053a6d1 | 17485 | use_additional=yes |
9c60689e | 17486 | |
5053a6d1 DWT |
17487 | acl_save_prefix="$prefix" |
17488 | prefix="$acl_final_prefix" | |
17489 | acl_save_exec_prefix="$exec_prefix" | |
17490 | exec_prefix="$acl_final_exec_prefix" | |
9c60689e | 17491 | |
5053a6d1 DWT |
17492 | eval additional_includedir=\"$includedir\" |
17493 | eval additional_libdir=\"$libdir\" | |
9c60689e | 17494 | |
5053a6d1 DWT |
17495 | exec_prefix="$acl_save_exec_prefix" |
17496 | prefix="$acl_save_prefix" | |
3fd51f51 DWT |
17497 | |
17498 | ||
5053a6d1 DWT |
17499 | # Check whether --with-libiconv-prefix was given. |
17500 | if test "${with_libiconv_prefix+set}" = set; then : | |
17501 | withval=$with_libiconv_prefix; | |
17502 | if test "X$withval" = "Xno"; then | |
17503 | use_additional=no | |
17504 | else | |
17505 | if test "X$withval" = "X"; then | |
3fd51f51 DWT |
17506 | |
17507 | acl_save_prefix="$prefix" | |
17508 | prefix="$acl_final_prefix" | |
17509 | acl_save_exec_prefix="$exec_prefix" | |
17510 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
17511 | |
17512 | eval additional_includedir=\"$includedir\" | |
17513 | eval additional_libdir=\"$libdir\" | |
17514 | ||
3fd51f51 DWT |
17515 | exec_prefix="$acl_save_exec_prefix" |
17516 | prefix="$acl_save_prefix" | |
17517 | ||
5053a6d1 DWT |
17518 | else |
17519 | additional_includedir="$withval/include" | |
17520 | additional_libdir="$withval/$acl_libdirstem" | |
3fd51f51 | 17521 | fi |
3fd51f51 | 17522 | fi |
3fd51f51 | 17523 | |
5053a6d1 | 17524 | fi |
3fd51f51 | 17525 | |
5053a6d1 DWT |
17526 | LIBICONV= |
17527 | LTLIBICONV= | |
17528 | INCICONV= | |
17529 | LIBICONV_PREFIX= | |
17530 | rpathdirs= | |
17531 | ltrpathdirs= | |
17532 | names_already_handled= | |
17533 | names_next_round='iconv ' | |
17534 | while test -n "$names_next_round"; do | |
17535 | names_this_round="$names_next_round" | |
17536 | names_next_round= | |
17537 | for name in $names_this_round; do | |
17538 | already_handled= | |
17539 | for n in $names_already_handled; do | |
17540 | if test "$n" = "$name"; then | |
17541 | already_handled=yes | |
17542 | break | |
17543 | fi | |
17544 | done | |
17545 | if test -z "$already_handled"; then | |
17546 | names_already_handled="$names_already_handled $name" | |
17547 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
17548 | eval value=\"\$HAVE_LIB$uppername\" | |
17549 | if test -n "$value"; then | |
17550 | if test "$value" = yes; then | |
17551 | eval value=\"\$LIB$uppername\" | |
17552 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
17553 | eval value=\"\$LTLIB$uppername\" | |
17554 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
17555 | else | |
17556 | : | |
17557 | fi | |
17558 | else | |
17559 | found_dir= | |
17560 | found_la= | |
17561 | found_so= | |
17562 | found_a= | |
17563 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
17564 | if test -n "$acl_shlibext"; then | |
17565 | shrext=".$acl_shlibext" # typically: shrext=.so | |
17566 | else | |
17567 | shrext= | |
17568 | fi | |
17569 | if test $use_additional = yes; then | |
17570 | dir="$additional_libdir" | |
17571 | if test -n "$acl_shlibext"; then | |
17572 | if test -f "$dir/$libname$shrext"; then | |
17573 | found_dir="$dir" | |
17574 | found_so="$dir/$libname$shrext" | |
17575 | else | |
17576 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
17577 | ver=`(cd "$dir" && \ | |
17578 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
17579 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
17580 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
17581 | | sed 1q ) 2>/dev/null` | |
17582 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
17583 | found_dir="$dir" | |
17584 | found_so="$dir/$libname$shrext.$ver" | |
17585 | fi | |
17586 | else | |
17587 | eval library_names=\"$acl_library_names_spec\" | |
17588 | for f in $library_names; do | |
17589 | if test -f "$dir/$f"; then | |
17590 | found_dir="$dir" | |
17591 | found_so="$dir/$f" | |
17592 | break | |
17593 | fi | |
17594 | done | |
17595 | fi | |
17596 | fi | |
17597 | fi | |
17598 | if test "X$found_dir" = "X"; then | |
17599 | if test -f "$dir/$libname.$acl_libext"; then | |
17600 | found_dir="$dir" | |
17601 | found_a="$dir/$libname.$acl_libext" | |
17602 | fi | |
17603 | fi | |
17604 | if test "X$found_dir" != "X"; then | |
17605 | if test -f "$dir/$libname.la"; then | |
17606 | found_la="$dir/$libname.la" | |
17607 | fi | |
17608 | fi | |
17609 | fi | |
17610 | if test "X$found_dir" = "X"; then | |
17611 | for x in $LDFLAGS $LTLIBICONV; do | |
3fd51f51 DWT |
17612 | |
17613 | acl_save_prefix="$prefix" | |
17614 | prefix="$acl_final_prefix" | |
17615 | acl_save_exec_prefix="$exec_prefix" | |
17616 | exec_prefix="$acl_final_exec_prefix" | |
17617 | eval x=\"$x\" | |
17618 | exec_prefix="$acl_save_exec_prefix" | |
17619 | prefix="$acl_save_prefix" | |
17620 | ||
5053a6d1 DWT |
17621 | case "$x" in |
17622 | -L*) | |
17623 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
17624 | if test -n "$acl_shlibext"; then | |
17625 | if test -f "$dir/$libname$shrext"; then | |
17626 | found_dir="$dir" | |
17627 | found_so="$dir/$libname$shrext" | |
17628 | else | |
17629 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
17630 | ver=`(cd "$dir" && \ | |
17631 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
17632 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
17633 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
17634 | | sed 1q ) 2>/dev/null` | |
17635 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
17636 | found_dir="$dir" | |
17637 | found_so="$dir/$libname$shrext.$ver" | |
17638 | fi | |
17639 | else | |
17640 | eval library_names=\"$acl_library_names_spec\" | |
17641 | for f in $library_names; do | |
17642 | if test -f "$dir/$f"; then | |
17643 | found_dir="$dir" | |
17644 | found_so="$dir/$f" | |
17645 | break | |
17646 | fi | |
17647 | done | |
17648 | fi | |
17649 | fi | |
17650 | fi | |
17651 | if test "X$found_dir" = "X"; then | |
17652 | if test -f "$dir/$libname.$acl_libext"; then | |
17653 | found_dir="$dir" | |
17654 | found_a="$dir/$libname.$acl_libext" | |
17655 | fi | |
17656 | fi | |
17657 | if test "X$found_dir" != "X"; then | |
17658 | if test -f "$dir/$libname.la"; then | |
17659 | found_la="$dir/$libname.la" | |
17660 | fi | |
17661 | fi | |
17662 | ;; | |
17663 | esac | |
17664 | if test "X$found_dir" != "X"; then | |
17665 | break | |
17666 | fi | |
17667 | done | |
17668 | fi | |
17669 | if test "X$found_dir" != "X"; then | |
17670 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
17671 | if test "X$found_so" != "X"; then | |
17672 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
17673 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
17674 | else | |
17675 | haveit= | |
17676 | for x in $ltrpathdirs; do | |
17677 | if test "X$x" = "X$found_dir"; then | |
17678 | haveit=yes | |
17679 | break | |
17680 | fi | |
17681 | done | |
17682 | if test -z "$haveit"; then | |
17683 | ltrpathdirs="$ltrpathdirs $found_dir" | |
17684 | fi | |
17685 | if test "$acl_hardcode_direct" = yes; then | |
17686 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
17687 | else | |
17688 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
17689 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
17690 | haveit= | |
17691 | for x in $rpathdirs; do | |
17692 | if test "X$x" = "X$found_dir"; then | |
17693 | haveit=yes | |
17694 | break | |
17695 | fi | |
17696 | done | |
17697 | if test -z "$haveit"; then | |
17698 | rpathdirs="$rpathdirs $found_dir" | |
17699 | fi | |
17700 | else | |
17701 | haveit= | |
17702 | for x in $LDFLAGS $LIBICONV; do | |
c823f118 DWT |
17703 | |
17704 | acl_save_prefix="$prefix" | |
17705 | prefix="$acl_final_prefix" | |
17706 | acl_save_exec_prefix="$exec_prefix" | |
17707 | exec_prefix="$acl_final_exec_prefix" | |
17708 | eval x=\"$x\" | |
17709 | exec_prefix="$acl_save_exec_prefix" | |
17710 | prefix="$acl_save_prefix" | |
17711 | ||
5053a6d1 DWT |
17712 | if test "X$x" = "X-L$found_dir"; then |
17713 | haveit=yes | |
17714 | break | |
17715 | fi | |
17716 | done | |
17717 | if test -z "$haveit"; then | |
17718 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
17719 | fi | |
17720 | if test "$acl_hardcode_minus_L" != no; then | |
17721 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
17722 | else | |
17723 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
17724 | fi | |
17725 | fi | |
17726 | fi | |
17727 | fi | |
17728 | else | |
17729 | if test "X$found_a" != "X"; then | |
17730 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
17731 | else | |
17732 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
17733 | fi | |
17734 | fi | |
17735 | additional_includedir= | |
17736 | case "$found_dir" in | |
17737 | */$acl_libdirstem | */$acl_libdirstem/) | |
17738 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
17739 | LIBICONV_PREFIX="$basedir" | |
17740 | additional_includedir="$basedir/include" | |
17741 | ;; | |
17742 | esac | |
17743 | if test "X$additional_includedir" != "X"; then | |
17744 | if test "X$additional_includedir" != "X/usr/include"; then | |
17745 | haveit= | |
17746 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
17747 | if test -n "$GCC"; then | |
17748 | case $host_os in | |
17749 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
17750 | esac | |
17751 | fi | |
17752 | fi | |
17753 | if test -z "$haveit"; then | |
17754 | for x in $CPPFLAGS $INCICONV; do | |
c823f118 DWT |
17755 | |
17756 | acl_save_prefix="$prefix" | |
17757 | prefix="$acl_final_prefix" | |
17758 | acl_save_exec_prefix="$exec_prefix" | |
17759 | exec_prefix="$acl_final_exec_prefix" | |
17760 | eval x=\"$x\" | |
17761 | exec_prefix="$acl_save_exec_prefix" | |
17762 | prefix="$acl_save_prefix" | |
17763 | ||
5053a6d1 DWT |
17764 | if test "X$x" = "X-I$additional_includedir"; then |
17765 | haveit=yes | |
17766 | break | |
17767 | fi | |
17768 | done | |
17769 | if test -z "$haveit"; then | |
17770 | if test -d "$additional_includedir"; then | |
17771 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
17772 | fi | |
17773 | fi | |
17774 | fi | |
17775 | fi | |
17776 | fi | |
17777 | if test -n "$found_la"; then | |
17778 | save_libdir="$libdir" | |
17779 | case "$found_la" in | |
17780 | */* | *\\*) . "$found_la" ;; | |
17781 | *) . "./$found_la" ;; | |
17782 | esac | |
17783 | libdir="$save_libdir" | |
17784 | for dep in $dependency_libs; do | |
17785 | case "$dep" in | |
17786 | -L*) | |
17787 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
17788 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
17789 | haveit= | |
17790 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
17791 | if test -n "$GCC"; then | |
17792 | case $host_os in | |
17793 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
17794 | esac | |
17795 | fi | |
17796 | fi | |
17797 | if test -z "$haveit"; then | |
17798 | haveit= | |
17799 | for x in $LDFLAGS $LIBICONV; do | |
c823f118 | 17800 | |
5053a6d1 DWT |
17801 | acl_save_prefix="$prefix" |
17802 | prefix="$acl_final_prefix" | |
17803 | acl_save_exec_prefix="$exec_prefix" | |
17804 | exec_prefix="$acl_final_exec_prefix" | |
17805 | eval x=\"$x\" | |
17806 | exec_prefix="$acl_save_exec_prefix" | |
17807 | prefix="$acl_save_prefix" | |
c823f118 | 17808 | |
5053a6d1 DWT |
17809 | if test "X$x" = "X-L$additional_libdir"; then |
17810 | haveit=yes | |
17811 | break | |
17812 | fi | |
17813 | done | |
17814 | if test -z "$haveit"; then | |
17815 | if test -d "$additional_libdir"; then | |
17816 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
17817 | fi | |
17818 | fi | |
17819 | haveit= | |
17820 | for x in $LDFLAGS $LTLIBICONV; do | |
c823f118 DWT |
17821 | |
17822 | acl_save_prefix="$prefix" | |
17823 | prefix="$acl_final_prefix" | |
17824 | acl_save_exec_prefix="$exec_prefix" | |
17825 | exec_prefix="$acl_final_exec_prefix" | |
17826 | eval x=\"$x\" | |
17827 | exec_prefix="$acl_save_exec_prefix" | |
17828 | prefix="$acl_save_prefix" | |
17829 | ||
5053a6d1 DWT |
17830 | if test "X$x" = "X-L$additional_libdir"; then |
17831 | haveit=yes | |
17832 | break | |
17833 | fi | |
17834 | done | |
17835 | if test -z "$haveit"; then | |
17836 | if test -d "$additional_libdir"; then | |
17837 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
17838 | fi | |
17839 | fi | |
17840 | fi | |
17841 | fi | |
17842 | ;; | |
17843 | -R*) | |
17844 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
17845 | if test "$enable_rpath" != no; then | |
17846 | haveit= | |
17847 | for x in $rpathdirs; do | |
17848 | if test "X$x" = "X$dir"; then | |
17849 | haveit=yes | |
17850 | break | |
17851 | fi | |
17852 | done | |
17853 | if test -z "$haveit"; then | |
17854 | rpathdirs="$rpathdirs $dir" | |
17855 | fi | |
17856 | haveit= | |
17857 | for x in $ltrpathdirs; do | |
17858 | if test "X$x" = "X$dir"; then | |
17859 | haveit=yes | |
17860 | break | |
17861 | fi | |
17862 | done | |
17863 | if test -z "$haveit"; then | |
17864 | ltrpathdirs="$ltrpathdirs $dir" | |
17865 | fi | |
17866 | fi | |
17867 | ;; | |
17868 | -l*) | |
17869 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
17870 | ;; | |
17871 | *.la) | |
17872 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
17873 | ;; | |
17874 | *) | |
17875 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
17876 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
17877 | ;; | |
17878 | esac | |
17879 | done | |
17880 | fi | |
17881 | else | |
17882 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
17883 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
17884 | fi | |
17885 | fi | |
c823f118 DWT |
17886 | fi |
17887 | done | |
c823f118 | 17888 | done |
5053a6d1 DWT |
17889 | if test "X$rpathdirs" != "X"; then |
17890 | if test -n "$acl_hardcode_libdir_separator"; then | |
17891 | alldirs= | |
17892 | for found_dir in $rpathdirs; do | |
17893 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
17894 | done | |
17895 | acl_save_libdir="$libdir" | |
17896 | libdir="$alldirs" | |
17897 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
17898 | libdir="$acl_save_libdir" | |
17899 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
17900 | else | |
17901 | for found_dir in $rpathdirs; do | |
17902 | acl_save_libdir="$libdir" | |
17903 | libdir="$found_dir" | |
17904 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
17905 | libdir="$acl_save_libdir" | |
17906 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
17907 | done | |
17908 | fi | |
17909 | fi | |
17910 | if test "X$ltrpathdirs" != "X"; then | |
17911 | for found_dir in $ltrpathdirs; do | |
17912 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
17913 | done | |
47aaa820 | 17914 | fi |
47aaa820 DWT |
17915 | |
17916 | ||
47aaa820 | 17917 | |
47aaa820 DWT |
17918 | |
17919 | ||
17920 | ||
5053a6d1 DWT |
17921 | |
17922 | am_save_CPPFLAGS="$CPPFLAGS" | |
17923 | ||
17924 | for element in $INCICONV; do | |
47aaa820 | 17925 | haveit= |
5053a6d1 | 17926 | for x in $CPPFLAGS; do |
47aaa820 DWT |
17927 | |
17928 | acl_save_prefix="$prefix" | |
17929 | prefix="$acl_final_prefix" | |
17930 | acl_save_exec_prefix="$exec_prefix" | |
17931 | exec_prefix="$acl_final_exec_prefix" | |
17932 | eval x=\"$x\" | |
17933 | exec_prefix="$acl_save_exec_prefix" | |
17934 | prefix="$acl_save_prefix" | |
9c60689e | 17935 | |
47aaa820 DWT |
17936 | if test "X$x" = "X$element"; then |
17937 | haveit=yes | |
17938 | break | |
17939 | fi | |
17940 | done | |
17941 | if test -z "$haveit"; then | |
5053a6d1 | 17942 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
47aaa820 DWT |
17943 | fi |
17944 | done | |
17945 | ||
17946 | ||
5053a6d1 DWT |
17947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
17948 | $as_echo_n "checking for iconv... " >&6; } | |
17949 | if test "${am_cv_func_iconv+set}" = set; then : | |
17950 | $as_echo_n "(cached) " >&6 | |
17951 | else | |
47aaa820 | 17952 | |
5053a6d1 DWT |
17953 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17954 | am_cv_lib_iconv=no | |
17955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17956 | /* end confdefs.h. */ | |
17957 | #include <stdlib.h> | |
17958 | #include <iconv.h> | |
17959 | int | |
17960 | main () | |
17961 | { | |
17962 | iconv_t cd = iconv_open("",""); | |
17963 | iconv(cd,NULL,NULL,NULL,NULL); | |
17964 | iconv_close(cd); | |
17965 | ; | |
17966 | return 0; | |
17967 | } | |
17968 | _ACEOF | |
17969 | if ac_fn_c_try_link "$LINENO"; then : | |
17970 | am_cv_func_iconv=yes | |
17971 | fi | |
17972 | rm -f core conftest.err conftest.$ac_objext \ | |
17973 | conftest$ac_exeext conftest.$ac_ext | |
17974 | if test "$am_cv_func_iconv" != yes; then | |
17975 | am_save_LIBS="$LIBS" | |
17976 | LIBS="$LIBS $LIBICONV" | |
17977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17978 | /* end confdefs.h. */ | |
17979 | #include <stdlib.h> | |
17980 | #include <iconv.h> | |
17981 | int | |
17982 | main () | |
17983 | { | |
17984 | iconv_t cd = iconv_open("",""); | |
17985 | iconv(cd,NULL,NULL,NULL,NULL); | |
17986 | iconv_close(cd); | |
17987 | ; | |
17988 | return 0; | |
17989 | } | |
17990 | _ACEOF | |
17991 | if ac_fn_c_try_link "$LINENO"; then : | |
17992 | am_cv_lib_iconv=yes | |
17993 | am_cv_func_iconv=yes | |
17994 | fi | |
17995 | rm -f core conftest.err conftest.$ac_objext \ | |
17996 | conftest$ac_exeext conftest.$ac_ext | |
17997 | LIBS="$am_save_LIBS" | |
47aaa820 | 17998 | fi |
47aaa820 | 17999 | |
5053a6d1 DWT |
18000 | fi |
18001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
18002 | $as_echo "$am_cv_func_iconv" >&6; } | |
18003 | if test "$am_cv_func_iconv" = yes; then | |
18004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
18005 | $as_echo_n "checking for working iconv... " >&6; } | |
18006 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
18007 | $as_echo_n "(cached) " >&6 | |
18008 | else | |
47aaa820 | 18009 | |
5053a6d1 DWT |
18010 | am_save_LIBS="$LIBS" |
18011 | if test $am_cv_lib_iconv = yes; then | |
18012 | LIBS="$LIBS $LIBICONV" | |
18013 | fi | |
18014 | if test "$cross_compiling" = yes; then : | |
18015 | case "$host_os" in | |
18016 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
18017 | *) am_cv_func_iconv_works="guessing yes" ;; | |
18018 | esac | |
c823f118 | 18019 | else |
5053a6d1 DWT |
18020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18021 | /* end confdefs.h. */ | |
c823f118 | 18022 | |
5053a6d1 DWT |
18023 | #include <iconv.h> |
18024 | #include <string.h> | |
18025 | int main () | |
18026 | { | |
18027 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
18028 | returns. */ | |
18029 | { | |
18030 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
18031 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
18032 | { | |
18033 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
18034 | char buf[10]; | |
18035 | const char *inptr = input; | |
18036 | size_t inbytesleft = strlen (input); | |
18037 | char *outptr = buf; | |
18038 | size_t outbytesleft = sizeof (buf); | |
18039 | size_t res = iconv (cd_utf8_to_88591, | |
18040 | (char **) &inptr, &inbytesleft, | |
18041 | &outptr, &outbytesleft); | |
18042 | if (res == 0) | |
18043 | return 1; | |
18044 | } | |
18045 | } | |
18046 | #if 0 /* This bug could be worked around by the caller. */ | |
18047 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
18048 | { | |
18049 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
18050 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
18051 | { | |
18052 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
18053 | char buf[50]; | |
18054 | const char *inptr = input; | |
18055 | size_t inbytesleft = strlen (input); | |
18056 | char *outptr = buf; | |
18057 | size_t outbytesleft = sizeof (buf); | |
18058 | size_t res = iconv (cd_88591_to_utf8, | |
18059 | (char **) &inptr, &inbytesleft, | |
18060 | &outptr, &outbytesleft); | |
18061 | if ((int)res > 0) | |
18062 | return 1; | |
18063 | } | |
18064 | } | |
18065 | #endif | |
18066 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
18067 | provided. */ | |
18068 | if (/* Try standardized names. */ | |
18069 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
18070 | /* Try IRIX, OSF/1 names. */ | |
18071 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
18072 | /* Try AIX names. */ | |
18073 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
18074 | /* Try HP-UX names. */ | |
18075 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
18076 | return 1; | |
18077 | return 0; | |
18078 | } | |
18079 | _ACEOF | |
18080 | if ac_fn_c_try_run "$LINENO"; then : | |
18081 | am_cv_func_iconv_works=yes | |
18082 | else | |
18083 | am_cv_func_iconv_works=no | |
18084 | fi | |
18085 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
18086 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c823f118 DWT |
18087 | fi |
18088 | ||
5053a6d1 DWT |
18089 | LIBS="$am_save_LIBS" |
18090 | ||
47aaa820 | 18091 | fi |
5053a6d1 DWT |
18092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
18093 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
18094 | case "$am_cv_func_iconv_works" in | |
18095 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
18096 | *) am_func_iconv=yes ;; | |
18097 | esac | |
18098 | else | |
18099 | am_func_iconv=no am_cv_lib_iconv=no | |
18100 | fi | |
18101 | if test "$am_func_iconv" = yes; then | |
18102 | ||
18103 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
18104 | ||
18105 | fi | |
18106 | if test "$am_cv_lib_iconv" = yes; then | |
18107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
18108 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
18109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
18110 | $as_echo "$LIBICONV" >&6; } | |
18111 | else | |
18112 | CPPFLAGS="$am_save_CPPFLAGS" | |
18113 | LIBICONV= | |
18114 | LTLIBICONV= | |
18115 | fi | |
18116 | ||
18117 | ||
18118 | ||
18119 | if test "$am_cv_func_iconv" = yes; then | |
18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
18121 | $as_echo_n "checking for iconv declaration... " >&6; } | |
18122 | if test "${am_cv_proto_iconv+set}" = set; then : | |
18123 | $as_echo_n "(cached) " >&6 | |
18124 | else | |
18125 | ||
18126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18127 | /* end confdefs.h. */ | |
18128 | ||
18129 | #include <stdlib.h> | |
18130 | #include <iconv.h> | |
18131 | extern | |
18132 | #ifdef __cplusplus | |
18133 | "C" | |
18134 | #endif | |
18135 | #if defined(__STDC__) || defined(__cplusplus) | |
18136 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
18137 | #else | |
18138 | size_t iconv(); | |
18139 | #endif | |
18140 | ||
18141 | int | |
18142 | main () | |
18143 | { | |
47aaa820 | 18144 | |
5053a6d1 DWT |
18145 | ; |
18146 | return 0; | |
18147 | } | |
18148 | _ACEOF | |
18149 | if ac_fn_c_try_compile "$LINENO"; then : | |
18150 | am_cv_proto_iconv_arg1="" | |
18151 | else | |
18152 | am_cv_proto_iconv_arg1="const" | |
47aaa820 | 18153 | fi |
5053a6d1 DWT |
18154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18155 | 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);" | |
18156 | fi | |
18157 | ||
18158 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
18159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
18160 | }$am_cv_proto_iconv" >&5 | |
18161 | $as_echo "${ac_t:- | |
18162 | }$am_cv_proto_iconv" >&6; } | |
18163 | ||
18164 | cat >>confdefs.h <<_ACEOF | |
18165 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
18166 | _ACEOF | |
18167 | ||
18168 | fi | |
18169 | ||
5053a6d1 DWT |
18170 | case $am_cv_func_iconv in #( |
18171 | yes) : | |
18172 | ;; #( | |
a667869d | 18173 | *) : |
058f1bc8 DWT |
18174 | |
18175 | for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do | |
18176 | case $cy_iconv_prefix_arg in #( | |
18177 | -I*) : | |
18178 | ||
18179 | ||
18180 | for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do | |
18181 | haveit= | |
18182 | for x in $cy_iconv_prefixes; do | |
18183 | ||
18184 | acl_save_prefix="$prefix" | |
18185 | prefix="$acl_final_prefix" | |
18186 | acl_save_exec_prefix="$exec_prefix" | |
18187 | exec_prefix="$acl_final_exec_prefix" | |
18188 | eval x=\"$x\" | |
18189 | exec_prefix="$acl_save_exec_prefix" | |
18190 | prefix="$acl_save_prefix" | |
18191 | ||
18192 | if test "X$x" = "X$element"; then | |
18193 | haveit=yes | |
18194 | break | |
18195 | fi | |
18196 | done | |
18197 | if test -z "$haveit"; then | |
18198 | cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element" | |
18199 | fi | |
18200 | done | |
18201 | ||
18202 | ;; #( | |
18203 | -L*) : | |
18204 | ||
18205 | ||
18206 | for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do | |
18207 | haveit= | |
18208 | for x in $cy_iconv_prefixes; do | |
18209 | ||
18210 | acl_save_prefix="$prefix" | |
18211 | prefix="$acl_final_prefix" | |
18212 | acl_save_exec_prefix="$exec_prefix" | |
18213 | exec_prefix="$acl_final_exec_prefix" | |
18214 | eval x=\"$x\" | |
18215 | exec_prefix="$acl_save_exec_prefix" | |
18216 | prefix="$acl_save_prefix" | |
18217 | ||
18218 | if test "X$x" = "X$element"; then | |
18219 | haveit=yes | |
18220 | break | |
18221 | fi | |
18222 | done | |
18223 | if test -z "$haveit"; then | |
18224 | cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element" | |
18225 | fi | |
18226 | done | |
18227 | ||
18228 | ;; #( | |
18229 | *) : | |
18230 | ;; | |
a667869d | 18231 | esac |
058f1bc8 DWT |
18232 | done |
18233 | for with_libiconv_prefix in $cy_iconv_prefixes; do | |
18234 | { am_cv_func_iconv=; unset am_cv_func_iconv;} | |
18235 | ||
18236 | ||
18237 | ||
18238 | ||
18239 | ||
18240 | ||
18241 | ||
18242 | ||
18243 | use_additional=yes | |
18244 | ||
18245 | acl_save_prefix="$prefix" | |
18246 | prefix="$acl_final_prefix" | |
18247 | acl_save_exec_prefix="$exec_prefix" | |
18248 | exec_prefix="$acl_final_exec_prefix" | |
18249 | ||
18250 | eval additional_includedir=\"$includedir\" | |
18251 | eval additional_libdir=\"$libdir\" | |
18252 | ||
18253 | exec_prefix="$acl_save_exec_prefix" | |
18254 | prefix="$acl_save_prefix" | |
18255 | ||
18256 | ||
18257 | # Check whether --with-libiconv-prefix was given. | |
18258 | if test "${with_libiconv_prefix+set}" = set; then : | |
18259 | withval=$with_libiconv_prefix; | |
18260 | if test "X$withval" = "Xno"; then | |
18261 | use_additional=no | |
18262 | else | |
18263 | if test "X$withval" = "X"; then | |
18264 | ||
18265 | acl_save_prefix="$prefix" | |
18266 | prefix="$acl_final_prefix" | |
18267 | acl_save_exec_prefix="$exec_prefix" | |
18268 | exec_prefix="$acl_final_exec_prefix" | |
18269 | ||
18270 | eval additional_includedir=\"$includedir\" | |
18271 | eval additional_libdir=\"$libdir\" | |
18272 | ||
18273 | exec_prefix="$acl_save_exec_prefix" | |
18274 | prefix="$acl_save_prefix" | |
18275 | ||
18276 | else | |
18277 | additional_includedir="$withval/include" | |
18278 | additional_libdir="$withval/$acl_libdirstem" | |
18279 | fi | |
18280 | fi | |
18281 | ||
18282 | fi | |
18283 | ||
18284 | LIBICONV= | |
18285 | LTLIBICONV= | |
18286 | INCICONV= | |
18287 | LIBICONV_PREFIX= | |
18288 | rpathdirs= | |
18289 | ltrpathdirs= | |
18290 | names_already_handled= | |
18291 | names_next_round='iconv ' | |
18292 | while test -n "$names_next_round"; do | |
18293 | names_this_round="$names_next_round" | |
18294 | names_next_round= | |
18295 | for name in $names_this_round; do | |
18296 | already_handled= | |
18297 | for n in $names_already_handled; do | |
18298 | if test "$n" = "$name"; then | |
18299 | already_handled=yes | |
18300 | break | |
18301 | fi | |
18302 | done | |
18303 | if test -z "$already_handled"; then | |
18304 | names_already_handled="$names_already_handled $name" | |
18305 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
18306 | eval value=\"\$HAVE_LIB$uppername\" | |
18307 | if test -n "$value"; then | |
18308 | if test "$value" = yes; then | |
18309 | eval value=\"\$LIB$uppername\" | |
18310 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
18311 | eval value=\"\$LTLIB$uppername\" | |
18312 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
18313 | else | |
18314 | : | |
18315 | fi | |
18316 | else | |
18317 | found_dir= | |
18318 | found_la= | |
18319 | found_so= | |
18320 | found_a= | |
18321 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
18322 | if test -n "$acl_shlibext"; then | |
18323 | shrext=".$acl_shlibext" # typically: shrext=.so | |
18324 | else | |
18325 | shrext= | |
18326 | fi | |
18327 | if test $use_additional = yes; then | |
18328 | dir="$additional_libdir" | |
18329 | if test -n "$acl_shlibext"; then | |
18330 | if test -f "$dir/$libname$shrext"; then | |
18331 | found_dir="$dir" | |
18332 | found_so="$dir/$libname$shrext" | |
18333 | else | |
18334 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
18335 | ver=`(cd "$dir" && \ | |
18336 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
18337 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
18338 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18339 | | sed 1q ) 2>/dev/null` | |
18340 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18341 | found_dir="$dir" | |
18342 | found_so="$dir/$libname$shrext.$ver" | |
18343 | fi | |
18344 | else | |
18345 | eval library_names=\"$acl_library_names_spec\" | |
18346 | for f in $library_names; do | |
18347 | if test -f "$dir/$f"; then | |
18348 | found_dir="$dir" | |
18349 | found_so="$dir/$f" | |
18350 | break | |
18351 | fi | |
18352 | done | |
18353 | fi | |
18354 | fi | |
18355 | fi | |
18356 | if test "X$found_dir" = "X"; then | |
18357 | if test -f "$dir/$libname.$acl_libext"; then | |
18358 | found_dir="$dir" | |
18359 | found_a="$dir/$libname.$acl_libext" | |
18360 | fi | |
18361 | fi | |
18362 | if test "X$found_dir" != "X"; then | |
18363 | if test -f "$dir/$libname.la"; then | |
18364 | found_la="$dir/$libname.la" | |
18365 | fi | |
18366 | fi | |
18367 | fi | |
18368 | if test "X$found_dir" = "X"; then | |
18369 | for x in $LDFLAGS $LTLIBICONV; do | |
18370 | ||
18371 | acl_save_prefix="$prefix" | |
18372 | prefix="$acl_final_prefix" | |
18373 | acl_save_exec_prefix="$exec_prefix" | |
18374 | exec_prefix="$acl_final_exec_prefix" | |
18375 | eval x=\"$x\" | |
18376 | exec_prefix="$acl_save_exec_prefix" | |
18377 | prefix="$acl_save_prefix" | |
18378 | ||
18379 | case "$x" in | |
18380 | -L*) | |
18381 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
18382 | if test -n "$acl_shlibext"; then | |
18383 | if test -f "$dir/$libname$shrext"; then | |
18384 | found_dir="$dir" | |
18385 | found_so="$dir/$libname$shrext" | |
18386 | else | |
18387 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
18388 | ver=`(cd "$dir" && \ | |
18389 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
18390 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
18391 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18392 | | sed 1q ) 2>/dev/null` | |
18393 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18394 | found_dir="$dir" | |
18395 | found_so="$dir/$libname$shrext.$ver" | |
18396 | fi | |
18397 | else | |
18398 | eval library_names=\"$acl_library_names_spec\" | |
18399 | for f in $library_names; do | |
18400 | if test -f "$dir/$f"; then | |
18401 | found_dir="$dir" | |
18402 | found_so="$dir/$f" | |
18403 | break | |
18404 | fi | |
18405 | done | |
18406 | fi | |
18407 | fi | |
18408 | fi | |
18409 | if test "X$found_dir" = "X"; then | |
18410 | if test -f "$dir/$libname.$acl_libext"; then | |
18411 | found_dir="$dir" | |
18412 | found_a="$dir/$libname.$acl_libext" | |
18413 | fi | |
18414 | fi | |
18415 | if test "X$found_dir" != "X"; then | |
18416 | if test -f "$dir/$libname.la"; then | |
18417 | found_la="$dir/$libname.la" | |
18418 | fi | |
18419 | fi | |
18420 | ;; | |
18421 | esac | |
18422 | if test "X$found_dir" != "X"; then | |
18423 | break | |
18424 | fi | |
18425 | done | |
18426 | fi | |
18427 | if test "X$found_dir" != "X"; then | |
18428 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
18429 | if test "X$found_so" != "X"; then | |
18430 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
18431 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18432 | else | |
18433 | haveit= | |
18434 | for x in $ltrpathdirs; do | |
18435 | if test "X$x" = "X$found_dir"; then | |
18436 | haveit=yes | |
18437 | break | |
18438 | fi | |
18439 | done | |
18440 | if test -z "$haveit"; then | |
18441 | ltrpathdirs="$ltrpathdirs $found_dir" | |
18442 | fi | |
18443 | if test "$acl_hardcode_direct" = yes; then | |
18444 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18445 | else | |
18446 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
18447 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18448 | haveit= | |
18449 | for x in $rpathdirs; do | |
18450 | if test "X$x" = "X$found_dir"; then | |
18451 | haveit=yes | |
18452 | break | |
18453 | fi | |
18454 | done | |
18455 | if test -z "$haveit"; then | |
18456 | rpathdirs="$rpathdirs $found_dir" | |
18457 | fi | |
18458 | else | |
18459 | haveit= | |
18460 | for x in $LDFLAGS $LIBICONV; do | |
18461 | ||
18462 | acl_save_prefix="$prefix" | |
18463 | prefix="$acl_final_prefix" | |
18464 | acl_save_exec_prefix="$exec_prefix" | |
18465 | exec_prefix="$acl_final_exec_prefix" | |
18466 | eval x=\"$x\" | |
18467 | exec_prefix="$acl_save_exec_prefix" | |
18468 | prefix="$acl_save_prefix" | |
18469 | ||
18470 | if test "X$x" = "X-L$found_dir"; then | |
18471 | haveit=yes | |
18472 | break | |
18473 | fi | |
18474 | done | |
18475 | if test -z "$haveit"; then | |
18476 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
18477 | fi | |
18478 | if test "$acl_hardcode_minus_L" != no; then | |
18479 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18480 | else | |
18481 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
18482 | fi | |
18483 | fi | |
18484 | fi | |
18485 | fi | |
18486 | else | |
18487 | if test "X$found_a" != "X"; then | |
18488 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
18489 | else | |
18490 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
18491 | fi | |
18492 | fi | |
18493 | additional_includedir= | |
18494 | case "$found_dir" in | |
18495 | */$acl_libdirstem | */$acl_libdirstem/) | |
18496 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
18497 | LIBICONV_PREFIX="$basedir" | |
18498 | additional_includedir="$basedir/include" | |
18499 | ;; | |
18500 | esac | |
18501 | if test "X$additional_includedir" != "X"; then | |
18502 | if test "X$additional_includedir" != "X/usr/include"; then | |
18503 | haveit= | |
18504 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
18505 | if test -n "$GCC"; then | |
18506 | case $host_os in | |
18507 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18508 | esac | |
18509 | fi | |
18510 | fi | |
18511 | if test -z "$haveit"; then | |
18512 | for x in $CPPFLAGS $INCICONV; do | |
18513 | ||
18514 | acl_save_prefix="$prefix" | |
18515 | prefix="$acl_final_prefix" | |
18516 | acl_save_exec_prefix="$exec_prefix" | |
18517 | exec_prefix="$acl_final_exec_prefix" | |
18518 | eval x=\"$x\" | |
18519 | exec_prefix="$acl_save_exec_prefix" | |
18520 | prefix="$acl_save_prefix" | |
18521 | ||
18522 | if test "X$x" = "X-I$additional_includedir"; then | |
18523 | haveit=yes | |
18524 | break | |
18525 | fi | |
18526 | done | |
18527 | if test -z "$haveit"; then | |
18528 | if test -d "$additional_includedir"; then | |
18529 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
18530 | fi | |
18531 | fi | |
18532 | fi | |
18533 | fi | |
18534 | fi | |
18535 | if test -n "$found_la"; then | |
18536 | save_libdir="$libdir" | |
18537 | case "$found_la" in | |
18538 | */* | *\\*) . "$found_la" ;; | |
18539 | *) . "./$found_la" ;; | |
18540 | esac | |
18541 | libdir="$save_libdir" | |
18542 | for dep in $dependency_libs; do | |
18543 | case "$dep" in | |
18544 | -L*) | |
18545 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
18546 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
18547 | haveit= | |
18548 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
18549 | if test -n "$GCC"; then | |
18550 | case $host_os in | |
18551 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18552 | esac | |
18553 | fi | |
18554 | fi | |
18555 | if test -z "$haveit"; then | |
18556 | haveit= | |
18557 | for x in $LDFLAGS $LIBICONV; do | |
18558 | ||
18559 | acl_save_prefix="$prefix" | |
18560 | prefix="$acl_final_prefix" | |
18561 | acl_save_exec_prefix="$exec_prefix" | |
18562 | exec_prefix="$acl_final_exec_prefix" | |
18563 | eval x=\"$x\" | |
18564 | exec_prefix="$acl_save_exec_prefix" | |
18565 | prefix="$acl_save_prefix" | |
18566 | ||
18567 | if test "X$x" = "X-L$additional_libdir"; then | |
18568 | haveit=yes | |
18569 | break | |
18570 | fi | |
18571 | done | |
18572 | if test -z "$haveit"; then | |
18573 | if test -d "$additional_libdir"; then | |
18574 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
18575 | fi | |
18576 | fi | |
18577 | haveit= | |
18578 | for x in $LDFLAGS $LTLIBICONV; do | |
18579 | ||
18580 | acl_save_prefix="$prefix" | |
18581 | prefix="$acl_final_prefix" | |
18582 | acl_save_exec_prefix="$exec_prefix" | |
18583 | exec_prefix="$acl_final_exec_prefix" | |
18584 | eval x=\"$x\" | |
18585 | exec_prefix="$acl_save_exec_prefix" | |
18586 | prefix="$acl_save_prefix" | |
18587 | ||
18588 | if test "X$x" = "X-L$additional_libdir"; then | |
18589 | haveit=yes | |
18590 | break | |
18591 | fi | |
18592 | done | |
18593 | if test -z "$haveit"; then | |
18594 | if test -d "$additional_libdir"; then | |
18595 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
18596 | fi | |
18597 | fi | |
18598 | fi | |
18599 | fi | |
18600 | ;; | |
18601 | -R*) | |
18602 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
18603 | if test "$enable_rpath" != no; then | |
18604 | haveit= | |
18605 | for x in $rpathdirs; do | |
18606 | if test "X$x" = "X$dir"; then | |
18607 | haveit=yes | |
18608 | break | |
18609 | fi | |
18610 | done | |
18611 | if test -z "$haveit"; then | |
18612 | rpathdirs="$rpathdirs $dir" | |
18613 | fi | |
18614 | haveit= | |
18615 | for x in $ltrpathdirs; do | |
18616 | if test "X$x" = "X$dir"; then | |
18617 | haveit=yes | |
18618 | break | |
18619 | fi | |
18620 | done | |
18621 | if test -z "$haveit"; then | |
18622 | ltrpathdirs="$ltrpathdirs $dir" | |
18623 | fi | |
18624 | fi | |
18625 | ;; | |
18626 | -l*) | |
18627 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
18628 | ;; | |
18629 | *.la) | |
18630 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
18631 | ;; | |
18632 | *) | |
18633 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
18634 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
18635 | ;; | |
18636 | esac | |
18637 | done | |
18638 | fi | |
18639 | else | |
18640 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
18641 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
18642 | fi | |
18643 | fi | |
18644 | fi | |
18645 | done | |
18646 | done | |
18647 | if test "X$rpathdirs" != "X"; then | |
18648 | if test -n "$acl_hardcode_libdir_separator"; then | |
18649 | alldirs= | |
18650 | for found_dir in $rpathdirs; do | |
18651 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
18652 | done | |
18653 | acl_save_libdir="$libdir" | |
18654 | libdir="$alldirs" | |
18655 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
18656 | libdir="$acl_save_libdir" | |
18657 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
18658 | else | |
18659 | for found_dir in $rpathdirs; do | |
18660 | acl_save_libdir="$libdir" | |
18661 | libdir="$found_dir" | |
18662 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
18663 | libdir="$acl_save_libdir" | |
18664 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
18665 | done | |
18666 | fi | |
18667 | fi | |
18668 | if test "X$ltrpathdirs" != "X"; then | |
18669 | for found_dir in $ltrpathdirs; do | |
18670 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
18671 | done | |
18672 | fi | |
18673 | ||
18674 | ||
18675 | ||
18676 | ||
18677 | ||
18678 | ||
18679 | ||
18680 | am_save_CPPFLAGS="$CPPFLAGS" | |
18681 | ||
18682 | for element in $INCICONV; do | |
18683 | haveit= | |
18684 | for x in $CPPFLAGS; do | |
18685 | ||
18686 | acl_save_prefix="$prefix" | |
18687 | prefix="$acl_final_prefix" | |
18688 | acl_save_exec_prefix="$exec_prefix" | |
18689 | exec_prefix="$acl_final_exec_prefix" | |
18690 | eval x=\"$x\" | |
18691 | exec_prefix="$acl_save_exec_prefix" | |
18692 | prefix="$acl_save_prefix" | |
18693 | ||
18694 | if test "X$x" = "X$element"; then | |
18695 | haveit=yes | |
18696 | break | |
18697 | fi | |
18698 | done | |
18699 | if test -z "$haveit"; then | |
18700 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
18701 | fi | |
18702 | done | |
18703 | ||
18704 | ||
18705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
18706 | $as_echo_n "checking for iconv... " >&6; } | |
18707 | if test "${am_cv_func_iconv+set}" = set; then : | |
18708 | $as_echo_n "(cached) " >&6 | |
18709 | else | |
18710 | ||
18711 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
18712 | am_cv_lib_iconv=no | |
18713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18714 | /* end confdefs.h. */ | |
18715 | #include <stdlib.h> | |
18716 | #include <iconv.h> | |
18717 | int | |
18718 | main () | |
18719 | { | |
18720 | iconv_t cd = iconv_open("",""); | |
18721 | iconv(cd,NULL,NULL,NULL,NULL); | |
18722 | iconv_close(cd); | |
18723 | ; | |
18724 | return 0; | |
18725 | } | |
18726 | _ACEOF | |
18727 | if ac_fn_c_try_link "$LINENO"; then : | |
18728 | am_cv_func_iconv=yes | |
18729 | fi | |
18730 | rm -f core conftest.err conftest.$ac_objext \ | |
18731 | conftest$ac_exeext conftest.$ac_ext | |
18732 | if test "$am_cv_func_iconv" != yes; then | |
18733 | am_save_LIBS="$LIBS" | |
18734 | LIBS="$LIBS $LIBICONV" | |
18735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18736 | /* end confdefs.h. */ | |
18737 | #include <stdlib.h> | |
18738 | #include <iconv.h> | |
18739 | int | |
18740 | main () | |
18741 | { | |
18742 | iconv_t cd = iconv_open("",""); | |
18743 | iconv(cd,NULL,NULL,NULL,NULL); | |
18744 | iconv_close(cd); | |
18745 | ; | |
18746 | return 0; | |
18747 | } | |
18748 | _ACEOF | |
18749 | if ac_fn_c_try_link "$LINENO"; then : | |
18750 | am_cv_lib_iconv=yes | |
18751 | am_cv_func_iconv=yes | |
18752 | fi | |
18753 | rm -f core conftest.err conftest.$ac_objext \ | |
18754 | conftest$ac_exeext conftest.$ac_ext | |
18755 | LIBS="$am_save_LIBS" | |
18756 | fi | |
18757 | ||
18758 | fi | |
18759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
18760 | $as_echo "$am_cv_func_iconv" >&6; } | |
18761 | if test "$am_cv_func_iconv" = yes; then | |
18762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
18763 | $as_echo_n "checking for working iconv... " >&6; } | |
18764 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
18765 | $as_echo_n "(cached) " >&6 | |
18766 | else | |
18767 | ||
18768 | am_save_LIBS="$LIBS" | |
18769 | if test $am_cv_lib_iconv = yes; then | |
18770 | LIBS="$LIBS $LIBICONV" | |
18771 | fi | |
18772 | if test "$cross_compiling" = yes; then : | |
18773 | case "$host_os" in | |
18774 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
18775 | *) am_cv_func_iconv_works="guessing yes" ;; | |
18776 | esac | |
18777 | else | |
18778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18779 | /* end confdefs.h. */ | |
18780 | ||
18781 | #include <iconv.h> | |
18782 | #include <string.h> | |
18783 | int main () | |
18784 | { | |
18785 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
18786 | returns. */ | |
18787 | { | |
18788 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
18789 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
18790 | { | |
18791 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
18792 | char buf[10]; | |
18793 | const char *inptr = input; | |
18794 | size_t inbytesleft = strlen (input); | |
18795 | char *outptr = buf; | |
18796 | size_t outbytesleft = sizeof (buf); | |
18797 | size_t res = iconv (cd_utf8_to_88591, | |
18798 | (char **) &inptr, &inbytesleft, | |
18799 | &outptr, &outbytesleft); | |
18800 | if (res == 0) | |
18801 | return 1; | |
18802 | } | |
18803 | } | |
18804 | #if 0 /* This bug could be worked around by the caller. */ | |
18805 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
18806 | { | |
18807 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
18808 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
18809 | { | |
18810 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
18811 | char buf[50]; | |
18812 | const char *inptr = input; | |
18813 | size_t inbytesleft = strlen (input); | |
18814 | char *outptr = buf; | |
18815 | size_t outbytesleft = sizeof (buf); | |
18816 | size_t res = iconv (cd_88591_to_utf8, | |
18817 | (char **) &inptr, &inbytesleft, | |
18818 | &outptr, &outbytesleft); | |
18819 | if ((int)res > 0) | |
18820 | return 1; | |
18821 | } | |
18822 | } | |
18823 | #endif | |
18824 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
18825 | provided. */ | |
18826 | if (/* Try standardized names. */ | |
18827 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
18828 | /* Try IRIX, OSF/1 names. */ | |
18829 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
18830 | /* Try AIX names. */ | |
18831 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
18832 | /* Try HP-UX names. */ | |
18833 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
18834 | return 1; | |
18835 | return 0; | |
18836 | } | |
18837 | _ACEOF | |
18838 | if ac_fn_c_try_run "$LINENO"; then : | |
18839 | am_cv_func_iconv_works=yes | |
18840 | else | |
18841 | am_cv_func_iconv_works=no | |
18842 | fi | |
18843 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
18844 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
18845 | fi | |
18846 | ||
18847 | LIBS="$am_save_LIBS" | |
18848 | ||
18849 | fi | |
18850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
18851 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
18852 | case "$am_cv_func_iconv_works" in | |
18853 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
18854 | *) am_func_iconv=yes ;; | |
18855 | esac | |
18856 | else | |
18857 | am_func_iconv=no am_cv_lib_iconv=no | |
18858 | fi | |
18859 | if test "$am_func_iconv" = yes; then | |
18860 | ||
18861 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
18862 | ||
18863 | fi | |
18864 | if test "$am_cv_lib_iconv" = yes; then | |
18865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
18866 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
18867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
18868 | $as_echo "$LIBICONV" >&6; } | |
18869 | else | |
18870 | CPPFLAGS="$am_save_CPPFLAGS" | |
18871 | LIBICONV= | |
18872 | LTLIBICONV= | |
18873 | fi | |
18874 | ||
18875 | ||
18876 | ||
18877 | if test "$am_cv_func_iconv" = yes; then | |
18878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
18879 | $as_echo_n "checking for iconv declaration... " >&6; } | |
18880 | if test "${am_cv_proto_iconv+set}" = set; then : | |
18881 | $as_echo_n "(cached) " >&6 | |
18882 | else | |
18883 | ||
18884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18885 | /* end confdefs.h. */ | |
18886 | ||
18887 | #include <stdlib.h> | |
18888 | #include <iconv.h> | |
18889 | extern | |
18890 | #ifdef __cplusplus | |
18891 | "C" | |
18892 | #endif | |
18893 | #if defined(__STDC__) || defined(__cplusplus) | |
18894 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
18895 | #else | |
18896 | size_t iconv(); | |
18897 | #endif | |
18898 | ||
18899 | int | |
18900 | main () | |
18901 | { | |
18902 | ||
18903 | ; | |
18904 | return 0; | |
18905 | } | |
18906 | _ACEOF | |
18907 | if ac_fn_c_try_compile "$LINENO"; then : | |
18908 | am_cv_proto_iconv_arg1="" | |
18909 | else | |
18910 | am_cv_proto_iconv_arg1="const" | |
18911 | fi | |
18912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18913 | 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);" | |
18914 | fi | |
18915 | ||
18916 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
18917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
18918 | }$am_cv_proto_iconv" >&5 | |
18919 | $as_echo "${ac_t:- | |
18920 | }$am_cv_proto_iconv" >&6; } | |
18921 | ||
18922 | cat >>confdefs.h <<_ACEOF | |
18923 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
18924 | _ACEOF | |
18925 | ||
18926 | fi | |
18927 | ||
18928 | done | |
18929 | ;; | |
18930 | esac | |
18931 | case $am_cv_func_iconv in #( | |
18932 | yes) : | |
18933 | ;; #( | |
18934 | *) : | |
18935 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
18936 | esac | |
18937 | ac_ext=cpp | |
18938 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18939 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18940 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18941 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18942 | ||
e1cce270 DWT |
18943 | if test "x$CY_OBJECTIVEC" = x1; then : |
18944 | ||
18945 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
18946 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : | |
18947 | ||
18948 | case $OTOOL in #( | |
18949 | :) : | |
18950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5 | |
18951 | $as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #( | |
18952 | *) : | |
18953 | CY_OBJECTIVEC_MACH=1 | |
18954 | ;; | |
18955 | esac | |
18956 | ||
18957 | fi | |
18958 | ||
18959 | ||
18960 | ||
790e5246 DWT |
18961 | fi |
18962 | if test "x$GMAKE" != xmake; then : | |
18963 | ||
18964 | ac_config_files="$ac_config_files Makefile" | |
18965 | ||
18966 | ||
47aaa820 | 18967 | fi |
9c60689e DWT |
18968 | ac_config_files="$ac_config_files GNUmakefile" |
18969 | ||
18970 | cat >confcache <<\_ACEOF | |
18971 | # This file is a shell script that caches the results of configure | |
18972 | # tests run on this system so they can be shared between configure | |
18973 | # scripts and configure runs, see configure's option --config-cache. | |
18974 | # It is not useful on other systems. If it contains results you don't | |
18975 | # want to keep, you may remove or edit it. | |
18976 | # | |
18977 | # config.status only pays attention to the cache file if you give it | |
18978 | # the --recheck option to rerun configure. | |
18979 | # | |
18980 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18981 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18982 | # following values. | |
18983 | ||
18984 | _ACEOF | |
18985 | ||
18986 | # The following way of writing the cache mishandles newlines in values, | |
18987 | # but we know of no workaround that is simple, portable, and efficient. | |
18988 | # So, we kill variables containing newlines. | |
18989 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18990 | # and sets the high bit in the cache file unless we assign to the vars. | |
18991 | ( | |
18992 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18993 | eval ac_val=\$$ac_var | |
18994 | case $ac_val in #( | |
18995 | *${as_nl}*) | |
18996 | case $ac_var in #( | |
18997 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18998 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18999 | esac | |
19000 | case $ac_var in #( | |
19001 | _ | IFS | as_nl) ;; #( | |
19002 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
19003 | *) { eval $ac_var=; unset $ac_var;} ;; | |
19004 | esac ;; | |
19005 | esac | |
19006 | done | |
19007 | ||
19008 | (set) 2>&1 | | |
19009 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
19010 | *${as_nl}ac_space=\ *) | |
19011 | # `set' does not quote correctly, so add quotes: double-quote | |
19012 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
19013 | sed -n \ | |
19014 | "s/'/'\\\\''/g; | |
19015 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
19016 | ;; #( | |
19017 | *) | |
19018 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19019 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
19020 | ;; | |
19021 | esac | | |
19022 | sort | |
19023 | ) | | |
19024 | sed ' | |
19025 | /^ac_cv_env_/b end | |
19026 | t clear | |
19027 | :clear | |
19028 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19029 | t end | |
19030 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19031 | :end' >>confcache | |
19032 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
19033 | if test -w "$cache_file"; then | |
19034 | test "x$cache_file" != "x/dev/null" && | |
19035 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
19036 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
19037 | cat confcache >$cache_file | |
19038 | else | |
19039 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
19040 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
19041 | fi | |
19042 | fi | |
19043 | rm -f confcache | |
19044 | ||
19045 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
19046 | # Let make expand exec_prefix. | |
19047 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19048 | ||
19049 | # Transform confdefs.h into DEFS. | |
19050 | # Protect against shell expansion while executing Makefile rules. | |
19051 | # Protect against Makefile macro expansion. | |
19052 | # | |
19053 | # If the first sed substitution is executed (which looks for macros that | |
19054 | # take arguments), then branch to the quote section. Otherwise, | |
19055 | # look for a macro that doesn't take arguments. | |
19056 | ac_script=' | |
19057 | :mline | |
19058 | /\\$/{ | |
19059 | N | |
19060 | s,\\\n,, | |
19061 | b mline | |
19062 | } | |
19063 | t clear | |
19064 | :clear | |
19065 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
19066 | t quote | |
19067 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
19068 | t quote | |
19069 | b any | |
19070 | :quote | |
19071 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
19072 | s/\[/\\&/g | |
19073 | s/\]/\\&/g | |
19074 | s/\$/$$/g | |
19075 | H | |
19076 | :any | |
19077 | ${ | |
19078 | g | |
19079 | s/^\n// | |
19080 | s/\n/ /g | |
19081 | p | |
19082 | } | |
19083 | ' | |
19084 | DEFS=`sed -n "$ac_script" confdefs.h` | |
19085 | ||
19086 | ||
19087 | ac_libobjs= | |
19088 | ac_ltlibobjs= | |
19089 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
19090 | # 1. Remove the extension, and $U if already installed. | |
19091 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
19092 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19093 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19094 | # will be set to the directory where LIBOBJS objects are built. | |
19095 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19096 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
19097 | done | |
19098 | LIBOBJS=$ac_libobjs | |
19099 | ||
19100 | LTLIBOBJS=$ac_ltlibobjs | |
19101 | ||
19102 | ||
19103 | ||
19104 | : ${CONFIG_STATUS=./config.status} | |
19105 | ac_write_fail=0 | |
19106 | ac_clean_files_save=$ac_clean_files | |
19107 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
19108 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
19109 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19110 | as_write_fail=0 | |
19111 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
19112 | #! $SHELL | |
19113 | # Generated by $as_me. | |
19114 | # Run this file to recreate the current configuration. | |
19115 | # Compiler output produced by configure, useful for debugging | |
19116 | # configure, is in config.log if it exists. | |
19117 | ||
19118 | debug=false | |
19119 | ac_cs_recheck=false | |
19120 | ac_cs_silent=false | |
19121 | ||
19122 | SHELL=\${CONFIG_SHELL-$SHELL} | |
19123 | export SHELL | |
19124 | _ASEOF | |
19125 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19126 | ## -------------------- ## | |
19127 | ## M4sh Initialization. ## | |
19128 | ## -------------------- ## | |
19129 | ||
19130 | # Be more Bourne compatible | |
19131 | DUALCASE=1; export DUALCASE # for MKS sh | |
19132 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
19133 | emulate sh | |
19134 | NULLCMD=: | |
19135 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19136 | # is contrary to our usage. Disable this feature. | |
19137 | alias -g '${1+"$@"}'='"$@"' | |
19138 | setopt NO_GLOB_SUBST | |
19139 | else | |
19140 | case `(set -o) 2>/dev/null` in #( | |
19141 | *posix*) : | |
19142 | set -o posix ;; #( | |
19143 | *) : | |
19144 | ;; | |
19145 | esac | |
19146 | fi | |
19147 | ||
19148 | ||
19149 | as_nl=' | |
19150 | ' | |
19151 | export as_nl | |
19152 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19153 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19154 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19155 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19156 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19157 | # but without wasting forks for bash or zsh. | |
19158 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19159 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19160 | as_echo='print -r --' | |
19161 | as_echo_n='print -rn --' | |
19162 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19163 | as_echo='printf %s\n' | |
19164 | as_echo_n='printf %s' | |
19165 | else | |
19166 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19167 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19168 | as_echo_n='/usr/ucb/echo -n' | |
19169 | else | |
19170 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19171 | as_echo_n_body='eval | |
19172 | arg=$1; | |
19173 | case $arg in #( | |
19174 | *"$as_nl"*) | |
19175 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19176 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19177 | esac; | |
19178 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19179 | ' | |
19180 | export as_echo_n_body | |
19181 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19182 | fi | |
19183 | export as_echo_body | |
19184 | as_echo='sh -c $as_echo_body as_echo' | |
19185 | fi | |
19186 | ||
19187 | # The user is always right. | |
19188 | if test "${PATH_SEPARATOR+set}" != set; then | |
19189 | PATH_SEPARATOR=: | |
19190 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19191 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19192 | PATH_SEPARATOR=';' | |
19193 | } | |
19194 | fi | |
19195 | ||
19196 | ||
19197 | # IFS | |
19198 | # We need space, tab and new line, in precisely that order. Quoting is | |
19199 | # there to prevent editors from complaining about space-tab. | |
19200 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19201 | # splitting by setting IFS to empty value.) | |
19202 | IFS=" "" $as_nl" | |
19203 | ||
19204 | # Find who we are. Look in the path if we contain no directory separator. | |
19205 | case $0 in #(( | |
19206 | *[\\/]* ) as_myself=$0 ;; | |
19207 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19208 | for as_dir in $PATH | |
19209 | do | |
19210 | IFS=$as_save_IFS | |
19211 | test -z "$as_dir" && as_dir=. | |
19212 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19213 | done | |
19214 | IFS=$as_save_IFS | |
19215 | ||
19216 | ;; | |
19217 | esac | |
19218 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19219 | # in which case we are not to be found in the path. | |
19220 | if test "x$as_myself" = x; then | |
19221 | as_myself=$0 | |
19222 | fi | |
19223 | if test ! -f "$as_myself"; then | |
19224 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19225 | exit 1 | |
19226 | fi | |
19227 | ||
19228 | # Unset variables that we do not need and which cause bugs (e.g. in | |
19229 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19230 | # suppresses any "Segmentation fault" message there. '((' could | |
19231 | # trigger a bug in pdksh 5.2.14. | |
19232 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19233 | do eval test x\${$as_var+set} = xset \ | |
19234 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19235 | done | |
19236 | PS1='$ ' | |
19237 | PS2='> ' | |
19238 | PS4='+ ' | |
19239 | ||
19240 | # NLS nuisances. | |
19241 | LC_ALL=C | |
19242 | export LC_ALL | |
19243 | LANGUAGE=C | |
19244 | export LANGUAGE | |
19245 | ||
19246 | # CDPATH. | |
19247 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19248 | ||
19249 | ||
19250 | # as_fn_error ERROR [LINENO LOG_FD] | |
19251 | # --------------------------------- | |
19252 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
19253 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
19254 | # script with status $?, using 1 if that was 0. | |
19255 | as_fn_error () | |
19256 | { | |
19257 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
19258 | if test "$3"; then | |
19259 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19260 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
19261 | fi | |
19262 | $as_echo "$as_me: error: $1" >&2 | |
19263 | as_fn_exit $as_status | |
19264 | } # as_fn_error | |
19265 | ||
19266 | ||
19267 | # as_fn_set_status STATUS | |
19268 | # ----------------------- | |
19269 | # Set $? to STATUS, without forking. | |
19270 | as_fn_set_status () | |
19271 | { | |
19272 | return $1 | |
19273 | } # as_fn_set_status | |
19274 | ||
19275 | # as_fn_exit STATUS | |
19276 | # ----------------- | |
19277 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
19278 | as_fn_exit () | |
19279 | { | |
19280 | set +e | |
19281 | as_fn_set_status $1 | |
19282 | exit $1 | |
19283 | } # as_fn_exit | |
19284 | ||
19285 | # as_fn_unset VAR | |
19286 | # --------------- | |
19287 | # Portably unset VAR. | |
19288 | as_fn_unset () | |
19289 | { | |
19290 | { eval $1=; unset $1;} | |
19291 | } | |
19292 | as_unset=as_fn_unset | |
19293 | # as_fn_append VAR VALUE | |
19294 | # ---------------------- | |
19295 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
19296 | # advantage of any shell optimizations that allow amortized linear growth over | |
19297 | # repeated appends, instead of the typical quadratic growth present in naive | |
19298 | # implementations. | |
19299 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
19300 | eval 'as_fn_append () | |
19301 | { | |
19302 | eval $1+=\$2 | |
19303 | }' | |
19304 | else | |
19305 | as_fn_append () | |
19306 | { | |
19307 | eval $1=\$$1\$2 | |
19308 | } | |
19309 | fi # as_fn_append | |
19310 | ||
19311 | # as_fn_arith ARG... | |
19312 | # ------------------ | |
19313 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19314 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19315 | # must be portable across $(()) and expr. | |
19316 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19317 | eval 'as_fn_arith () | |
19318 | { | |
19319 | as_val=$(( $* )) | |
19320 | }' | |
19321 | else | |
19322 | as_fn_arith () | |
19323 | { | |
19324 | as_val=`expr "$@" || test $? -eq 1` | |
19325 | } | |
19326 | fi # as_fn_arith | |
19327 | ||
19328 | ||
19329 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
19330 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
19331 | as_expr=expr | |
19332 | else | |
19333 | as_expr=false | |
19334 | fi | |
19335 | ||
19336 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
19337 | as_basename=basename | |
19338 | else | |
19339 | as_basename=false | |
19340 | fi | |
19341 | ||
19342 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
19343 | as_dirname=dirname | |
19344 | else | |
19345 | as_dirname=false | |
19346 | fi | |
19347 | ||
19348 | as_me=`$as_basename -- "$0" || | |
19349 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
19350 | X"$0" : 'X\(//\)$' \| \ | |
19351 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
19352 | $as_echo X/"$0" | | |
19353 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19354 | s//\1/ | |
19355 | q | |
19356 | } | |
19357 | /^X\/\(\/\/\)$/{ | |
19358 | s//\1/ | |
19359 | q | |
19360 | } | |
19361 | /^X\/\(\/\).*/{ | |
19362 | s//\1/ | |
19363 | q | |
19364 | } | |
19365 | s/.*/./; q'` | |
19366 | ||
19367 | # Avoid depending upon Character Ranges. | |
19368 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19369 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19370 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19371 | as_cr_digits='0123456789' | |
19372 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19373 | ||
19374 | ECHO_C= ECHO_N= ECHO_T= | |
19375 | case `echo -n x` in #((((( | |
19376 | -n*) | |
19377 | case `echo 'xy\c'` in | |
19378 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19379 | xy) ECHO_C='\c';; | |
19380 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19381 | ECHO_T=' ';; | |
19382 | esac;; | |
19383 | *) | |
19384 | ECHO_N='-n';; | |
19385 | esac | |
19386 | ||
19387 | rm -f conf$$ conf$$.exe conf$$.file | |
19388 | if test -d conf$$.dir; then | |
19389 | rm -f conf$$.dir/conf$$.file | |
19390 | else | |
19391 | rm -f conf$$.dir | |
19392 | mkdir conf$$.dir 2>/dev/null | |
19393 | fi | |
19394 | if (echo >conf$$.file) 2>/dev/null; then | |
19395 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
19396 | as_ln_s='ln -s' | |
19397 | # ... but there are two gotchas: | |
19398 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19399 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
19400 | # In both cases, we have to default to `cp -p'. | |
19401 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
19402 | as_ln_s='cp -p' | |
19403 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
19404 | as_ln_s=ln | |
19405 | else | |
19406 | as_ln_s='cp -p' | |
19407 | fi | |
19408 | else | |
19409 | as_ln_s='cp -p' | |
19410 | fi | |
19411 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
19412 | rmdir conf$$.dir 2>/dev/null | |
19413 | ||
19414 | ||
19415 | # as_fn_mkdir_p | |
19416 | # ------------- | |
19417 | # Create "$as_dir" as a directory, including parents if necessary. | |
19418 | as_fn_mkdir_p () | |
19419 | { | |
19420 | ||
19421 | case $as_dir in #( | |
19422 | -*) as_dir=./$as_dir;; | |
19423 | esac | |
19424 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19425 | as_dirs= | |
19426 | while :; do | |
19427 | case $as_dir in #( | |
19428 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19429 | *) as_qdir=$as_dir;; | |
19430 | esac | |
19431 | as_dirs="'$as_qdir' $as_dirs" | |
19432 | as_dir=`$as_dirname -- "$as_dir" || | |
19433 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19434 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19435 | X"$as_dir" : 'X\(//\)$' \| \ | |
19436 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19437 | $as_echo X"$as_dir" | | |
19438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19439 | s//\1/ | |
19440 | q | |
19441 | } | |
19442 | /^X\(\/\/\)[^/].*/{ | |
19443 | s//\1/ | |
19444 | q | |
19445 | } | |
19446 | /^X\(\/\/\)$/{ | |
19447 | s//\1/ | |
19448 | q | |
19449 | } | |
19450 | /^X\(\/\).*/{ | |
19451 | s//\1/ | |
19452 | q | |
19453 | } | |
19454 | s/.*/./; q'` | |
19455 | test -d "$as_dir" && break | |
19456 | done | |
19457 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
19458 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
19459 | ||
19460 | ||
19461 | } # as_fn_mkdir_p | |
19462 | if mkdir -p . 2>/dev/null; then | |
19463 | as_mkdir_p='mkdir -p "$as_dir"' | |
19464 | else | |
19465 | test -d ./-p && rmdir ./-p | |
19466 | as_mkdir_p=false | |
19467 | fi | |
19468 | ||
19469 | if test -x / >/dev/null 2>&1; then | |
19470 | as_test_x='test -x' | |
19471 | else | |
19472 | if ls -dL / >/dev/null 2>&1; then | |
19473 | as_ls_L_option=L | |
19474 | else | |
19475 | as_ls_L_option= | |
19476 | fi | |
19477 | as_test_x=' | |
19478 | eval sh -c '\'' | |
19479 | if test -d "$1"; then | |
19480 | test -d "$1/."; | |
19481 | else | |
19482 | case $1 in #( | |
19483 | -*)set "./$1";; | |
19484 | esac; | |
19485 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
19486 | ???[sx]*):;;*)false;;esac;fi | |
19487 | '\'' sh | |
19488 | ' | |
19489 | fi | |
19490 | as_executable_p=$as_test_x | |
19491 | ||
19492 | # Sed expression to map a string onto a valid CPP name. | |
19493 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19494 | ||
19495 | # Sed expression to map a string onto a valid variable name. | |
19496 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19497 | ||
19498 | ||
19499 | exec 6>&1 | |
19500 | ## ----------------------------------- ## | |
19501 | ## Main body of $CONFIG_STATUS script. ## | |
19502 | ## ----------------------------------- ## | |
19503 | _ASEOF | |
19504 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19505 | ||
19506 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19507 | # Save the log message, to keep $0 and so on meaningful, and to | |
19508 | # report actual input values of CONFIG_FILES etc. instead of their | |
19509 | # values after options handling. | |
19510 | ac_log=" | |
19511 | This file was extended by Cycript $as_me 0.9, which was | |
19512 | generated by GNU Autoconf 2.65. Invocation command line was | |
19513 | ||
19514 | CONFIG_FILES = $CONFIG_FILES | |
19515 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19516 | CONFIG_LINKS = $CONFIG_LINKS | |
19517 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19518 | $ $0 $@ | |
19519 | ||
19520 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
19521 | " | |
19522 | ||
19523 | _ACEOF | |
19524 | ||
19525 | case $ac_config_files in *" | |
19526 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19527 | esac | |
19528 | ||
19529 | ||
19530 | ||
19531 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19532 | # Files that config.status was made for. | |
19533 | config_files="$ac_config_files" | |
19534 | config_commands="$ac_config_commands" | |
19535 | ||
19536 | _ACEOF | |
19537 | ||
19538 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19539 | ac_cs_usage="\ | |
19540 | \`$as_me' instantiates files and other configuration actions | |
19541 | from templates according to the current configuration. Unless the files | |
19542 | and actions are specified as TAGs, all are instantiated by default. | |
19543 | ||
19544 | Usage: $0 [OPTION]... [TAG]... | |
19545 | ||
19546 | -h, --help print this help, then exit | |
19547 | -V, --version print version number and configuration settings, then exit | |
19548 | --config print configuration, then exit | |
19549 | -q, --quiet, --silent | |
19550 | do not print progress messages | |
19551 | -d, --debug don't remove temporary files | |
19552 | --recheck update $as_me by reconfiguring in the same conditions | |
19553 | --file=FILE[:TEMPLATE] | |
19554 | instantiate the configuration file FILE | |
19555 | ||
19556 | Configuration files: | |
19557 | $config_files | |
19558 | ||
19559 | Configuration commands: | |
19560 | $config_commands | |
19561 | ||
19562 | Report bugs to <saurik@saurik.com>. | |
19563 | Cycript home page: <http://www.cycript.org/>." | |
19564 | ||
19565 | _ACEOF | |
19566 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19567 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
19568 | ac_cs_version="\\ | |
19569 | Cycript config.status 0.9 | |
19570 | configured by $0, generated by GNU Autoconf 2.65, | |
19571 | with options \\"\$ac_cs_config\\" | |
19572 | ||
19573 | Copyright (C) 2009 Free Software Foundation, Inc. | |
19574 | This config.status script is free software; the Free Software Foundation | |
19575 | gives unlimited permission to copy, distribute and modify it." | |
19576 | ||
19577 | ac_pwd='$ac_pwd' | |
19578 | srcdir='$srcdir' | |
19579 | INSTALL='$INSTALL' | |
9c60689e DWT |
19580 | test -n "\$AWK" || AWK=awk |
19581 | _ACEOF | |
19582 | ||
19583 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19584 | # The default lists apply if the user does not specify any file. | |
19585 | ac_need_defaults=: | |
19586 | while test $# != 0 | |
19587 | do | |
19588 | case $1 in | |
19589 | --*=*) | |
19590 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19591 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
19592 | ac_shift=: | |
19593 | ;; | |
19594 | *) | |
19595 | ac_option=$1 | |
19596 | ac_optarg=$2 | |
19597 | ac_shift=shift | |
19598 | ;; | |
19599 | esac | |
19600 | ||
19601 | case $ac_option in | |
19602 | # Handling of the options. | |
19603 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
19604 | ac_cs_recheck=: ;; | |
19605 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
19606 | $as_echo "$ac_cs_version"; exit ;; | |
19607 | --config | --confi | --conf | --con | --co | --c ) | |
19608 | $as_echo "$ac_cs_config"; exit ;; | |
19609 | --debug | --debu | --deb | --de | --d | -d ) | |
19610 | debug=: ;; | |
19611 | --file | --fil | --fi | --f ) | |
19612 | $ac_shift | |
19613 | case $ac_optarg in | |
19614 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19615 | esac | |
19616 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
19617 | ac_need_defaults=false;; | |
19618 | --he | --h | --help | --hel | -h ) | |
19619 | $as_echo "$ac_cs_usage"; exit ;; | |
19620 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
19621 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19622 | ac_cs_silent=: ;; | |
19623 | ||
19624 | # This is an error. | |
19625 | -*) as_fn_error "unrecognized option: \`$1' | |
19626 | Try \`$0 --help' for more information." ;; | |
19627 | ||
19628 | *) as_fn_append ac_config_targets " $1" | |
19629 | ac_need_defaults=false ;; | |
19630 | ||
19631 | esac | |
19632 | shift | |
19633 | done | |
19634 | ||
19635 | ac_configure_extra_args= | |
19636 | ||
19637 | if $ac_cs_silent; then | |
19638 | exec 6>/dev/null | |
19639 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19640 | fi | |
19641 | ||
19642 | _ACEOF | |
19643 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19644 | if \$ac_cs_recheck; then | |
19645 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19646 | shift | |
19647 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19648 | CONFIG_SHELL='$SHELL' | |
19649 | export CONFIG_SHELL | |
19650 | exec "\$@" | |
19651 | fi | |
19652 | ||
19653 | _ACEOF | |
19654 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19655 | exec 5>>config.log | |
19656 | { | |
19657 | echo | |
19658 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19659 | ## Running $as_me. ## | |
19660 | _ASBOX | |
19661 | $as_echo "$ac_log" | |
19662 | } >&5 | |
19663 | ||
19664 | _ACEOF | |
19665 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19666 | # | |
19667 | # INIT-COMMANDS | |
19668 | # | |
19669 | ||
19670 | ||
19671 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
19672 | # if CDPATH is set. | |
19673 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19674 | ||
19675 | sed_quote_subst='$sed_quote_subst' | |
19676 | double_quote_subst='$double_quote_subst' | |
19677 | delay_variable_subst='$delay_variable_subst' | |
19678 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
19679 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
9c60689e | 19680 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
549f29b5 | 19681 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
9c60689e DWT |
19682 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
19683 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
19684 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
19685 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
19686 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
19687 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
19688 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
19689 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
19690 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
19691 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
19692 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19693 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19694 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19695 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
19696 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
19697 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
19698 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
19699 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
19700 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
19701 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
19702 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
19703 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
19704 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19705 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19706 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
19707 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
19708 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
19709 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
19710 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
19711 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
19712 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
19713 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19714 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19715 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19716 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
19717 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
19718 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
19719 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
19720 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
19721 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
19722 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
19723 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
19724 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
19725 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
19726 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
19727 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
19728 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19729 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
19730 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
19731 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
19732 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
19733 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
19734 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
19735 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
19736 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
19737 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
19738 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
19739 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
19740 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19741 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19742 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
19743 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
19744 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19745 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19746 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
19747 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19748 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19749 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19750 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19751 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19752 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19753 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
19754 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19755 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19756 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19757 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
19758 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
19759 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
19760 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
19761 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
19762 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19763 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
19764 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
19765 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
19766 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
19767 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
19768 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19769 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
19770 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
19771 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19772 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19773 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
19774 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
19775 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
19776 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
19777 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19778 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19779 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
19780 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19781 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19782 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19783 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19784 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19785 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19786 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
19787 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
19788 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19789 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19790 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
19791 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
19792 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
19793 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
19794 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
19795 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
19796 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
19797 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
19798 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
19799 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
19800 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
19801 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
19802 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19803 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19804 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19805 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19806 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19807 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19808 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19809 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19810 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19811 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19812 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19813 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19814 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19815 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19816 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19817 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19818 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19819 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19820 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19821 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19822 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19823 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19824 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19825 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19826 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19827 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19828 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19829 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19830 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19831 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19832 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19833 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19834 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19835 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19836 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19837 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19838 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19839 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19840 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19841 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19842 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19843 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19844 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19845 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19846 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19847 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19848 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19849 | ||
19850 | LTCC='$LTCC' | |
19851 | LTCFLAGS='$LTCFLAGS' | |
19852 | compiler='$compiler_DEFAULT' | |
19853 | ||
19854 | # Quote evaled strings. | |
19855 | for var in SED \ | |
19856 | GREP \ | |
19857 | EGREP \ | |
19858 | FGREP \ | |
19859 | LD \ | |
19860 | NM \ | |
19861 | LN_S \ | |
19862 | lt_SP2NL \ | |
19863 | lt_NL2SP \ | |
19864 | reload_flag \ | |
19865 | OBJDUMP \ | |
19866 | deplibs_check_method \ | |
19867 | file_magic_cmd \ | |
19868 | AR \ | |
19869 | AR_FLAGS \ | |
19870 | STRIP \ | |
19871 | RANLIB \ | |
19872 | CC \ | |
19873 | CFLAGS \ | |
19874 | compiler \ | |
19875 | lt_cv_sys_global_symbol_pipe \ | |
19876 | lt_cv_sys_global_symbol_to_cdecl \ | |
19877 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19878 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
19879 | SHELL \ | |
19880 | ECHO \ | |
19881 | lt_prog_compiler_no_builtin_flag \ | |
19882 | lt_prog_compiler_wl \ | |
19883 | lt_prog_compiler_pic \ | |
19884 | lt_prog_compiler_static \ | |
19885 | lt_cv_prog_compiler_c_o \ | |
19886 | need_locks \ | |
19887 | DSYMUTIL \ | |
19888 | NMEDIT \ | |
19889 | LIPO \ | |
19890 | OTOOL \ | |
19891 | OTOOL64 \ | |
19892 | shrext_cmds \ | |
19893 | export_dynamic_flag_spec \ | |
19894 | whole_archive_flag_spec \ | |
19895 | compiler_needs_object \ | |
19896 | with_gnu_ld \ | |
19897 | allow_undefined_flag \ | |
19898 | no_undefined_flag \ | |
19899 | hardcode_libdir_flag_spec \ | |
19900 | hardcode_libdir_flag_spec_ld \ | |
19901 | hardcode_libdir_separator \ | |
19902 | fix_srcfile_path \ | |
19903 | exclude_expsyms \ | |
19904 | include_expsyms \ | |
19905 | file_list_spec \ | |
19906 | variables_saved_for_relink \ | |
19907 | libname_spec \ | |
19908 | library_names_spec \ | |
19909 | soname_spec \ | |
19910 | finish_eval \ | |
19911 | old_striplib \ | |
19912 | striplib \ | |
19913 | compiler_lib_search_dirs \ | |
19914 | predep_objects \ | |
19915 | postdep_objects \ | |
19916 | predeps \ | |
19917 | postdeps \ | |
19918 | compiler_lib_search_path \ | |
19919 | LD_CXX \ | |
19920 | compiler_CXX \ | |
19921 | lt_prog_compiler_no_builtin_flag_CXX \ | |
19922 | lt_prog_compiler_wl_CXX \ | |
19923 | lt_prog_compiler_pic_CXX \ | |
19924 | lt_prog_compiler_static_CXX \ | |
19925 | lt_cv_prog_compiler_c_o_CXX \ | |
19926 | export_dynamic_flag_spec_CXX \ | |
19927 | whole_archive_flag_spec_CXX \ | |
19928 | compiler_needs_object_CXX \ | |
19929 | with_gnu_ld_CXX \ | |
19930 | allow_undefined_flag_CXX \ | |
19931 | no_undefined_flag_CXX \ | |
19932 | hardcode_libdir_flag_spec_CXX \ | |
19933 | hardcode_libdir_flag_spec_ld_CXX \ | |
19934 | hardcode_libdir_separator_CXX \ | |
19935 | fix_srcfile_path_CXX \ | |
19936 | exclude_expsyms_CXX \ | |
19937 | include_expsyms_CXX \ | |
19938 | file_list_spec_CXX \ | |
19939 | compiler_lib_search_dirs_CXX \ | |
19940 | predep_objects_CXX \ | |
19941 | postdep_objects_CXX \ | |
19942 | predeps_CXX \ | |
19943 | postdeps_CXX \ | |
19944 | compiler_lib_search_path_CXX; do | |
19945 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
19946 | *[\\\\\\\`\\"\\\$]*) | |
19947 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
19948 | ;; | |
19949 | *) | |
19950 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19951 | ;; | |
19952 | esac | |
19953 | done | |
19954 | ||
19955 | # Double-quote double-evaled strings. | |
19956 | for var in reload_cmds \ | |
19957 | old_postinstall_cmds \ | |
19958 | old_postuninstall_cmds \ | |
19959 | old_archive_cmds \ | |
19960 | extract_expsyms_cmds \ | |
19961 | old_archive_from_new_cmds \ | |
19962 | old_archive_from_expsyms_cmds \ | |
19963 | archive_cmds \ | |
19964 | archive_expsym_cmds \ | |
19965 | module_cmds \ | |
19966 | module_expsym_cmds \ | |
19967 | export_symbols_cmds \ | |
19968 | prelink_cmds \ | |
19969 | postinstall_cmds \ | |
19970 | postuninstall_cmds \ | |
19971 | finish_cmds \ | |
19972 | sys_lib_search_path_spec \ | |
19973 | sys_lib_dlsearch_path_spec \ | |
19974 | old_archive_cmds_CXX \ | |
19975 | old_archive_from_new_cmds_CXX \ | |
19976 | old_archive_from_expsyms_cmds_CXX \ | |
19977 | archive_cmds_CXX \ | |
19978 | archive_expsym_cmds_CXX \ | |
19979 | module_cmds_CXX \ | |
19980 | module_expsym_cmds_CXX \ | |
19981 | export_symbols_cmds_CXX \ | |
19982 | prelink_cmds_CXX; do | |
19983 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
19984 | *[\\\\\\\`\\"\\\$]*) | |
19985 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
19986 | ;; | |
19987 | *) | |
19988 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19989 | ;; | |
19990 | esac | |
19991 | done | |
19992 | ||
19993 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
19994 | case \$lt_ECHO in | |
19995 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
19996 | ;; | |
19997 | esac | |
19998 | ||
19999 | ac_aux_dir='$ac_aux_dir' | |
20000 | xsi_shell='$xsi_shell' | |
20001 | lt_shell_append='$lt_shell_append' | |
20002 | ||
20003 | # See if we are running on zsh, and set the options which allow our | |
20004 | # commands through without removal of \ escapes INIT. | |
20005 | if test -n "\${ZSH_VERSION+set}" ; then | |
20006 | setopt NO_GLOB_SUBST | |
20007 | fi | |
20008 | ||
20009 | ||
20010 | PACKAGE='$PACKAGE' | |
20011 | VERSION='$VERSION' | |
20012 | TIMESTAMP='$TIMESTAMP' | |
20013 | RM='$RM' | |
20014 | ofile='$ofile' | |
20015 | ||
20016 | ||
20017 | ||
20018 | ||
20019 | ||
20020 | ||
20021 | _ACEOF | |
20022 | ||
20023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20024 | ||
20025 | # Handling of arguments. | |
20026 | for ac_config_target in $ac_config_targets | |
20027 | do | |
20028 | case $ac_config_target in | |
20029 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
790e5246 | 20030 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e DWT |
20031 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; |
20032 | ||
20033 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
20034 | esac | |
20035 | done | |
20036 | ||
20037 | ||
20038 | # If the user did not use the arguments to specify the items to instantiate, | |
20039 | # then the envvar interface is used. Set only those that are not. | |
20040 | # We use the long form for the default assignment because of an extremely | |
20041 | # bizarre bug on SunOS 4.1.3. | |
20042 | if $ac_need_defaults; then | |
20043 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20044 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
20045 | fi | |
20046 | ||
20047 | # Have a temporary directory for convenience. Make it in the build tree | |
20048 | # simply because there is no reason against having it here, and in addition, | |
20049 | # creating and moving files from /tmp can sometimes cause problems. | |
20050 | # Hook for its removal unless debugging. | |
20051 | # Note that there is a small window in which the directory will not be cleaned: | |
20052 | # after its creation but before its name has been assigned to `$tmp'. | |
20053 | $debug || | |
20054 | { | |
20055 | tmp= | |
20056 | trap 'exit_status=$? | |
20057 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
20058 | ' 0 | |
20059 | trap 'as_fn_exit 1' 1 2 13 15 | |
20060 | } | |
20061 | # Create a (secure) tmp directory for tmp files. | |
20062 | ||
20063 | { | |
20064 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
20065 | test -n "$tmp" && test -d "$tmp" | |
20066 | } || | |
20067 | { | |
20068 | tmp=./conf$$-$RANDOM | |
20069 | (umask 077 && mkdir "$tmp") | |
20070 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
20071 | ||
20072 | # Set up the scripts for CONFIG_FILES section. | |
20073 | # No need to generate them if there are no CONFIG_FILES. | |
20074 | # This happens for instance with `./config.status config.h'. | |
20075 | if test -n "$CONFIG_FILES"; then | |
20076 | ||
20077 | ||
20078 | ac_cr=`echo X | tr X '\015'` | |
20079 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
20080 | # But we know of no other shell where ac_cr would be empty at this | |
20081 | # point, so we can use a bashism as a fallback. | |
20082 | if test "x$ac_cr" = x; then | |
20083 | eval ac_cr=\$\'\\r\' | |
20084 | fi | |
20085 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
20086 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
20087 | ac_cs_awk_cr='\r' | |
20088 | else | |
20089 | ac_cs_awk_cr=$ac_cr | |
20090 | fi | |
20091 | ||
20092 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
20093 | _ACEOF | |
20094 | ||
20095 | ||
20096 | { | |
20097 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
20098 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
20099 | echo "_ACEOF" | |
20100 | } >conf$$subs.sh || | |
20101 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20102 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
20103 | ac_delim='%!_!# ' | |
20104 | for ac_last_try in false false false false false :; do | |
20105 | . ./conf$$subs.sh || | |
20106 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20107 | ||
20108 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
20109 | if test $ac_delim_n = $ac_delim_num; then | |
20110 | break | |
20111 | elif $ac_last_try; then | |
20112 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20113 | else | |
20114 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20115 | fi | |
20116 | done | |
20117 | rm -f conf$$subs.sh | |
20118 | ||
20119 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20120 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
20121 | _ACEOF | |
20122 | sed -n ' | |
20123 | h | |
20124 | s/^/S["/; s/!.*/"]=/ | |
20125 | p | |
20126 | g | |
20127 | s/^[^!]*!// | |
20128 | :repl | |
20129 | t repl | |
20130 | s/'"$ac_delim"'$// | |
20131 | t delim | |
20132 | :nl | |
20133 | h | |
20134 | s/\(.\{148\}\)..*/\1/ | |
20135 | t more1 | |
20136 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
20137 | p | |
20138 | n | |
20139 | b repl | |
20140 | :more1 | |
20141 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20142 | p | |
20143 | g | |
20144 | s/.\{148\}// | |
20145 | t nl | |
20146 | :delim | |
20147 | h | |
20148 | s/\(.\{148\}\)..*/\1/ | |
20149 | t more2 | |
20150 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
20151 | p | |
20152 | b | |
20153 | :more2 | |
20154 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20155 | p | |
20156 | g | |
20157 | s/.\{148\}// | |
20158 | t delim | |
20159 | ' <conf$$subs.awk | sed ' | |
20160 | /^[^""]/{ | |
20161 | N | |
20162 | s/\n// | |
20163 | } | |
20164 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
20165 | rm -f conf$$subs.awk | |
20166 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20167 | _ACAWK | |
20168 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
20169 | for (key in S) S_is_set[key] = 1 | |
20170 | FS = "\a" | |
20171 | ||
20172 | } | |
20173 | { | |
20174 | line = $ 0 | |
20175 | nfields = split(line, field, "@") | |
20176 | substed = 0 | |
20177 | len = length(field[1]) | |
20178 | for (i = 2; i < nfields; i++) { | |
20179 | key = field[i] | |
20180 | keylen = length(key) | |
20181 | if (S_is_set[key]) { | |
20182 | value = S[key] | |
20183 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
20184 | len += length(value) + length(field[++i]) | |
20185 | substed = 1 | |
20186 | } else | |
20187 | len += 1 + keylen | |
20188 | } | |
20189 | ||
20190 | print line | |
20191 | } | |
20192 | ||
20193 | _ACAWK | |
20194 | _ACEOF | |
20195 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20196 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
20197 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
20198 | else | |
20199 | cat | |
20200 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
20201 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
20202 | _ACEOF | |
20203 | ||
20204 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
20205 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20206 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20207 | # (actually we leave an empty line to preserve line numbers). | |
20208 | if test "x$srcdir" = x.; then | |
20209 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20210 | s/:*\$(srcdir):*/:/ | |
20211 | s/:*\${srcdir}:*/:/ | |
20212 | s/:*@srcdir@:*/:/ | |
20213 | s/^\([^=]*=[ ]*\):*/\1/ | |
20214 | s/:*$// | |
20215 | s/^[^=]*=[ ]*$// | |
20216 | }' | |
20217 | fi | |
20218 | ||
20219 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20220 | fi # test -n "$CONFIG_FILES" | |
20221 | ||
20222 | ||
20223 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
20224 | shift | |
20225 | for ac_tag | |
20226 | do | |
20227 | case $ac_tag in | |
20228 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
20229 | esac | |
20230 | case $ac_mode$ac_tag in | |
20231 | :[FHL]*:*);; | |
20232 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
20233 | :[FH]-) ac_tag=-:-;; | |
20234 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
20235 | esac | |
20236 | ac_save_IFS=$IFS | |
20237 | IFS=: | |
20238 | set x $ac_tag | |
20239 | IFS=$ac_save_IFS | |
20240 | shift | |
20241 | ac_file=$1 | |
20242 | shift | |
20243 | ||
20244 | case $ac_mode in | |
20245 | :L) ac_source=$1;; | |
20246 | :[FH]) | |
20247 | ac_file_inputs= | |
20248 | for ac_f | |
20249 | do | |
20250 | case $ac_f in | |
20251 | -) ac_f="$tmp/stdin";; | |
20252 | *) # Look for the file first in the build tree, then in the source tree | |
20253 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
20254 | # because $ac_f cannot contain `:'. | |
20255 | test -f "$ac_f" || | |
20256 | case $ac_f in | |
20257 | [\\/$]*) false;; | |
20258 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
20259 | esac || | |
20260 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
20261 | esac | |
20262 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
20263 | as_fn_append ac_file_inputs " '$ac_f'" | |
20264 | done | |
20265 | ||
20266 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
20267 | # use $as_me), people would be surprised to read: | |
20268 | # /* config.h. Generated by config.status. */ | |
20269 | configure_input='Generated from '` | |
20270 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
20271 | `' by configure.' | |
20272 | if test x"$ac_file" != x-; then | |
20273 | configure_input="$ac_file. $configure_input" | |
20274 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
20275 | $as_echo "$as_me: creating $ac_file" >&6;} | |
20276 | fi | |
20277 | # Neutralize special characters interpreted by sed in replacement strings. | |
20278 | case $configure_input in #( | |
20279 | *\&* | *\|* | *\\* ) | |
20280 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
20281 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
20282 | *) ac_sed_conf_input=$configure_input;; | |
20283 | esac | |
20284 | ||
20285 | case $ac_tag in | |
20286 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
20287 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
20288 | esac | |
20289 | ;; | |
20290 | esac | |
20291 | ||
20292 | ac_dir=`$as_dirname -- "$ac_file" || | |
20293 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20294 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
20295 | X"$ac_file" : 'X\(//\)$' \| \ | |
20296 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
20297 | $as_echo X"$ac_file" | | |
20298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20299 | s//\1/ | |
20300 | q | |
20301 | } | |
20302 | /^X\(\/\/\)[^/].*/{ | |
20303 | s//\1/ | |
20304 | q | |
20305 | } | |
20306 | /^X\(\/\/\)$/{ | |
20307 | s//\1/ | |
20308 | q | |
20309 | } | |
20310 | /^X\(\/\).*/{ | |
20311 | s//\1/ | |
20312 | q | |
20313 | } | |
20314 | s/.*/./; q'` | |
20315 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20316 | ac_builddir=. | |
20317 | ||
20318 | case "$ac_dir" in | |
20319 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20320 | *) | |
20321 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20322 | # A ".." for each directory in $ac_dir_suffix. | |
20323 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20324 | case $ac_top_builddir_sub in | |
20325 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20326 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20327 | esac ;; | |
20328 | esac | |
20329 | ac_abs_top_builddir=$ac_pwd | |
20330 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20331 | # for backward compatibility: | |
20332 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 20333 | |
9c60689e DWT |
20334 | case $srcdir in |
20335 | .) # We are building in place. | |
20336 | ac_srcdir=. | |
20337 | ac_top_srcdir=$ac_top_builddir_sub | |
20338 | ac_abs_top_srcdir=$ac_pwd ;; | |
20339 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20340 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20341 | ac_top_srcdir=$srcdir | |
20342 | ac_abs_top_srcdir=$srcdir ;; | |
20343 | *) # Relative name. | |
20344 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20345 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20346 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20347 | esac | |
20348 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
20349 | |
20350 | ||
9c60689e DWT |
20351 | case $ac_mode in |
20352 | :F) | |
20353 | # | |
20354 | # CONFIG_FILE | |
20355 | # | |
35fa52c0 | 20356 | |
9c60689e DWT |
20357 | case $INSTALL in |
20358 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
20359 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
20360 | esac | |
20361 | _ACEOF | |
35fa52c0 | 20362 | |
9c60689e DWT |
20363 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
20364 | # If the template does not know about datarootdir, expand it. | |
20365 | # FIXME: This hack should be removed a few years after 2.60. | |
20366 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
20367 | ac_sed_dataroot=' | |
20368 | /datarootdir/ { | |
20369 | p | |
20370 | q | |
20371 | } | |
20372 | /@datadir@/p | |
20373 | /@docdir@/p | |
20374 | /@infodir@/p | |
20375 | /@localedir@/p | |
20376 | /@mandir@/p' | |
20377 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
20378 | *datarootdir*) ac_datarootdir_seen=yes;; | |
20379 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
20380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
20381 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
20382 | _ACEOF | |
20383 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20384 | ac_datarootdir_hack=' | |
20385 | s&@datadir@&$datadir&g | |
20386 | s&@docdir@&$docdir&g | |
20387 | s&@infodir@&$infodir&g | |
20388 | s&@localedir@&$localedir&g | |
20389 | s&@mandir@&$mandir&g | |
20390 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
20391 | esac | |
20392 | _ACEOF | |
35fa52c0 | 20393 | |
9c60689e DWT |
20394 | # Neutralize VPATH when `$srcdir' = `.'. |
20395 | # Shell code in configure.ac might set extrasub. | |
20396 | # FIXME: do we really want to maintain this feature? | |
20397 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20398 | ac_sed_extra="$ac_vpsub | |
20399 | $extrasub | |
20400 | _ACEOF | |
20401 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20402 | :t | |
20403 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
20404 | s|@configure_input@|$ac_sed_conf_input|;t t | |
20405 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
20406 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
20407 | s&@srcdir@&$ac_srcdir&;t t | |
20408 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
20409 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
20410 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
20411 | s&@builddir@&$ac_builddir&;t t | |
20412 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
20413 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
20414 | s&@INSTALL@&$ac_INSTALL&;t t | |
20415 | $ac_datarootdir_hack | |
20416 | " | |
20417 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
20418 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
20419 | ||
20420 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
20421 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
20422 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
20423 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20424 | which seems to be undefined. Please make sure it is defined." >&5 | |
20425 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20426 | which seems to be undefined. Please make sure it is defined." >&2;} | |
20427 | ||
20428 | rm -f "$tmp/stdin" | |
20429 | case $ac_file in | |
20430 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
20431 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
20432 | esac \ | |
20433 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
20434 | ;; | |
35fa52c0 | 20435 | |
35fa52c0 | 20436 | |
9c60689e DWT |
20437 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
20438 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
20439 | ;; | |
20440 | esac | |
35fa52c0 | 20441 | |
35fa52c0 | 20442 | |
9c60689e DWT |
20443 | case $ac_file$ac_mode in |
20444 | "libtool":C) | |
20445 | ||
20446 | # See if we are running on zsh, and set the options which allow our | |
20447 | # commands through without removal of \ escapes. | |
20448 | if test -n "${ZSH_VERSION+set}" ; then | |
20449 | setopt NO_GLOB_SUBST | |
35fa52c0 | 20450 | fi |
35fa52c0 | 20451 | |
9c60689e DWT |
20452 | cfgfile="${ofile}T" |
20453 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
20454 | $RM "$cfgfile" | |
35fa52c0 | 20455 | |
9c60689e DWT |
20456 | cat <<_LT_EOF >> "$cfgfile" |
20457 | #! $SHELL | |
35fa52c0 | 20458 | |
9c60689e DWT |
20459 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
20460 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
20461 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20462 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
20463 | # | |
20464 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
20465 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
20466 | # Written by Gordon Matzigkeit, 1996 | |
20467 | # | |
20468 | # This file is part of GNU Libtool. | |
20469 | # | |
20470 | # GNU Libtool is free software; you can redistribute it and/or | |
20471 | # modify it under the terms of the GNU General Public License as | |
20472 | # published by the Free Software Foundation; either version 2 of | |
20473 | # the License, or (at your option) any later version. | |
20474 | # | |
20475 | # As a special exception to the GNU General Public License, | |
20476 | # if you distribute this file as part of a program or library that | |
20477 | # is built using GNU Libtool, you may include this file under the | |
20478 | # same distribution terms that you use for the rest of that program. | |
20479 | # | |
20480 | # GNU Libtool is distributed in the hope that it will be useful, | |
20481 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20482 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20483 | # GNU General Public License for more details. | |
20484 | # | |
20485 | # You should have received a copy of the GNU General Public License | |
20486 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
20487 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
20488 | # obtained by writing to the Free Software Foundation, Inc., | |
20489 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 20490 | |
35fa52c0 | 20491 | |
9c60689e DWT |
20492 | # The names of the tagged configurations supported by this script. |
20493 | available_tags="CXX " | |
35fa52c0 | 20494 | |
9c60689e | 20495 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 20496 | |
9c60689e DWT |
20497 | # Which release of libtool.m4 was used? |
20498 | macro_version=$macro_version | |
20499 | macro_revision=$macro_revision | |
35fa52c0 | 20500 | |
9c60689e DWT |
20501 | # Whether or not to build static libraries. |
20502 | build_old_libs=$enable_static | |
35fa52c0 | 20503 | |
549f29b5 DWT |
20504 | # Whether or not to build shared libraries. |
20505 | build_libtool_libs=$enable_shared | |
20506 | ||
9c60689e DWT |
20507 | # What type of objects to build. |
20508 | pic_mode=$pic_mode | |
35fa52c0 | 20509 | |
9c60689e DWT |
20510 | # Whether or not to optimize for fast installation. |
20511 | fast_install=$enable_fast_install | |
35fa52c0 | 20512 | |
9c60689e DWT |
20513 | # The host system. |
20514 | host_alias=$host_alias | |
20515 | host=$host | |
20516 | host_os=$host_os | |
35fa52c0 | 20517 | |
9c60689e DWT |
20518 | # The build system. |
20519 | build_alias=$build_alias | |
20520 | build=$build | |
20521 | build_os=$build_os | |
20522 | ||
20523 | # A sed program that does not truncate output. | |
20524 | SED=$lt_SED | |
20525 | ||
20526 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
20527 | Xsed="\$SED -e 1s/^X//" | |
20528 | ||
20529 | # A grep program that handles long lines. | |
20530 | GREP=$lt_GREP | |
20531 | ||
20532 | # An ERE matcher. | |
20533 | EGREP=$lt_EGREP | |
20534 | ||
20535 | # A literal string matcher. | |
20536 | FGREP=$lt_FGREP | |
20537 | ||
20538 | # A BSD- or MS-compatible name lister. | |
20539 | NM=$lt_NM | |
20540 | ||
20541 | # Whether we need soft or hard links. | |
20542 | LN_S=$lt_LN_S | |
20543 | ||
20544 | # What is the maximum length of a command? | |
20545 | max_cmd_len=$max_cmd_len | |
20546 | ||
20547 | # Object file suffix (normally "o"). | |
20548 | objext=$ac_objext | |
20549 | ||
20550 | # Executable file suffix (normally ""). | |
20551 | exeext=$exeext | |
20552 | ||
20553 | # whether the shell understands "unset". | |
20554 | lt_unset=$lt_unset | |
20555 | ||
20556 | # turn spaces into newlines. | |
20557 | SP2NL=$lt_lt_SP2NL | |
20558 | ||
20559 | # turn newlines into spaces. | |
20560 | NL2SP=$lt_lt_NL2SP | |
20561 | ||
20562 | # How to create reloadable object files. | |
20563 | reload_flag=$lt_reload_flag | |
20564 | reload_cmds=$lt_reload_cmds | |
20565 | ||
20566 | # An object symbol dumper. | |
20567 | OBJDUMP=$lt_OBJDUMP | |
20568 | ||
20569 | # Method to check whether dependent libraries are shared objects. | |
20570 | deplibs_check_method=$lt_deplibs_check_method | |
20571 | ||
20572 | # Command to use when deplibs_check_method == "file_magic". | |
20573 | file_magic_cmd=$lt_file_magic_cmd | |
20574 | ||
20575 | # The archiver. | |
20576 | AR=$lt_AR | |
20577 | AR_FLAGS=$lt_AR_FLAGS | |
20578 | ||
20579 | # A symbol stripping program. | |
20580 | STRIP=$lt_STRIP | |
20581 | ||
20582 | # Commands used to install an old-style archive. | |
20583 | RANLIB=$lt_RANLIB | |
20584 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20585 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20586 | ||
20587 | # A C compiler. | |
20588 | LTCC=$lt_CC | |
20589 | ||
20590 | # LTCC compiler flags. | |
20591 | LTCFLAGS=$lt_CFLAGS | |
20592 | ||
20593 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20594 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20595 | ||
20596 | # Transform the output of nm in a proper C declaration. | |
20597 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20598 | ||
20599 | # Transform the output of nm in a C name address pair. | |
20600 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20601 | ||
20602 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
20603 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
20604 | ||
20605 | # The name of the directory that contains temporary libtool files. | |
20606 | objdir=$objdir | |
20607 | ||
20608 | # Shell to use when invoking shell scripts. | |
20609 | SHELL=$lt_SHELL | |
20610 | ||
20611 | # An echo program that does not interpret backslashes. | |
20612 | ECHO=$lt_ECHO | |
20613 | ||
20614 | # Used to examine libraries when file_magic_cmd begins with "file". | |
20615 | MAGIC_CMD=$MAGIC_CMD | |
20616 | ||
20617 | # Must we lock files when doing compilation? | |
20618 | need_locks=$lt_need_locks | |
20619 | ||
20620 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
20621 | DSYMUTIL=$lt_DSYMUTIL | |
20622 | ||
20623 | # Tool to change global to local symbols on Mac OS X. | |
20624 | NMEDIT=$lt_NMEDIT | |
20625 | ||
20626 | # Tool to manipulate fat objects and archives on Mac OS X. | |
20627 | LIPO=$lt_LIPO | |
20628 | ||
20629 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
20630 | OTOOL=$lt_OTOOL | |
20631 | ||
20632 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
20633 | OTOOL64=$lt_OTOOL64 | |
20634 | ||
20635 | # Old archive suffix (normally "a"). | |
20636 | libext=$libext | |
20637 | ||
20638 | # Shared library suffix (normally ".so"). | |
20639 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 20640 | |
9c60689e DWT |
20641 | # The commands to extract the exported symbol list from a shared archive. |
20642 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 20643 | |
9c60689e DWT |
20644 | # Variables whose values should be saved in libtool wrapper scripts and |
20645 | # restored at link time. | |
20646 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 20647 | |
9c60689e DWT |
20648 | # Do we need the "lib" prefix for modules? |
20649 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 20650 | |
9c60689e DWT |
20651 | # Do we need a version for libraries? |
20652 | need_version=$need_version | |
35fa52c0 | 20653 | |
9c60689e DWT |
20654 | # Library versioning type. |
20655 | version_type=$version_type | |
35fa52c0 | 20656 | |
9c60689e DWT |
20657 | # Shared library runtime path variable. |
20658 | runpath_var=$runpath_var | |
35fa52c0 | 20659 | |
9c60689e DWT |
20660 | # Shared library path variable. |
20661 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 20662 | |
9c60689e DWT |
20663 | # Is shlibpath searched before the hard-coded library search path? |
20664 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 20665 | |
9c60689e DWT |
20666 | # Format of library name prefix. |
20667 | libname_spec=$lt_libname_spec | |
35fa52c0 | 20668 | |
9c60689e DWT |
20669 | # List of archive names. First name is the real one, the rest are links. |
20670 | # The last name is the one that the linker finds with -lNAME | |
20671 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 20672 | |
9c60689e DWT |
20673 | # The coded name of the library, if different from the real name. |
20674 | soname_spec=$lt_soname_spec | |
dbadc56a | 20675 | |
9c60689e DWT |
20676 | # Command to use after installation of a shared archive. |
20677 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 20678 | |
9c60689e DWT |
20679 | # Command to use after uninstallation of a shared archive. |
20680 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 20681 | |
9c60689e DWT |
20682 | # Commands used to finish a libtool library installation in a directory. |
20683 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 20684 | |
9c60689e DWT |
20685 | # As "finish_cmds", except a single script fragment to be evaled but |
20686 | # not shown. | |
20687 | finish_eval=$lt_finish_eval | |
35fa52c0 | 20688 | |
9c60689e DWT |
20689 | # Whether we should hardcode library paths into libraries. |
20690 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 20691 | |
9c60689e DWT |
20692 | # Compile-time system search path for libraries. |
20693 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 20694 | |
9c60689e DWT |
20695 | # Run-time system search path for libraries. |
20696 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 20697 | |
9c60689e DWT |
20698 | # Whether dlopen is supported. |
20699 | dlopen_support=$enable_dlopen | |
dbadc56a | 20700 | |
9c60689e DWT |
20701 | # Whether dlopen of programs is supported. |
20702 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 20703 | |
9c60689e DWT |
20704 | # Whether dlopen of statically linked programs is supported. |
20705 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 20706 | |
9c60689e DWT |
20707 | # Commands to strip libraries. |
20708 | old_striplib=$lt_old_striplib | |
20709 | striplib=$lt_striplib | |
35fa52c0 | 20710 | |
35fa52c0 | 20711 | |
9c60689e DWT |
20712 | # The linker used to build libraries. |
20713 | LD=$lt_LD | |
dbadc56a | 20714 | |
9c60689e DWT |
20715 | # Commands used to build an old-style archive. |
20716 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 20717 | |
9c60689e DWT |
20718 | # A language specific compiler. |
20719 | CC=$lt_compiler | |
35fa52c0 | 20720 | |
9c60689e DWT |
20721 | # Is the compiler the GNU compiler? |
20722 | with_gcc=$GCC | |
dbadc56a | 20723 | |
9c60689e DWT |
20724 | # Compiler flag to turn off builtin functions. |
20725 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 20726 | |
9c60689e DWT |
20727 | # How to pass a linker flag through the compiler. |
20728 | wl=$lt_lt_prog_compiler_wl | |
35fa52c0 | 20729 | |
9c60689e DWT |
20730 | # Additional compiler flags for building library objects. |
20731 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 20732 | |
9c60689e DWT |
20733 | # Compiler flag to prevent dynamic linking. |
20734 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 20735 | |
9c60689e DWT |
20736 | # Does compiler simultaneously support -c and -o options? |
20737 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 20738 | |
9c60689e DWT |
20739 | # Whether or not to add -lc for building shared libraries. |
20740 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 20741 | |
9c60689e DWT |
20742 | # Whether or not to disallow shared libs when runtime libs are static. |
20743 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 20744 | |
9c60689e DWT |
20745 | # Compiler flag to allow reflexive dlopens. |
20746 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 20747 | |
9c60689e DWT |
20748 | # Compiler flag to generate shared objects directly from archives. |
20749 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 20750 | |
9c60689e DWT |
20751 | # Whether the compiler copes with passing no objects directly. |
20752 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 20753 | |
9c60689e DWT |
20754 | # Create an old-style archive from a shared archive. |
20755 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 20756 | |
9c60689e DWT |
20757 | # Create a temporary old-style archive to link instead of a shared archive. |
20758 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 20759 | |
9c60689e DWT |
20760 | # Commands used to build a shared archive. |
20761 | archive_cmds=$lt_archive_cmds | |
20762 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 20763 | |
9c60689e DWT |
20764 | # Commands used to build a loadable module if different from building |
20765 | # a shared archive. | |
20766 | module_cmds=$lt_module_cmds | |
20767 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 20768 | |
9c60689e DWT |
20769 | # Whether we are building with GNU ld or not. |
20770 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 20771 | |
9c60689e DWT |
20772 | # Flag that allows shared libraries with undefined symbols to be built. |
20773 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 20774 | |
9c60689e DWT |
20775 | # Flag that enforces no undefined symbols. |
20776 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 20777 | |
9c60689e DWT |
20778 | # Flag to hardcode \$libdir into a binary during linking. |
20779 | # This must work even if \$libdir does not exist | |
20780 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 20781 | |
9c60689e DWT |
20782 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
20783 | # during linking. This must work even if \$libdir does not exist. | |
20784 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
6b66678a | 20785 | |
9c60689e DWT |
20786 | # Whether we need a single "-rpath" flag with a separated argument. |
20787 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 20788 | |
9c60689e DWT |
20789 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20790 | # DIR into the resulting binary. | |
20791 | hardcode_direct=$hardcode_direct | |
6b66678a | 20792 | |
9c60689e DWT |
20793 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20794 | # DIR into the resulting binary and the resulting library dependency is | |
20795 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20796 | # library is relocated. | |
20797 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 20798 | |
9c60689e DWT |
20799 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
20800 | # into the resulting binary. | |
20801 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 20802 | |
9c60689e DWT |
20803 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
20804 | # into the resulting binary. | |
20805 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 20806 | |
9c60689e DWT |
20807 | # Set to "yes" if building a shared library automatically hardcodes DIR |
20808 | # into the library and all subsequent libraries and executables linked | |
20809 | # against it. | |
20810 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 20811 | |
9c60689e DWT |
20812 | # Set to yes if linker adds runtime paths of dependent libraries |
20813 | # to runtime path list. | |
20814 | inherit_rpath=$inherit_rpath | |
6b66678a | 20815 | |
9c60689e DWT |
20816 | # Whether libtool must link a program against all its dependency libraries. |
20817 | link_all_deplibs=$link_all_deplibs | |
20818 | ||
20819 | # Fix the shell variable \$srcfile for the compiler. | |
20820 | fix_srcfile_path=$lt_fix_srcfile_path | |
20821 | ||
20822 | # Set to "yes" if exported symbols are required. | |
20823 | always_export_symbols=$always_export_symbols | |
6b66678a | 20824 | |
9c60689e DWT |
20825 | # The commands to list exported symbols. |
20826 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 20827 | |
9c60689e DWT |
20828 | # Symbols that should not be listed in the preloaded symbols. |
20829 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 20830 | |
9c60689e DWT |
20831 | # Symbols that must always be exported. |
20832 | include_expsyms=$lt_include_expsyms | |
6b66678a | 20833 | |
9c60689e DWT |
20834 | # Commands necessary for linking programs (against libraries) with templates. |
20835 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 20836 | |
9c60689e DWT |
20837 | # Specify filename containing input files. |
20838 | file_list_spec=$lt_file_list_spec | |
6b66678a | 20839 | |
9c60689e DWT |
20840 | # How to hardcode a shared library path into an executable. |
20841 | hardcode_action=$hardcode_action | |
20842 | ||
20843 | # The directories searched by this compiler when creating a shared library. | |
20844 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
20845 | ||
20846 | # Dependencies to place before and after the objects being linked to | |
20847 | # create a shared library. | |
20848 | predep_objects=$lt_predep_objects | |
20849 | postdep_objects=$lt_postdep_objects | |
20850 | predeps=$lt_predeps | |
20851 | postdeps=$lt_postdeps | |
20852 | ||
20853 | # The library search path used internally by the compiler when linking | |
20854 | # a shared library. | |
20855 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
20856 | ||
20857 | # ### END LIBTOOL CONFIG | |
20858 | ||
20859 | _LT_EOF | |
20860 | ||
20861 | case $host_os in | |
20862 | aix3*) | |
20863 | cat <<\_LT_EOF >> "$cfgfile" | |
20864 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20865 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20866 | # vanish in a puff of smoke. | |
20867 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
20868 | COLLECT_NAMES= | |
20869 | export COLLECT_NAMES | |
6b66678a | 20870 | fi |
9c60689e DWT |
20871 | _LT_EOF |
20872 | ;; | |
20873 | esac | |
6b66678a DWT |
20874 | |
20875 | ||
9c60689e | 20876 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 20877 | |
9c60689e DWT |
20878 | |
20879 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20880 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20881 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20882 | # is reportedly fixed, but why not run on old versions too? | |
20883 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
20884 | || (rm -f "$cfgfile"; exit 1) | |
20885 | ||
20886 | case $xsi_shell in | |
20887 | yes) | |
20888 | cat << \_LT_EOF >> "$cfgfile" | |
20889 | ||
20890 | # func_dirname file append nondir_replacement | |
20891 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20892 | # otherwise set result to NONDIR_REPLACEMENT. | |
20893 | func_dirname () | |
6b66678a | 20894 | { |
9c60689e DWT |
20895 | case ${1} in |
20896 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20897 | * ) func_dirname_result="${3}" ;; | |
20898 | esac | |
20899 | } | |
6b66678a | 20900 | |
9c60689e DWT |
20901 | # func_basename file |
20902 | func_basename () | |
20903 | { | |
20904 | func_basename_result="${1##*/}" | |
6b66678a | 20905 | } |
6b66678a | 20906 | |
9c60689e DWT |
20907 | # func_dirname_and_basename file append nondir_replacement |
20908 | # perform func_basename and func_dirname in a single function | |
20909 | # call: | |
20910 | # dirname: Compute the dirname of FILE. If nonempty, | |
20911 | # add APPEND to the result, otherwise set result | |
20912 | # to NONDIR_REPLACEMENT. | |
20913 | # value returned in "$func_dirname_result" | |
20914 | # basename: Compute filename of FILE. | |
20915 | # value retuned in "$func_basename_result" | |
20916 | # Implementation must be kept synchronized with func_dirname | |
20917 | # and func_basename. For efficiency, we do not delegate to | |
20918 | # those functions but instead duplicate the functionality here. | |
20919 | func_dirname_and_basename () | |
20920 | { | |
20921 | case ${1} in | |
20922 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20923 | * ) func_dirname_result="${3}" ;; | |
20924 | esac | |
20925 | func_basename_result="${1##*/}" | |
20926 | } | |
6b66678a | 20927 | |
9c60689e DWT |
20928 | # func_stripname prefix suffix name |
20929 | # strip PREFIX and SUFFIX off of NAME. | |
20930 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20931 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20932 | # dot (in which case that matches only a dot). | |
20933 | func_stripname () | |
20934 | { | |
20935 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
20936 | # positional parameters, so assign one to ordinary parameter first. | |
20937 | func_stripname_result=${3} | |
20938 | func_stripname_result=${func_stripname_result#"${1}"} | |
20939 | func_stripname_result=${func_stripname_result%"${2}"} | |
20940 | } | |
6b66678a | 20941 | |
9c60689e DWT |
20942 | # func_opt_split |
20943 | func_opt_split () | |
20944 | { | |
20945 | func_opt_split_opt=${1%%=*} | |
20946 | func_opt_split_arg=${1#*=} | |
20947 | } | |
6b66678a | 20948 | |
9c60689e DWT |
20949 | # func_lo2o object |
20950 | func_lo2o () | |
20951 | { | |
20952 | case ${1} in | |
20953 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
20954 | *) func_lo2o_result=${1} ;; | |
20955 | esac | |
20956 | } | |
6b66678a | 20957 | |
9c60689e DWT |
20958 | # func_xform libobj-or-source |
20959 | func_xform () | |
20960 | { | |
20961 | func_xform_result=${1%.*}.lo | |
20962 | } | |
6b66678a | 20963 | |
9c60689e DWT |
20964 | # func_arith arithmetic-term... |
20965 | func_arith () | |
20966 | { | |
20967 | func_arith_result=$(( $* )) | |
20968 | } | |
6b66678a | 20969 | |
9c60689e DWT |
20970 | # func_len string |
20971 | # STRING may not start with a hyphen. | |
20972 | func_len () | |
20973 | { | |
20974 | func_len_result=${#1} | |
20975 | } | |
6b66678a | 20976 | |
9c60689e DWT |
20977 | _LT_EOF |
20978 | ;; | |
20979 | *) # Bourne compatible functions. | |
20980 | cat << \_LT_EOF >> "$cfgfile" | |
6b66678a | 20981 | |
9c60689e DWT |
20982 | # func_dirname file append nondir_replacement |
20983 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20984 | # otherwise set result to NONDIR_REPLACEMENT. | |
20985 | func_dirname () | |
20986 | { | |
20987 | # Extract subdirectory from the argument. | |
20988 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
20989 | if test "X$func_dirname_result" = "X${1}"; then | |
20990 | func_dirname_result="${3}" | |
20991 | else | |
20992 | func_dirname_result="$func_dirname_result${2}" | |
20993 | fi | |
20994 | } | |
6b66678a | 20995 | |
9c60689e DWT |
20996 | # func_basename file |
20997 | func_basename () | |
6b66678a | 20998 | { |
9c60689e | 20999 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
6b66678a | 21000 | } |
6b66678a | 21001 | |
6b66678a | 21002 | |
9c60689e DWT |
21003 | # func_stripname prefix suffix name |
21004 | # strip PREFIX and SUFFIX off of NAME. | |
21005 | # PREFIX and SUFFIX must not contain globbing or regex special | |
21006 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
21007 | # dot (in which case that matches only a dot). | |
21008 | # func_strip_suffix prefix name | |
21009 | func_stripname () | |
21010 | { | |
21011 | case ${2} in | |
21012 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
21013 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
21014 | *) func_stripname_result=`$ECHO "X${3}" \ | |
21015 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
21016 | esac | |
21017 | } | |
6b66678a | 21018 | |
9c60689e DWT |
21019 | # sed scripts: |
21020 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
21021 | my_sed_long_arg='1s/^-[^=]*=//' | |
6b66678a | 21022 | |
9c60689e DWT |
21023 | # func_opt_split |
21024 | func_opt_split () | |
21025 | { | |
21026 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
21027 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
21028 | } | |
6b66678a | 21029 | |
9c60689e DWT |
21030 | # func_lo2o object |
21031 | func_lo2o () | |
21032 | { | |
21033 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
21034 | } | |
21035 | ||
21036 | # func_xform libobj-or-source | |
21037 | func_xform () | |
21038 | { | |
21039 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
21040 | } | |
21041 | ||
21042 | # func_arith arithmetic-term... | |
21043 | func_arith () | |
21044 | { | |
21045 | func_arith_result=`expr "$@"` | |
21046 | } | |
21047 | ||
21048 | # func_len string | |
21049 | # STRING may not start with a hyphen. | |
21050 | func_len () | |
21051 | { | |
21052 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
21053 | } | |
21054 | ||
21055 | _LT_EOF | |
21056 | esac | |
21057 | ||
21058 | case $lt_shell_append in | |
21059 | yes) | |
21060 | cat << \_LT_EOF >> "$cfgfile" | |
21061 | ||
21062 | # func_append var value | |
21063 | # Append VALUE to the end of shell variable VAR. | |
21064 | func_append () | |
21065 | { | |
21066 | eval "$1+=\$2" | |
21067 | } | |
21068 | _LT_EOF | |
21069 | ;; | |
21070 | *) | |
21071 | cat << \_LT_EOF >> "$cfgfile" | |
21072 | ||
21073 | # func_append var value | |
21074 | # Append VALUE to the end of shell variable VAR. | |
21075 | func_append () | |
21076 | { | |
21077 | eval "$1=\$$1\$2" | |
21078 | } | |
21079 | ||
21080 | _LT_EOF | |
21081 | ;; | |
21082 | esac | |
21083 | ||
21084 | ||
21085 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
21086 | || (rm -f "$cfgfile"; exit 1) | |
21087 | ||
21088 | mv -f "$cfgfile" "$ofile" || | |
21089 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
21090 | chmod +x "$ofile" | |
21091 | ||
21092 | ||
21093 | cat <<_LT_EOF >> "$ofile" | |
21094 | ||
21095 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
21096 | ||
21097 | # The linker used to build libraries. | |
21098 | LD=$lt_LD_CXX | |
21099 | ||
21100 | # Commands used to build an old-style archive. | |
21101 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
21102 | ||
21103 | # A language specific compiler. | |
21104 | CC=$lt_compiler_CXX | |
21105 | ||
21106 | # Is the compiler the GNU compiler? | |
21107 | with_gcc=$GCC_CXX | |
21108 | ||
21109 | # Compiler flag to turn off builtin functions. | |
21110 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 21111 | |
9c60689e DWT |
21112 | # How to pass a linker flag through the compiler. |
21113 | wl=$lt_lt_prog_compiler_wl_CXX | |
6b66678a | 21114 | |
9c60689e DWT |
21115 | # Additional compiler flags for building library objects. |
21116 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 21117 | |
9c60689e DWT |
21118 | # Compiler flag to prevent dynamic linking. |
21119 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 21120 | |
9c60689e DWT |
21121 | # Does compiler simultaneously support -c and -o options? |
21122 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 21123 | |
9c60689e DWT |
21124 | # Whether or not to add -lc for building shared libraries. |
21125 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 21126 | |
9c60689e DWT |
21127 | # Whether or not to disallow shared libs when runtime libs are static. |
21128 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 21129 | |
9c60689e DWT |
21130 | # Compiler flag to allow reflexive dlopens. |
21131 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 21132 | |
9c60689e DWT |
21133 | # Compiler flag to generate shared objects directly from archives. |
21134 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 21135 | |
9c60689e DWT |
21136 | # Whether the compiler copes with passing no objects directly. |
21137 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 21138 | |
9c60689e DWT |
21139 | # Create an old-style archive from a shared archive. |
21140 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 21141 | |
9c60689e DWT |
21142 | # Create a temporary old-style archive to link instead of a shared archive. |
21143 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 21144 | |
9c60689e DWT |
21145 | # Commands used to build a shared archive. |
21146 | archive_cmds=$lt_archive_cmds_CXX | |
21147 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 21148 | |
9c60689e DWT |
21149 | # Commands used to build a loadable module if different from building |
21150 | # a shared archive. | |
21151 | module_cmds=$lt_module_cmds_CXX | |
21152 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 21153 | |
9c60689e DWT |
21154 | # Whether we are building with GNU ld or not. |
21155 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 21156 | |
9c60689e DWT |
21157 | # Flag that allows shared libraries with undefined symbols to be built. |
21158 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 21159 | |
9c60689e DWT |
21160 | # Flag that enforces no undefined symbols. |
21161 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 21162 | |
9c60689e DWT |
21163 | # Flag to hardcode \$libdir into a binary during linking. |
21164 | # This must work even if \$libdir does not exist | |
21165 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 21166 | |
9c60689e DWT |
21167 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
21168 | # during linking. This must work even if \$libdir does not exist. | |
21169 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
6b66678a | 21170 | |
9c60689e DWT |
21171 | # Whether we need a single "-rpath" flag with a separated argument. |
21172 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 21173 | |
9c60689e DWT |
21174 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21175 | # DIR into the resulting binary. | |
21176 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 21177 | |
9c60689e DWT |
21178 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21179 | # DIR into the resulting binary and the resulting library dependency is | |
21180 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
21181 | # library is relocated. | |
21182 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 21183 | |
9c60689e DWT |
21184 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
21185 | # into the resulting binary. | |
21186 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 21187 | |
9c60689e DWT |
21188 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
21189 | # into the resulting binary. | |
21190 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 21191 | |
9c60689e DWT |
21192 | # Set to "yes" if building a shared library automatically hardcodes DIR |
21193 | # into the library and all subsequent libraries and executables linked | |
21194 | # against it. | |
21195 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 21196 | |
9c60689e DWT |
21197 | # Set to yes if linker adds runtime paths of dependent libraries |
21198 | # to runtime path list. | |
21199 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 21200 | |
9c60689e DWT |
21201 | # Whether libtool must link a program against all its dependency libraries. |
21202 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 21203 | |
9c60689e DWT |
21204 | # Fix the shell variable \$srcfile for the compiler. |
21205 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
6b66678a | 21206 | |
9c60689e DWT |
21207 | # Set to "yes" if exported symbols are required. |
21208 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 21209 | |
9c60689e DWT |
21210 | # The commands to list exported symbols. |
21211 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 21212 | |
9c60689e DWT |
21213 | # Symbols that should not be listed in the preloaded symbols. |
21214 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 21215 | |
9c60689e DWT |
21216 | # Symbols that must always be exported. |
21217 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 21218 | |
9c60689e DWT |
21219 | # Commands necessary for linking programs (against libraries) with templates. |
21220 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 21221 | |
9c60689e DWT |
21222 | # Specify filename containing input files. |
21223 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 21224 | |
9c60689e DWT |
21225 | # How to hardcode a shared library path into an executable. |
21226 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 21227 | |
9c60689e DWT |
21228 | # The directories searched by this compiler when creating a shared library. |
21229 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 21230 | |
9c60689e DWT |
21231 | # Dependencies to place before and after the objects being linked to |
21232 | # create a shared library. | |
21233 | predep_objects=$lt_predep_objects_CXX | |
21234 | postdep_objects=$lt_postdep_objects_CXX | |
21235 | predeps=$lt_predeps_CXX | |
21236 | postdeps=$lt_postdeps_CXX | |
309b0535 | 21237 | |
9c60689e DWT |
21238 | # The library search path used internally by the compiler when linking |
21239 | # a shared library. | |
21240 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
21241 | ||
21242 | # ### END LIBTOOL TAG CONFIG: CXX | |
21243 | _LT_EOF | |
21244 | ||
21245 | ;; | |
21246 | ||
21247 | esac | |
21248 | done # for ac_tag | |
21249 | ||
21250 | ||
21251 | as_fn_exit 0 | |
21252 | _ACEOF | |
21253 | ac_clean_files=$ac_clean_files_save | |
21254 | ||
21255 | test $ac_write_fail = 0 || | |
21256 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
21257 | ||
21258 | ||
21259 | # configure is writing to config.log, and then calls config.status. | |
21260 | # config.status does its own redirection, appending to config.log. | |
21261 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21262 | # by configure, so config.status won't be able to write to it; its | |
21263 | # output is simply discarded. So we exec the FD to /dev/null, | |
21264 | # effectively closing config.log, so it can be properly (re)opened and | |
21265 | # appended to by config.status. When coming back to configure, we | |
21266 | # need to make the FD available again. | |
21267 | if test "$no_create" != yes; then | |
21268 | ac_cs_success=: | |
21269 | ac_config_status_args= | |
21270 | test "$silent" = yes && | |
21271 | ac_config_status_args="$ac_config_status_args --quiet" | |
21272 | exec 5>/dev/null | |
21273 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
21274 | exec 5>>config.log | |
21275 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
21276 | # would make configure fail if this is the last instruction. | |
21277 | $ac_cs_success || as_fn_exit $? | |
309b0535 | 21278 | fi |
9c60689e DWT |
21279 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
21280 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
21281 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
21282 | fi | |
21283 |